/* ─────────────────────────────────────────────────────────────────────
   Aecendion — aurora
   Warm cream ground · deep indigo ink · cobalt signal
   Sky / sun / mint aurora gradients with film grain.
   PolySans (self-hosted, /fonts/) · Schibsted Grotesk fallback ·
   Geist Mono for labels & data.
   ───────────────────────────────────────────────────────────────────── */

/* PolySans — drop licensed .woff2 files into /fonts/ to activate.
   Until then the stack falls back to Schibsted Grotesk (Google Fonts). */
@font-face {
  font-family: 'PolySans';
  src: url('/fonts/PolySans-Neutral.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PolySans';
  src: url('/fonts/PolySans-Median.woff2') format('woff2');
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PolySans';
  src: url('/fonts/PolySans-Bulky.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'PolySans';
  src: url('/fonts/PolySans-NeutralItalic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* surfaces (light) */
  --ink-0:        #FBF5EE;          /* page ground — warm cream        */
  --ink-1:        #F4EEE6;          /* raised sections                 */
  --ink-2:        #FFFFFF;          /* cards                           */
  --ink-3:        #ECE6F2;          /* deep fills (meters, dots)       */
  /* type */
  --ivory:        #23294F;          /* primary text — deep indigo ink  */
  --ivory-dim:    #4E5478;
  --muted:        #8B90A9;
  /* signal */
  --brass:        #4A5AE8;          /* cobalt — primary accent         */
  --brass-bright: #2F3BD4;          /* deep cobalt — hovers, em text   */
  --brass-dim:    rgba(74, 90, 232, 0.10);
  --slate:        #86A8E8;          /* quiet graph edges               */
  --sky:          #5EA9F4;
  --sun:          #F0D26E;
  --mint:         #5FE0BE;
  --good:         #17936E;
  --warn:         #D9713F;
  --line:         rgba(35, 41, 79, 0.10);
  --line-strong:  rgba(35, 41, 79, 0.20);
  --shadow-soft:  0 14px 40px rgba(48, 58, 140, 0.10);
  --shadow-deep:  0 24px 60px rgba(48, 58, 140, 0.14);
  --sans:  'PolySans', 'Schibsted Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --serif: 'PolySans', 'Schibsted Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --mono:  'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --w: 1120px;
  /* film grain, tiling */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.55'/></svg>");
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink-0);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brass); color: #FFFFFF; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ─────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.022em; }

.display {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1.04;
  font-weight: 600;
}
.h2 {
  font-size: clamp(1.85rem, 3.7vw, 2.8rem);
  line-height: 1.1;
  max-width: 21em;
}
.h3 { font-size: 1.32rem; line-height: 1.3; font-weight: 600; }

.display em, .h2 em, .h3 em, .lede em {
  font-style: italic;
  font-weight: 600;
  color: var(--brass-bright);
}

.lede {
  color: var(--ivory-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  max-width: 40em;
}

.body-dim { color: var(--ivory-dim); }
.small { font-size: 0.9rem; }

strong { font-weight: 600; color: var(--ivory); }

/* Mono eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--brass); opacity: 0.6; }

/* Loop tracker — the signature eyebrow for core product sections. */
.loop-tracker {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 30px;
}
.loop-tracker span { display: inline-flex; align-items: center; gap: 10px; }
.loop-tracker span + span::before { content: '→'; color: var(--muted); opacity: 0.55; }
.loop-tracker .on { color: var(--brass-bright); }
.loop-tracker .on::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass); margin-left: 2px;
  box-shadow: 0 0 8px rgba(74, 90, 232, 0.7);
}

/* Pull-quote statement lines */
.statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.4;
  color: var(--ivory);
  border-left: 2px solid var(--brass);
  padding-left: 28px;
  max-width: 34em;
}
.statement strong { font-style: normal; font-weight: 650; color: var(--brass-bright); }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 99px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--brass); color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(74, 90, 232, 0.32);
}
.btn-primary:hover { background: var(--brass-bright); }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--ivory); background: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

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

/* ── Nav ────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 245, 238, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; gap: 36px;
}
.logo {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ivory);
}
.logo b { color: var(--brass); font-weight: 700; }

.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--ivory-dim);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brass-bright); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 9px 18px; font-size: 0.88rem; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ivory); transition: transform 0.25s, opacity 0.25s; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  padding: 18px 24px 26px;
  flex-direction: column; gap: 4px;
}
.nav-mobile a { padding: 11px 0; font-size: 1.02rem; color: var(--ivory-dim); border-bottom: 1px solid var(--line); }
.nav-mobile a:hover { color: var(--ivory); }
.nav-mobile .btn { margin-top: 16px; justify-content: center; border-bottom: 0; color: #FFFFFF; }
.nav-mobile .btn-ghost { color: var(--ivory); }

.nav.open .nav-mobile { display: flex; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
}

/* ── Sections ───────────────────────────────────────────────────────── */

.section { padding: clamp(84px, 11vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-raise { background: var(--ink-1); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lede { margin-top: 20px; }

/* ── Hero — the aurora ─────────────────────────────────────────────── */

.hero {
  padding: clamp(140px, 18vh, 190px) 0 clamp(70px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}
/* aurora wash */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 58% at 15% 12%, rgba(94, 169, 244, 0.50), transparent 70%),
    radial-gradient(36% 48% at 60% 6%,  rgba(240, 210, 110, 0.42), transparent 70%),
    radial-gradient(44% 60% at 96% 42%, rgba(74, 90, 232, 0.34), transparent 72%),
    radial-gradient(38% 44% at 42% 96%, rgba(95, 224, 190, 0.36), transparent 70%),
    radial-gradient(30% 42% at 2% 62%,  rgba(122, 110, 170, 0.18), transparent 70%);
  mask-image: linear-gradient(black 62%, transparent 98%);
  -webkit-mask-image: linear-gradient(black 62%, transparent 98%);
}
/* film grain over the wash */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(black 62%, transparent 98%);
  -webkit-mask-image: linear-gradient(black 62%, transparent 98%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-copy .display { margin: 22px 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 26px; }
.hero-micro {
  font-size: 0.88rem; color: var(--ivory-dim); max-width: 30em; line-height: 1.6;
}

/* legacy constellation backdrop — retired in the aurora theme */
.constellation { display: none; }

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

/* ── Compile chain (hero visual) ───────────────────────────────────── */

.chain { position: relative; display: flex; flex-direction: column; align-items: stretch; }

.chain-goal {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ivory);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-deep);
}
.chain-goal .prompt-mark { color: var(--brass-bright); flex: none; }
.chain-goal .caret {
  display: inline-block; width: 7px; height: 15px; background: var(--brass);
  margin-left: 2px; animation: caret-blink 1.1s step-end infinite; flex: none;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.chain-link {
  width: 1px; height: 30px; margin: 0 auto;
  background: linear-gradient(var(--line-strong), var(--line-strong));
  position: relative;
}
.chain-link::after {
  content: ''; position: absolute; left: 50%; top: 0;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--brass);
  animation: pulse-down 2.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0;
}
@keyframes pulse-down {
  0%   { top: -4px; opacity: 0; }
  12%  { opacity: 1; }
  46%  { top: calc(100% - 2px); opacity: 1; }
  58%, 100% { top: calc(100% - 2px); opacity: 0; }
}

.chain-stage {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 13px 18px;
  display: flex; align-items: baseline; gap: 14px;
  box-shadow: 0 8px 24px rgba(48, 58, 140, 0.07);
  transition: border-color 0.5s, background 0.5s, box-shadow 0.5s;
}
.chain-stage.lit {
  border-color: rgba(74, 90, 232, 0.45);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}
.chain-stage .k {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-bright); flex: none; width: 88px;
}
.chain-stage .v { font-size: 0.92rem; color: var(--ivory-dim); line-height: 1.45; }
.chain-stage.lit .v { color: var(--ivory); }

/* agents row inside the chain */
.chain-agents { display: flex; gap: 8px; flex-wrap: wrap; }
.chain-agents i {
  font-style: normal; font-family: var(--mono); font-size: 0.68rem;
  padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 99px;
  color: var(--ivory-dim); background: rgba(255,255,255,0.6);
}

.chain-return {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ivory-dim);
  display: flex; align-items: center; gap: 10px;
  margin: 18px auto 0;
}
.chain-return::before { content: '↺'; color: var(--brass-bright); font-size: 0.95rem; }

/* ── Fragment wall (problem section) ───────────────────────────────── */

.fragments { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 40px; max-width: 660px; }
.fragments span {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ivory-dim);
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px;
  background: var(--ink-2);
  box-shadow: 0 4px 14px rgba(48, 58, 140, 0.06);
  transform: rotate(var(--tilt, 0deg));
}

.consequences { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 44px 0; }
.consequences div { background: var(--ink-0); padding: 20px 22px; font-size: 0.94rem; color: var(--ivory-dim); }
.consequences div::before { content: '—'; display: block; color: var(--warn); margin-bottom: 6px; }
.consequences::after { content: ''; background: var(--ink-0); } /* fills the leftover grid slot */

/* ── Comparison (category section) ─────────────────────────────────── */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 48px 0; }
.compare-col { border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--ink-2); }
.compare-col.is-aec {
  border-color: rgba(74, 90, 232, 0.35);
  background: linear-gradient(180deg, rgba(74, 90, 232, 0.06), rgba(95, 224, 190, 0.05) 90%), var(--ink-2);
  box-shadow: var(--shadow-soft);
}
.compare-col h3 { margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.compare-col.is-aec h3 { color: var(--brass-bright); }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.compare-col li { padding-left: 26px; position: relative; color: var(--ivory-dim); font-size: 0.97rem; }
.compare-col li::before { content: '·'; position: absolute; left: 6px; color: var(--muted); }
.compare-col.is-aec li { color: var(--ivory); }
.compare-col.is-aec li::before { content: '→'; left: 0; color: var(--brass); font-size: 0.8rem; top: 2px; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* ── Graph triptych ────────────────────────────────────────────────── */

.graph-figure { margin: 52px 0 40px; }
.graph-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.graph-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: var(--ink-2); position: relative;
  box-shadow: 0 6px 20px rgba(48, 58, 140, 0.05);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.graph-card:hover { border-color: rgba(74, 90, 232, 0.4); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.graph-card .glyph { margin-bottom: 18px; }
.graph-card h3 { margin-bottom: 10px; }
.graph-card p { font-size: 0.95rem; color: var(--ivory-dim); }
.graph-card .gsub { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 8px; }

.graph-engine {
  margin: 26px auto 0; max-width: 520px; text-align: center;
  border: 1px solid rgba(74, 90, 232, 0.35); border-radius: 16px;
  background: linear-gradient(180deg, rgba(74, 90, 232, 0.07), rgba(94, 169, 244, 0.06)), var(--ink-2);
  padding: 22px 28px;
  box-shadow: var(--shadow-soft);
}
.graph-engine .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-bright); display: block; margin-bottom: 6px; }
.graph-engine p { font-size: 0.92rem; color: var(--ivory-dim); }
.graph-joins { display: flex; justify-content: center; gap: 120px; height: 30px; }
.graph-joins i { width: 1px; background: var(--line-strong); display: block; }
@media (max-width: 860px) {
  .graph-layers { grid-template-columns: 1fr; }
  .graph-joins { gap: 0; justify-content: center; }
  .graph-joins i:not(:first-child) { display: none; }
}

/* ── Twin profile (customer digital twin) ──────────────────────────── */

.twin-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 920px) { .twin-grid { grid-template-columns: 1fr; } }

.twin-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow-deep);
  font-size: 0.88rem;
}
.twin-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.twin-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, rgba(94,169,244,0.25), rgba(74,90,232,0.2));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; color: var(--brass-bright); font-size: 1rem;
}
.twin-head .name { font-weight: 600; color: var(--ivory); }
.twin-head .sub { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.twin-badge {
  margin-left: auto; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--good);
  border: 1px solid rgba(23, 147, 110, 0.35); border-radius: 99px; padding: 4px 11px;
  background: rgba(95, 224, 190, 0.12);
}
.twin-rows { padding: 8px 0; }
.twin-row { display: flex; gap: 16px; padding: 10px 24px; align-items: baseline; }
.twin-row + .twin-row { border-top: 1px solid var(--line); }
.twin-row .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); width: 148px; flex: none; }
.twin-row .v { color: var(--ivory-dim); }
.twin-row .v b { color: var(--ivory); font-weight: 600; }
.twin-row .pos { color: var(--good); }
.twin-row .neg { color: var(--warn); }

.twin-meter { display: inline-flex; align-items: center; gap: 10px; }
.twin-meter .bar { width: 90px; height: 4px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.twin-meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--brass)); border-radius: 2px; }

.twin-next {
  margin: 14px 20px 20px; padding: 16px 18px;
  background: var(--brass-dim); border: 1px solid rgba(74, 90, 232, 0.3); border-radius: 12px;
}
.twin-next .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-bright); display: block; margin-bottom: 6px; }
.twin-next p { color: var(--ivory); font-size: 0.9rem; line-height: 1.55; }
.twin-next .conf { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); margin-top: 8px; display: block; }

/* ── Goal → response sequence ──────────────────────────────────────── */

.goal-input {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 26px; font-family: var(--mono); font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--ivory); display: flex; gap: 14px; align-items: baseline;
  max-width: 640px; margin: 44px 0;
  box-shadow: var(--shadow-soft);
}
.goal-input .prompt-mark { color: var(--brass-bright); }

.seq { list-style: none; counter-reset: seq; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; max-width: 860px; }
.seq li {
  counter-increment: seq;
  display: flex; gap: 18px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ivory-dim); font-size: 0.98rem;
}
.seq li::before {
  content: counter(seq, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.7rem; color: var(--brass-bright); flex: none;
}
@media (max-width: 720px) { .seq { grid-template-columns: 1fr; } }

/* ── Strategy cascade ──────────────────────────────────────────────── */

.cascade { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 48px 0; }
.cascade-tier { border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; background: var(--ink-2); box-shadow: 0 6px 20px rgba(48, 58, 140, 0.05); }
.cascade-tier .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-bright); display: block; margin-bottom: 10px; }
.cascade-tier p { color: var(--ivory); font-size: 1.02rem; }
.cascade-tier ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 4px; }
.cascade-tier li { color: var(--ivory-dim); font-size: 0.94rem; padding-left: 20px; position: relative; }
.cascade-tier li::before { content: '→'; position: absolute; left: 0; color: var(--brass); font-size: 0.75rem; top: 3px; }
.cascade-join { width: 1px; height: 26px; background: var(--line-strong); margin-left: 44px; }
@media (max-width: 640px) { .cascade-tier ul { grid-template-columns: 1fr; } }

/* ── Prompt cards (natural-language customization) ─────────────────── */

.prompts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 46px 0 38px; }
.prompt-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  background: var(--ink-2); display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 6px 20px rgba(48, 58, 140, 0.05);
}
.prompt-card .who { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.prompt-card p { font-family: var(--mono); font-size: 0.8rem; line-height: 1.65; color: var(--ivory-dim); }
.prompt-card p::before { content: '“'; color: var(--brass-bright); }
.prompt-card p::after { content: '”'; color: var(--brass-bright); }
@media (max-width: 860px) { .prompts { grid-template-columns: 1fr; } }

.gen-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.gen-list span {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ivory-dim);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px;
  background: var(--ink-2);
}
.gen-list span::before { content: '＋ '; color: var(--brass-bright); }

/* ── Integrations / actions ────────────────────────────────────────── */

.exec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: 46px; }
@media (max-width: 820px) { .exec-grid { grid-template-columns: 1fr; } }
.exec-col h3 { margin-bottom: 20px; font-size: 1.1rem; color: var(--ivory); font-family: var(--sans); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span {
  font-size: 0.84rem; color: var(--ivory-dim);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 15px; background: var(--ink-2);
  box-shadow: 0 3px 10px rgba(48, 58, 140, 0.05);
}
.action-list { list-style: none; display: flex; flex-direction: column; }
.action-list li {
  padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line);
  color: var(--ivory-dim); font-size: 0.95rem; position: relative;
}
.action-list li::before { content: '▸'; position: absolute; left: 2px; color: var(--brass); font-size: 0.7rem; top: 15px; }

/* ── Learning loop ─────────────────────────────────────────────────── */

.loop-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px; margin: 50px 0;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.loop-band .node {
  border: 1px solid var(--line-strong); border-radius: 99px; padding: 10px 20px;
  color: var(--ivory); background: var(--ink-2);
  box-shadow: 0 4px 14px rgba(48, 58, 140, 0.06);
}
.loop-band .sep { color: var(--brass); }
.loop-band .node.improve { border-color: rgba(74, 90, 232, 0.5); color: var(--brass-bright); background: var(--brass-dim); }

.learn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: 20px; }
@media (max-width: 820px) { .learn-cols { grid-template-columns: 1fr; } }

.evidence-note {
  margin-top: 48px; border: 1px solid var(--line); border-left: 2px solid var(--brass);
  border-radius: 0 14px 14px 0; padding: 26px 30px; background: var(--ink-2); max-width: 760px;
  box-shadow: 0 6px 20px rgba(48, 58, 140, 0.05);
}
.evidence-note .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-bright); display: block; margin-bottom: 10px; }
.evidence-note p { color: var(--ivory-dim); font-size: 0.97rem; }
.evidence-note .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.evidence-note .tags span { font-family: var(--mono); font-size: 0.68rem; border: 1px solid var(--line-strong); border-radius: 99px; padding: 4px 11px; color: var(--ivory-dim); }

/* ── Card grids (use cases / industries) ───────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: var(--ink-2);
  box-shadow: 0 6px 20px rgba(48, 58, 140, 0.05);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { border-color: rgba(74, 90, 232, 0.4); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; }
.card p { font-size: 0.93rem; color: var(--ivory-dim); }
.card .kicker { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.card .objects { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); line-height: 1.8; margin-top: auto; padding-top: 8px; }

/* ── Checklist (governance / security) ─────────────────────────────── */

.checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 32px; list-style: none; margin: 44px 0; }
@media (max-width: 860px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }
.checklist li {
  padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line);
  color: var(--ivory-dim); font-size: 0.95rem; position: relative;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 2px; top: 12px;
  color: var(--brass-bright); font-size: 0.85rem;
}
.checklist .status {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 2px 9px; margin-left: 9px; white-space: nowrap;
}

/* ── Steps (how it works) ──────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--line-strong); padding-top: 22px; position: relative; }
.step .num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--brass-bright); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: 0.93rem; color: var(--ivory-dim); }

/* ── Interface tabs ────────────────────────────────────────────────── */

.tabs { margin-top: 44px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.tab-btn {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-strong);
  color: var(--ivory-dim); background: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tab-btn:hover { color: var(--brass-bright); }
.tab-btn[aria-selected="true"] { color: #FFFFFF; background: var(--brass); border-color: var(--brass); }
.tab-panel { padding-top: 34px; display: none; }
.tab-panel.active { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 60px); align-items: start; }
@media (max-width: 860px) { .tab-panel.active { grid-template-columns: 1fr; } }
.tab-panel h3 { margin-bottom: 12px; }
.tab-panel .panel-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; }
.tab-panel .panel-list li { padding: 9px 0 9px 24px; border-bottom: 1px solid var(--line); color: var(--ivory-dim); font-size: 0.93rem; position: relative; }
.tab-panel .panel-list li::before { content: '·'; position: absolute; left: 6px; color: var(--brass); }

/* mock window for tab panels */
.mock {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-deep); font-size: 0.84rem;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mock-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 11px 14px; background: var(--ink-0); border: 1px solid var(--line); border-radius: 10px;
}
.mock-row .l { color: var(--ivory); font-size: 0.86rem; }
.mock-row .r { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.mock-row .r.hot { color: var(--brass-bright); }
.mock-row .r.ok { color: var(--good); }

/* ── Early access band ─────────────────────────────────────────────── */

.access-band {
  position: relative; overflow: hidden;
  border: 1px solid rgba(74, 90, 232, 0.25); border-radius: 24px;
  background: var(--ink-2);
  padding: clamp(40px, 6vw, 72px);
  box-shadow: var(--shadow-soft);
}
.access-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 70% at 8% 0%,   rgba(94, 169, 244, 0.30), transparent 70%),
    radial-gradient(40% 60% at 82% 8%,  rgba(240, 210, 110, 0.28), transparent 70%),
    radial-gradient(45% 65% at 100% 90%, rgba(74, 90, 232, 0.20), transparent 72%),
    radial-gradient(40% 55% at 30% 100%, rgba(95, 224, 190, 0.24), transparent 70%);
}
.access-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: 0.14; mix-blend-mode: multiply;
}
.access-band > * { position: relative; z-index: 1; }

.placeholder-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 44px; }
@media (max-width: 860px) { .placeholder-row { grid-template-columns: repeat(2, 1fr); } }
.placeholder-row div {
  border: 1px dashed var(--line-strong); border-radius: 12px; padding: 18px 14px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-align: center; background: rgba(255,255,255,0.55);
}

/* ── Final CTA ─────────────────────────────────────────────────────── */

.final-cta { text-align: center; padding: clamp(100px, 14vw, 170px) 0; overflow: hidden; }
.final-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 60% at 10% 100%, rgba(94, 169, 244, 0.22), transparent 70%),
    radial-gradient(40% 55% at 55% 115%, rgba(95, 224, 190, 0.20), transparent 70%),
    radial-gradient(44% 62% at 95% 100%, rgba(74, 90, 232, 0.18), transparent 72%);
}
.final-cta .wrap { position: relative; z-index: 1; }
.final-cta .h2 { margin: 0 auto; }
.final-cta .lede { margin: 24px auto 40px; }
.final-cta .hero-ctas { justify-content: center; margin: 0 0 60px; }
.final-sig {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--ivory-dim);
}
.final-sig b { color: var(--brass-bright); font-weight: 650; }

/* ── Forms (early access page) ─────────────────────────────────────── */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 44px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory-dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ivory);
  background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 13px 16px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(74, 90, 232, 0.15);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 18px; max-width: 40em; }

/* ── Footer ────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 64px 0 48px; background: var(--ink-1); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-brand { max-width: 300px; }
.footer-brand .logo { font-size: 1.5rem; }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.footer-col h4 { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--ivory-dim); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--brass-bright); }
.footer-base {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}
.footer-base a { color: var(--muted); }
.footer-base a:hover { color: var(--ivory-dim); }

/* ── Reveal on scroll ──────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ── Accessibility & motion ────────────────────────────────────────── */

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

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--brass); color: #FFFFFF; padding: 10px 18px; border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

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