/* =========================================================================
   Conjure — "Conjured live"
   Warm-paper canvas, neutral chrome, ONE emerald accent that lives only
   inside the product frames. Light default + first-class dark peer.
   ========================================================================= */

:root {
  color-scheme: light;
  --bg: oklch(0.985 0.004 95);
  --surface: oklch(1 0 0);
  --sunken: oklch(0.972 0.004 95);
  --ink: oklch(0.21 0.008 75);
  --muted: oklch(0.53 0.007 75);
  --faint: oklch(0.68 0.006 75);
  --border: oklch(0.915 0.004 90);
  --border-strong: oklch(0.86 0.004 90);

  /* the one accent — only used inside .frame / brand spark */
  --green: oklch(0.75 0.18 160);
  --green-ink: oklch(0.55 0.15 160);
  --mint: oklch(0.92 0.06 160);
  --green-wash: oklch(0.75 0.18 160 / 0.10);
  --focus: oklch(0.75 0.18 160 / 0.35);
  --signal: oklch(0.72 0.13 60);
  --signal-soft: oklch(0.72 0.13 60 / 0.12);

  --cta: oklch(0.21 0.008 75);
  --cta-text: oklch(0.99 0 0);
  --shadow: 0 1px 2px oklch(0.21 0.008 75 / 0.04), 0 10px 30px -12px oklch(0.21 0.008 75 / 0.09);
  --shadow-frame: 0 1px 2px oklch(0.21 0.008 75 / 0.05), 0 24px 60px -30px oklch(0.21 0.008 75 / 0.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1080px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.175 0.008 250);
  --surface: oklch(0.215 0.009 250);
  --sunken: oklch(0.195 0.008 250);
  --ink: oklch(0.95 0.004 95);
  --muted: oklch(0.66 0.008 230);
  --faint: oklch(0.50 0.008 250);
  --border: oklch(0.29 0.01 250);
  --border-strong: oklch(0.36 0.011 250);

  --green: oklch(0.78 0.17 160);
  --green-ink: oklch(0.82 0.16 160);
  --mint: oklch(0.86 0.10 160);
  --green-wash: oklch(0.78 0.17 160 / 0.14);
  --focus: oklch(0.78 0.17 160 / 0.40);
  --signal: oklch(0.76 0.12 70);
  --signal-soft: oklch(0.76 0.12 70 / 0.14);

  --cta: oklch(0.95 0.004 95);
  --cta-text: oklch(0.18 0.008 250);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 10px 30px -12px oklch(0 0 0 / 0.4);
  --shadow-frame: 0 1px 2px oklch(0 0 0 / 0.3), 0 26px 64px -30px oklch(0 0 0 / 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.22s ease, color 0.22s ease;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.022em; margin: 0; }
code, pre, kbd { font-family: var(--mono); }
::selection { background: var(--green-wash); }

/* mono eyebrow — the ONLY uppercase on the page */
.kicker {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  margin: 0 0 18px;
}

/* the brand spark — the single tiny green sparkle outside frames */
.brand__spark { width: 18px; height: 18px; color: var(--green-ink); }
.brand__spark use, .brand__spark path { fill: currentColor; }

/* ───────────────────────── nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 32px);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; opacity: 0;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.nav.is-stuck::before { opacity: 1; border-bottom-color: var(--border); }

.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand__spark { animation: spark-rest 6s ease-in-out infinite; }
@keyframes spark-rest { 0%, 92%, 100% { transform: rotate(0) scale(1); } 96% { transform: rotate(12deg) scale(1.12); } }

.nav__tagline { margin-left: 12px; font-size: 13.5px; color: var(--muted); letter-spacing: -0.005em; }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__gh {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted);
  padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
}
.nav__gh:hover { border-color: var(--border-strong); color: var(--ink); }

.theme-toggle, .nav__menu {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.theme-toggle:hover, .nav__menu:hover { border-color: var(--border-strong); color: var(--ink); }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

.nav__menu { display: none; flex-direction: column; gap: 4px; }
.nav__menu span { width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; }

/* ───────────────────────── buttons / copy chip ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 500; cursor: pointer;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
  transition: transform 0.12s var(--ease-out), opacity 0.15s, background 0.15s;
}
.btn--cta { background: var(--cta); color: var(--cta-text); }
.btn--cta:hover { opacity: 0.9; }
.btn--cta:active { transform: scale(0.985); }
.btn--block { width: 100%; }

.copy {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--mono); font-size: 13.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 11px 14px; border-radius: 11px;
  transition: border-color 0.15s, color 0.15s;
}
.copy:hover { border-color: var(--border-strong); color: var(--ink); }
.copy__prompt { color: var(--faint); }
.copy__ico { opacity: 0.55; }
.copy.copied { border-color: var(--green); color: var(--green-ink); }
.copy.copied .copy__prompt { color: var(--green-ink); }
.copy--lg { width: 100%; justify-content: flex-start; padding: 14px 16px; font-size: 14px; }
.copy--agent .copy__text { color: var(--ink); }
.copy__spark { width: 14px; height: 14px; color: var(--green); flex: none; }
.copy__spark use, .copy__spark path { fill: currentColor; }

/* "Integrate now" card — the agent-prompt install */
.integrate { display: flex; flex-direction: column; gap: 13px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.integrate__tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green-ink); }
.integrate__tag svg { width: 13px; height: 13px; color: var(--green); }
.integrate__tag svg use, .integrate__tag svg path { fill: currentColor; }
.integrate__prompt { font-family: var(--mono); font-size: 12.5px; line-height: 1.62; color: var(--ink); background: var(--sunken); border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px; }
.integrate__prompt .u { color: var(--green-ink); }
.integrate__copy { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border: 0; border-radius: 10px; cursor: pointer; background: var(--cta); color: var(--cta-text); font-family: var(--font); font-size: 14px; font-weight: 500; transition: opacity 0.15s, transform 0.12s var(--ease-out); }
.integrate__copy:hover { opacity: 0.92; }
.integrate__copy:active { transform: scale(0.99); }
.integrate__copy-label { display: inline-flex; align-items: center; gap: 8px; transition: opacity 0.15s; }
.integrate__copy svg { width: 14px; height: 14px; opacity: 0.85; }
.integrate__agent { font-weight: 600; display: inline-block; transition: opacity 0.22s ease; }
.integrate__copy.copied .integrate__copy-label { opacity: 0; }
.integrate__copy.copied::after { content: "✓ Copied!"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.integrate--hero { width: 100%; max-width: 440px; box-shadow: none; }

/* layer-on-top section */
.layer-wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.layer-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.layer-tags li { font-size: 13px; color: var(--muted); padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); }
.layer-dash { gap: 14px; }
.dash-cards { display: flex; gap: 10px; }
.dcard { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; color: var(--faint); }
.dcard b { font-family: var(--display); font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 86px; }
.dash-bars i { flex: 1; border-radius: 5px 5px 0 0; background: color-mix(in oklch, var(--border-strong) 78%, transparent); height: var(--h); }
.operate--layer { position: relative; border-top-color: color-mix(in oklch, var(--green) 30%, var(--border)); box-shadow: inset 0 1px 0 color-mix(in oklch, var(--green) 22%, transparent); }
.operate__intent--static { color: var(--muted); white-space: nowrap; overflow: hidden; }
.layer-badge { position: absolute; top: -11px; right: 13px; display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; color: var(--green-ink); background: var(--surface); border: 1px solid color-mix(in oklch, var(--green) 45%, transparent); padding: 3px 9px; border-radius: 999px; }
.layer-badge svg { width: 10px; height: 10px; color: var(--green); }
.layer-badge svg use, .layer-badge svg path { fill: currentColor; }
.layer-caption { font-size: 13px; color: var(--faint); margin: 16px 0 0; text-align: center; }
.layer-caption__g { color: var(--green-ink); }

/* ───────────────────────── hero ───────────────────────── */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) clamp(18px, 4vw, 32px) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__title { font-size: clamp(2.2rem, 5.2vw, 3.5rem); margin-bottom: 20px; }
.hero__title .say { color: var(--ink); position: relative; white-space: nowrap; }
.hero__title .say::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.5em;
  background: var(--green-wash); border-radius: 4px; z-index: -1;
  transform: scaleX(0); transform-origin: left; animation: underline-in 0.7s 0.5s var(--ease-out) forwards;
}
@keyframes underline-in { to { transform: scaleX(1); } }
.hero__sub { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 40ch; margin: 0 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ───────────────────────── the working frame ───────────────────────── */
.frame {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-frame);
  display: flex; flex-direction: column;
}
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.frame > * { position: relative; z-index: 1; }
.frame__bar { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-bottom: 1px solid var(--border); }
.frame__dots { display: inline-flex; gap: 6px; }
.frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.frame__title { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.frame__tab { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--muted); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); }

.frame__view { position: relative; padding: 14px; display: flex; flex-direction: column; gap: 9px; min-height: 210px; }

.vrow { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--border); }
.vrow__a { width: 32%; height: 8px; border-radius: 5px; background: var(--border-strong); }
.vrow__b { width: 46%; height: 8px; border-radius: 5px; background: var(--border); }
.vrow__tag { margin-left: auto; font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.vrow__tag.is-on { color: var(--green-ink); background: var(--green-wash); }
.vrow__tag.is-signal { color: var(--signal); background: var(--signal-soft); }

/* conjured result card */
.result, .result-card {
  border-radius: 11px; padding: 13px 14px; background: var(--surface);
  border: 1px solid var(--border); border-left: 2px solid var(--green);
  box-shadow: var(--shadow);
}
.result {
  display: none;
  overflow: hidden;
}
.result.is-live { display: block; }
.result__line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.result__spark { width: 14px; height: 14px; color: var(--green); }
.result__op { font-family: var(--mono); font-size: 12.5px; color: var(--green-ink); }
.result__effect { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.result__say { font-size: 14px; margin: 0 0 11px; color: var(--ink); }
.result__say b { color: var(--green-ink); font-weight: 600; }
.result__act { display: flex; gap: 8px; }
.result__go { font-size: 12.5px; font-weight: 500; color: var(--cta-text); background: var(--cta); padding: 6px 12px; border-radius: 8px; }
.result__alt { font-size: 12.5px; color: var(--muted); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); }

/* the conjure burst — height spring + rows stagger + mint wash */
.result.conjuring {
  display: block;
  animation: card-open 0.5s var(--ease-spring) both;
}
@keyframes card-open {
  0% { max-height: 0; opacity: 0; transform: translateY(6px); }
  100% { max-height: 240px; opacity: 1; transform: translateY(0); }
}
.result.conjuring > * { animation: row-up 0.4s var(--ease-out) both; }
.result.conjuring .result__line { animation-delay: 0.08s; }
.result.conjuring .result__say { animation-delay: 0.14s; }
.result.conjuring .result__act { animation-delay: 0.2s; }
@keyframes row-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.result.conjuring::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 11px;
  background: linear-gradient(100deg, transparent, var(--green-wash) 40%, var(--mint) 50%, var(--green-wash) 60%, transparent);
  background-size: 220% 100%;
  animation: wash 0.6s ease-out 0.05s 1 both;
}
@keyframes wash { from { background-position: 130% 0; opacity: 1; } to { background-position: -130% 0; opacity: 0; } }
.result.wash::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 11px;
  background: linear-gradient(100deg, transparent, var(--green-wash) 40%, var(--mint) 50%, var(--green-wash) 60%, transparent);
  background-size: 220% 100%; animation: wash 0.6s ease-out 1 both;
}

/* HERO result: a still, in-place overlay — fades in, NEVER reflows the frame */
#heroResult {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: block;
  max-height: none; animation: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.45s var(--ease-spring), visibility 0.4s;
}
#heroResult.is-live { opacity: 1; visibility: visible; transform: translateY(0); }

/* operate bar */
.operate { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-top: 1px solid var(--border); background: linear-gradient(0deg, var(--green-wash), transparent 80%); }
.operate__spark { width: 17px; height: 17px; color: var(--green); flex: none; transition: transform 0.2s var(--ease-spring); }
.operate__spark.burst { animation: spark-burst 0.45s var(--ease-spring); }
@keyframes spark-burst { 0% { transform: scale(1); } 45% { transform: scale(1.28) rotate(14deg); } 100% { transform: scale(1) rotate(0); } }
.operate__intent { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink); display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.operate__input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink); background: transparent; border: 0; outline: none; padding: 0; }
.operate__input::placeholder { color: var(--faint); }
.operate__kbd { font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; flex: none; transition: transform 0.12s var(--ease-out); }
.operate__kbd.press { transform: translateY(1px) scale(0.94); }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--green); margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* spark particles (created by JS) */
.particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--green); pointer-events: none; z-index: 5; }
@keyframes particle-fly { from { opacity: 1; transform: translate(0,0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); } }

/* ───────────────────────── renders-to strip ───────────────────────── */
.renders {
  max-width: var(--max); margin: 0 auto; padding: 22px clamp(18px, 4vw, 32px);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.renders__label, .renders__sep { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.renders__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.renders__list li { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 5px 11px; border-radius: 8px; border: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.renders__list li.is-active { color: var(--green-ink); border-color: var(--green); }

/* ───────────────────────── sections ───────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 32px); }
.head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 52px); text-align: center; }
.head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.head__sub { font-size: 16px; color: var(--muted); margin: 14px 0 0; }

/* concept / split */
.split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.scard { padding: 28px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s var(--ease-out); }
.scard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.scard h3 { font-size: 20px; margin-bottom: 8px; }
.scard__sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.mini { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.mini li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink); }
.mini li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.split__spark { display: grid; place-items: center; }
.split__spark svg { width: 18px; height: 18px; color: var(--green-ink); }
.split__spark svg use, .split__spark svg path { fill: currentColor; }

/* concept figures — small living diagrams inside each card */
.fig { position: relative; height: 120px; border-radius: 11px; background: var(--sunken); border: 1px solid var(--border); overflow: hidden; padding: 15px; margin-bottom: 20px; }

/* View — a focus ring glides over rows: guided exploration */
.fig__list { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.fr { height: 15px; border-radius: 6px; background: color-mix(in oklch, var(--border-strong) 55%, transparent); }
.fr:nth-child(1) { width: 84%; } .fr:nth-child(2) { width: 62%; } .fr:nth-child(3) { width: 76%; } .fr:nth-child(4) { width: 56%; }
.fig__ring { position: absolute; left: 12px; right: 12px; height: 15px; border-radius: 6px; border: 1.5px solid var(--green); background: var(--green-wash); top: 15px; z-index: 2; animation: explore 5s var(--ease-out) infinite; }
@keyframes explore {
  0%, 13% { top: 15px; }
  25%, 38% { top: 38px; }
  50%, 63% { top: 61px; }
  75%, 88% { top: 84px; }
  100% { top: 15px; }
}

/* Operate — plain words materialize into controls: bends to intent */
.fig--op { display: flex; flex-direction: column; gap: 13px; justify-content: center; }
.fig__quote { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.fig__built { display: flex; gap: 8px; flex-wrap: wrap; }
.b-field {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(7px); animation: materialize 5s var(--ease-out) infinite;
}
.b-field--money { border-left: 2px solid var(--green); }
.b-field--toggle { width: 40px; padding: 6px; background: var(--green-wash); border-color: transparent; }
.b-field--toggle i { width: 16px; height: 16px; border-radius: 50%; background: var(--green); margin-left: auto; }
.b-field--bell { color: var(--green-ink); }
.b-field:nth-child(2) { animation-delay: 0.12s; }
.b-field:nth-child(3) { animation-delay: 0.24s; }
@keyframes materialize {
  0%, 6% { opacity: 0; transform: translateY(7px); }
  20%, 82% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(7px); }
}

/* why / equilibrium */
.equi { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 16px; align-items: center; max-width: 900px; margin: 0 auto; }
.equi__card { padding: 26px 22px; border-radius: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.equi__card--dim { border: 1px solid var(--border); background: transparent; opacity: 0.82; }
.equi__card--dim h3 { font-size: 16px; color: var(--muted); }
.equi__card--dim p { font-size: 13.5px; color: var(--faint); margin: 0; }
.equi__card--win {
  background: var(--surface); border: 1px solid var(--border-strong); border-left: 2px solid var(--green);
  box-shadow: var(--shadow-frame); transform: translateY(-8px); position: relative;
}
.equi__card--win h3 { font-size: 19px; color: var(--ink); }
.equi__card--win p { font-size: 14.5px; color: var(--ink); margin: 0; }
.equi__ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--border); color: var(--faint); }
.equi__ico--spark { border-color: transparent; background: var(--green-wash); color: var(--green); }
.equi__ico--spark svg { width: 20px; height: 20px; }
.equi__ico--spark use, .equi__ico--spark path { fill: currentColor; }
.equi__tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--faint); }
.equi__tag--win { color: var(--green-ink); }
.equi__note { text-align: center; color: var(--muted); font-size: 15px; margin: 30px auto 0; max-width: 52ch; }

/* try-it */
.section--try { background: var(--bg); }
.try { max-width: 760px; margin: 0 auto; }
.frame--try .frame__view { position: relative; }
.try__empty { font-size: 13.5px; color: var(--faint); text-align: center; padding: 28px 12px; font-family: var(--mono); }
.try__empty.hide { display: none; }
.result-slot { display: flex; flex-direction: column; gap: 9px; }

.try__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 15px 14px; }
.achip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); padding: 8px 12px; border-radius: 9px;
  transition: border-color 0.15s, transform 0.12s var(--ease-out);
}
.achip svg { width: 13px; height: 13px; color: var(--green); }
.achip svg use, .achip svg path { fill: currentColor; }
.achip:hover { border-color: var(--green); transform: translateY(-1px); }

.operate__input:focus { outline: none; }
.frame--try .operate:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }

/* @mention */
.mention { position: absolute; left: 15px; bottom: 58px; width: 220px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-frame); overflow: hidden; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.18s, transform 0.18s var(--ease-out); z-index: 8; }
.mention.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mention__head { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); padding: 9px 12px 5px; }
.mention__item { width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--ink); transition: background 0.12s; }
.mention__item span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.mention__item:hover { background: var(--green-wash); }

.try__notes, .trail__notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; }
.try__notes li, .trail__notes li { font-size: 13.5px; color: var(--muted); position: relative; padding-left: 16px; }
.try__notes li::before, .trail__notes li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* dynamic-form result variant (built by JS) */
.rform { display: flex; flex-direction: column; gap: 9px; }
.rform__f { display: flex; flex-direction: column; gap: 4px; }
.rform__f label { font-size: 11px; color: var(--faint); font-family: var(--mono); }
.rform__c { height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--sunken); display: flex; align-items: center; padding: 0 11px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.rform__draw { position: relative; }
.rform__draw::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--green); animation: draw-in 0.5s var(--ease-out) forwards; }
@keyframes draw-in { to { width: 100%; } }
.rbars { display: flex; align-items: flex-end; gap: 9px; height: 92px; padding-top: 8px; }
.rbars i { flex: 1; border-radius: 5px 5px 0 0; background: var(--green); opacity: 0.9; height: 0; animation: bar-rise 0.6s var(--ease-out) forwards; }
@keyframes bar-rise { to { height: var(--h); } }

/* ───────────────────────── batteries included ───────────────────────── */
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.kit__item { display: flex; flex-direction: column; gap: 3px; padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s var(--ease-out); }
.kit__item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.kit__check { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--green-wash); color: var(--green-ink); margin-bottom: 9px; }
.kit__item b { font-size: 15px; color: var(--ink); }
.kit__d { font-size: 13px; color: var(--muted); }

.flow { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; max-width: 900px; margin: 28px auto 0; }
.flow__step { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); flex: 1 1 230px; }
.flow__step--win { border-color: var(--border-strong); border-left: 2px solid var(--green); }
.flow__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); border: 1px solid var(--border-strong); flex: none; }
.flow__step--win .flow__n { border-color: transparent; background: var(--green-wash); }
.flow__spark { width: 14px; height: 14px; color: var(--green); }
.flow__spark use, .flow__spark path { fill: currentColor; }
.flow__t b { display: block; font-size: 14px; color: var(--ink); }
.flow__t span { font-size: 12.5px; color: var(--muted); }
.flow__arrow { align-self: center; color: var(--faint); font-size: 18px; }

/* demand / holy-grail analytics */
.grail { max-width: 780px; margin: 0 auto; }
.grail__view { gap: 16px; }
.grail__cols { display: grid; grid-template-columns: 1.32fr 1fr; gap: 14px; }
.grail__panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 15px; }
.grail__ptitle { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 13px; }
.grail__ptitle .amber { color: var(--signal); }

.hbars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.hbars li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 8px; background: var(--sunken); border: 1px solid var(--border); overflow: hidden; }
.hbars li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--green-wash); border-right: 2px solid var(--green); }
.reveal.in .hbars li::before { animation: hbar-grow 0.7s var(--ease-out); }
.hbars li:nth-child(2)::before { animation-delay: 0.06s; }
.hbars li:nth-child(3)::before { animation-delay: 0.12s; }
.hbars li:nth-child(4)::before { animation-delay: 0.18s; }
.hbars li:nth-child(5)::before { animation-delay: 0.24s; }
@keyframes hbar-grow { from { width: 0; } }
.hbars__label { position: relative; font-family: var(--mono); font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars__val { position: relative; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--green-ink); flex: none; }

.frictions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.frictions li { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.frictions li b { margin-left: auto; font-weight: 500; color: var(--muted); }
.fdot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }

.grail__cap { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); margin: 16px 0 0; text-align: center; }
.grail__cap svg { color: var(--green-ink); flex: none; }
.grail__cap strong { color: var(--ink); font-weight: 600; }
.grail__cap-g { color: var(--green-ink); }

/* get started */
.start { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; align-items: stretch; max-width: 860px; margin: 0 auto; }
.code { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.code__bar { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-bottom: 1px solid var(--border); }
.code__name { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.code__body { margin: 0; padding: 18px; font-size: 13px; line-height: 1.85; color: var(--muted); overflow-x: auto; }
.code__body .op { color: var(--green-ink); }
.start__side { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.start__meta { font-size: 13px; color: var(--faint); margin: 4px 0 0; text-align: center; }
.start__meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 32px clamp(18px, 4vw, 32px) 48px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.foot__links { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.foot__links a:hover { color: var(--ink); }
.foot__theme { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }
.foot__theme:hover { color: var(--ink); }
.foot__note { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title .say::after { animation: none; transform: scaleX(1); }
  .caret, .brand__spark, .operate__spark { animation: none !important; }
  .fig__ring { animation: none !important; top: 15px; }
  .b-field { animation: none !important; opacity: 1; transform: none; }
  .hbars li::before { animation: none !important; }
  .result.conjuring, .result.conjuring > *, .result.conjuring::after,
  .rform__draw::after, .rbars i, .spark-burst { animation: none !important; }
  .rbars i { height: var(--h); }
  body { transition: none; }
}

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 860px) {
  .nav__tagline { display: none; }
  .hero { grid-template-columns: 1fr; }
  /* small screens: text → demo → integrate card */
  .hero__copy { display: contents; }
  .hero__text { order: 0; }
  .hero__frame { order: 1; }
  .hero__cta { order: 2; }
  .integrate--hero { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .split__spark { transform: rotate(90deg); padding: 4px 0; }
  .equi { grid-template-columns: 1fr; }
  .equi__card--win { transform: none; order: -1; }
  .start { grid-template-columns: 1fr; }
  .layer-wrap { grid-template-columns: 1fr; }
  .grail__cols { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr 1fr; }
  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); }
}
@media (max-width: 540px) {
  .renders { justify-content: center; }
  .foot__note { margin-left: 0; width: 100%; }
  .kit { grid-template-columns: 1fr; }
}
