/* ============ Tokens ============ */
:root {
  --bg: #FFFFFF;
  --bg2: #F5F6F8;
  --line: #E4E7EC;
  --ink: #0A0E15;
  --mute: #5B6472;
  --dim: #8C94A1;
  --soft: #343B47;
  --leak: #B86A0C;
  --ok: #1F8A4C;
  --track: #ECEEF1;
  --num: #DDE1E7;
  --radius: 18px;
}
.dark {
  --bg: #07090D;
  --bg2: #0E1117;
  --line: #1F2530;
  --ink: #F4F5F7;
  --mute: #8A93A3;
  --dim: #5A6272;
  --soft: #C3C9D3;
  --leak: #E8A94A;
  --ok: #6FCF97;
  --track: #161B24;
  --num: #262D39;
  background: var(--bg);
  color: var(--ink);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #3B82F6; outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; border-top: 1px solid var(--line); }
section.dark { border-top: none; }

.label { font-size: 14px; font-weight: 500; color: var(--mute); margin-bottom: 22px; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 650; max-width: 900px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--mute); max-width: 620px; margin-top: 22px; }
.note { font-size: 13px; color: var(--dim); margin-top: 14px; }

.btn {
  display: inline-block; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 15px; padding: 16px 26px; border-radius: 999px;
  white-space: nowrap; transition: opacity .2s;
}
.btn:hover { opacity: .88; }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.text-link { font-weight: 600; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Placeholder boxes — replace on launch */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--dim); border-radius: 14px; background: var(--bg2);
  color: var(--dim); font-size: 13px; padding: 12px;
}

/* ============ Nav ============ */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; gap: 24px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo span { color: var(--mute); font-weight: 500; }
.nav-links { display: flex; gap: 34px; font-size: 15px; color: var(--mute); }
.nav-links a:hover { color: var(--ink); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 24px; border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 0; font-size: 17px; }
.mobile-menu .btn { margin-top: 12px; text-align: center; }

/* ============ Hero ============ */
.hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: end; padding: 70px 0 110px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: .94; letter-spacing: -0.05em; font-weight: 700; }
.hero h1 span { color: var(--mute); }
.hero-sub { font-size: 21px; line-height: 1.5; color: var(--soft); margin-top: 34px; max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; font-size: 14px; color: var(--mute); }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 7px; }
.proof-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; font-weight: 500; color: var(--soft); }
.proof-link:hover { color: var(--ink); }
.mini-play { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.mini-play::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid var(--bg); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hero-media .video-facade { height: 520px; }

/* ============ Video facade ============ */
.video-facade {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(160deg, #141922, #0B0E13) center / cover no-repeat;
  border: 1px solid #1F2530; color: #F4F5F7;
}
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); pointer-events: none; }
.video-facade .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 84px; height: 84px; border-radius: 50%; background: #F4F5F7; transition: transform .2s;
}
.video-facade .play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-facade .play::after {
  content: ""; position: absolute; left: 34px; top: 28px;
  border-left: 22px solid #07090D; border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video-cap { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; display: flex; justify-content: space-between; font-size: 14px; color: #C3C9D3; }
.video-cap strong { color: #F4F5F7; font-weight: 600; }
.video-facade iframe, .video-facade video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }

/* ============ Logos ============ */
.logos { padding: 46px 0; border-top: 1px solid var(--line); }
.logos-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; }
.logos-row p { font-size: 14px; color: var(--dim); }
.logos-row span { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--dim); }

/* ============ Leak chart ============ */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 60px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.stage { display: flex; flex-direction: column; padding: 30px 26px 28px; border-right: 1px solid var(--line); }
.stage:last-child { border-right: none; }
.stage .n { font-size: 13px; color: var(--dim); }
.stage .t { font-size: 18px; font-weight: 600; margin-top: 6px; }
.bar { height: 200px; margin-top: 26px; display: flex; align-items: flex-end; background: var(--track); border-radius: 6px; }
.bar i { display: block; width: 100%; height: var(--p); background: var(--ink); border-radius: 6px; transition: height 1.1s cubic-bezier(.6,0,.2,1); }
.stage .v { font-size: 44px; font-weight: 650; letter-spacing: -0.04em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.stage .lk { font-size: 14px; font-weight: 500; color: var(--leak); margin-top: 4px; min-height: 21px; transition: opacity .5s; }
/* Pre-animation state (set by JS) */
.pipe.pre .bar i { height: 100%; }
.pipe.pre .lk { opacity: 0; }

.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 80px; }
.pain { border-top: 2px solid var(--leak); padding-top: 22px; }
.pain h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
.pain p { font-size: 16px; line-height: 1.55; color: var(--mute); margin-top: 12px; }

/* ============ Testimonials ============ */
.featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.featured-video { aspect-ratio: 16 / 9; }
.featured-quote blockquote { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.who { display: flex; align-items: center; gap: 14px; margin: 28px 0 26px; }
.av { width: 48px; height: 48px; border-radius: 50%; background: var(--num) center / cover; flex: none; }
.who strong { display: block; font-size: 15px; }
.who span { font-size: 14px; color: var(--mute); }

.slider { margin-top: 80px; }
.slider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.slider-head p { font-size: 14px; font-weight: 500; color: var(--mute); }
.slider-nav { display: flex; gap: 8px; }
.snav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.snav:hover:not(:disabled) { background: var(--bg2); }
.snav:disabled { opacity: .35; cursor: default; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.tcard { scroll-snap-align: start; background: var(--bg2); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 190px; }
.tcard blockquote { font-size: 16px; line-height: 1.55; }
.tcard strong { display: block; font-size: 14px; }
.tcard span { font-size: 13px; color: var(--mute); }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--line); }
.steps li { padding: 36px 40px 0 0; }
.steps .n { font-size: 88px; font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: var(--num); }
.steps h3 { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-top: 22px; }
.steps p { font-size: 17px; line-height: 1.55; color: var(--mute); margin-top: 12px; max-width: 320px; }
.commit { margin-top: 56px; font-size: 17px; color: var(--soft); }
.commit strong { color: var(--ink); }

/* ============ Build rows ============ */
.rows { margin-top: 64px; }
.row { display: grid; grid-template-columns: 90px 260px 1fr 200px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .n { font-size: 14px; color: var(--dim); }
.row h3 { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; }
.row p { font-size: 17px; line-height: 1.5; color: var(--mute); max-width: 560px; }
.tag { justify-self: end; font-size: 13px; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 6px 12px; }

/* ============ Demo ============ */
.demo { display: grid; grid-template-columns: 1fr 440px; gap: 80px; align-items: center; }
.timer { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; font-size: 15px; color: var(--mute); }
.timer strong { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.phone { background: #0E1117; color: #F4F5F7; border: 1px solid #1F2530; border-radius: 36px; padding: 22px 18px; box-shadow: 0 30px 80px rgba(10,14,21,.18); min-height: 470px; }
.phone-top { display: flex; justify-content: space-between; font-size: 13px; color: #8A93A3; padding: 0 6px 16px; border-bottom: 1px solid #1F2530; }
.phone-top strong { color: #F4F5F7; margin-right: 6px; }
.msgs { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.m { max-width: 82%; font-size: 14px; line-height: 1.45; padding: 10px 14px; border-radius: 16px; transition: opacity .35s, transform .35s; }
.m.in { background: #1C222C; align-self: flex-start; border-bottom-left-radius: 4px; }
.m.out { background: #F4F5F7; color: #07090D; align-self: flex-end; border-bottom-right-radius: 4px; }
.m.sys { align-self: center; font-size: 12px; color: #8A93A3; padding: 2px; }
.m.ok { align-self: center; font-size: 13px; color: #6FCF97; border: 1px solid #2A4A38; }
.phone.pre .m { opacity: 0; transform: translateY(8px); }
.phone .m.show { opacity: 1; transform: none; }

/* ============ Differentiators ============ */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.diff h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; max-width: 420px; }
.diff p { font-size: 18px; line-height: 1.55; color: var(--mute); margin-top: 18px; max-width: 480px; }

/* ============ Work ============ */
.work { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 64px; }
.case { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.case-img { height: 150px; border: none; border-radius: 0; border-bottom: 1px dashed var(--dim); }
.case-lg .case-img { height: 420px; }
.case-body { padding: 28px 30px; }
.sec { font-size: 13px; color: var(--dim); }
.case h3 { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-top: 8px; }
.big { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; margin-top: 18px; }
.big small { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--mute); margin-top: 4px; }
.side { display: grid; gap: 24px; }

/* ============ Founder ============ */
.founder { display: grid; grid-template-columns: 480px 1fr; gap: 80px; align-items: center; }
.founder-img { height: 560px; }
.founder-copy { font-size: 19px; line-height: 1.6; color: var(--soft); margin-top: 24px; max-width: 560px; }
.pull { font-size: 30px; line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; margin-top: 40px; padding-left: 24px; border-left: 2px solid var(--ink); max-width: 560px; }
.sig { font-size: 15px; color: var(--mute); margin-top: 18px; padding-left: 26px; }

/* ============ FAQ ============ */
.faq { display: grid; grid-template-columns: 420px 1fr; gap: 80px; }
.faq h2 { font-size: clamp(34px, 3.6vw, 48px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--mute); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { font-size: 17px; line-height: 1.6; color: var(--mute); max-width: 640px; padding-bottom: 26px; margin-top: -8px; }

/* ============ Final CTA ============ */
.final { display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: center; }
.final h2 { font-size: clamp(36px, 4.2vw, 60px); }
.final .trust { margin-top: 30px; }
.cal { min-height: 520px; }

/* ============ Footer ============ */
.footer { display: flex; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 70px; font-size: 14px; color: var(--mute); }
.footer p { margin-top: 14px; line-height: 1.6; }
.footer .cols { display: flex; gap: 70px; }
.footer .cols div { display: flex; flex-direction: column; gap: 8px; }
.footer strong { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.footer a:hover { color: var(--ink); }

/* ============ Tablet ============ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero, .featured, .demo, .founder, .faq, .final { grid-template-columns: 1fr; }
  .hero { gap: 40px; }
  .hero-media .video-facade { height: auto; aspect-ratio: 16 / 9; }
  .pains { grid-template-columns: 1fr 1fr; }
  .track { grid-auto-columns: calc((100% - 24px) / 2); }
  .row { grid-template-columns: 60px 220px 1fr; }
  .row .tag { grid-column: 3; justify-self: start; margin-top: 10px; }
  .founder-img { height: 420px; }
  .demo .phone { max-width: 440px; }
}

/* ============ Mobile ============ */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .nav { padding: 20px 0; }
  .nav-cta { display: none; }
  .burger { display: flex; }

  .hero { padding: 28px 0 60px; gap: 36px; }
  .hero-sub { font-size: 17px; margin-top: 22px; }
  .ctas { margin-top: 28px; }
  .ctas .btn { width: 100%; text-align: center; }
  .trust { flex-direction: column; margin-top: 20px; }
  .video-facade .play { width: 64px; height: 64px; }
  .video-facade .play::after { left: 26px; top: 21px; border-left-width: 17px; border-top-width: 11px; border-bottom-width: 11px; }

  .logos { padding: 28px 0; }
  .logos-row { flex-wrap: wrap; justify-content: flex-start; }
  .logos-row p { width: 100%; }
  .logos-row span { font-size: 15px; }

  .lede { font-size: 16px; }
  .pipe { grid-template-columns: 1fr; margin-top: 36px; }
  .stage { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; padding: 18px; border-right: none; border-bottom: 1px solid var(--line); }
  .stage:last-child { border-bottom: none; }
  .stage .n { display: none; }
  .stage .t { font-size: 15px; margin: 0; }
  .stage .v { grid-column: 2; grid-row: 1 / 4; font-size: 26px; margin: 0; }
  .bar { height: 8px; margin-top: 10px; align-items: stretch; }
  .bar i { height: 100%; width: var(--p); transition: width 1.1s cubic-bezier(.6,0,.2,1); }
  .pipe.pre .bar i { width: 100%; }
  .stage .lk { font-size: 13px; margin-top: 6px; min-height: 0; }
  .pains { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .pain h3 { font-size: 19px; }
  .pain p { font-size: 15px; }

  .featured { margin-top: 36px; gap: 28px; }
  .who { margin: 20px 0; }
  .slider { margin-top: 52px; }
  .track { grid-auto-columns: 86%; gap: 14px; }
  .tcard { padding: 22px; min-height: 170px; }

  .steps { grid-template-columns: 1fr; margin-top: 36px; }
  .steps li { padding: 26px 0 0; }
  .steps .n { font-size: 48px; }
  .steps h3 { font-size: 21px; margin-top: 10px; }
  .steps p { font-size: 15px; }
  .commit { margin-top: 32px; font-size: 15px; }

  .rows { margin-top: 36px; }
  .row { grid-template-columns: 34px 1fr; row-gap: 6px; padding: 20px 0; }
  .row h3 { font-size: 21px; }
  .row p, .row .tag { grid-column: 2; font-size: 15px; }
  .row .tag { font-size: 13px; margin-top: 6px; }

  .demo { gap: 32px; }
  .timer strong { font-size: 32px; }
  .phone { min-height: 440px; }

  .diff { grid-template-columns: 1fr; gap: 40px; }
  .diff p { font-size: 16px; }

  .work { grid-template-columns: 1fr; margin-top: 36px; }
  .case-lg .case-img { height: 220px; }
  .case h3 { font-size: 20px; }
  .big { font-size: 36px; }

  .founder { gap: 32px; }
  .founder-img { height: 340px; }
  .founder-copy { font-size: 16px; }
  .pull { font-size: 22px; }

  .faq { gap: 28px; }
  .faq-list summary { font-size: 17px; padding: 20px 0; }
  .faq-list details p { font-size: 15px; padding-bottom: 20px; }

  .final { gap: 36px; }
  .cal { min-height: 440px; }

  .footer { flex-direction: column; padding-top: 40px; padding-bottom: 50px; }
  .footer .cols { flex-wrap: wrap; gap: 28px 50px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
