/* ============ 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); }
.marquee { flex: 1; min-width: 0; }
.logo-set { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo-set span { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--dim); white-space: nowrap; }
.logo-set img { height: 28px; width: auto; filter: grayscale(1); opacity: .6; }
.logo-clone { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 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; }

/* ============ Testimonials ============ */
.featured { margin-top: 56px; max-width: 960px; }
.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); }

/* ============ 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; }

/* ============ 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: flex; flex-direction:column; align-items:center; gap: 80px; align-items: center; }
.final h2 { font-size: clamp(30px, 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); }

/* ============ Scroll reveal ============ */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* Subtle grid behind the hero */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
}

/* Shared illustrated card */
.pcard, .dcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ill { position: relative; height: 190px; background: var(--bg2); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.txt { padding: 24px; }
.txt h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
.txt p { font-size: 15px; line-height: 1.55; color: var(--mute); margin-top: 10px; }

/* ============ Pain cards ============ */
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 80px; }

/* Pain 1 — chart */
.chart { width: 86%; height: auto; overflow: visible; }
.chart .gridl line { stroke: var(--line); stroke-width: 1; }
.chart .draw { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.5,0,.2,1) .3s; }
.chart .spend { stroke: var(--ink); }
.chart .rev { stroke: var(--leak); transition-delay: .6s; }
.rv.in .chart .draw { stroke-dashoffset: 0; }
.chart .tags { opacity: 0; transition: opacity .5s 1.7s; }
.rv.in .chart .tags { opacity: 1; }
.tag-ink { fill: var(--ink); } .tag-ink-t { fill: var(--bg); font-size: 10px; font-weight: 700; }
.tag-leak { fill: #FBEBD3; } .tag-leak-t { fill: var(--leak); font-size: 10px; font-weight: 700; }
.chart .legend text { font-size: 9.5px; fill: var(--mute); font-weight: 500; }
.c-ink { fill: var(--ink); } .c-leak { fill: var(--leak); }

/* Mini UI pieces */
.mini-ui { width: 84%; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.notif { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(10,14,21,.06); }
.notif b { display: block; font-size: 12.5px; }
.notif small { color: var(--mute); font-size: 11.5px; }
.ico { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; flex: none; }
.ico svg { width: 16px; height: 16px; fill: none; stroke: var(--bg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wait { display: flex; align-items: center; gap: 8px; color: var(--mute); padding: 0 4px; }
.wait b { color: var(--leak); font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--leak); box-shadow: 0 0 0 0 rgba(184,106,12,.5); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(184,106,12,0); } 100% { box-shadow: 0 0 0 0 rgba(184,106,12,0); } }
.lost { align-self: flex-start; color: #B42318; background: #FDECEA; border-radius: 999px; padding: 5px 10px; font-weight: 600; font-size: 11.5px; opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .4s 2.3s, transform .4s 2.3s; }
.rv.in .lost { opacity: 1; transform: none; }

.chat .bub { align-self: flex-end; max-width: 88%; background: var(--ink); color: var(--bg); padding: 9px 12px; border-radius: 14px 14px 4px 14px; line-height: 1.4; }
.chat .seen { align-self: flex-end; font-size: 11px; color: var(--dim); }
.typing { align-self: flex-start; display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; border-radius: 14px 14px 14px 4px; animation: typing-life 4s infinite; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }
@keyframes typing-life { 0%, 10% { opacity: 0; } 20%, 55% { opacity: 1; } 65%, 100% { opacity: 0; } }
.noreply { align-self: flex-start; font-size: 11px; color: var(--leak); font-weight: 600; padding-left: 4px; }

.report { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; gap: 0; box-shadow: 0 6px 18px rgba(10,14,21,.06); }
.rh { font-size: 11px; color: var(--dim); font-weight: 600; margin-bottom: 4px; }
.rr { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--line); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; }
.rr b { font-weight: 650; } .rr em { font-style: normal; }
.good { color: var(--ok); }
.rr.miss span { color: var(--dim); } .rr.miss b { color: var(--leak); font-size: 11.5px; }
.rv.in .rr { opacity: 1; transform: none; }
.rv.in .rr:nth-child(2) { transition-delay: .4s; } .rv.in .rr:nth-child(3) { transition-delay: .6s; }
.rv.in .rr:nth-child(4) { transition-delay: 1.1s; } .rv.in .rr:nth-child(5) { transition-delay: 1.3s; }

/* ============ How it works — stepper ============ */
.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.how-intro { position: sticky; top: 40px; }
.stepper-card { margin-top: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; background: var(--bg); }
.stepper { position: relative; }
.steps-list { display: grid; gap: 44px; }
.stepper-track { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.stepper-fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--fill, 0%); background: var(--ink); transition: height .15s linear; }
.stepper li { position: relative; display: grid; grid-template-columns: 44px 1fr 48px; gap: 24px; align-items: start; }
.stepper .dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg); border: 2px solid var(--line); color: var(--dim); transition: background .35s, color .35s, border-color .35s; }
.stepper li.active .dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.st-body h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-top: 8px; }
.st-body p { font-size: 16px; line-height: 1.55; color: var(--mute); margin-top: 8px; max-width: 520px; }
.st-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--bg2); display: grid; place-items: center; opacity: .4; transition: opacity .35s; }
.stepper li.active .st-ico { opacity: 1; }
.st-ico svg, .ricon svg, .tile svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.commit { margin-top: 40px; font-size: 17px; color: var(--soft); }
.commit strong { color: var(--ink); }

/* ============ What we build — rows with icons ============ */
.rows { margin-top: 64px; }
.row { display: grid; grid-template-columns: 72px 50px 250px 1fr 180px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); transition: background .25s; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .n { font-size: 14px; color: var(--dim); }
.row h3 { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.row p { font-size: 17px; line-height: 1.5; color: var(--mute); max-width: 560px; }
.ricon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, transform .3s; }
.row:hover .ricon { background: var(--ink); transform: rotate(-4deg); }
.row:hover .ricon svg { stroke: var(--bg); }
.ricon svg path, .ricon svg rect, .ricon svg circle { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1s ease .25s; }
.row.in .ricon svg path, .row.in .ricon svg rect, .row.in .ricon svg circle { stroke-dashoffset: 0; }
.tag { justify-self: end; font-size: 13px; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 6px 12px; }

/* ============ Differentiators — illustrated ============ */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dcard .ill { height: 280px; }
.dcard .txt { padding: 30px 32px; }
.dcard .txt h3 { font-size: clamp(24px, 2.4vw, 32px); }
.dcard .txt p { font-size: 17px; max-width: 480px; }

.hub { height: 86%; width: auto; max-width: 94%; overflow: visible; }
.hub .links path { stroke: var(--dim); stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; opacity: 0; transition: opacity .6s .4s; }
.rv.in .hub .links path { opacity: .8; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.hub .nodes g { opacity: 0; transition: opacity .5s; }
.rv.in .hub .nodes g { opacity: 1; }
.rv.in .hub .nodes g:nth-child(1) { transition-delay: .5s; } .rv.in .hub .nodes g:nth-child(2) { transition-delay: .6s; }
.rv.in .hub .nodes g:nth-child(3) { transition-delay: .7s; } .rv.in .hub .nodes g:nth-child(4) { transition-delay: .8s; }
.rv.in .hub .nodes g:nth-child(5) { transition-delay: .9s; } .rv.in .hub .nodes g:nth-child(6) { transition-delay: 1s; }
.hub .nodes rect { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.hub .nodes text { font-size: 12px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.hub-core { fill: var(--ink); }
.hub-t { fill: var(--bg); font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.hub-ring { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .25; transform-origin: 180px 110px; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.75); opacity: .4; } 100% { transform: scale(1.35); opacity: 0; } }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 84%; }
.tile { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; opacity: 0; transform: scale(.9); transition: opacity .4s, transform .4s cubic-bezier(.2,.9,.3,1.3); }
.tile i { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; font-style: normal; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s cubic-bezier(.2,.9,.3,1.4); }
.rv.in .tile, .rv.in .tile i { opacity: 1; transform: none; }
.rv.in .tile:nth-child(1) { transition-delay: .3s; } .rv.in .tile:nth-child(2) { transition-delay: .4s; } .rv.in .tile:nth-child(3) { transition-delay: .5s; }
.rv.in .tile:nth-child(4) { transition-delay: .6s; } .rv.in .tile:nth-child(5) { transition-delay: .7s; } .rv.in .tile:nth-child(6) { transition-delay: .8s; }
.rv.in .tile:nth-child(1) i { transition-delay: 1.1s; } .rv.in .tile:nth-child(2) i { transition-delay: 1.25s; } .rv.in .tile:nth-child(3) i { transition-delay: 1.4s; }
.rv.in .tile:nth-child(4) i { transition-delay: 1.55s; } .rv.in .tile:nth-child(5) i { transition-delay: 1.7s; } .rv.in .tile:nth-child(6) i { transition-delay: 1.85s; }

/* Case cards lift on hover */
.case { transition: transform .3s, box-shadow .3s; }
.case:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,14,21,.08); }

/* ============ Tablet ============ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero, .demo, .founder, .faq { grid-template-columns: 1fr; }
  .hero { gap: 40px; }
  .hero-media .video-facade { height: auto; aspect-ratio: 16 / 9; }
  .track { grid-auto-columns: calc((100% - 24px) / 2); }
  .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-direction: column; align-items: flex-start; gap: 16px; padding: 0; }
  .logos-row p { padding: 0 20px; }
  .marquee { width: 100%; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
  .logo-set, .logo-clone { display: flex; justify-content: flex-start; gap: 40px; padding-right: 40px; }
  .logo-set span { font-size: 16px; }
  .logo-set img { height: 24px; }

  .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; }

  .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; }



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


  .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; }
}

/* ============ Responsive: visuals ============ */
@media (max-width: 1080px) {
  .how { grid-template-columns: 1fr; gap: 40px; }
  .how-intro { position: static; }
  .pcards { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 64px 44px 200px 1fr; }
  .row .tag { grid-column: 4; justify-self: start; margin-top: 10px; }
  .diff { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pcards { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
  .ill { height: 180px; }
  .txt { padding: 20px; }
  .txt h3 { font-size: 19px; }
  .stepper-card { padding: 28px 20px; }
  .steps-list { gap: 32px; }
  .stepper li { grid-template-columns: 40px 1fr; gap: 16px; }
  .stepper .dot { width: 40px; height: 40px; }
  .stepper-track { left: 19px; }
  .st-ico { display: none; }
  .st-body h3 { font-size: 20px; margin-top: 6px; }
  .st-body p { font-size: 15px; }
  .commit { margin-top: 28px; font-size: 15px; }
  .rows { margin-top: 36px; }
  .row { grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 4px; padding: 18px 0; align-items: start; }
  .ricon { grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 12px; }
  .row .n { display: none; }
  .row h3 { font-size: 20px; }
  .row p, .row .tag { grid-column: 2; font-size: 15px; }
  .row .tag { font-size: 13px; margin-top: 6px; }
  .dcard .ill { height: 230px; }
  .hub { height: 94%; max-width: 100%; }
  .dcard .txt { padding: 22px 20px; }
  .dcard .txt p { font-size: 15px; }
  .tiles { gap: 10px; width: 90%; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .logo-clone { display: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .logo-set { flex-wrap: wrap; padding: 0 20px; gap: 12px 24px; }
}
/* ============ Headline highlight ============ */
.hl { color: var(--leak); }
.hl-dim { color: var(--dim); }

/* ============ Work / case studies ============ */
.cs-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 64px; }
.cs-side { display: grid; gap: 24px; }
.cs-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: transform .35s, box-shadow .35s; }
.cs-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10,14,21,.09); }
.cs-media { position: relative; overflow: hidden; background: var(--bg2); aspect-ratio: 16 / 7; }
.cs-lg .cs-media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.cs-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cs-card:hover .cs-media img { transform: scale(1.04); }
.cs-chip { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,.94); color: #0A0E15; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.15); backdrop-filter: blur(6px); }
.cs-body { padding: 26px 28px 28px; display: flex; flex-direction: column; }
.cs-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-sector { font-size: 13px; font-weight: 500; color: var(--dim); }
.soon { font-size: 11.5px; font-weight: 600; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.cs-card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; margin-top: 12px; }
.cs-lg h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; max-width: 560px; }
.cs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 28px; }
.cs-stats strong { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.cs-stats span { display: block; font-size: 14px; color: var(--mute); margin-top: 8px; line-height: 1.4; }
.cs-stat { margin-top: 14px; font-size: 14px; color: var(--mute); }
.cs-stat strong { color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-right: 4px; }
 
@media (max-width: 1080px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-lg .cs-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .cs-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cs-grid { margin-top: 36px; gap: 16px; }
  .cs-side { grid-template-columns: 1fr; gap: 16px; }
  .cs-body { padding: 20px; }
  .cs-lg h3 { font-size: 22px; }
  .cs-card h3 { font-size: 19px; }
  .cs-stats { gap: 16px; padding-top: 20px; margin-top: 20px; }
  .cs-stats strong { font-size: 30px; }
  .cs-chip { left: 12px; bottom: 12px; font-size: 12px; padding: 6px 11px; }
}