/* ============ Tokens ============ */
:root {
  --bg: #060B1A;
  --surface: #0D1226;
  --surface-2: #131A33;
  --accent: #4F7CFF;            /* primary electric blue */
  --accent-soft: rgba(79, 124, 255, 0.12);
  --accent-2: #A78BFA;          /* violet, sparingly */
  --accent-3: #34D399;          /* mint, sparingly */
  --border: #1B2244;
  --border-hover: #2A3258;
  --text: #EDF0F7;
  --muted: #8893AE;
  --nav-h: 72px;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1240px; }
section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }

.section-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.section-label.violet { color: var(--accent-2); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}
p { margin: 0; }

.h-xl { font-size: clamp(44px, 7vw, 88px); }
.h-lg { font-size: clamp(32px, 4.6vw, 56px); max-width: 22ch; margin-bottom: 20px; }
.h-md { font-size: clamp(24px, 2.6vw, 32px); }
.lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--muted);
  max-width: 60ch;
}

.accent-text { color: var(--accent); }
.violet-text { color: var(--accent-2); }
.mint-text   { color: var(--accent-3); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(79, 124, 255, 0.55);
  background: #6690FF;
  border-color: #6690FF;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: transparent;
  border-color: var(--border-hover);
  box-shadow: none;
  color: var(--text);
}
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ============ Navbar ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 250ms ease, border-color 250ms ease, backdrop-filter 250ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled,
.nav.solid {
  background: rgba(6, 11, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--text);
  opacity: 0.82;
  transition: opacity 200ms, color 200ms;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--accent); }
.nav-cta-wrap { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 200ms ease, top 200ms ease;
}
.hamburger span::before { top: -5px; }
.hamburger span::after  { top:  5px; }
.nav.open .hamburger span { background: transparent; }
.nav.open .hamburger span::before { top: 0; transform: rotate(45deg); }
.nav.open .hamburger span::after  { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  flex-direction: column;
  gap: 0;
  background: rgba(6, 11, 26, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.nav.open .mobile-menu { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn {
  margin-top: 16px;
  align-self: stretch;
  justify-content: center;
}

/* ============ Hero (shared) ============ */
.hero {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(60px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 78% -10%, rgba(79, 124, 255, 0.18), transparent 60%),
    radial-gradient(700px 460px at -8% 120%, rgba(167, 139, 250, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 28px;
  background: rgba(13, 18, 38, 0.6);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero h1 i {
  font-style: normal;
  color: var(--accent-2);
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Compact hero used on inner pages */
.hero-sm { padding-top: calc(var(--nav-h) + 80px); padding-bottom: 40px; }
.hero-sm h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 22ch; }

/* ============ Stats bar ============ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 32px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* ============ Generic cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.card:hover { border-color: var(--border-hover); }

/* ============ Problem ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.problem-card .num {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.problem-card p { font-size: 17px; color: var(--text); }
.problem-foot {
  margin-top: 36px;
  color: var(--muted);
  max-width: 56ch;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

/* ============ Solution ============ */
.solution-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.solution-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.solution-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text);
  font-size: 16px;
}
.solution-points li .tick {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.pull {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 32px;
}
.pull .label {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pull p {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 16px;
}
.pull p:last-child { margin-bottom: 0; }

/* ============ Process steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.step .step-num {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* Vertical timeline (process page) */
.timeline {
  margin-top: 56px;
  position: relative;
  display: grid;
  gap: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  opacity: 0.45;
}
.tline-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: stretch;
  position: relative;
}
.tline-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.tline-row:nth-child(even) .tline-marker { color: var(--accent-2); }
.tline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
  transition: border-color 200ms ease;
}
.tline-content:hover { border-color: var(--border-hover); }
.tline-eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.tline-row:nth-child(even) .tline-eyebrow { color: var(--accent-2); }
.tline-content h3 { font-size: 22px; margin-bottom: 10px; }
.tline-content p { color: var(--muted); font-size: 15px; max-width: 60ch; }
.tline-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.tline-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.tline-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ============ Work ============ */
.work-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.work-head .lead { max-width: 50ch; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 200ms ease;
}
.work-card:hover { border-color: var(--border-hover); }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(120% 80% at 50% 0%, #1a2245 0%, #0e1429 60%, #060B1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--bg);
}
.video-frame .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.video-frame .placeholder svg {
  width: 38px; height: 38px;
  stroke: var(--accent);
  stroke-width: 1.4;
  fill: none;
}
.work-meta {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.work-tag { font-size: 13px; font-weight: 500; color: var(--text); }
.work-client {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ Fit Check ============ */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
}
.fit-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}
.fit-col h3 { font-size: 19px; margin-bottom: 22px; }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fit-col li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: 15px;
}
.fit-col .mark {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
}
.fit-yes .mark { background: rgba(52, 211, 153, 0.14); color: var(--accent-3); }
.fit-no { background: var(--surface-2); }
.fit-no .mark { background: #232a4d; color: var(--muted); }
.fit-no li { color: var(--muted); }

/* ============ Why ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.why-card { padding: 32px; }
.why-card .icon {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-card .icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
}
.why-card:nth-child(2) .icon { background: rgba(167, 139, 250, 0.14); }
.why-card:nth-child(2) .icon svg { stroke: var(--accent-2); }
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 15px; }

/* ============ FAQ ============ */
.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .icon-toggle {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: transform 200ms ease, border-color 200ms ease;
}
.faq-item[open] .icon-toggle {
  transform: rotate(45deg);
  border-color: var(--accent);
}
.faq-item .answer {
  color: var(--muted);
  padding: 0 0 24px;
  max-width: 70ch;
  font-size: 15px;
}

/* ============ Final CTA ============ */
.final {
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(79, 124, 255, 0.14), transparent 60%),
    radial-gradient(500px 300px at 50% 100%, rgba(167, 139, 250, 0.08), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.final h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  max-width: 22ch;
  margin: 0 auto 22px;
}
.final h2 em { font-style: normal; color: var(--accent); }
.final p.lead { margin: 0 auto; }
.final .btn { margin-top: 36px; }
.final .trust {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Manifesto / About ============ */
.manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.manifesto .card { padding: 28px; }
.manifesto .card .num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.manifesto .card:nth-child(2) .num { color: var(--accent-2); }
.manifesto .card:nth-child(3) .num { color: var(--accent-3); }
.manifesto .card h3 { font-size: 18px; margin-bottom: 8px; }
.manifesto .card p { color: var(--muted); font-size: 14.5px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}
.split-aside .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}
.split-aside p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.split-aside p:last-child { margin-bottom: 0; }

/* ============ Page nav links (cross-page CTAs) ============ */
.cross-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-top: 28px;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.cross-link:hover { border-color: var(--accent); }
.cross-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============ Footer ============ */
footer { padding: 52px 0 36px; background: var(--bg); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 200ms;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ============ Reveal motion ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .solution-wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-wrap .btn { display: none; }
  .hamburger { display: inline-flex; }

  .nav.open {
    background: rgba(6, 11, 26, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
  }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .stat:nth-child(3) { border-right: 1px solid var(--border); }

  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 22px; }
  .tline-row { grid-template-columns: 44px 1fr; gap: 16px; }
  .tline-marker { width: 44px; height: 44px; font-size: 13px; }
  .tline-content { padding: 22px 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .step, .why-card, .fit-col, .pull, .problem-card, .card { padding: 22px; }
}
