/* ==========================================================================
   Meerkat marketing site — global styles
   Dark, corporate, startup-ish. No build step: plain CSS custom properties.
   ========================================================================== */

:root {
  --brand: #a855f7;          /* primary (Meerkat purple) */
  --brand-2: #6366f1;        /* indigo */
  --brand-3: #22d3ee;        /* cyan glow */
  --brand-4: #ec4899;        /* pink highlight */
  --ok: #22c55e;

  --bg: #07060c;
  --bg-2: #0c0a14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f3fa;
  --text-2: #c9c4d9;
  --muted: #8f8aa3;

  --grad: linear-gradient(120deg, #c084fc 0%, #a855f7 30%, #6366f1 65%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(168, 85, 247, .18), rgba(99, 102, 241, .12) 50%, rgba(34, 211, 238, .10));

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* clip, not hidden: keeps position:sticky working */
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: rgba(168, 85, 247, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- i18n: both languages live in the markup, CSS shows one ------- */
html:not([data-lang="es"]) [lang="es"],
html[data-lang="es"] [lang="en"] { display: none !important; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.center { text-align: center; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: #d8b4fe;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: currentColor; opacity: .7;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em;
  font-weight: 650; margin: 16px 0 18px;
}
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 640px; margin: 0; }
.center .lead { margin: 0 auto; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Background texture ---------- */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .55;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .3s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #b872fb, #9333ea);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 8px 30px -8px rgba(168,85,247,.8), 0 0 0 1px #7e22ce;
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 10px 44px -6px rgba(168,85,247,1), 0 0 0 1px #9333ea; transform: translateY(-1px); }
.btn--ghost { color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 6, 12, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, #c084fc, #9333ea); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 6px 20px -6px rgba(168,85,247,.9);
}
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a { padding: 8px 12px; font-size: 14.5px; color: var(--text-2); border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-family: var(--mono); font-size: 12px;
}
.lang button { padding: 5px 10px; border-radius: 999px; color: var(--muted); transition: all .2s; }
.lang button[aria-pressed="true"] { background: rgba(168,85,247,.22); color: #fff; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); place-items: center; }
.nav__burger svg { width: 20px; height: 20px; }
.nav__mobile {
  display: none; position: fixed; inset: 68px 0 auto 0; padding: 12px var(--gutter) 24px;
  background: rgba(7,6,12,.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.nav__mobile a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
.nav.is-open .nav__mobile { display: block; }
@media (max-width: 880px) {
  .nav__links, .nav__right .btn--ghost { display: none; }
  .nav__burger { display: grid; }
}
@media (max-width: 420px) {
  .nav__right .btn--primary { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 40px; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0 0 auto 0; width: 100%; height: min(100vh, 980px); z-index: -1; opacity: 0; transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.hero__canvas.is-ready { opacity: 1; }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero__content { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  font-size: 13.5px; color: var(--text-2);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
}
.pill:hover { border-color: rgba(168,85,247,.6); background: rgba(168,85,247,.08); }
.pill__tag { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; font-size: 12px; }
.pill svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(42px, 7.6vw, 92px); line-height: .98; letter-spacing: -0.05em; font-weight: 700;
  margin: 26px 0 22px;
}
.hero h1 .line { display: block; }
.hero .lead { margin: 0 auto; font-size: clamp(17px, 1.7vw, 20px); max-width: 680px; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero__trust { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 28px; font-size: 13.5px; color: var(--muted); }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 15px; height: 15px; color: #c084fc; }

/* Stage holding the interactive app replica */
.stage { position: relative; margin: 72px auto 0; max-width: 1240px; perspective: 2200px; }
.stage__tilt { transform-origin: 50% 0; transition: transform .1s linear; will-change: transform; }
.stage__glow {
  position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px; filter: blur(70px);
  background: radial-gradient(60% 60% at 30% 40%, rgba(168,85,247,.55), transparent 70%),
              radial-gradient(50% 60% at 75% 60%, rgba(99,102,241,.45), transparent 70%),
              radial-gradient(40% 40% at 55% 100%, rgba(34,211,238,.25), transparent 70%);
}
.browser {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0b0a12; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 50px 120px -30px rgba(0,0,0,.9), 0 30px 80px -40px rgba(168,85,247,.5);
}
.browser::before { /* top highlight */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.browser__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #121019; border-bottom: 1px solid rgba(255,255,255,.07); }
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2735; }
.browser__dots i:nth-child(1) { background: #ff5f57; } .browser__dots i:nth-child(2) { background: #febc2e; } .browser__dots i:nth-child(3) { background: #28c840; }
.browser__url {
  flex: 1; max-width: 420px; margin: 0 auto; height: 26px; border-radius: 8px; background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); font-family: var(--mono);
}
.browser__url svg { width: 11px; height: 11px; }
.browser__viewport { position: relative; overflow: hidden; background: #0f172a; }
.browser__viewport.is-pannable { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.browser__viewport.is-pannable::-webkit-scrollbar { display: none; }
.mk-sizer { height: 1px; }

.stage__hint {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 26px; font-size: 13.5px; color: var(--muted);
}
.stage__hint .kbd { font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text-2); }
.accent-picker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.accent-picker__swatches { display: flex; gap: 5px; }
.accent-picker button { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px transparent; transition: transform .2s, box-shadow .2s; }
.accent-picker button:hover { transform: scale(1.15); }
.accent-picker button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line);
  -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; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--text-2); font-size: 15px; white-space: nowrap;
}
.chip svg { width: 17px; height: 17px; color: #c084fc; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Consolidation / orbit ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.replace-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.replace-list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.replace-list .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(168,85,247,.12); color: #d8b4fe; flex-shrink: 0; }
.replace-list .ico svg { width: 18px; height: 18px; }
.replace-list b { display: block; font-weight: 600; font-size: 15px; }
.replace-list small { color: var(--muted); font-size: 13.5px; }
.replace-list .strike { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(236,72,153,.7); white-space: nowrap; }
@media (max-width: 520px) { .replace-list .strike { display: none; } }

.orbit { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); inset: var(--i); }
.orbit__core {
  position: absolute; inset: 36%; border-radius: 30%; display: grid; place-items: center;
  background: linear-gradient(145deg, #c084fc, #7e22ce); font-weight: 800; font-size: clamp(38px, 6vw, 64px); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 0 80px 10px rgba(168,85,247,.45), 0 0 160px 40px rgba(99,102,241,.25);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 0 100px 20px rgba(168,85,247,.6), 0 0 200px 60px rgba(99,102,241,.3); } }
.orbit__spin { position: absolute; inset: var(--i); animation: spin var(--d) linear infinite; }
.orbit__spin.rev { animation-direction: reverse; }
.orbit__node {
  position: absolute; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 15px; display: grid; place-items: center;
  background: #15121f; border: 1px solid var(--line-2); color: #e9d5ff;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
  left: calc(50% + 50% * cos(var(--a))); top: calc(50% + 50% * sin(var(--a)));
  animation: spin var(--d) linear infinite reverse;
}
.orbit__spin.rev .orbit__node { animation-direction: normal; }
.orbit__node svg { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  padding: 28px; min-height: 240px;
  transition: border-color .3s, transform .4s var(--ease);
}
.card::before { /* spotlight */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(168,85,247,.16), transparent 45%);
}
.card::after { /* border spotlight */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(192,132,252,.9), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin: 18px 0 8px; font-weight: 620; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(168,85,247,.13); color: #d8b4fe; border: 1px solid rgba(168,85,247,.25); }
.card__icon svg { width: 20px; height: 20px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card__tags span { font-size: 12px; font-family: var(--mono); padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-2); }
.card__visual { position: relative; margin: 22px -28px -28px; height: 200px; overflow: hidden; border-top: 1px solid var(--line); }
/* Screens are 1440px captures with a 220px sidebar: scale so the main pane
   (1220px) fills the card and the sidebar sits just off the left edge. */
.card__visual img { width: 118.03%; max-width: none; height: auto; margin-left: -18.03%; opacity: .92; transform-origin: 20% 0; transition: transform .8s var(--ease); }
.card:hover .card__visual img { transform: scale(1.03); }
.card__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(12,10,20,.95)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .span-2, .span-3 { grid-column: span 1; } .span-4, .span-6 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; } }

/* Mini visuals inside bento cards */
.mini-kbd { display: flex; gap: 6px; margin-top: 18px; }
.mini-kbd span { font-family: var(--mono); font-size: 14px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; background: #15121f; border: 1px solid var(--line-2); box-shadow: 0 3px 0 rgba(255,255,255,.06); }
.swatches { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; }
.channels { display: grid; gap: 8px; margin-top: 18px; }
.channels div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.channels svg { width: 16px; height: 16px; color: #c084fc; }
.channels em { margin-left: auto; font-style: normal; font-size: 11px; font-family: var(--mono); color: #86efac; }

/* ---------- Scrollytelling (sticky screenshots) ---------- */
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); }
.story__steps { display: flex; flex-direction: column; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step__num { font-family: var(--mono); font-size: 12.5px; color: #c084fc; letter-spacing: .12em; }
.step h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 14px; font-weight: 640; }
.step p { color: var(--text-2); margin: 0; font-size: 16.5px; }
.step ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.step li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.step li svg { width: 18px; height: 18px; color: #c084fc; flex-shrink: 0; margin-top: 3px; }
.story__visual { position: sticky; top: 120px; height: min(64vh, 620px); align-self: start; }
.shot-frame {
  position: relative; height: 100%; border-radius: 16px; overflow: hidden; background: #0f172a;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 20px 80px -40px rgba(168,85,247,.6);
}
.shot-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top;
  opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .9s var(--ease);
}
.shot-frame img.is-active { opacity: 1; transform: none; }
.shot-frame__label {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-family: var(--mono);
  background: rgba(7,6,12,.75); border: 1px solid var(--line-2); backdrop-filter: blur(10px); color: var(--text-2);
}
.story__mobile-shot { display: none; }
@media (max-width: 920px) {
  .story { grid-template-columns: 1fr; }
  .story__visual { display: none; }
  .step { min-height: auto; opacity: 1; padding: 36px 0; border-top: 1px solid var(--line); }
  .story__mobile-shot { display: block; margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
  .story__mobile-shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: left top; }
}

/* ---------- Mobile / PWA ---------- */
.phones { position: relative; height: 620px; display: flex; justify-content: center; align-items: center; }
.phone {
  position: absolute; width: 250px; aspect-ratio: 390/844; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #2a2635, #111018); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6);
  transition: transform .8s var(--ease);
}
.phone__screen { width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #0f172a; position: relative; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.phone--l { transform: translateX(-140px) rotate(-8deg) scale(.86); z-index: 1; opacity: .9; }
.phone--c { z-index: 3; }
.phone--r { transform: translateX(140px) rotate(8deg) scale(.86); z-index: 2; opacity: .9; }
.phones.is-in .phone--l { transform: translateX(-165px) rotate(-10deg) scale(.86); }
.phones.is-in .phone--r { transform: translateX(165px) rotate(10deg) scale(.86); }
@media (max-width: 720px) {
  .phones { height: 520px; }
  .phone { width: 220px; }
  .phone--l, .phones.is-in .phone--l { transform: translateX(-110px) rotate(-8deg) scale(.82); }
  .phone--r, .phones.is-in .phone--r { transform: translateX(110px) rotate(8deg) scale(.82); }
}
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.feature-list li { display: flex; gap: 12px; }
.feature-list svg { width: 20px; height: 20px; color: #c084fc; flex-shrink: 0; margin-top: 2px; }
.feature-list b { display: block; font-weight: 600; font-size: 15.5px; }
.feature-list small { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__n { font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.stat__l { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Security / terminal ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 920px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-grid .card { min-height: 0; padding: 24px; }
.sec-grid .card h3 { font-size: 17px; margin-top: 14px; }
.sec-grid .card p { font-size: 14.5px; }
.terminal { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0a10; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); }
.terminal__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #110f18; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.terminal pre { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #d6d3e0; overflow-x: auto; min-height: 290px; white-space: pre; }
.terminal .c-p { color: #c084fc; } .terminal .c-m { color: #6f6a82; } .terminal .c-g { color: #86efac; } .terminal .c-y { color: #fde68a; } .terminal .c-b { color: #93c5fd; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: #c084fc; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Tech strip ---------- */
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.tech span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font-size: 14.5px; color: var(--text-2); }
.tech i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(56px, 8vw, 96px) var(--gutter); text-align: center;
  border: 1px solid rgba(168,85,247,.35);
  background: radial-gradient(80% 120% at 50% 0%, rgba(168,85,247,.35), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(99,102,241,.25), transparent 60%), #0c0a14;
}
.cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.045em; line-height: 1.02; margin: 0 0 18px; font-weight: 700; }
.cta .grid-bg { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--text); font-size: 13px; font-weight: 600; margin: 0 0 14px; letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.hero .reveal { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
