/* ============================================================
   Gym Stack 360 — Marketing Site Design System
   Style: Light Premium SaaS · Warm Vibrant
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #FDFBF7;
  --bg-soft: #F8F4ED;
  --surface: #FFFFFF;
  --surface-warm: #FFF8F3;
  --ink: #221A16;
  --ink-soft: #57493F;
  --ink-dim: #8A7A6E;
  --line: #EDE5DA;
  --line-strong: #E0D5C7;

  --coral: #F97066;
  --coral-deep: #E5544B;
  --coral-soft: #FEEAE8;
  --coral-ghost: #FDF1EF;
  --amber: #F5A623;
  --amber-soft: #FDF3E2;
  --sage: #3E9B7A;
  --sage-soft: #E6F4EE;
  --sky: #4A7FD4;
  --sky-soft: #EAF1FB;
  --plum: #8B5CF6;
  --plum-soft: #F1EBFE;

  --grad-coral: linear-gradient(135deg, #F97066 0%, #F5A623 100%);
  --grad-soft: linear-gradient(180deg, #FFF8F3 0%, #FDFBF7 100%);

  /* Typography */
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(60, 42, 33, 0.06), 0 2px 8px rgba(60, 42, 33, 0.05);
  --shadow-md: 0 2px 6px rgba(60, 42, 33, 0.06), 0 12px 32px -8px rgba(60, 42, 33, 0.12);
  --shadow-lg: 0 4px 12px rgba(60, 42, 33, 0.07), 0 32px 64px -24px rgba(60, 42, 33, 0.22);
  --shadow-coral: 0 8px 24px -8px rgba(249, 112, 102, 0.5);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --t-fast: 180ms;
  --t-med: 280ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--coral-soft); color: var(--coral-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section-tight { padding: 72px 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 16px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ---------- Section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--coral-ghost);
  border: 1px solid var(--coral-soft);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.55; } }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 18px; }
.section-head .lede { font-size: 19px; color: var(--ink-soft); line-height: 1.65; }
.accent { background: var(--grad-coral); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 16px 28px; border-radius: 999px;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast);
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(249, 112, 102, 0.6); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-dim); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 19px 36px; font-size: 17px; }
.btn .arr { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad-coral);
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: var(--shadow-coral);
}
.logo .l360 { color: var(--coral-deep); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  padding: 10px 14px; border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav .btn { padding: 11px 22px; font-size: 15px; min-height: 44px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--ink); }

/* Modules dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop .chev { transition: transform var(--t-fast); }
.nav-drop:hover .chev, .nav-drop:focus-within .chev { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility var(--t-fast);
}
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.drop-item { display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--r-md); transition: background var(--t-fast); align-items: flex-start; }
.drop-item:hover { background: var(--bg-soft); }
.drop-item .di-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
}
.drop-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.drop-item span { font-size: 12.5px; color: var(--ink-dim); line-height: 1.4; }

/* Icon tints */
.tint-coral { background: var(--coral-soft); color: var(--coral-deep); }
.tint-amber { background: var(--amber-soft); color: #B97A0E; }
.tint-sage { background: var(--sage-soft); color: var(--sage); }
.tint-sky { background: var(--sky-soft); color: var(--sky); }
.tint-plum { background: var(--plum-soft); color: var(--plum); }

/* Mobile nav */
.nav-mobile { display: none; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: grid; }
  .nav-mobile {
    position: fixed; inset: 76px 0 auto 0; z-index: 99;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px 28px;
    display: none; flex-direction: column; gap: 2px;
    max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-soft); }
  .nav-mobile a strong { font-weight: 600; color: var(--ink); }
  .nav-mobile .nm-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
  .nav-mobile a:hover { background: var(--bg-soft); color: var(--ink); }
  .nav-mobile .nm-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); padding: 16px 14px 6px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 420ms; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 490ms; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: 560ms; }
.reveal-stagger.in-view > *:nth-child(10) { transition-delay: 630ms; }

/* ---------- Bento / feature cards ---------- */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bento-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
  display: flex; flex-direction: column;
}
a.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.bento-card .bc-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
}
.bento-card h3 { font-size: 20px; margin-bottom: 10px; }
.bento-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.bento-card .bc-more {
  margin-top: auto; padding-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.bento-card .bc-more svg { transition: transform var(--t-fast) var(--ease-out); }
a.bento-card:hover .bc-more svg { transform: translateX(4px); }
.bento-card .bc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.bc-tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-dim); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px;
}
.span-2 { grid-column: span 2; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .span-2 { grid-column: span 1; } }

/* ---------- Demo player (the "promo video" frames) ---------- */
.demo-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.demo-chrome .dots { display: flex; gap: 6px; }
.demo-chrome .dots i { width: 11px; height: 11px; border-radius: 50%; }
.demo-chrome .dots i:nth-child(1) { background: #F87171; }
.demo-chrome .dots i:nth-child(2) { background: #FBBF24; }
.demo-chrome .dots i:nth-child(3) { background: #34D399; }
.demo-chrome .url {
  flex: 1; max-width: 340px; margin: 0 auto;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 14px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-chrome .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--coral-deep);
}
.demo-chrome .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: pulse-dot 1.6s infinite; }
.demo-stage { position: relative; padding: 24px; min-height: 360px; background: linear-gradient(180deg, #FFFFFF 0%, #FDFAF5 100%); }

/* Demo primitives — building blocks for animated product scenes */
.ds-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.ds-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ds-row:last-child { border-bottom: none; }
.ds-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.ds-avatar.a1 { background: #F97066; } .ds-avatar.a2 { background: #F5A623; }
.ds-avatar.a3 { background: #3E9B7A; } .ds-avatar.a4 { background: #4A7FD4; }
.ds-avatar.a5 { background: #8B5CF6; } .ds-avatar.a6 { background: #DB6BA2; }
.ds-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ds-sub { font-size: 11.5px; color: var(--ink-dim); line-height: 1.3; }
.ds-pill {
  margin-left: auto; flex: none;
  font-size: 11px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
}
.ds-pill.ok { background: var(--sage-soft); color: var(--sage); }
.ds-pill.warn { background: var(--amber-soft); color: #B97A0E; }
.ds-pill.bad { background: var(--coral-soft); color: var(--coral-deep); }
.ds-pill.info { background: var(--sky-soft); color: var(--sky); }
.ds-kpi { padding: 16px 18px; }
.ds-kpi .k-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.ds-kpi .k-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ds-kpi .k-delta { font-size: 11.5px; font-weight: 600; margin-top: 6px; }
.ds-kpi .k-delta.up { color: var(--sage); } .ds-kpi .k-delta.down { color: var(--coral-deep); }
.ds-bar-track { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.ds-bar-fill { height: 100%; border-radius: 99px; background: var(--grad-coral); transform-origin: left; }
.ds-toast {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 500;
  opacity: 0;
}
.ds-toast .t-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sage); }
.ds-toast small { display: block; font-size: 11px; opacity: 0.65; font-weight: 400; }

/* Demo loop animations (each demo loops like a promo video) */
@keyframes demo-slide-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes demo-pop { 0% { opacity: 0; transform: scale(0.85); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes demo-toast {
  0%, 8% { opacity: 0; transform: translateY(14px) scale(0.95); }
  14%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  86%, 100% { opacity: 0; transform: translateY(-8px) scale(0.97); }
}
@keyframes demo-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes demo-cursor-path1 {
  0%, 12% { transform: translate(0, 0); opacity: 0; }
  18% { opacity: 1; }
  38% { transform: translate(var(--cx1, 180px), var(--cy1, 60px)); }
  44%, 52% { transform: translate(var(--cx1, 180px), var(--cy1, 60px)) scale(0.82); }
  58% { transform: translate(var(--cx1, 180px), var(--cy1, 60px)) scale(1); }
  80% { transform: translate(var(--cx2, 60px), var(--cy2, 180px)); opacity: 1; }
  92%, 100% { transform: translate(var(--cx2, 60px), var(--cy2, 180px)); opacity: 0; }
}
.ds-cursor {
  position: absolute; z-index: 10; width: 20px; height: 20px;
  pointer-events: none; opacity: 0;
}
.ds-cursor svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

/* Phone frame for member app demos */
.phone-frame {
  position: relative;
  width: 300px;
  border-radius: 44px;
  background: var(--ink);
  padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.08);
}
.phone-screen {
  position: relative;
  border-radius: 34px;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 9 / 19;
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: 99px;
  background: var(--ink); z-index: 20;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 22px 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--ink);
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; padding: 8px 0;
  -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-scroll 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.mq-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 20px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.mq-chip svg { flex: none; }

/* ---------- Split feature sections (module pages) ---------- */
.feature-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.feature-split.flip > .fs-copy { order: 2; }
.feature-split.flip > .fs-visual { order: 1; }
.fs-copy h3 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.fs-copy > p { font-size: 17px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 26px; }
.fs-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.fs-list li { display: flex; gap: 13px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.fs-list li strong { color: var(--ink); font-weight: 600; }
.fs-check {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage);
  display: grid; place-items: center; margin-top: 1px;
}
@media (max-width: 880px) {
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.flip > .fs-copy { order: 1; }
  .feature-split.flip > .fs-visual { order: 2; }
}

/* ---------- Module page hero ---------- */
.module-hero { padding: 168px 0 84px; position: relative; overflow: hidden; }
.module-hero .mh-inner { max-width: 780px; }
.module-hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 22px; }
.module-hero .lede { font-size: 20px; color: var(--ink-soft); line-height: 1.65; max-width: 640px; }
.module-hero .mh-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1;
}
.blob-coral { background: rgba(249, 112, 102, 0.16); width: 640px; height: 640px; top: -220px; right: -160px; }
.blob-amber { background: rgba(245, 166, 35, 0.12); width: 520px; height: 520px; bottom: -260px; left: -180px; }

/* Breadcrumb */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-dim); font-weight: 500; }
.crumbs a:hover { color: var(--coral-deep); }
.crumbs svg { opacity: 0.5; }

/* ---------- Capability grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cap-card .cc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.cap-card h4 { font-size: 16.5px; margin-bottom: 8px; font-weight: 650; }
.cap-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 940px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 44px 48px; box-shadow: var(--shadow-sm);
}
.stat-item { text-align: center; }
.stat-item .sv {
  font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 800;
  background: var(--grad-coral); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat-item .sl { font-size: 14px; color: var(--ink-dim); font-weight: 500; margin-top: 6px; }
@media (max-width: 800px) { .stats-band { grid-template-columns: 1fr 1fr; padding: 32px 28px; gap: 28px; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1180px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
  position: relative;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.featured { border: 2px solid var(--coral); box-shadow: var(--shadow-coral); }
.price-card .pc-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-coral); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 19px; margin-bottom: 6px; }
.price-card .pc-desc { font-size: 13.5px; color: var(--ink-dim); min-height: 42px; line-height: 1.5; }
.price-card .pc-price { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin: 18px 0 2px; }
.price-card .pc-price small { font-size: 14px; font-weight: 500; color: var(--ink-dim); font-family: var(--font-body); }
.price-card .pc-per { font-size: 12.5px; color: var(--ink-dim); margin-bottom: 14px; }
.price-card .pc-limits { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-limit {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-soft); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.pc-limit svg { flex: none; color: var(--coral-deep); }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 26px; }
.price-card ul li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.price-card ul li svg { flex: none; margin-top: 2px; color: var(--sage); }
.price-card .btn { margin-top: auto; width: 100%; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  padding: 84px 48px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 110%, rgba(249,112,102,0.35), transparent 65%),
    radial-gradient(ellipse 500px 350px at 85% -10%, rgba(245,166,35,0.25), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(32px, 4.5vw, 54px); margin-bottom: 18px; }
.cta-band p { font-size: 18px; opacity: 0.75; max-width: 540px; margin: 0 auto 36px; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

/* ---------- Module pager (prev/next) ---------- */
.module-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pager-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 26px;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.pager-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pager-card .pg-dir { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.pager-card .pg-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
.pager-card.next { text-align: right; align-items: flex-end; }
@media (max-width: 580px) { .module-pager { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 72px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer .f-tagline { font-size: 14.5px; color: var(--ink-dim); max-width: 280px; line-height: 1.6; margin-top: 16px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14.5px; color: var(--ink-soft); transition: color var(--t-fast); }
.footer ul a:hover { color: var(--coral-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 28px;
  font-size: 13px; color: var(--ink-dim);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive base ---------- */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 52px 0; }
  .module-hero { padding: 132px 0 56px; }
  .demo-stage { padding: 16px; min-height: 280px; }
  .stats-band { border-radius: var(--r-lg); }
  .cta-band { padding: 56px 24px; border-radius: var(--r-lg); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .marquee-track { animation: none; transform: none; }
}

/* ---------- Geo banner (launch waitlist hint) ---------- */
.geo-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 90; width: min(720px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: var(--shadow-md, 0 12px 32px rgba(34,26,22,.14));
  padding: 14px 16px; animation: geoSlideUp .35s ease-out;
}
.geo-banner p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; margin: 0; flex: 1; }
.geo-banner-dot { flex: none; width: 9px; height: 9px; border-radius: 999px; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.geo-banner-cta { flex: none; padding: 9px 16px; font-size: 13px; white-space: nowrap; }
.geo-banner-close {
  flex: none; background: none; border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink-dim); padding: 4px 6px;
}
.geo-banner-close:hover { color: var(--ink); }
@keyframes geoSlideUp { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 580px) {
  .geo-banner { flex-wrap: wrap; }
  .geo-banner-cta { width: 100%; text-align: center; }
}

/* ---------- Waitlist section ---------- */
.waitlist-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--surface-warm); border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px); padding: 40px 32px;
}
.waitlist-card h2 { font-size: 26px; margin-bottom: 10px; }
.waitlist-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 22px; }
.waitlist-form { display: flex; gap: 10px; }
.waitlist-form input[type="email"] {
  flex: 1; padding: 12px 16px; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
}
.waitlist-form input[type="email"]:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.waitlist-note { font-size: 13px; color: var(--ink-dim); margin-top: 12px; }
.waitlist-note.ok { color: var(--sage); font-weight: 600; }
.waitlist-note.err { color: var(--coral-deep); font-weight: 600; }
@media (max-width: 580px) {
  .waitlist-form { flex-direction: column; }
}
