/* =================================================================
   DASHDRAFT — Landing page
   Design language: MiniMax design system (DM Sans, stark monochrome
   broken open by saturated brand-color gradient cards, pill buttons,
   32px hero-radius product cards). Brand accent = Dashdraft orange.
   ================================================================= */

/* ----------------------------- Tokens ---------------------------- */
:root {
  /* Surface */
  --canvas: #ffffff;
  --surface: #f4f4f6;
  --surface-soft: #fafafa;
  --hairline: #e6e6ea;
  --hairline-soft: #efeff2;

  /* Text */
  --ink: #141414;
  --ink-strong: #000000;
  --charcoal: #2b2b2b;
  --slate: #525257;
  --steel: #76767d;
  --stone: #9a9aa2;
  --muted: #b0b0b8;

  /* Brand / product identity */
  --brand-orange: #ff4e10;      /* Dashdraft signature (maps to MiniMax coral) */
  --brand-orange-soft: #ff6a36;
  --brand-magenta: #e21e7b;
  --brand-blue: #2f6bff;
  --brand-blue-deep: #1652f0;
  --brand-purple: #6b30e0;
  --brand-navy: #302a84;        /* from the Dashdraft logo mark */
  --brand-navy-deep: #1e1871;

  /* On-color text */
  --on-primary: #ffffff;
  --on-dark: #ffffff;

  /* Semantic */
  --success-bg: #e7f6ec;
  --success-text: #137a3c;

  /* CTA black */
  --primary: #111111;

  /* Footer */
  --footer-bg: #0b0b0c;

  /* Radius */
  --r-xs: 4px;  --r-sm: 6px;  --r-md: 8px;  --r-lg: 12px;
  --r-xl: 16px; --r-xxl: 20px; --r-xxxl: 24px; --r-hero: 32px; --r-full: 9999px;

  /* Spacing */
  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 20px;
  --s-xl: 24px; --s-xxl: 32px; --s-xxxl: 40px;
  --s-section-sm: 48px; --s-section: 64px; --s-section-lg: 80px; --s-hero: 96px;

  /* Elevation */
  --e1: rgba(0,0,0,.04) 0 1px 2px 0;
  --e2: rgba(0,0,0,.08) 0 4px 6px 0;
  --e3: rgba(0,0,0,.08) 0 0 22px 0;
  --e4: rgba(36,36,36,.10) 0 12px 16px -4px;

  --container: 1240px;
  --font: "DM Sans", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--brand-orange); color: #fff; }

/* --------------------------- Typography -------------------------- */
.t-hero      { font-size: clamp(40px, 8vw, 80px); font-weight: 600; line-height: 1.08; letter-spacing: -2px; }
.t-display   { font-size: clamp(34px, 5.4vw, 56px); font-weight: 600; line-height: 1.10; letter-spacing: -1.5px; }
.t-h1        { font-size: clamp(30px, 4vw, 40px); font-weight: 600; line-height: 1.18; letter-spacing: -1px; }
.t-h2        { font-size: clamp(26px, 3vw, 32px); font-weight: 600; line-height: 1.24; letter-spacing: -.5px; }
.t-h3        { font-size: 24px; font-weight: 600; line-height: 1.3; }
.t-card      { font-size: 20px; font-weight: 600; line-height: 1.4; }
.t-subtitle  { font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; line-height: 1.5; }
.t-body      { font-size: 16px; font-weight: 400; line-height: 1.6; }
.t-sm        { font-size: 14px; font-weight: 400; line-height: 1.5; }
.t-caption   { font-size: 13px; line-height: 1.6; }
.t-micro     { font-size: 12px; line-height: 1.5; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel);
}
.accent { color: var(--brand-orange); }
.muted-text { color: var(--steel); }

/* ----------------------------- Layout ---------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--s-section-lg) 0; }
.section-tight { padding: var(--s-section) 0; }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto var(--s-xxxl); }
.section-head.center { text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head p { color: var(--steel); margin-top: 16px; font-size: 18px; }

/* ----------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  padding: 12px 24px; border-radius: var(--r-full);
  transition: transform .15s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #000; box-shadow: var(--e2); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-tertiary { background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); }
.btn-tertiary:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f0f0f0; box-shadow: var(--e2); }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }

/* ----------------------------- Badges ---------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; line-height: 1;
  padding: 5px 11px; border-radius: var(--r-full);
}
.badge-new { background: var(--brand-orange); color: #fff; }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-beta { background: #dde8ff; color: var(--brand-blue-deep); }
.badge-ghost { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(4px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ------------------------- Promo banner -------------------------- */
.promo {
  background: var(--ink-strong); color: var(--on-primary);
  font-size: 14px; font-weight: 500; text-align: center;
  padding: 10px 20px; position: relative; z-index: 60;
}
.promo a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.promo .spark { color: var(--brand-orange-soft); }

/* ------------------------------ Nav ------------------------------ */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--hairline-soft); }
.nav { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--charcoal); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .link { font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-cta .link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-md); align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: .2s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ----------------------------- Hero ------------------------------ */
.hero { padding: 76px 0 68px; position: relative; overflow: hidden; min-height: 768px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
   radial-gradient(52% 42% at 50% -8%, rgba(255,78,16,.10), transparent 70%),
   radial-gradient(42% 44% at 88% 14%, rgba(47,107,255,.08), transparent 70%),
   radial-gradient(40% 42% at 10% 80%, rgba(107,48,224,.06), transparent 70%); }
.hero .container { position: relative; z-index: 3; width: 100%; }
.hero-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  background: rgba(255,255,255,.7); border: 1px solid var(--hairline); backdrop-filter: blur(6px);
  padding: 7px 8px 7px 14px; border-radius: var(--r-full); font-size: 13px; font-weight: 500; color: var(--charcoal);
}
.hero-pill .badge-new { font-size: 11px; padding: 4px 9px; }
.hero h1 { margin-bottom: 18px; line-height: 0.8; }
.hero-sub { font-size: clamp(16px, 1.7vw, 18px); color: var(--steel); max-width: 560px; margin: 0 auto 28px; font-weight: 500; }
.hero-proof { margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; color: var(--steel); font-size: 14px; }
.avatars { display: flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px; background-size: cover; box-shadow: var(--e1); }
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--brand-orange); letter-spacing: 1px; }

/* ---- Prompt box (Deta-style command input) ---- */
.prompt-box {
  width: 100%; max-width: 600px; margin: 0 auto; text-align: left;
  background: #fff; border: 1px solid var(--hairline); border-radius: 22px;
  padding: 10px 10px 12px 18px;
  box-shadow: rgba(20,22,40,.10) 0 20px 50px -22px, rgba(20,22,40,.05) 0 4px 12px -6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prompt-box:focus-within { border-color: var(--ink); box-shadow: rgba(20,22,40,.16) 0 26px 62px -24px; }
.prompt-main { display: flex; align-items: center; gap: 11px; }
.prompt-spark { color: var(--brand-orange); flex-shrink: 0; display: flex; }
.prompt-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 9px 0; }
.prompt-input::placeholder { color: var(--stone); }
.prompt-go {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: var(--r-full); transition: background .15s ease, transform .1s ease;
}
.prompt-go:hover { background: #000; }
.prompt-go:active { transform: translateY(1px); }
.prompt-go .go-spin { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.prompt-go.loading .go-spin { display: inline-block; }
.prompt-go.loading .go-ico { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--hairline-soft); flex-wrap: wrap; }
.prompt-modes { display: inline-flex; gap: 6px; }
.mode { font-size: 12px; font-weight: 600; color: var(--steel); padding: 6px 11px; border-radius: var(--r-full); border: 1px solid var(--hairline); background: #fff; transition: .15s ease; white-space: nowrap; }
.mode:hover { color: var(--ink); border-color: var(--steel); }
.mode.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.prompt-examples { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ex-label { font-size: 12px; color: var(--stone); }
.ex { font-size: 12px; color: var(--charcoal); padding: 6px 10px; border-radius: var(--r-full); background: var(--surface); transition: .15s ease; white-space: nowrap; }
.ex:hover { background: #ececef; color: var(--ink); }

/* ---- Floating generated examples ---- */
.hero-floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-card {
  position: absolute;
  top: var(--top, auto); left: var(--left, auto); right: var(--right, auto); bottom: var(--bottom, auto);
  width: var(--w, 180px); will-change: transform;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.float-inner {
  border-radius: 16px; overflow: hidden; background: #0c0c0d;
  transform: rotate(var(--rot, 0deg));
  animation: floatY var(--dur, 8s) ease-in-out infinite; animation-delay: var(--delay, 0s);
  box-shadow: rgba(16,18,32,.22) 0 26px 46px -20px, rgba(16,18,32,.10) 0 8px 18px -10px;
  border: 1px solid rgba(255,255,255,.5);
}
.float-inner video { width: 100%; height: auto; display: block; }
@keyframes floatY {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) { .float-inner { animation: none; } }
/* No room for floats below the wide breakpoint — clean centered hero instead */
@media (max-width: 1199px) {
  .hero-floats { display: none; }
  .hero { min-height: 0; padding: 60px 0 52px; }
}
@media (max-width: 460px) {
  .prompt-box { padding: 9px 9px 11px 15px; border-radius: 18px; }
  .prompt-go .go-label { display: none; }
  .prompt-go { padding: 11px 13px; }
  .prompt-main { gap: 8px; }
  .prompt-foot { gap: 9px; }
}

/* --------------------- Showcase / masonry ------------------------ */
.showcase { padding-top: var(--s-section); }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.showcase-head .eyebrow { margin-bottom: 12px; display: block; }
.showcase-head p { color: var(--steel); margin-top: 12px; font-size: 17px; max-width: 460px; }
.filters { display: flex; gap: 9px; flex-wrap: wrap; }
.pill-tab {
  font-size: 13px; font-weight: 600; color: var(--steel);
  background: var(--canvas); border: 1px solid var(--hairline);
  padding: 9px 16px; border-radius: var(--r-full); transition: .15s ease;
}
.pill-tab:hover { border-color: var(--steel); color: var(--ink); }
.pill-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* JS-distributed flex columns — NOT CSS column-count. Safari mis-paints
   multi-column fragments whose tiles carry compositing layers (videos,
   backdrop-filter, translateZ, the 3D tilt): the GPU layers are drawn
   without the per-column offset, so cards overlap and scatter. Explicit
   column elements (filled in script.js) lay out identically everywhere. */
.masonry { display: flex; align-items: flex-start; gap: 8px; }
.masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.masonry-item { position: relative; z-index: 1; }
.masonry-item:hover { z-index: 5; } /* keep the tilted/lifted card above its close neighbors */

/* Staggered scroll-in (only when motion is welcome; delay set inline by JS) */
@media (prefers-reduced-motion: no-preference) {
  .masonry-item { opacity: 0; transform: translateY(34px) scale(.955); }
  .masonry-item.in {
    opacity: 1; transform: none;
    transition: opacity .6s ease, transform .72s cubic-bezier(.2,.75,.2,1);
  }
}

/* ---- 3D parallax tilt stage ---- */
.tilt { perspective: 1000px; }
.tile {
  position: relative; cursor: pointer;
  transform-style: preserve-3d;
  /* transform driven by JS spring; no CSS transition so it stays buttery */
}
.tile-media {
  position: relative; overflow: hidden; border-radius: 22px;
  background: #0c0c0d; transform: translateZ(0);
  box-shadow: rgba(17,17,20,.10) 0 6px 16px -8px, rgba(17,17,20,.05) 0 2px 5px -2px;
  transition: box-shadow .4s ease;
}
.tilt:hover .tile-media {
  box-shadow: rgba(16,16,22,.28) 0 30px 54px -22px, rgba(16,16,22,.12) 0 10px 22px -12px;
}
.tile-media video, .tile-media .poster {
  width: 100%; height: auto; display: block; background: #0c0c0d;
  transform: scale(1.01); /* bleed past edges so tilt never reveals a seam */
}
.tile-media .poster { object-fit: cover; }

/* Cursor-following sheen (lives inside the clipped media) */
.tile-glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%),
              rgba(255,255,255,.30), rgba(255,255,255,0) 45%);
  transition: opacity .4s ease;
}
.tilt:hover .tile-glare { opacity: 1; }

/* ---- Floating depth layers (parallax via translateZ) ---- */
.tile-chip {
  position: absolute; top: 13px; left: 13px; z-index: 4;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 11px; border-radius: var(--r-full);
  background: rgba(12,12,15,.5); color: #fff;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: inline-flex; align-items: center; gap: 6px;
  transform: translateZ(55px);
  box-shadow: rgba(0,0,0,.2) 0 5px 14px -6px;
}
.tile-chip .dot { width: 6px; height: 6px; box-shadow: 0 0 8px rgba(255,106,54,.9); }
.tile-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 42px 15px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  background: linear-gradient(to top, rgba(7,7,9,.86), rgba(7,7,9,0));
  border-radius: 0 0 22px 22px;
  opacity: 0; transform: translateZ(38px) translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.tilt:hover .tile-meta { opacity: 1; transform: translateZ(38px) translateY(0); }
.tile-meta .title { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.25; }
.tile-meta .ratio { color: rgba(255,255,255,.68); font-size: 11px; font-weight: 500; }
.tile-play {
  position: absolute; top: 13px; right: 13px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(12,12,15,.46); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: translateZ(55px) scale(.8);
  transition: opacity .35s ease, transform .35s ease;
}
.tilt:hover .tile-play { opacity: 1; transform: translateZ(55px) scale(1); }

/* Touch / no-hover: drop the 3D, keep captions visible and flat */
@media (hover: none), (pointer: coarse) {
  .tilt { perspective: none; }
  .tile { transform: none !important; transform-style: flat; }
  .tile-chip, .tile-play, .tile-meta { transform: none !important; }
  .tile-glare { display: none; }
}
.showcase-foot { margin-top: 36px; text-align: center; }
.showcase-foot p { color: var(--steel); font-size: 15px; margin-bottom: 18px; }

/* ------------------------- How it works -------------------------- */
.flow-head { max-width: 860px; margin-bottom: 52px; }
.flow-head h2 { color: var(--ink-strong); }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.flow-step { display: flex; flex-direction: column; }

.how-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  background: radial-gradient(125% 120% at 50% 0%, #18181d, #0b0b0d 72%);
  border: 1px solid var(--hairline);
  box-shadow: rgba(17,17,20,.14) 0 14px 30px -14px, rgba(17,17,20,.08) 0 4px 10px -5px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.flow-step:hover .how-media {
  transform: translateY(-3px);
  box-shadow: rgba(16,16,22,.22) 0 28px 50px -22px, rgba(16,16,22,.12) 0 10px 22px -12px;
}
.how-gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.how-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.how-ph img { width: 46px; height: auto; opacity: .16; filter: grayscale(1) brightness(2.6); }
.how-ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.05) 50%, transparent 62%);
  background-size: 250% 100%; animation: howShimmer 3.6s ease-in-out infinite;
}
@keyframes howShimmer { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }

/* Orange rail + numbered steps */
.flow-rail { position: relative; height: 28px; margin: 26px 0 22px; }
.flow-rail::before { content: ""; position: absolute; top: 50%; left: 0; right: -28px; height: 2px; background: var(--brand-orange); transform: translateY(-50%); }
.flow-step:last-child .flow-rail::before { right: 0; }
.flow-num { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 3px; background: var(--brand-orange); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1; }

.flow-step h3 { font-size: 24px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 12px; }
.flow-step p { color: var(--steel); font-size: 15px; line-height: 1.6; max-width: 34ch; }

/* Coming soon */
.soon-head { margin: 64px 0 28px; }
.soon-head .eyebrow { display: block; margin-bottom: 12px; }
.soon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.soon-card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xxl); padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.soon-card::after {
  content: ""; position: absolute; z-index: -1; right: -50px; top: -50px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(47,107,255,.12), transparent 70%);
}
.soon-card:hover { transform: translateY(-3px); box-shadow: var(--e2); border-color: var(--hairline-soft); }
.soon-tag { position: absolute; top: 22px; right: 22px; }
.soon-ico { width: 52px; height: 52px; border-radius: var(--r-lg); background: var(--surface); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.soon-ico--orange { color: var(--brand-orange); }
.soon-card h4 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.soon-card p { color: var(--steel); font-size: 15px; max-width: 44ch; }
@media (prefers-reduced-motion: reduce) { .how-ph::after { animation: none; } }

/* ----------------------------- Stats ----------------------------- */
.stats { background: var(--surface); border-radius: var(--r-hero); padding: 52px 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 0 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 10%; height: 80%; width: 1px; background: var(--hairline); }
.stat .num { font-size: clamp(34px, 4.4vw, 46px); font-weight: 600; letter-spacing: -1.5px; line-height: 1; }
.stat .num .accent { color: var(--brand-orange); }
.stat .label { color: var(--steel); font-size: 14px; margin-top: 10px; }

/* --------------------------- Benefits ---------------------------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bcard {
  position: relative; overflow: hidden; border-radius: var(--r-hero);
  padding: 32px; color: #fff; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  isolation: isolate;
}
.bcard::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(120% 90% at 80% 0%, rgba(255,255,255,.22), transparent 60%); }
.bcard.orange { background: linear-gradient(150deg, var(--brand-orange-soft), var(--brand-orange) 60%, #e8430b); }
.bcard.navy   { background: linear-gradient(150deg, #4a42b8, var(--brand-navy) 55%, var(--brand-navy-deep)); }
.bcard.blue   { background: linear-gradient(150deg, #5a86ff, var(--brand-blue) 55%, var(--brand-blue-deep)); }
.bcard .b-top { display: flex; align-items: center; justify-content: space-between; }
.bcard .b-ico { width: 48px; height: 48px; border-radius: var(--r-lg); background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.bcard .b-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.bcard h3 { font-size: 26px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; }
.bcard p { font-size: 15px; opacity: .9; margin-top: 10px; }
.bcard .b-foot { margin-top: 26px; }

/* ------------------------- Testimonials -------------------------- */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xxl); padding: 28px; display: flex; flex-direction: column; gap: 18px; transition: box-shadow .2s ease; }
.tcard:hover { box-shadow: var(--e2); }
.tcard .quote { font-size: 16px; line-height: 1.6; color: var(--charcoal); font-weight: 500; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .av { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 16px; }
.tcard .who .n { font-size: 14px; font-weight: 600; }
.tcard .who .h { font-size: 13px; color: var(--steel); }
.tcard .metric { display: inline-flex; gap: 18px; }
.tcard .metric div { font-size: 13px; color: var(--steel); }
.tcard .metric b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.5px; }
.tcard .stars { color: var(--brand-orange); font-size: 14px; letter-spacing: 1px; }

/* ---------------------------- Pricing ---------------------------- */
.price-toggle { display: inline-flex; gap: 6px; padding: 5px; background: var(--surface); border-radius: var(--r-full); margin: 0 auto 14px; }
.price-toggle button { font-size: 13px; font-weight: 600; color: var(--steel); padding: 8px 18px; border-radius: var(--r-full); transition: .15s; }
.price-toggle button.active { background: var(--primary); color: #fff; }
.save-note { font-size: 13px; color: var(--success-text); font-weight: 600; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xxl); padding: 30px; display: flex; flex-direction: column; }
.tier.featured { border: 1.5px solid var(--ink); box-shadow: var(--e3); position: relative; }
.tier.featured .ribbon { position: absolute; top: 22px; right: 22px; }
.tier .plan { font-size: 15px; font-weight: 600; }
.tier .desc { font-size: 14px; color: var(--steel); margin-top: 6px; min-height: 40px; }
.tier .price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.tier .price .amt { font-size: 44px; font-weight: 600; letter-spacing: -2px; }
.tier .price .per { font-size: 14px; color: var(--steel); }
.tier .billed { font-size: 13px; color: var(--stone); min-height: 18px; }
.tier .btn { margin: 24px 0; }
.tier ul { display: flex; flex-direction: column; gap: 12px; }
.tier li { font-size: 14px; color: var(--charcoal); display: flex; gap: 10px; align-items: flex-start; }
.tier li svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-orange); }

/* Generation top-ups */
.topups-head { margin: 56px 0 24px; }
.topups-head h3 { display: flex; align-items: center; gap: 10px; }
.topups-count { font-size: 16px; font-weight: 600; color: var(--stone); }
.topups-head p { color: var(--steel); font-size: 15px; margin-top: 10px; max-width: 680px; }
.topups-head p b { color: var(--ink); font-weight: 600; }
.topups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.topup {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xxl);
  padding: 28px 30px; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.topup:hover { box-shadow: var(--e2); transform: translateY(-3px); }
.topup-top { display: flex; align-items: center; gap: 10px; }
.topup-ico { color: var(--brand-orange); display: flex; }
.topup-top h4 { font-size: 19px; font-weight: 600; }
.topup-desc { color: var(--steel); font-size: 15px; margin-top: 12px; }
.topup .price { margin: 22px 0 18px; display: flex; align-items: baseline; gap: 8px; }
.topup .price .amt { font-size: 40px; font-weight: 600; letter-spacing: -1.5px; line-height: 1; }
.topup .price .per { font-size: 14px; color: var(--steel); }
.topup ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.topup li { font-size: 14px; color: var(--charcoal); display: flex; gap: 10px; align-items: flex-start; }
.topup li svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-orange); }
.topup .btn { margin-top: auto; }

/* ------------------------------ FAQ ------------------------------ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 24px 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.faq-q .ico { flex-shrink: 0; width: 24px; height: 24px; position: relative; transition: transform .25s ease; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; }
.faq-q .ico::before { top: 11px; left: 4px; right: 4px; height: 2px; }
.faq-q .ico::after { left: 11px; top: 4px; bottom: 4px; width: 2px; transition: opacity .2s ease; }
.faq-item.open .faq-q .ico::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--slate); font-size: 15px; line-height: 1.65; padding: 0 4px 24px; max-width: 660px; }

/* ---------------------------- Final CTA -------------------------- */
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--r-hero);
  background: linear-gradient(135deg, var(--brand-orange-soft), var(--brand-orange) 55%, #e8430b);
  color: #fff; padding: 72px 40px; text-align: center; isolation: isolate;
}
.cta-card::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 50% -20%, rgba(255,255,255,.28), transparent 60%); }
.cta-card h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 600; letter-spacing: -1px; line-height: 1.12; max-width: 760px; margin: 0 auto; }
.cta-card p { font-size: 18px; opacity: .92; margin: 18px auto 32px; max-width: 540px; }
.cta-card .btn-white { padding: 15px 34px; font-size: 15px; }
.cta-note { margin-top: 16px; font-size: 13px; opacity: .85; }

/* ----------------------------- Footer ---------------------------- */
.footer { background: var(--footer-bg); color: #fff; padding: var(--s-section) 0 32px; margin-top: var(--s-section-lg); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { color: var(--stone); font-size: 14px; max-width: 260px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; color: #fff; transition: .15s; }
.footer-social a:hover { background: #fff; color: #111; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; color: #fff; letter-spacing: .02em; }
.footer-col a { display: block; color: var(--stone); font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom p { color: var(--stone); font-size: 13px; }
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom .links a { color: var(--stone); font-size: 13px; }
.footer-bottom .links a:hover { color: #fff; }

/* --------------------------- Reveal anim ------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------- Responsive -------------------------- */
@media (max-width: 1100px) {
  /* Masonry column count is chosen in script.js (see masonryColCount). */
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta .link { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid, .benefits, .tcards, .tiers { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before, .stat:nth-child(odd)::before { display: none; }

  /* Mobile drawer */
  .mobile-menu { display: flex; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  /* Phones get a single column (script.js sets masonryColCount to 1); cap and
     centre it so the tall 9:16 tiles stay full-width and legible. */
  .masonry { gap: 14px; justify-content: center; }
  .masonry-col { gap: 14px; max-width: 440px; }
  .flow-steps, .soon-grid, .topups, .stats-grid, .benefits, .tcards, .tiers { grid-template-columns: 1fr; }
  .flow-rail::before { right: 0; }
  .stat + .stat::before { display: none; }
  .stats { padding: 36px 22px; }
  .stats-grid { gap: 30px; }
  .showcase-head { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 52px 24px; }
  /* No 3D parallax on narrow viewports, regardless of pointer type */
  .tilt { perspective: none; }
  .tile { transform: none !important; transform-style: flat; }
  .tile-glare { display: none; }
  /* Labels are part of the desktop hover experience; keep mobile thumbnails clean */
  .tile-meta, .tile-chip, .tile-play { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .hero-proof { flex-direction: column; gap: 8px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* --------------------------- Mobile menu ------------------------- */
.mobile-menu {
  position: fixed; inset: 66px 0 0; background: #fff; z-index: 45;
  flex-direction: column; padding: 24px 24px 40px; gap: 6px;
  transform: translateX(100%); transition: transform .28s ease; display: flex;
  overflow-y: auto;
}
body:not(.menu-open) .mobile-menu { transform: translateX(100%); pointer-events: none; }
body.menu-open .mobile-menu { transform: none; }
body.menu-open { overflow: hidden; }
.mobile-menu a.m-link { font-size: 18px; font-weight: 600; color: var(--ink); padding: 16px 4px; border-bottom: 1px solid var(--hairline-soft); }
.mobile-menu .m-cta { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 981px) { .mobile-menu { display: none; } }

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