:root {
  --orange: #F05A28;
  --orange-hover: #D94A18;
  --yellow: #FAAF40;
  --dark: #0E1116;
  --dark-2: #1B2025;
  --dark-3: #24292F;
  --dark-line: rgba(255,255,255,0.08);
  --text-light: #FFFFFF;
  --text-body: rgba(255,255,255,0.75);
  --text-muted: rgba(255,255,255,0.55);
  --cream: #FFF9F1;
  --line: #E6DACC;
  --green: #22C55E;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--dark); color: var(--text-body);
  line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  color: var(--text-light); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; font-weight: 700; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; }
p { margin-bottom: 1rem; color: var(--text-body); }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--yellow); }
.accent { color: var(--orange); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5.5rem 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.78rem; font-weight: 700;
  color: var(--orange); margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--text-body); max-width: 760px; line-height: 1.7; }

/* Header */
header {
  background: rgba(14,17,22,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-line);
  padding: 1rem 0; position: sticky; top: 0; z-index: 100;
}
header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo-img { height: 40px; width: auto; display: block; }
nav { display: flex; gap: 2rem; align-items: center; }
nav > a, nav .dropdown > a.dd-toggle {
  color: var(--text-light); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.35rem;
}
nav > a.active, nav .dropdown > a.dd-toggle.active { color: var(--orange); }
nav > a:hover, nav .dropdown > a.dd-toggle:hover { color: var(--orange); }
nav .nav-cta {
  background: var(--orange); color: white !important; padding: 0.7rem 1.3rem;
  border-radius: 4px; font-weight: 700;
}
nav .nav-cta:hover { background: var(--orange-hover); }
.dropdown { position: relative; }
.dropdown .dropdown-menu {
  position: absolute; top: 100%; right: 0;
  background: var(--dark-2);
  border: 1px solid var(--dark-line); border-radius: 6px;
  padding: 0.6rem 0; min-width: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.2s; z-index: 200;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown .dropdown-menu a {
  display: block; padding: 0.75rem 1.25rem;
  color: var(--text-light); font-weight: 500;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-left: 3px solid transparent;
}
.dropdown .dropdown-menu a:hover, .dropdown .dropdown-menu a.active {
  background: rgba(240,90,40,0.10); color: var(--orange); border-left-color: var(--orange);
}
.dropdown .dropdown-menu a .new-pill {
  background: var(--orange); color: white; font-size: 0.6rem;
  padding: 0.15rem 0.45rem; border-radius: 100px; margin-left: 0.5rem;
  letter-spacing: 0.1em; vertical-align: middle;
}
@media (max-width: 900px) { nav { display: none; } }

/* Hero */
.hero {
  padding: 8rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(240,90,40,0.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(250,175,64,0.10), transparent 60%),
    var(--dark);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 90%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.5rem; max-width: 1000px; }
.hero .lead { font-size: 1.3rem; max-width: 780px; }
.hero-ctas { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.breadcrumb {
  color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 1.05rem 2rem; border-radius: 4px;
  font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: var(--orange-hover); color: white; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { background: white; color: var(--dark); border-color: white; }

/* Tech strip */
.tech-strip {
  padding: 3rem 0; background: #0A0D11;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.tech-strip .tech-label {
  text-align: center; color: var(--text-muted);
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 1.5rem;
}
.tech-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2rem 3rem; opacity: 0.85;
}
.tech-logos .tech-logo {
  font-weight: 700; color: var(--text-body); letter-spacing: 0.05em; font-size: 1rem;
}

.section-head { max-width: 820px; margin-bottom: 3.5rem; }

/* Mission grid */
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-card {
  background: var(--dark-2); padding: 2rem; border-radius: 8px;
  border: 1px solid var(--dark-line); border-top: 3px solid var(--orange);
}
.mission-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.mission-card p { font-size: 0.95rem; margin: 0; }

/* Services grid (6 cards) */
.services-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 1000px) { .services-grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid-6 { grid-template-columns: 1fr; } }
.service-card {
  background: var(--dark-2); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--dark-line); transition: all 0.3s;
  display: flex; flex-direction: column; position: relative; color: var(--text-body);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--orange); }
.service-card.featured { border: 1px solid var(--orange); box-shadow: 0 0 0 3px rgba(240,90,40,0.15); }
.service-card .cover {
  height: 160px; position: relative;
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.service-card .cover.dark-cover {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border-bottom: 3px solid var(--orange);
}
.service-card .cover svg { width: 55%; height: 55%; opacity: 0.95; }
.service-card .badge-new {
  position: absolute; top: 12px; right: 12px;
  background: var(--dark); color: var(--yellow);
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.15em;
  padding: 0.35rem 0.75rem; border-radius: 100px; border: 1px solid var(--yellow);
}
.service-card .body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.service-card .tag {
  display: inline-block; align-self: flex-start;
  background: rgba(240,90,40,0.15); color: var(--orange);
  font-weight: 700; font-size: 0.65rem; padding: 0.3rem 0.7rem;
  border-radius: 100px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 1.1rem; flex: 1; }
.service-card .discover {
  color: var(--orange); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding-top: 0.9rem; border-top: 1px solid var(--dark-line);
  display: inline-flex; gap: 0.4rem; align-items: center; transition: gap 0.2s;
}
.service-card:hover .discover { gap: 0.8rem; }

/* Split */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: center; }
.split.reverse .visual { order: -1; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse .visual { order: 0; }
}

/* Diagrams */
.diagram-box {
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: 8px; padding: 2rem;
}
.diagram-box.light { background: var(--dark-3); }
.diagram-box svg { width: 100%; height: auto; display: block; }

/* Timeline */
.timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-top: 3rem; position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 26px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 100%);
}
.timeline .step { text-align: center; padding: 0 0.5rem; }
.timeline .dot {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
  margin: 0 auto 1rem; position: relative; z-index: 1;
  box-shadow: 0 0 0 8px var(--dark);
}
.timeline .step h4 { margin-bottom: 0.35rem; font-size: 1rem; }
.timeline .step p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { display: none; }
}
.timeline.alt-timeline .dot { box-shadow: 0 0 0 8px var(--cream); }

/* How-it-works */
.how-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .how-3 { grid-template-columns: 1fr; } }
.how-card {
  background: rgba(255,255,255,0.03); padding: 2rem; border-radius: 8px;
  border-top: 3px solid var(--orange);
}
.how-card .num { color: var(--orange); font-weight: 900; font-size: 2.5rem; line-height: 1; margin-bottom: 0.5rem; }
.how-card h4 { margin-bottom: 0.5rem; }
.how-card p { font-size: 0.94rem; margin: 0; }

/* Comparison */
.comparison { margin-top: 3rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--dark-line); }
.comparison table { width: 100%; border-collapse: collapse; background: var(--dark-2); }
.comparison th, .comparison td {
  padding: 1.2rem 1.5rem; text-align: left;
  border-bottom: 1px solid var(--dark-line);
  vertical-align: top; font-size: 0.98rem; color: var(--text-body);
}
.comparison th { background: var(--dark-3); color: white; font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; }
.comparison tr:last-child td { border-bottom: none; }
.comparison td:first-child { font-weight: 700; color: var(--text-light); background: rgba(255,255,255,0.02); }
.comparison td.win { color: var(--green); font-weight: 600; }
.comparison td.meh { color: var(--text-muted); }

/* Alt-light section */
section.alt-light { background: var(--cream); color: var(--dark-2); }
section.alt-light h1, section.alt-light h2, section.alt-light h3, section.alt-light h4 { color: var(--dark-2); }
section.alt-light p, section.alt-light .lead { color: #3A4048; }
section.alt-light .eyebrow { color: var(--orange); }
section.alt-light .diagram-box { background: white; border: 1px solid var(--line); box-shadow: 0 8px 40px rgba(27,32,37,0.06); }
section.alt-light .comparison { border-color: var(--line); }
section.alt-light .comparison table { background: white; }
section.alt-light .comparison th { background: var(--dark-2); color: white; }
section.alt-light .comparison th:first-child { background: #333A44; }
section.alt-light .comparison td { color: #3A4048; border-color: var(--line); }
section.alt-light .comparison td:first-child { color: var(--dark-2); background: rgba(240,90,40,0.05); }
section.alt-light .comparison td.win { color: #16A34A; }
section.alt-light .comparison td.meh { color: #9CA3AF; }
section.alt-light .how-card { background: white; border: 1px solid var(--line); border-top: 3px solid var(--orange); }

/* Spotlight */
.spotlight-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; margin-top: 3rem; }
@media (max-width: 900px) { .spotlight-grid { grid-template-columns: 1fr; } }
.stack-list { list-style: none; }
.stack-list li {
  padding: 1.2rem 1.5rem; background: rgba(255,255,255,0.04);
  border-radius: 8px; margin-bottom: 0.85rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  border-left: 3px solid var(--orange);
}
.stack-list li .n {
  width: 36px; height: 36px; border-radius: 50%; background: var(--orange);
  color: white; font-weight: 900; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.stack-list li strong { color: white; display: block; margin-bottom: 0.2rem; font-size: 1.05rem; }
.stack-list li span { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--dark-2); padding: 2rem; border-radius: 8px;
  border: 1px solid var(--dark-line);
}
.feature-card .icon {
  width: 48px; height: 48px; background: rgba(240,90,40,0.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-weight: 900; font-size: 1.3rem; margin-bottom: 1.2rem;
}
.feature-card p { font-size: 0.94rem; margin: 0; }

/* Demo cards */
.demo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .demo-cards { grid-template-columns: 1fr; } }
.demo-card {
  background: var(--dark-2); padding: 2.5rem; border-radius: 8px;
  border: 1px solid var(--dark-line); transition: all 0.3s;
  display: block; color: var(--text-light); position: relative; overflow: hidden;
}
.demo-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: translateY(-100%); transition: transform 0.3s;
}
.demo-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.demo-card:hover::before { transform: translateY(0); }
.demo-card .label { font-size: 0.72rem; color: var(--orange); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.demo-card h3 { margin-bottom: 0.75rem; font-size: 1.5rem; }
.demo-card p { color: var(--text-body); margin-bottom: 1.5rem; }
.demo-card .url { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--text-muted); padding: 0.75rem 1rem; background: rgba(0,0,0,0.35); border-radius: 4px; word-break: break-all; margin-bottom: 1.25rem; }
.demo-card .arrow { color: var(--orange); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; }

/* Contact form */
.newsletter { padding: 6rem 0; background: linear-gradient(180deg, var(--dark) 0%, #06080B 100%); }
.newsletter-form {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
  margin-top: 2.5rem; max-width: 960px;
}
.newsletter-form input, .newsletter-form textarea {
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: 4px; padding: 1rem 1.1rem; color: white;
  font-family: inherit; font-size: 0.95rem; transition: border 0.2s;
}
.newsletter-form input:focus, .newsletter-form textarea:focus { outline: none; border-color: var(--orange); }
.newsletter-form textarea { grid-column: 1 / -1; min-height: 120px; resize: vertical; }
.newsletter-form button {
  grid-column: 1 / -1; background: var(--orange); color: white;
  border: none; padding: 1.1rem; border-radius: 4px;
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.14em; cursor: pointer; transition: background 0.2s;
  margin-top: 0.5rem;
}
.newsletter-form button:hover { background: var(--orange-hover); }
@media (max-width: 900px) { .newsletter-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .newsletter-form { grid-template-columns: 1fr; } }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #E04A18 100%);
  padding: 4rem 0; text-align: center; color: white;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }
.cta-banner .btn-secondary { color: white; border-color: rgba(255,255,255,0.5); }
.cta-banner .btn-secondary:hover { background: white; color: var(--orange); }

/* Contact cards */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--dark-2); padding: 2rem; border-radius: 8px;
  border: 1px solid var(--dark-line); text-align: center;
}
.contact-card .icon {
  width: 56px; height: 56px; border-radius: 12px; background: rgba(240,90,40,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-weight: 900; font-size: 1.4rem;
  margin: 0 auto 1rem;
}
.contact-card h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.contact-card p { margin: 0; color: var(--text-light); font-weight: 500; }
.contact-card a { color: var(--text-light); }

/* Footer */
footer { background: #06080B; padding: 4.5rem 0 2rem; border-top: 1px solid var(--dark-line); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-logo { height: 36px; display: block; margin-bottom: 1.25rem; }
.footer-col h4 {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a { color: var(--text-body); font-size: 0.92rem; letter-spacing: 0.03em; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-col p { color: var(--text-body); font-size: 0.92rem; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.06em;
}
