/* ==========================================================================
   FlowHub Group — flowhubgroup.com
   Hand-written stylesheet. No frameworks, no build step.
   Sections:  1 Tokens  2 Reset  3 Layout  4 Type  5 Buttons  6 Header
              7 Hero    8 Cards  9 Sections 10 Pricing 11 Footer 12 Motion
              13 Responsive
   ========================================================================== */

/* 1 ── Design tokens ────────────────────────────────────────────────────── */
:root {
  --bg:            #000000;
  --bg-elev:       #05070c;
  --bg-panel:      #080b12;

  --surface:       rgba(255, 255, 255, 0.028);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border:        rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:          #F4F6FA;
  --text-dim:      #B4BCCA;
  --text-muted:    #7E8798;

  --accent:        #7FB0FF;
  --accent-deep:   #4A83F0;
  --accent-glow:   rgba(110, 160, 255, 0.35);
  --accent-faint:  rgba(110, 160, 255, 0.10);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --maxw:      1180px;
  --gutter:    24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset,
                 0 24px 60px -28px rgba(0,0,0,0.9);
  --shadow-glow: 0 0 0 1px rgba(127,176,255,0.18),
                 0 30px 80px -30px rgba(74,131,240,0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2 ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  /* `clip` contains the decorative glows without creating a scroll container
     (which `hidden` would, breaking position:sticky on the header). */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--accent); color: #04070f;
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* 3 ── Layout ───────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px);
  overflow-x: clip;   /* keeps ambient glows and 3-D cards off the scrollbar */
}
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.section__head p { color: var(--text-muted); margin: 14px 0 0; }

/* Ambient background washes ------------------------------------------------ */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
}
.glow--blue  { background: radial-gradient(circle, rgba(60,110,220,0.28), transparent 70%); }
.glow--warm  { background: radial-gradient(circle, rgba(220,90,120,0.14), transparent 70%); }

.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
}

/* 4 ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: #fff;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.015em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-dim);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.eyebrow strong { color: #fff; font-weight: 600; }

.label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.grad-text {
  background: linear-gradient(96deg, #FFFFFF 0%, #C6DBFF 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.muted  { color: var(--text-muted); }
.dim    { color: var(--text-dim); }
.small  { font-size: 0.875rem; }
.xsmall { font-size: 0.8rem; }

/* 5 ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: rgba(255,255,255,0.035);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { --btn-bg: rgba(255,255,255,0.09); border-color: var(--accent); }

.btn--primary {
  background: linear-gradient(180deg, #A9CBFF 0%, #6C9EF5 100%);
  border-color: rgba(255,255,255,0.35);
  color: #05122B;
  font-weight: 600;
  box-shadow: 0 10px 30px -12px rgba(90,140,240,0.75);
}
.btn--primary:hover { box-shadow: 0 16px 42px -14px rgba(90,140,240,0.95); }

.btn--wide { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

.btn-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.btn-row--center { justify-content: center; }

/* 6 ── Header / nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(0,0,0,0.82);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand__name {
  font-size: 1.22rem; font-weight: 600; letter-spacing: -0.03em; color: #fff;
}
.brand__name span { font-weight: 300; color: var(--text-dim); }

.nav__links {
  display: flex; align-items: center; gap: 30px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav__links a {
  font-size: 0.92rem; color: var(--text-muted);
  transition: color 0.2s var(--ease); position: relative; padding: 6px 0;
}
.nav__links a:hover { color: #fff; }
.nav__links a[aria-current="page"] { color: #fff; font-weight: 500; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,0.03); cursor: pointer;
}
.nav__toggle span {
  display: block; width: 17px; height: 1.5px; margin: 4px auto;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 7 ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  padding-block: clamp(80px, 12vh, 140px);
  /* `isolation` keeps the z-index:1 bottom-fade (::after) inside the hero's own
     stacking context, so it can never paint over the section that follows. */
  isolation: isolate;
  z-index: 0;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.85;
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { margin-bottom: 22px; display: flex; flex-direction: column; gap: 18px; }
.hero__hook {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.02;
  text-shadow: 0 0 60px rgba(120,170,255,0.25);
}
.hero__claim {
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  font-weight: 400; letter-spacing: -0.01em; line-height: 1.45;
  color: var(--text-dim); max-width: 620px; margin-inline: auto;
}
.hero__claim strong { color: #fff; font-weight: 600; }
.hero .lead { max-width: 620px; margin-inline: auto; color: var(--text-muted); font-size: clamp(0.95rem, 1.3vw, 1.02rem); }
.hero .btn-row { margin-top: 38px; }

.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 220px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1; pointer-events: none;
}

/* Sub-hero: problem statement + orbiting app cards */
.problem {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.problem__copy .eyebrow { margin-bottom: 26px; }
.problem__copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 400; line-height: 1.32; color: var(--text-dim);
  letter-spacing: -0.02em;
}
.problem__copy h2 strong { color: #fff; font-weight: 600; }

/* Stacked app cards */
.stack {
  position: relative;
  min-height: 460px;
  perspective: 1400px;
}
.stack__card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  width: 232px; padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.13);
  background: linear-gradient(145deg, rgba(30,42,68,0.92), rgba(8,11,18,0.95));
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.95),
              inset 0 1px 0 rgba(255,255,255,0.08);
  transform: rotateX(46deg) rotateZ(-32deg);
  transform-style: preserve-3d;
  font-size: 0.83rem; font-weight: 500; color: #E6ECF7;
  transition: transform 0.55s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.stack__card:hover {
  border-color: var(--accent);
  transform: rotateX(46deg) rotateZ(-32deg) translateZ(30px);
}
.stack__card svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent); }
.stack__card:nth-child(1) { top:   0px; right:  10px; }
.stack__card:nth-child(2) { top:  62px; right:  56px; }
.stack__card:nth-child(3) { top: 124px; right: 102px; }
.stack__card:nth-child(4) { top: 186px; right: 148px; }
.stack__card:nth-child(5) { top: 248px; right: 194px; }
.stack__card:nth-child(6) { top: 310px; right: 240px; }

/* 8 ── Cards ────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012) 45%),
    var(--bg-panel);
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
              background 0.35s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.card h3 { margin-bottom: 12px; }
.card p  { color: var(--text-muted); font-size: 0.94rem; }

.card--glow {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(90,140,240,0.20), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015) 45%),
    var(--bg-panel);
  border-color: rgba(140,180,255,0.28);
  box-shadow: var(--shadow-glow);
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Icon chip */
.chip {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(120,165,255,0.18), rgba(255,255,255,0.02));
  color: var(--accent);
}
.chip svg { width: 20px; height: 20px; }

/* 9 ── Comparison ───────────────────────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.compare__col { display: flex; flex-direction: column; }
.compare__title {
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 26px; line-height: 1.5;
}
.compare__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.compare__brand svg { width: 26px; height: 26px; }
.compare__brand span { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.03em; }
.compare__brand span em { font-style: normal; font-weight: 300; color: var(--text-dim); }

.compare__list { display: flex; flex-direction: column; gap: 22px; }
.compare__item { display: flex; gap: 14px; align-items: flex-start; }
.compare__item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.compare__item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.compare__item p  { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.compare__col--old  { color: var(--text-dim); }
.compare__col--old .compare__item svg { color: var(--text-muted); }
.compare__col--new .compare__item svg { color: var(--accent); }
.compare__col--new .compare__item h4  { color: #fff; }

/* 10 ── FlowGenie / network ─────────────────────────────────────────────── */
.genie {
  position: relative; text-align: center; overflow: hidden;
  padding-block: clamp(90px, 12vw, 170px);
}
.genie__net { position: absolute; inset: 0; z-index: 0; opacity: 0.55; }
.genie__inner { position: relative; z-index: 2; }
.genie__name {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  margin: 8px 0 14px;
  background: linear-gradient(180deg, #ffffff 30%, #96BCFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.genie__name sup { font-size: 0.24em; vertical-align: super; -webkit-text-fill-color: var(--accent); }

/* Module grid (the "Lego blocks") */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.module {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  font-size: 0.92rem; font-weight: 500;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              background 0.3s var(--ease);
}
.module:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: linear-gradient(150deg, rgba(120,165,255,0.14), rgba(255,255,255,0.02));
}
.module svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }

/* Split feature block */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(36px, 6vw, 72px); align-items: center;
}
/* Narrow heading column, wide prose column. */
.split--aside { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); align-items: start; }
.split__media {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(160deg, rgba(20,30,54,0.7), rgba(5,7,12,0.9));
  padding: 26px;
}

/* Stat readout above the learning-loop chart */
.readout { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.readout__num {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600;
  letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums;
}
.readout__label { font-size: 0.8rem; color: var(--text-muted); }

.chart { width: 100%; height: auto; }
.chart__line {
  fill: none; stroke: url(#lineGrad); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.chart__axis { font-size: 9px; fill: var(--text-muted); letter-spacing: 0.08em; }

/* Big stat cards */
.stat { text-align: left; }
.stat__num {
  font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.035em;
  line-height: 1; margin-bottom: 10px;
  background: linear-gradient(180deg, #fff, #8FB6FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 11 ── Pricing ─────────────────────────────────────────────────────────── */
.tiers {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px; align-items: stretch;
}
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.008) 50%), var(--bg-panel);
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.tier:hover { border-color: var(--border-strong); transform: translateY(-4px); }

.tier--featured {
  border-color: rgba(150,188,255,0.32);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(90,140,240,0.22), transparent 62%),
    linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.012) 50%),
    var(--bg-panel);
  box-shadow: var(--shadow-glow);
}
@media (min-width: 921px) {
  .tier--featured { margin-block: -14px; padding-block: 46px; }
}

.tier__flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #A9CBFF, #6C9EF5);
  color: #05122B; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em;
}
.tier__name { margin-bottom: 6px; }
.tier__title { font-size: 1.35rem; margin-bottom: 20px; }
.tier__pitch {
  font-size: 0.9rem; color: var(--text-dim); font-weight: 500;
  padding-top: 20px; border-top: 1px solid var(--border); margin-bottom: 22px;
}
.tier__feats { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.tier__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--text-dim); }
.tier__feats svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.tier__meta { margin-top: auto; padding-top: 18px; }
.tier__model { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.tier__for   { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 20px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 500; font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1;
  transition: transform 0.3s var(--ease); flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.94rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(74,131,240,0.26), transparent 60%),
    var(--bg-panel);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 32px; }

/* 12 ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 64px 36px;
  background: var(--bg-elev);
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer__grid h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; font-weight: 500; }
.footer__grid li { margin-bottom: 11px; }
.footer__grid a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s; }
.footer__grid a:hover { color: #fff; }
.footer__about p { font-size: 0.9rem; color: var(--text-muted); max-width: 340px; margin-top: 16px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  align-items: center; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted);
}

/* 13 ── Motion ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

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

/* 14 ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .split--aside { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; inset: 74px 0 auto; transform: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #03050A;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,0.95);
    padding: 4px 24px 18px;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.4s var(--ease), visibility 0.4s;
  }
  .nav__links.is-open { max-height: 340px; visibility: visible; }
  /* Anchors must be block-level or vertical padding won't create tap targets. */
  .nav__links li { border-bottom: 1px solid var(--border); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__links a { display: block; padding: 16px 0; font-size: 1.02rem; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }

  .problem { grid-template-columns: 1fr; }
  .stack { min-height: 400px; transform: scale(0.88); transform-origin: top center; }
  .split { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; }
  .compare { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { min-height: 78vh; }

  /* The 3-D cascade doesn't survive a 390px viewport — fall back to a plain,
     fully readable grid of the same items. */
  .stack {
    min-height: 0; perspective: none; transform: none;
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px;
    margin-top: 34px;
  }
  .stack__card {
    position: static; width: auto; transform: none;
    padding: 13px 14px; font-size: 0.78rem; line-height: 1.3;
    border-radius: 12px;
  }
  .stack__card:hover { transform: none; }
  .btn-row .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .modules { grid-template-columns: 1fr; }
}
