/* ==========================================================================
   whagons.ai — Websites that listen
   ========================================================================== */

:root {
  --accent: #d4310a;
  --accent-bright: color-mix(in oklab, var(--accent) 62%, #ffd9c4);
  --accent-deep: color-mix(in oklab, var(--accent) 70%, #2a0700);
  --ok: #2f9e5f;
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);

  --paper: #f5f2eb;
  --paper-2: #ece8de;
  --card: #fffdf8;
  --ink: #0a0a09;
  --ink-2: #3b3934;
  --muted: #66615b;
  --line: color-mix(in oklab, var(--ink) 11%, transparent);

  --night: #0c0b0a;
  --night-2: #171513;
  --night-line: rgba(255, 245, 230, .09);
  --night-ink: #f5f2eb;
  --night-muted: #a39d95;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1200px;
  --shadow-lg: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 80px -30px rgba(40, 22, 10, .32), 0 18px 40px -20px rgba(40, 22, 10, .22);
}

html[data-mode="dark"] {
  --paper: #0c0b0a;
  --paper-2: #141210;
  --card: #1a1715;
  --ink: #f5f2eb;
  --ink-2: #cdc7be;
  --muted: #958f86;
  --night: #050404;
  --night-2: #110f0d;
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 18px 40px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
/* Film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(920px, 100% - 48px); }

/* ---------- Type ---------- */
.display {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3.4rem, 9.6vw, 8.8rem);
  line-height: .9;
  letter-spacing: -.055em;
  margin: 0;
}
.display em, .h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--accent) 5%, color-mix(in oklab, var(--accent) 55%, #ff9a3d) 55%, var(--accent-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.05em;
  margin: 0;
}
.h2 em { font-size: 1.08em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.eyebrow {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow.center { justify-content: center; }
.eyebrow-num {
  display: inline-grid; place-items: center;
  height: 22px; padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--accent);
  font-size: .7rem;
}
.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.section-head.split .section-lede { max-width: 380px; margin: 0; }
.section-lede { color: var(--ink-2); font-size: 1.1rem; margin: 22px 0 0; max-width: 620px; }

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 99px;
  font-weight: 500; font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .9rem; }
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -10px color-mix(in oklab, var(--ink) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 18px 34px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-ghost { border-color: var(--line); background: color-mix(in oklab, var(--card) 60%, transparent); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: color-mix(in oklab, var(--ink) 30%, transparent); }
.btn-light { background: #f4f7f1; color: #07100b; }
.btn-light:hover { box-shadow: 0 16px 40px -10px color-mix(in oklab, var(--accent-bright) 70%, transparent); }
.btn.full { width: 100%; }
.btn-arrow { transition: transform .35s var(--spring); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------- Orb (the Resident's face) ---------- */
.orb {
  --s: 34px;
  position: relative;
  display: inline-block; flex: none;
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 6%, transparent 22%),
    radial-gradient(circle at 70% 75%, color-mix(in oklab, var(--accent) 50%, #ff9a3d) 0, transparent 55%),
    conic-gradient(from var(--orb-a), var(--accent), var(--accent-bright), #ffb68f, var(--accent), var(--accent-deep), var(--accent));
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 6px 18px -4px color-mix(in oklab, var(--accent) 70%, transparent);
  animation: orb-spin 9s linear infinite;
}
.orb::after {
  content: ""; position: absolute; inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-bright) 45%, transparent), transparent 65%);
  z-index: -1;
  animation: orb-breathe 3.4s ease-in-out infinite;
}
.orb.xs { --s: 18px; }
.orb.sm { --s: 26px; }
.orb.lg { --s: 92px; }
.orb.xl { --s: 220px; }
@property --orb-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orb-spin { to { --orb-a: 360deg; } }
@keyframes orb-breathe { 0%, 100% { opacity: .55; scale: .9; } 50% { opacity: 1; scale: 1.08; } }

.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(47,158,95,.6);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,158,95,.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(47,158,95,0); } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 16px 0;
  transition: padding .4s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 60px; padding: 0 10px 0 18px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled { padding: 10px 0; }
.nav.scrolled .nav-inner {
  background: color-mix(in oklab, var(--paper) 72%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,.25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 46px; height: 18px;
  background: var(--accent);
  -webkit-mask: url("assets/whagons.svg") center / contain no-repeat;
  mask: url("assets/whagons.svg") center / contain no-repeat;
  transition: transform .5s var(--spring), background-color .4s;
}
.brand:hover .brand-mark { transform: translateX(2px) skewX(-6deg); }
.brand-word { font-weight: 700; font-size: 1.14rem; letter-spacing: -.02em; }
.brand-tld { color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 99px;
  font-size: .92rem; color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: .92rem; color: var(--ink-2); }
.nav-login:hover { color: var(--ink); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 170px 0 80px; overflow: hidden; }

/* The dark "intelligence" stage behind the hero */
.hero-stage {
  position: absolute; left: 0; right: 0; top: 0; height: var(--stage-h, 78%);
  pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 49, 10, .22), transparent 70%),
    linear-gradient(180deg, #0b0908 0%, #110d0b 70%, #160f0c 100%);
}
.neural { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.a1 { width: 620px; height: 620px; left: -200px; top: -180px; background: color-mix(in oklab, var(--accent) 80%, #ff7a3d); opacity: .28; animation: drift 22s ease-in-out infinite alternate; }
.a2 { width: 520px; height: 520px; right: -160px; top: 80px; background: color-mix(in oklab, var(--accent) 35%, #ff5fa2); opacity: .18; animation: drift 26s ease-in-out infinite alternate-reverse; }
.a3 { width: 900px; height: 360px; left: 50%; bottom: -220px; translate: -50% 0; background: color-mix(in oklab, var(--accent) 70%, #ffb36b); opacity: .32; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(80px, 40px, 0) scale(1.12); } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 240, 225, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 240, 225, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 120, 70, .7) 30%, #ffd2b8 50%, rgba(255, 120, 70, .7) 70%, transparent); box-shadow: 0 0 30px 6px rgba(212, 49, 10, .45); }

.hero-inner {
  position: relative; text-align: center; display: flex; flex-direction: column; align-items: center;
  --ink: var(--night-ink); --ink-2: #cfc7bc; --muted: #9a9289; --line: rgba(255, 240, 225, .12);
  color: var(--night-ink);
}
.hero .display em {
  background-image: linear-gradient(100deg, #ff4d1a 0%, #ff8a4c 20%, #ffd2b8 40%, #ff8a4c 60%, #ff4d1a 80%, #ff8a4c 100%);
}

.announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 245, 235, .05);
  backdrop-filter: blur(10px);
  font-size: .86rem; color: var(--ink-2);
  margin-bottom: 36px;
  animation: rise .9s var(--ease) both;
  transition: border-color .3s;
}
.announce:hover { border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.announce-pill { background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; letter-spacing: .02em; }
.announce-arrow { transition: transform .3s var(--spring); }
.announce:hover .announce-arrow { transform: translateX(3px); }

.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > * { animation-delay: .12s; }
.hero-title .line > em { animation: line-up 1.1s .12s var(--ease) both, shimmer 7s linear infinite; }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-lede { max-width: 640px; margin: 30px auto 0; color: var(--ink-2); min-height: 4.8em; }
.hero-note { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; font-size: .85rem; color: var(--muted); animation: rise 1s .6s var(--ease) both; }
.hero-note a { color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.hero-note a:hover { color: #fff; border-color: var(--accent); }

/* ---------- AI glow ring ---------- */
@property --ring-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ai-ring { position: relative; isolation: isolate; }
.ai-ring::before, .ai-ring::after {
  content: ""; position: absolute; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ring-a), #d4310a, #ff8a3d, #ffd2b8, #ff5fa2, #d4310a 60%, #ff8a3d 80%, #d4310a);
  animation: ring-spin 6s linear infinite;
}
.ai-ring::before {
  inset: -1.5px; padding: 1.5px; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .9;
}
.ai-ring::after { inset: 0; z-index: -1; filter: blur(34px); opacity: .26; transition: opacity .6s; }
.ai-ring.working::after { opacity: .6; }
/* Surfaces with their own background glow with a shadow instead (a blurred layer would tint them). */
.prompt.ai-ring::after { display: none; }
.ai-ring.working::before, .ai-ring.working::after { animation-duration: 2.2s; }
@keyframes ring-spin { to { --ring-a: 360deg; } }

/* ---------- Prompt bar ---------- */
.prompt {
  display: flex; align-items: center; gap: 8px;
  width: min(700px, 100%);
  margin: 40px auto 0; padding: 8px 8px 8px 18px;
  border-radius: 22px;
  background: rgba(22, 18, 16, .78);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 50px -12px rgba(255, 90, 40, .5), 0 0 110px -30px rgba(255, 95, 162, .35), 0 30px 60px -30px rgba(0, 0, 0, .8);
  animation: rise 1s .45s var(--ease) both;
  transition: box-shadow .6s;
  text-align: left;
}
.prompt.working { box-shadow: 0 0 70px -6px rgba(255, 90, 40, .75), 0 0 140px -20px rgba(255, 95, 162, .5), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.prompt-spark { flex: none; width: 20px; height: 20px; color: #ff8a4c; animation: spark 4s ease-in-out infinite; }
.prompt-spark svg { width: 100%; height: 100%; }
@keyframes spark { 50% { transform: rotate(90deg) scale(.85); color: #ffd2b8; } }
.prompt-input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: #f5f2eb; font: inherit; font-size: 1.05rem; }
.prompt-input::placeholder { color: rgba(245, 242, 235, .42); }
.prompt-mic { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255, 240, 225, .12); background: rgba(255, 245, 235, .04); display: flex; align-items: center; justify-content: center; gap: 2.5px; transition: background-color .3s, border-color .3s; }
.prompt-mic:hover { background: rgba(255, 245, 235, .09); }
.prompt-mic i { width: 3px; height: 6px; border-radius: 3px; background: #cfc7bc; transition: height .2s; }
.prompt-mic i:nth-child(2), .prompt-mic i:nth-child(4) { height: 11px; }
.prompt-mic i:nth-child(3) { height: 16px; }
.prompt-mic.listening { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 22%, transparent); }
.prompt-mic.listening i { background: #ffb38a; animation: voice .9s ease-in-out infinite; }
.prompt-mic.listening i:nth-child(2) { animation-delay: -.2s; } .prompt-mic.listening i:nth-child(3) { animation-delay: -.45s; } .prompt-mic.listening i:nth-child(4) { animation-delay: -.1s; } .prompt-mic.listening i:nth-child(5) { animation-delay: -.6s; }
@keyframes voice { 0%, 100% { height: 4px; } 50% { height: 20px; } }
.prompt-go {
  flex: none; height: 44px; padding: 0 18px 0 20px; border-radius: 14px; border: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #e0400f, #c22a06); color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px rgba(212, 49, 10, .9);
  transition: transform .35s var(--spring), box-shadow .3s, filter .3s;
}
.prompt-go svg { width: 15px; height: 15px; }
.prompt-go:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 30px -10px rgba(212, 49, 10, 1); }
.prompt-go:disabled { opacity: .6; transform: none; }
.prompt-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; animation: rise 1s .55s var(--ease) both; }
.prompt-ideas button { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 245, 235, .04); color: var(--ink-2); font-size: .82rem; transition: border-color .25s, color .25s, background-color .25s; }
.prompt-ideas button::before { content: "✦ "; color: #ff8a4c; }
.prompt-ideas button:hover { border-color: color-mix(in oklab, var(--accent) 60%, transparent); color: #fff; background: rgba(212, 49, 10, .12); }

/* ---------- Generation trace ---------- */
.trace {
  width: min(700px, 100%); margin: 16px auto 0; padding: 16px 18px;
  border-radius: 18px; text-align: left;
  background: rgba(22, 18, 16, .82); border: 1px solid rgba(255, 240, 225, .1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: #e9e3da; font-size: .88rem;
  animation: rise .5s var(--ease) both;
}
.trace[hidden] { display: none; }
.trace-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 240, 225, .08); }
.trace-head em { font-style: normal; color: #ffb38a; }
.trace-meta { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: #9a9289; white-space: nowrap; }
.trace ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.trace li { display: flex; gap: 10px; align-items: flex-start; color: #bdb5ab; animation: msg-in .4s var(--ease) both; }
.trace li .st { margin-top: 3px; }
.trace li.done { color: #e9e3da; }
.trace li.done .st { animation: none; border: none; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.trace li small { display: block; font-family: var(--mono); font-size: .7rem; color: #8d857c; margin-top: 2px; }
.trace .sw { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 6px; }
.trace .sw i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.trace-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 240, 225, .08); }
.trace-foot b { color: #8fdcaa; font-weight: 500; }
.trace-foot a { color: #fff; font-weight: 500; border-bottom: 1px solid var(--accent); }

/* ---------- Text effects ---------- */
.display em, .h2 em { background-size: 200% auto; }
.h2 em { animation: shimmer 9s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }
.sw-word { transition: opacity .35s, filter .35s; }
.sw-word.off { opacity: 0; filter: blur(4px); }
.stream-caret { display: inline-block; width: .5em; height: 1.05em; margin-left: 3px; vertical-align: -.18em; border-radius: 2px; background: var(--accent); animation: blink .9s steps(2) infinite; }

/* Navigation over the dark stage */
.nav.on-dark .brand-word { color: #f5f2eb; }
.nav.on-dark .nav-links a, .nav.on-dark .nav-login { color: rgba(245, 242, 235, .72); }
.nav.on-dark .nav-links a:hover { color: #fff; background: rgba(255, 245, 235, .08); }
.nav.on-dark .btn-primary { background: #f5f2eb; color: #0a0a09; }
.nav.on-dark.scrolled .nav-inner { background: rgba(16, 13, 11, .62); border-color: rgba(255, 240, 225, .08); }

/* ---------- Demo ---------- */
.demo-wrap { position: relative; margin-top: 84px; }
.demo-ring { border-radius: 27px; }
.demo {
  position: relative; z-index: 0;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-chrome {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 50px; padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--paper-2) 50%, var(--card));
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in oklab, var(--ink) 14%, transparent); }
.url {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: var(--paper);
  font-family: var(--mono); font-size: .76rem; color: var(--ink-2);
  border: 1px solid var(--line);
  transition: box-shadow .4s;
}
.url svg { width: 12px; height: 12px; color: var(--accent); }
.version { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.version.bump { animation: bump .6s var(--spring); color: var(--accent); }
@keyframes bump { 50% { transform: scale(1.12); } }

.demo-body { display: grid; grid-template-columns: 208px minmax(0, 1fr) 360px; height: 640px; }
.demo-site { position: relative; padding: 18px; background: var(--paper-2); overflow: hidden; }

/* ---------- Site Graph panel ---------- */
.graph { border-right: 1px solid var(--line); background: var(--card); overflow-y: auto; padding: 14px 10px 12px; font-size: .8rem; scrollbar-width: thin; display: flex; flex-direction: column; }
.sg-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 6px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sg-head b { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ok); letter-spacing: .06em; }
.sg-label { margin: 14px 6px 6px; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--muted) 80%, transparent); }
.sg-row, .sg-page > button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 5px 7px; border-radius: 8px; border: 0; background: none;
  color: var(--ink-2); text-align: left; font: inherit; white-space: nowrap;
}
.sg-row span:not(.sg-glyph), .sg-page > button span { overflow: hidden; text-overflow: ellipsis; }
.sg-page > button { cursor: pointer; transition: background-color .25s; }
.sg-page > button:hover { background: var(--paper); }
.sg-page.is-current > button { background: var(--paper); color: var(--ink); font-weight: 600; }
.sg-page small, .sg-row small { margin-left: auto; padding-left: 6px; font-family: var(--mono); font-size: .62rem; color: var(--muted); font-weight: 400; }
.sg-glyph { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; background: var(--paper-2); color: var(--muted); font-size: .66rem; font-family: var(--mono); }
.sg-row.is-cta .sg-glyph { background: var(--ink); color: var(--paper); }
.sg-sections { margin: 2px 0 6px 15px; padding-left: 7px; border-left: 1px dashed var(--line); }
.sg-foot { margin-top: auto; padding: 14px 6px 0; font-family: var(--mono); font-size: .62rem; color: var(--muted); display: flex; justify-content: space-between; }
.flash.sg-row, .sg-page.flash > button { animation: sg-flash 2s var(--ease); }
@keyframes sg-flash { 0%, 40% { background: var(--accent-soft); color: var(--accent); } }

/* ---------- The mini website, rendered from the Site Graph ---------- */
.mini {
  --m-bg: #fbf6ec;
  --m-ink: #2a1d12;
  --m-muted: #7a6656;
  --m-accent: #b8631f;
  --m-card: #fffaf1;
  --m-line: rgba(60, 35, 15, .1);
  --m-art: linear-gradient(170deg, #fde7c3 0%, #f8cf98 60%, #efb877 100%);
  --m-sun: radial-gradient(circle at 40% 40%, #fff3c4, #ffc65c 60%, #f59e0b);
  --m-hill: #e7a35f;
  --m-title-font: var(--sans);
  position: relative;
  height: 100%;
  border-radius: 16px;
  background: var(--m-bg);
  color: var(--m-ink);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 20px 40px -24px rgba(60,35,15,.35);
  transition: background-color .9s var(--ease), color .9s var(--ease);
  font-size: 13px;
  line-height: 1.5;
}
.mini::-webkit-scrollbar { display: none; }
.mini[data-theme="evening"] {
  --m-bg: #17120f;
  --m-ink: #f6e9d7;
  --m-muted: #b49c85;
  --m-accent: #f2a65a;
  --m-card: #221a15;
  --m-line: rgba(255, 230, 200, .1);
  --m-art: linear-gradient(170deg, #1e1b3a 0%, #3b2552 55%, #7a3d4c 100%);
  --m-sun: radial-gradient(circle at 40% 40%, #fffbe8, #f5e6c4 60%, #d6c193);
  --m-hill: #2a1a2d;
}
.mini.is-serif { --m-title-font: var(--serif); }
.mini * { transition: color .9s var(--ease), background-color .9s var(--ease), border-color .9s var(--ease); }
.mini button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.ms-banner { padding: 7px 14px; background: var(--m-accent); color: #fff; text-align: center; font-size: .82em; font-weight: 500; }
.ms-nav {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 22px 12px;
  background: color-mix(in oklab, var(--m-bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--m-line);
}
.ms-nav--center { flex-direction: column; gap: 8px; padding-top: 16px; }
.mini .ms-logo { font-family: var(--serif); font-style: italic; font-size: 1.45em; letter-spacing: -.01em; white-space: nowrap; }
.ms-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.ms-link { padding: 5px 10px !important; border-radius: 99px; font-size: .88em !important; color: var(--m-muted) !important; white-space: nowrap; }
.ms-link:hover { color: var(--m-ink) !important; }
.ms-link.is-current { color: var(--m-ink) !important; background: color-mix(in oklab, var(--m-ink) 7%, transparent) !important; }
.ms-link.is-cta { margin-left: 6px; background: var(--m-ink) !important; color: var(--m-bg) !important; }
.ms-link.flash { animation: link-flash 1.8s var(--ease); }
@keyframes link-flash { 0%, 40% { box-shadow: 0 0 0 2px var(--accent); } }

.ms-sec { position: relative; padding: 22px; border-top: 1px solid var(--m-line); }
.ms-sec:first-child { border-top: 0; }
.ms-sec.flash::after { content: ""; position: absolute; inset: 4px; border-radius: 12px; pointer-events: none; animation: sec-flash 2s var(--ease) forwards; }
@keyframes sec-flash { 0%, 45% { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 50px -20px var(--accent); } 100% { box-shadow: inset 0 0 0 2px transparent; } }
.ms-eyebrow { font-family: var(--mono); font-size: .68em; letter-spacing: .12em; text-transform: uppercase; color: var(--m-accent); margin: 0 0 10px; }
.ms-h { font-family: var(--m-title-font); font-weight: 600; font-size: 1.45em; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; }
.mini.is-serif .ms-h { font-weight: 400; font-size: 1.75em; letter-spacing: -.01em; }
.ms-p { color: var(--m-muted); margin: 0; }
.ms-btn { display: inline-block; padding: 8px 15px; border-radius: 99px; background: var(--m-accent); color: #fff; font-weight: 500; font-size: .9em; box-shadow: 0 8px 18px -10px var(--m-accent); white-space: nowrap; }
.ms-link2 { color: var(--m-ink); border-bottom: 1px solid var(--m-line); font-size: .9em; white-space: nowrap; }

/* hero */
.ms-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.ms-title { font-family: var(--m-title-font); font-size: 2.4em; line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0; }
.mini.is-serif .ms-title { font-weight: 400; font-size: 2.8em; letter-spacing: -.015em; line-height: .98; }
.ms-title .type-caret { display: inline-block; width: 2px; height: .9em; background: var(--accent); margin-left: 2px; vertical-align: -.08em; animation: blink 1s steps(2) infinite; }
.ms-sub { color: var(--m-muted); margin: 12px 0 16px; font-size: .96em; max-width: 34ch; }
.ms-actions { display: flex; align-items: center; gap: 14px; }
.ms-art { position: relative; aspect-ratio: 1.2; border-radius: 14px; background: var(--m-art); overflow: hidden; }
.ms-hero--center { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
.ms-hero--center .ms-sub { margin-inline: auto; }
.ms-hero--center .ms-actions { justify-content: center; }
.ms-hero--center .ms-art { width: 100%; aspect-ratio: 3.4; }
.ms-hero--center .ms-art .loaf { width: 30%; height: 46%; }
.ms-hero--center .ms-art .sun { width: 16%; right: 22%; }
.ms-hero--full { grid-template-columns: 1fr; padding: 0; min-height: 330px; overflow: hidden; align-items: end; }
.ms-hero--full .ms-art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.ms-hero--full .ms-art .loaf { left: 72%; width: 42%; height: 26%; bottom: 30%; }
.ms-hero--full .ms-art .sun { width: 22%; right: 10%; }
.ms-hero--full .ms-copy { position: relative; z-index: 1; padding: 120px 22px 24px; background: linear-gradient(180deg, transparent, rgba(30, 14, 4, .72)); color: #fff; }
.ms-hero--full .ms-sub { color: rgba(255,255,255,.82); }
.ms-hero--full .ms-eyebrow { color: #ffd9a8; }
.ms-hero--full .ms-link2 { color: #fff; border-color: rgba(255,255,255,.4); }

.sun { position: absolute; width: 38%; aspect-ratio: 1; right: 13%; top: 11%; border-radius: 50%; background: var(--m-sun); box-shadow: 0 0 40px rgba(255, 200, 100, .45); transition: all .9s var(--ease); }
.mini[data-theme="evening"] .sun { width: 26%; right: 18%; top: 12%; box-shadow: 0 0 40px rgba(255, 245, 210, .35); }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity 1.2s .3s; }
.s1 { left: 18%; top: 16%; } .s2 { left: 38%; top: 28%; } .s3 { left: 60%; top: 9%; }
.mini[data-theme="evening"] .star { opacity: .85; }
.hill { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 62%; border-radius: 50%; background: var(--m-hill); transition: background-color .9s; }
.loaf {
  position: absolute; left: 50%; bottom: 15%; translate: -50% 0;
  width: 66%; height: 33%;
  border-radius: 50% 50% 42% 42% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 42% 28%, #f6cf8d 0, #d4924a 45%, #9b5622 85%);
  box-shadow: inset -12px -14px 22px rgba(70, 30, 5, .35), inset 8px 8px 14px rgba(255, 230, 180, .35), 0 16px 22px -8px rgba(60, 25, 5, .45);
  animation: loaf-bob 6s ease-in-out infinite;
}
.loaf i { position: absolute; top: 30%; width: 20%; height: 9%; border-radius: 99px; background: linear-gradient(90deg, rgba(255,236,200,.2), rgba(255,236,200,.85), rgba(255,236,200,.2)); rotate: -28deg; }
.loaf i:nth-child(1) { left: 18%; } .loaf i:nth-child(2) { left: 41%; } .loaf i:nth-child(3) { left: 64%; }
@keyframes loaf-bob { 50% { translate: -50% -4px; } }

/* intro (sub-page header) */
.ms-intro { padding-top: 30px; padding-bottom: 22px; background: linear-gradient(180deg, color-mix(in oklab, var(--m-accent) 8%, transparent), transparent); }
.ms-intro .ms-title { font-size: 2.1em; }

/* products */
.ms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ms-card { position: relative; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 12px; padding: 7px; }
.ms-card.is-new { border-color: color-mix(in oklab, var(--m-accent) 55%, transparent); }
.ms-badge { position: absolute; z-index: 1; top: 12px; left: 12px; font-size: .62em; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--m-accent); color: #fff; }
.ms-thumb { height: 58px; border-radius: 8px; margin-bottom: 7px; }
.ms-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: .8em; }
.ms-card-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-card-row b, .ms-row b { font-weight: 600; color: var(--m-accent); }
.ms-list { display: grid; gap: 2px; }
.ms-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .92em; }
.ms-row .ms-thumb { width: 34px; height: 34px; margin: 0; flex: none; }
.ms-row .dots { flex: 1; border-bottom: 1px dotted color-mix(in oklab, var(--m-ink) 25%, transparent); translate: 0 -3px; }
.ms-row .ms-badge { position: static; }
.t1 { background: radial-gradient(ellipse 60% 45% at 50% 60%, #b06f33 0 60%, transparent 62%), #f1dfc2; }
.t2 { background: radial-gradient(ellipse 45% 30% at 50% 58%, #e6a34b 0 60%, transparent 62%), radial-gradient(ellipse 28% 22% at 30% 52%, #d38b35 0 60%, transparent 62%), radial-gradient(ellipse 28% 22% at 70% 52%, #d38b35 0 60%, transparent 62%), #f6e7cc; }
.t3 { background: linear-gradient(90deg, transparent 36%, #4a2b17 36% 42%, transparent 42% 58%, #4a2b17 58% 64%, transparent 64%) center / 64% 34% no-repeat, linear-gradient(180deg, #e9b061, #c98236) center / 64% 34% no-repeat, #f3e3c6; }
.t4 { background: radial-gradient(circle at 42% 50%, #ffc533 0 11%, #fff 12% 26%, transparent 27%), radial-gradient(circle at 72% 46%, #e85d4a 0 8%, transparent 9%), radial-gradient(circle at 66% 66%, #7bb661 0 9%, transparent 10%), #f1e3c8; }
.t5 { background: radial-gradient(circle at 38% 55%, #d98f3c 0 17%, transparent 18%), radial-gradient(circle at 62% 55%, #d98f3c 0 17%, transparent 18%), radial-gradient(circle at 50% 40%, #e9a54e 0 15%, transparent 16%), #f6e5c8; }
.t6 { background: linear-gradient(-14deg, transparent 40%, #c98236 40% 60%, transparent 60%) center / 84% 100% no-repeat, #f3e3c6; }
.t7 { background: radial-gradient(circle at 44% 46%, #c0392b 0 5%, transparent 6%), radial-gradient(circle at 58% 56%, #c0392b 0 5%, transparent 6%), radial-gradient(circle at 50% 50%, #f3d27a 0 26%, #d9a24e 27% 33%, transparent 34%), #f4e6cf; }
.t8 { background: radial-gradient(circle at 46% 46%, #4a2b17 0 3%, transparent 4%), radial-gradient(circle at 56% 58%, #4a2b17 0 3%, transparent 4%), radial-gradient(circle at 50% 52%, #d9a35a 0 24%, transparent 25%), #f6e7cf; }
.mini[data-theme="evening"] .ms-thumb, .mini[data-theme="evening"] .ms-tile { filter: brightness(.82) saturate(.95); }

/* story */
.ms-story { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.ms-year { font-family: var(--serif); font-size: 3.4em; line-height: .9; color: var(--m-accent); font-style: italic; }
/* hours */
.ms-hours { display: grid; gap: 0; max-width: 360px; }
.ms-hours div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--m-line); font-size: .92em; }
.ms-hours div span:last-child { font-family: var(--mono); font-size: .9em; }
/* testimonials */
.ms-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-quote { padding: 14px; border-radius: 12px; background: var(--m-card); border: 1px solid var(--m-line); }
.ms-quote p { margin: 0 0 8px; font-family: var(--serif); font-size: 1.12em; line-height: 1.25; }
.ms-quote small { color: var(--m-muted); }
.ms-stars { color: var(--m-accent); letter-spacing: 2px; font-size: .8em; }
/* gallery */
.ms-tiles { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 70px 70px; gap: 8px; }
.ms-tile { border-radius: 10px; }
.ms-tile:first-child { grid-row: span 2; }
/* faq */
.ms-faq div { padding: 9px 0; border-bottom: 1px solid var(--m-line); }
.ms-faq b { display: block; font-weight: 600; font-size: .95em; }
.ms-faq span { color: var(--m-muted); font-size: .9em; }
/* newsletter + cta */
.ms-band { text-align: center; background: color-mix(in oklab, var(--m-accent) 10%, var(--m-bg)); }
.ms-band .ms-h { margin-bottom: 10px; }
.ms-form { display: flex; justify-content: center; gap: 6px; }
.ms-form span:first-child { width: 180px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--m-line); background: var(--m-bg); color: var(--m-muted); font-size: .86em; text-align: left; }
/* visit */
.ms-visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; }
.ms-map { position: relative; height: 130px; border-radius: 12px; overflow: hidden; background:
  linear-gradient(25deg, transparent 47%, color-mix(in oklab, var(--m-ink) 12%, transparent) 47% 53%, transparent 53%),
  linear-gradient(-60deg, transparent 46%, color-mix(in oklab, var(--m-ink) 9%, transparent) 46% 50%, transparent 50%),
  repeating-linear-gradient(0deg, transparent 0 26px, color-mix(in oklab, var(--m-ink) 6%, transparent) 26px 28px),
  repeating-linear-gradient(90deg, transparent 0 34px, color-mix(in oklab, var(--m-ink) 6%, transparent) 34px 36px),
  color-mix(in oklab, var(--m-accent) 8%, var(--m-card)); }
.ms-pin { position: absolute; left: 54%; top: 40%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--m-accent); box-shadow: 0 0 0 6px color-mix(in oklab, var(--m-accent) 25%, transparent); }
.ms-visit address { font-style: normal; font-weight: 600; margin-bottom: 4px; }
/* team */
.ms-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.ms-face { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: linear-gradient(140deg, #d4924a, #8a4b1c); }
.ms-team div:nth-child(2) .ms-face { background: linear-gradient(140deg, #c56b4a, #6e2f1c); }
.ms-team div:nth-child(3) .ms-face { background: linear-gradient(140deg, #b58a5a, #5a3e22); }
.ms-team b { display: block; font-size: .92em; }
.ms-team small { color: var(--m-muted); }
/* catering */
.ms-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-tier { padding: 12px; border-radius: 12px; border: 1px solid var(--m-line); background: var(--m-card); }
.ms-tier:nth-child(2) { border-color: color-mix(in oklab, var(--m-accent) 55%, transparent); }
.ms-tier b { display: block; font-size: .95em; }
.ms-tier small { color: var(--m-muted); }
.ms-tier strong { display: block; margin-top: 8px; font-family: var(--m-title-font); font-size: 1.5em; letter-spacing: -.03em; color: var(--m-accent); }
/* footer */
.ms-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 22px 20px; border-top: 1px solid var(--m-line); color: var(--m-muted); font-size: .8em; }
.mini .ms-footer .ms-logo { font-size: 1.15em; color: var(--m-ink); }

.lang-flip { animation: flip .7s var(--ease); }
@keyframes flip { 0% { opacity: 1; filter: blur(0); } 40% { opacity: 0; filter: blur(4px); transform: translateY(-3px); } 100% { opacity: 1; filter: blur(0); } }

/* Op diff in the chat */
.ops { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-family: var(--mono); font-size: .7rem; line-height: 1.4; }
.ops li { display: flex; gap: 7px; align-items: baseline; color: var(--muted); animation: msg-in .4s var(--ease) both; }
.ops li .g { flex: none; width: 12px; text-align: center; font-weight: 600; }
.ops li.pending .g { animation: blink .8s steps(2) infinite; }
.ops li.done { color: var(--ink-2); }
.ops li.skip { color: var(--muted); }
.ops li.skip .g { color: #b7791f; }
.ops .k { color: var(--ink); font-weight: 500; }
.g-add { color: var(--ok); } .g-del { color: #c2410c; } .g-mod { color: #b7791f; } .g-mov { color: #2563eb; } .g-nav { color: var(--accent); } .g-go { color: var(--muted); }
.bubble .ops + p { margin-top: 9px; }
.bubble p + p { margin-top: 6px; }
.bubble code { font-family: var(--mono); font-size: .85em; padding: 1px 5px; border-radius: 5px; background: var(--paper-2); }

/* Editing highlight */
.editing { position: relative; outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 8px; animation: editing 1.2s ease-in-out infinite; }
@keyframes editing { 50% { outline-color: color-mix(in oklab, var(--accent) 35%, transparent); } }

.agent-cursor {
  position: absolute; left: 60%; top: 60%; z-index: 4;
  display: flex; align-items: flex-start; gap: 2px;
  pointer-events: none;
  opacity: 0; scale: .7;
  transition: left 1s var(--ease), top 1s var(--ease), opacity .4s, scale .4s var(--spring);
}
.agent-cursor.show { opacity: 1; scale: 1; }
.agent-cursor svg { width: 20px; height: 20px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }
.agent-cursor span { margin-top: 14px; padding: 3px 9px; border-radius: 99px 99px 99px 4px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; box-shadow: 0 6px 14px -6px var(--accent); }

.demo-toast {
  position: absolute; left: 50%; bottom: 36px; z-index: 5;
  translate: -50% 20px; opacity: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 99px;
  background: #0d1411; color: #eef2ec;
  font-size: .84rem; white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.5);
  transition: translate .6s var(--spring), opacity .4s;
}
.demo-toast.show { translate: -50% 0; opacity: 1; }
.demo-toast b { color: var(--accent-bright); font-weight: 600; }

/* Chat */
.demo-chat { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--card); min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: .95rem; font-weight: 600; }
.chat-head small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .76rem; }
.chat-role { margin-left: auto; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }

.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; scrollbar-width: thin; }
.msg { display: flex; gap: 9px; align-items: flex-end; max-width: 92%; animation: msg-in .5s var(--spring) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.msg.user { align-self: flex-end; }
.msg .bubble { padding: 10px 14px; border-radius: 18px; font-size: .88rem; line-height: 1.45; }
.msg.user .bubble { background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg.agent .bubble { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.agent .orb { margin-bottom: 2px; }
.bubble p { margin: 0; }
.bubble .steps + p { margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .8rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; animation: msg-in .4s var(--ease) both; }
.st { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid color-mix(in oklab, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: spin .7s linear infinite; flex: none; }
.steps li.done .st { animation: none; border: none; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.steps li.done { color: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.typing { display: flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; min-height: 0; }
.chip {
  padding: 7px 12px; border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .78rem; color: var(--ink-2);
  transition: border-color .25s, background-color .25s, transform .3s var(--spring), opacity .3s;
  animation: msg-in .45s var(--spring) both;
}
.chip:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); background: var(--accent-soft); }
.chat-chips.busy .chip, .pr-chips.busy .chip { opacity: .4; pointer-events: none; }

.chat-input, .pr-form { display: flex; gap: 8px; align-items: center; margin: 0 14px 14px; padding: 6px 6px 6px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, box-shadow .3s; }
.chat-input:focus-within, .pr-form:focus-within { border-color: color-mix(in oklab, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chat-input input, .pr-form input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; font-size: .88rem; color: var(--ink); }
.chat-input input::placeholder, .pr-form input::placeholder { color: var(--muted); }
.chat-input button, .pr-form button { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: #fff; transition: transform .3s var(--spring); flex: none; }
.chat-input button:hover, .pr-form button:hover { transform: scale(1.08); }
.chat-input button svg, .pr-form button svg { width: 15px; height: 15px; }

.demo-caption { text-align: center; color: var(--muted); font-size: .85rem; margin: 22px 0 0; font-family: var(--mono); letter-spacing: .02em; }

/* ==========================================================================
   LIVE NETWORK PULSE
   ========================================================================== */
.pulse { padding: 30px 0 20px; }
.pulse-card {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 0;
  border-radius: 26px; overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(212, 49, 10, .22), transparent 60%), #0e0c0b;
  color: var(--night-ink);
  border: 1px solid rgba(255, 240, 225, .07);
  box-shadow: var(--shadow-lg);
}
.pulse-left { padding: 32px 34px; display: flex; flex-direction: column; gap: 20px; border-right: 1px solid rgba(255, 240, 225, .07); }
.pulse-live { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8fdcaa; }
.pulse-spark { color: #ff8a4c; }
.pulse-title { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; color: #f5f2eb; }
.pulse-text { margin: 0; color: #a39d95; font-size: .95rem; }
.pulse-legend { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: .74rem; color: #bdb5ab; }
.pulse-legend li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(255, 240, 225, .1); }
.pulse-legend .g { font-weight: 600; }
.pulse-feed { position: relative; height: 330px; overflow: hidden; padding: 18px 0; font-family: var(--mono); font-size: .8rem; mask-image: linear-gradient(180deg, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); }
.pf-row { display: grid; grid-template-columns: minmax(0, 1.1fr) 18px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 28px; border-bottom: 1px dashed rgba(255, 240, 225, .06); color: #bdb5ab; white-space: nowrap; }
.pf-row.new { animation: pf-in .7s var(--ease) both; background: linear-gradient(90deg, rgba(212, 49, 10, .14), transparent 60%); }
@keyframes pf-in { from { opacity: 0; transform: translateY(-14px); } }
.pf-ask { color: #f5f2eb; font-family: var(--sans); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.pf-arrow { color: #6f685f; text-align: center; }
.pf-op { overflow: hidden; text-overflow: ellipsis; }
.pf-op .g { display: inline-block; width: 14px; font-weight: 600; }

/* ==========================================================================
   IDEA
   ========================================================================== */
.idea { padding: 80px 0 140px; }
.statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
}
.statement .w { color: color-mix(in oklab, var(--ink) 18%, transparent); transition: color .5s var(--ease); }
.statement .w.on { color: var(--ink); }
.statement .w.hl.on { color: var(--accent); font-style: italic; }
.idea-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 90px; }
.pillar { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in oklab, var(--card) 70%, transparent); transition: transform .5s var(--spring), border-color .3s; }
.pillar:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.pillar h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; margin: 22px 0 8px; }
.pillar p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.pillar-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-icon.accent { background: var(--accent-soft); }

/* ==========================================================================
   HOW
   ========================================================================== */
.how { padding: 120px 0; border-top: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.step-num { font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: color-mix(in oklab, var(--accent) 80%, var(--ink)); font-style: italic; }
.step h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 8px; }
.step > p { color: var(--ink-2); margin: 0 0 28px; font-size: .97rem; }
.step-visual { margin-top: auto; min-height: 170px; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.describe-box { font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.caret { display: inline-block; width: 2px; height: 1.05em; vertical-align: -.2em; background: var(--accent); margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.build-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .9rem; }
.build-list li { display: flex; align-items: center; gap: 10px; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; flex: none; }
.build-list li.pending { color: var(--muted); }
.build-list li.pending .tick { background: none; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }

.talk { display: flex; flex-direction: column; gap: 10px; }
.talk-bubble { padding: 10px 14px; border-radius: 16px; font-size: .88rem; max-width: 90%; line-height: 1.45; }
.talk-bubble.you { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.talk-bubble.agent { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; display: flex; gap: 9px; align-items: flex-start; }
.talk-bubble.agent .orb { margin-top: 1px; }

/* ==========================================================================
   DARK SECTIONS
   ========================================================================== */
.section-dark { background: var(--night); color: var(--night-ink); --line: var(--night-line); --muted: var(--night-muted); --ink-2: #c3cec7; --ink: var(--night-ink); overflow: hidden; }
.section-dark .eyebrow-num { color: var(--accent-bright); }
.section-dark .h2 em, .section-dark .display em { background: linear-gradient(100deg, #ff7a4d, #ffd2b8 50%, #ff7a4d); -webkit-background-clip: text; background-clip: text; }

.resident { padding: 140px 0; }
.resident-glow { position: absolute; width: 900px; height: 600px; left: 50%; top: -260px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 45%, transparent), transparent); filter: blur(30px); opacity: .6; pointer-events: none; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 30px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--night-line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, transform .5s var(--spring);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: rgba(255,255,255,.14); }
.card:hover::before { opacity: 1; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.05; letter-spacing: -.01em; margin: 14px 0 10px; }
.card p { color: var(--night-muted); margin: 0; font-size: .95rem; }
.card-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); }

.card-a { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; min-height: 340px; }
.card-a h3 { font-size: 2.5rem; }
.prompt-stream { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; mask-image: linear-gradient(180deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); overflow: hidden; }
.ps-item { display: flex; flex-direction: column; gap: 6px; animation: msg-in .6s var(--spring) both; }
.ps-ask { align-self: flex-end; padding: 10px 14px; border-radius: 16px 16px 5px 16px; background: #f1f5ef; color: #0b130e; font-size: .88rem; max-width: 92%; }
.ps-done { align-self: flex-end; display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .7rem; color: var(--accent-bright); }
.ps-done .orb { --s: 12px; }

.card-b .brand-mem { margin-top: 24px; display: grid; gap: 14px; }
.swatches { display: flex; }
.swatches i { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 3px solid var(--night); margin-right: -10px; transition: transform .4s var(--spring); }
.card-b:hover .swatches i { margin-right: 4px; }
.tone { display: flex; flex-wrap: wrap; gap: 6px; }
.tone span { font-size: .78rem; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--night-line); color: var(--night-ink); }
.tone span:last-child { border-color: rgba(255, 138, 101, .4); color: #ffb39c; }

.spark { margin: 18px -4px 14px; height: 80px; }
.spark svg { width: 100%; height: 100%; }
.spark-line { stroke-dasharray: 400; stroke-dashoffset: 400; }
.card-c.in .spark-line { animation: draw 2.2s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.insight { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem !important; color: var(--night-ink) !important; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--night-line); }
.insight .orb { margin-top: 2px; }

.schedule { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.schedule li { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--night-line); font-size: .88rem; color: var(--night-ink); }
.schedule b { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--accent-bright); min-width: 66px; }

.card-e { display: flex; flex-direction: column; }
.hello { margin-top: auto; padding-top: 26px; font-family: var(--serif); font-style: italic; font-size: 3.6rem; line-height: 1; color: var(--accent-bright); transition: opacity .4s, filter .4s, transform .4s; }
.hello.out { opacity: 0; filter: blur(6px); transform: translateY(-8px); }

.card-f { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; align-items: center; }
.card-f em { color: var(--night-ink); font-family: var(--serif); font-size: 1.1em; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 4px; }
.tl-line { position: absolute; left: 10%; right: 10%; top: 13px; height: 2px; background: linear-gradient(90deg, var(--night-line), var(--accent) 75%, transparent 75%), repeating-linear-gradient(90deg, var(--night-line) 0 4px, transparent 4px 8px); }
.tl-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tl-node::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--night-2); border: 2px solid rgba(255,255,255,.2); position: relative; z-index: 1; }
.tl-node.current::before { background: var(--accent); border-color: var(--accent-bright); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 25%, transparent); }
.tl-node.ghost::before { border-style: dashed; border-color: var(--accent-bright); }
.tl-node b { font-family: var(--mono); font-size: .78rem; font-weight: 500; }
.tl-node span { font-size: .76rem; color: var(--night-muted); }
.tl-node.current b { color: var(--accent-bright); }

.integrations { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.integrations span { font-size: .82rem; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); transition: background-color .3s, border-color .3s; }
.integrations span:hover { background: color-mix(in oklab, var(--accent) 25%, transparent); border-color: var(--accent); }

/* ==========================================================================
   VERSUS
   ========================================================================== */
.versus { padding: 140px 0; }
.versus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-col { border-radius: 26px; padding: 30px; border: 1px solid var(--line); }
.vs-col.old { background: repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in oklab, var(--ink) 2.5%, transparent) 12px 13px), var(--paper-2); }
.vs-col.new { background: var(--card); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.vs-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.vs-head span { font-weight: 600; }
.vs-head b { font-family: var(--mono); font-weight: 500; font-size: .85rem; }
.old .vs-head b { color: #c2410c; }
.new .vs-head b { color: var(--accent); }
.vs-steps { margin: 0; padding: 0; list-style: none; counter-reset: v; display: grid; gap: 4px; }
.vs-steps li { counter-increment: v; display: flex; gap: 14px; padding: 9px 0; color: var(--muted); font-size: .95rem; border-bottom: 1px dashed var(--line); }
.vs-steps li::before { content: counter(v, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: color-mix(in oklab, var(--muted) 70%, transparent); padding-top: 3px; }
.vs-steps li:last-child { border: 0; text-decoration: line-through; text-decoration-color: color-mix(in oklab, #c2410c 60%, transparent); }
.vs-chat { display: flex; flex-direction: column; gap: 12px; }
.vs-chat .talk-bubble { font-size: .95rem; padding: 13px 16px; }
.vs-chat .talk-bubble.agent { background: var(--paper); }
.talk-bubble.short { max-width: max-content; }
.vs-done { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: color-mix(in oklab, var(--ok) 12%, transparent); color: color-mix(in oklab, var(--ok) 75%, #000); font-size: .9rem; font-weight: 500; }
html[data-mode="dark"] .vs-done { color: #8fdcaa; }
.check { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/75% no-repeat; }

/* ==========================================================================
   TECHNOLOGY
   ========================================================================== */
.tech { padding: 140px 0; border-top: 1px solid var(--line); overflow: hidden; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.layers { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 8px; }
.layers li { display: flex; gap: 18px; padding: 20px; border-radius: 18px; border: 1px solid transparent; cursor: default; transition: background-color .35s, border-color .35s; }
.layers li.active { background: var(--card); border-color: var(--line); box-shadow: 0 20px 40px -30px rgba(0,0,0,.35); }
.layer-num { font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: 4px; min-width: 22px; transition: color .3s; }
.layers li.active .layer-num { color: var(--accent); }
.layers h4 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.layers p { margin: 0; color: var(--ink-2); font-size: .94rem; }

.stack-wrap { position: relative; height: 560px; }
.stack { position: absolute; inset: 0; perspective: 1400px; }
.stack-inner { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-40deg); animation: float-stack 9s ease-in-out infinite; }
@keyframes float-stack { 50% { transform: rotateX(58deg) rotateZ(-36deg) translateZ(14px); } }
.plate {
  --z: 0;
  position: absolute; width: 320px; height: 320px; left: -160px; top: -160px;
  border-radius: 34px;
  transform: translateZ(calc(var(--z) * 1px));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease), box-shadow .6s, opacity .6s, filter .6s;
  display: grid; place-items: center;
}
.plate-label { position: absolute; left: 22px; bottom: 18px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.p3 { --z: -110; background: radial-gradient(circle at 50% 50%, #2a1a12, #0c0b0a); border: 1px solid rgba(255,255,255,.08); color: var(--night-muted); box-shadow: 0 60px 80px -30px rgba(0,0,0,.5); }
.p2 { --z: 0; background: color-mix(in oklab, var(--card) 85%, transparent); border: 1px solid var(--line); color: var(--accent); box-shadow: 0 40px 60px -30px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.p2 .plate-label { color: var(--ink-2); }
.p2 .graph { width: 80%; height: 80%; }
.p1 { --z: 110; background: linear-gradient(140deg, color-mix(in oklab, var(--accent) 22%, rgba(255,255,255,.55)), color-mix(in oklab, var(--accent) 8%, rgba(255,255,255,.2))); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 40px 60px -30px color-mix(in oklab, var(--accent) 60%, transparent); backdrop-filter: blur(10px); color: var(--accent-deep); }
html[data-mode="dark"] .p1 { border-color: rgba(255,255,255,.18); color: var(--accent-bright); }
.p1 .orb { transform: translateZ(30px); }
.rings { position: relative; width: 80%; height: 80%; }
.rings i { position: absolute; inset: calc(var(--i, 0) * 12%); border-radius: 50%; border: 1px dashed color-mix(in oklab, var(--accent-bright) 45%, transparent); }
.rings i:nth-child(2) { --i: 1; } .rings i:nth-child(3) { --i: 2; } .rings i:nth-child(4) { --i: 3; background: color-mix(in oklab, var(--accent) 40%, transparent); border-style: solid; }
.stack:hover .p1 { --z: 170; } .stack:hover .p3 { --z: -170; }
.stack[data-active="1"] .p1, .stack[data-active="2"] .p2, .stack[data-active="3"] .p3 { filter: drop-shadow(0 0 30px color-mix(in oklab, var(--accent) 45%, transparent)); }
.stack[data-active="2"] .p1 { opacity: .45; }
.stack[data-active="3"] .p1, .stack[data-active="3"] .p2 { opacity: .4; }

/* ==========================================================================
   IN CHARGE
   ========================================================================== */
.charge { padding: 120px 0; background: var(--paper-2); }
.charge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.charge-item { background: var(--paper-2); padding: 32px 28px 36px; transition: background-color .4s; }
.charge-item:hover { background: var(--card); }
.ci-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--accent); margin-bottom: 26px; }
.ci-icon svg { width: 22px; height: 22px; }
.charge-item h4 { font-size: 1.08rem; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.charge-item p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* ==========================================================================
   SHOWCASE
   ========================================================================== */
.showcase { padding: 140px 0; }
.show-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.show-card { border-radius: 26px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--spring), box-shadow .5s; }
.show-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.show-card:nth-child(even) { margin-top: 60px; }
.show-art { position: relative; aspect-ratio: 16 / 10.5; padding: 22px 26px; overflow: hidden; transition: transform .9s var(--ease); }
.show-card:hover .show-art { transform: scale(1.015); }
.sa-nav { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; position: relative; z-index: 1; }
.sa-nav span { opacity: .65; }
.sa-big { position: relative; z-index: 1; margin-top: 12%; }

.art-studio { background: #e9e5dc; color: #1d1d1b; }
.art-studio .sa-nav b { letter-spacing: .25em; font-size: .7rem; }
.art-studio .sa-big { font-family: var(--sans); font-weight: 300; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .95; letter-spacing: -.05em; }
.sa-blocks { position: absolute; right: 26px; bottom: 0; display: flex; align-items: flex-end; gap: 8px; height: 70%; }
.sa-blocks i { width: 64px; background: #c9c1b1; border-radius: 4px 4px 0 0; }
.sa-blocks i:nth-child(1) { height: 52%; } .sa-blocks i:nth-child(2) { height: 88%; background: #a39883; } .sa-blocks i:nth-child(3) { height: 66%; background: #d8d1c3; }

.art-band { background: radial-gradient(circle at 75% 40%, #4b1d5e 0, #170d24 60%); color: #f6e6ff; }
.art-band .sa-nav b { font-family: var(--serif); font-style: italic; font-size: 1.15rem; font-weight: 400; }
.art-band .sa-big { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: .9; margin-top: 14%; }
.art-band .sa-big em { color: #ff9ad5; }
.sa-disc { position: absolute; right: 8%; top: 18%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #1a0f25 0 2px, #241532 2px 4px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); animation: spin 14s linear infinite; }
.sa-disc::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle, #170d24 0 12%, #ff9ad5 13%, #c44ba0); }

.art-saas { background: linear-gradient(160deg, #0b1220, #12203a); color: #dfe8ff; }
.art-saas .sa-nav b { font-family: var(--mono); font-weight: 500; }
.art-saas .sa-big { font-family: var(--sans); font-weight: 600; font-size: clamp(1.7rem, 3.3vw, 2.8rem); line-height: 1; letter-spacing: -.04em; }
.sa-chart { position: absolute; left: 26px; right: 26px; bottom: 22px; height: 34%; display: flex; align-items: flex-end; gap: 10px; }
.sa-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #6ea8ff, rgba(110,168,255,.15)); }
.sa-chart i:last-child { background: linear-gradient(180deg, #8ef5c5, rgba(142,245,197,.15)); }

.art-florist { background: #f7e9e4; color: #4a2a2a; }
.art-florist .sa-nav b { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.art-florist .sa-big { position: absolute; left: 26px; bottom: 22px; font-family: var(--serif); font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: .95; max-width: 60%; }
.art-florist .sa-big em { color: #c0476a; }
.sa-flowers { position: absolute; right: 6%; top: 14%; width: 50%; aspect-ratio: 1; }
.sa-flowers i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #f9d5a7 0 14%, #f29bb2 15% 45%, #e56f92 46% 70%, transparent 71%); animation: sway 7s ease-in-out infinite; }
.sa-flowers i:nth-child(1) { left: 10%; top: 8%; }
.sa-flowers i:nth-child(2) { left: 46%; top: 0; width: 38%; animation-delay: -2s; background: radial-gradient(circle, #fff1c9 0 14%, #fbe3ea 15% 45%, #f6c3d2 46% 70%, transparent 71%); }
.sa-flowers i:nth-child(3) { left: 36%; top: 40%; width: 52%; animation-delay: -4s; }
.sa-flowers i:nth-child(4) { left: 2%; top: 50%; width: 34%; animation-delay: -1s; background: radial-gradient(circle, #ffe1a8 0 14%, #fff 15% 45%, #f3e5e0 46% 70%, transparent 71%); }
.sa-flowers i:nth-child(5) { left: 74%; top: 46%; width: 26%; animation-delay: -3s; background: radial-gradient(circle, #8ab17d 0 30%, #5f8f57 31% 70%, transparent 71%); }
@keyframes sway { 50% { transform: translateY(-6px) rotate(6deg); } }

.show-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 22px 26px 26px; }
.show-meta h4 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.show-meta span { font-size: .84rem; color: var(--muted); }
.said { margin: 0; max-width: 260px; text-align: right; font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.25; color: var(--ink-2); }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing { padding: 140px 0; background: var(--paper-2); }
.billing { position: relative; display: inline-flex; margin-top: 36px; padding: 4px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.billing-opt { position: relative; z-index: 1; border: 0; background: none; padding: 9px 20px; border-radius: 99px; font-size: .9rem; color: var(--muted); transition: color .3s; }
.billing-opt.active { color: var(--paper); }
.billing-opt span { font-family: var(--mono); font-size: .72rem; color: var(--accent); margin-left: 4px; }
.billing-opt.active span { color: var(--accent-bright); }
.billing-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: var(--ink); transition: left .5s var(--spring), width .5s var(--spring); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 34px 30px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .5s var(--spring); }
.price-card:hover { transform: translateY(-4px); }
.price-card h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.price-desc { color: var(--muted); margin: 6px 0 26px; font-size: .93rem; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 26px; min-height: 76px; }
.price .cur { font-size: 1.5rem; color: var(--muted); align-self: flex-start; margin-top: 8px; }
.price .amt { font-family: var(--sans); font-weight: 700; font-size: 4.2rem; line-height: 1; letter-spacing: -.05em; display: inline-block; transition: opacity .25s, transform .25s; }
.price .amt.word { font-family: var(--serif); font-weight: 400; font-size: 3.4rem; font-style: italic; letter-spacing: -.02em; }
.price .amt.swap { opacity: 0; transform: translateY(-10px); }
.price .per { color: var(--muted); font-size: .9rem; }
.feat { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: .93rem; }
.feat li { display: flex; gap: 10px; align-items: flex-start; }
.feat li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23d4310a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/75% no-repeat; }
.price-card.featured { background: var(--night); color: var(--night-ink); border-color: transparent; box-shadow: 0 40px 80px -30px color-mix(in oklab, var(--accent) 55%, transparent); --muted: var(--night-muted); --line: var(--night-line); }
.price-card.featured .btn-primary { background: var(--accent); color: #fff; }
.price-card.featured .feat li::before { background-color: color-mix(in oklab, var(--accent) 30%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ribbon { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: color-mix(in oklab, var(--accent) 30%, transparent); color: var(--accent-bright); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 140px 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 120px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; cursor: pointer; transition: color .25s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 300; font-size: 1.3rem; transition: transform .4s var(--spring), background-color .3s, color .3s; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq-list details p { margin: 0; padding: 0 60px 26px 0; color: var(--ink-2); animation: rise .5s var(--ease); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final { padding: 170px 0 180px; text-align: center; }
.final-orb { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: .3; filter: blur(70px); pointer-events: none; }
.final-orb .orb { --s: 620px; background: conic-gradient(from var(--orb-a), #d4310a, #ff8a3d, #ff5fa2, #7a1f0a, #d4310a); box-shadow: none; }
.final-orb .orb::after { display: none; }
.final-inner { position: relative; }
.final-title { font-size: clamp(2.6rem, 6.4vw, 5.9rem); }
.final .prompt { margin-top: 54px; }
.final .trace { margin-top: 16px; }
.final-note { margin: 22px 0 0; color: var(--night-muted); font-size: .9rem; min-height: 1.5em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 90px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-brand p { color: var(--muted); margin: 18px 0 0; font-size: .95rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { margin: 0 0 6px; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-col a { font-size: .95rem; color: var(--ink-2); transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 24px; font-size: .85rem; color: var(--muted); }
.footer-wordmark { font-weight: 700; letter-spacing: -.06em; font-size: min(15rem, calc((100vw - 48px) / 4.95)); line-height: .78; margin-top: 30px; text-align: center; white-space: nowrap; background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 14%, transparent), transparent 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-wordmark span { background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 34%, transparent), transparent 92%); -webkit-background-clip: text; background-clip: text; }

/* ==========================================================================
   PAGE RESIDENT (floating)
   ========================================================================== */
.page-resident { position: fixed; left: 14px; bottom: 10px; z-index: 60; display: flex; flex-direction: column; align-items: flex-start; gap: 0; pointer-events: none; }
.page-resident > * { pointer-events: auto; }

/* ---------- The Resident robot ---------- */
.bot-wrap { position: relative; width: 96px; height: 120px; animation: bot-enter 1.2s 1.1s var(--spring) both; }
@keyframes bot-enter { from { opacity: 0; transform: translate(-30px, 150px) rotate(-18deg); } }
.bot { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 28px; }
.bot svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(40, 20, 8, .22)); }

.bot-float { animation: bot-bob 3.6s ease-in-out infinite; }
@keyframes bot-bob { 50% { transform: translateY(-9px); } }
.bot-shadow { fill: rgba(30, 15, 5, .2); transform-box: fill-box; transform-origin: center; animation: bot-shadow 3.6s ease-in-out infinite; }
html[data-mode="dark"] .bot-shadow { fill: rgba(0, 0, 0, .5); }
@keyframes bot-shadow { 50% { transform: scaleX(.74); opacity: .5; } }
.bot-body { transform-box: view-box; transform-origin: 60px 100px; transform: translateY(calc(var(--lift, 0) * 1px)) rotate(calc(var(--tilt, 0) * 1deg)); }
.bot-head { transform-box: view-box; transform-origin: 60px 78px; transform: translate(calc(var(--hx, 0) * 1px), calc(var(--hy, 0) * 1px)) rotate(calc(var(--htilt, 0) * 1deg)); }
.bot-look { transform: translate(calc(var(--ex, 0) * 1px), calc(var(--ey, 0) * 1px)); }
.bot-eyes, .bot-eye, .bot-mood { transform-box: fill-box; transform-origin: center; }
.bot-eyes { animation: bot-blink 5.2s infinite; }
@keyframes bot-blink { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
.bot-mood { transition: transform .3s var(--spring); }
.bot-jet { transform-box: fill-box; transform-origin: 50% 0; animation: bot-jet .16s ease-in-out infinite alternate; }
@keyframes bot-jet { to { transform: scale(.86, .74); opacity: .75; } }
.bot-tip { transform-box: fill-box; transform-origin: center; animation: bot-tip 2.4s ease-in-out infinite; }
@keyframes bot-tip { 50% { transform: scale(.7); opacity: .55; } }
.bot-arm { transform-box: fill-box; transform-origin: 50% 12%; transition: transform .4s var(--spring); }
.bot-wave rect { fill: #ffb38a; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* hover: perk up */
.bot:hover .bot-arm-l { transform: rotate(18deg); }
.bot:hover .bot-mood { transform: scaleY(.62); }
/* waving */
.bot.waving .bot-arm-r { animation: bot-wave-arm 1.5s var(--ease); }
@keyframes bot-wave-arm { 0%, 100% { transform: rotate(0); } 18%, 46%, 74% { transform: rotate(-155deg); } 32%, 60% { transform: rotate(-118deg); } }
/* thinking: eyes pulse in turn, antenna races */
.bot.thinking .bot-eye { animation: bot-think .7s ease-in-out infinite; }
.bot.thinking .bot-eye + .bot-eye { animation-delay: .35s; }
@keyframes bot-think { 50% { transform: scale(.5); opacity: .55; } }
.bot.thinking .bot-tip { animation-duration: .45s; }
.bot.thinking .bot-jet { animation-duration: .08s; }
/* talking: happy eyes + voice in the visor */
.bot.talking .bot-mood { transform: scaleY(.55) translateY(-2px); }
.bot.talking .bot-wave rect { opacity: 1; animation: bot-voice .45s ease-in-out infinite; }
.bot.talking .bot-wave rect:nth-child(2) { animation-delay: -.15s; } .bot.talking .bot-wave rect:nth-child(3) { animation-delay: -.3s; } .bot.talking .bot-wave rect:nth-child(4) { animation-delay: -.1s; } .bot.talking .bot-wave rect:nth-child(5) { animation-delay: -.25s; }
@keyframes bot-voice { 50% { transform: scaleY(.3); } }
.bot[aria-expanded="true"] .bot-mood { transform: scaleY(.8); }

/* ---------- Speech bubble ---------- */
.bot-bubble {
  position: absolute; left: 88px; bottom: 78px;
  width: max-content; max-width: 250px;
  padding: 12px 32px 12px 14px;
  border-radius: 18px 18px 18px 5px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -18px rgba(30, 15, 5, .4);
  font-size: .86rem; line-height: 1.42;
  transform-origin: 0 100%;
  animation: bubble-in .5s var(--spring) both;
}
.bot-bubble[hidden] { display: none; }
.bot-bubble.out { animation: bubble-out .25s ease-in both; }
@keyframes bubble-in { from { opacity: 0; transform: scale(.5) translate(-10px, 10px); } }
@keyframes bubble-out { to { opacity: 0; transform: scale(.8) translate(-6px, 6px); } }
.bot-bubble p { margin: 0; }
.bot-act { margin-top: 9px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 0; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; box-shadow: 0 8px 18px -10px var(--accent); transition: transform .3s var(--spring); }
.bot-act::after { content: "✦"; font-size: .7rem; }
.bot-act:hover { transform: translateY(-1px); }
.bot-act[hidden] { display: none; }
.bot-bubble-x { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1rem; line-height: 1; }
.bot-bubble-x:hover { background: var(--paper-2); color: var(--ink); }
.pr-panel {
  width: min(370px, calc(100vw - 32px));
  border-radius: 24px;
  background: color-mix(in oklab, var(--card) 88%, transparent);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.4);
  overflow: hidden;
  transform-origin: 30px 100%;
  animation: panel-in .5s var(--spring) both;
  margin: 0 0 4px 6px;
}
.pr-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.pr-panel header { display: flex; align-items: center; gap: 11px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.pr-panel header strong { display: block; font-size: .92rem; }
.pr-panel header small { color: var(--muted); font-size: .76rem; }
.pr-close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.1rem; line-height: 1; transition: background-color .25s; }
.pr-close:hover { background: var(--paper-2); }
.pr-log { max-height: min(300px, calc(100vh - 470px)); min-height: 90px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.pr-form { margin: 0 12px 12px; }

/* Page Resident: highlights for what it just changed */
main > section[hidden] { display: none !important; }
section.pr-flash::after { content: ""; position: absolute; inset: 10px; z-index: 20; border-radius: 30px; pointer-events: none; animation: pr-flash 2.4s var(--ease) forwards; }
@keyframes pr-flash { 0%, 40% { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 80px -30px var(--accent); } 100% { box-shadow: inset 0 0 0 2px transparent; } }
.pr-flash:not(section) { animation: pr-outline 2.2s var(--ease); border-radius: 14px; }
@keyframes pr-outline { 0%, 45% { outline: 2px solid var(--accent); outline-offset: 8px; } 100% { outline: 2px solid transparent; outline-offset: 8px; } }
.nav-links a.pr-flash-link { animation: link-pulse 2s var(--ease); }
@keyframes link-pulse { 0%, 45% { background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } }
.v-draft { color: var(--accent); font-weight: 500; }
.bubble small { color: var(--muted); font-size: .78rem; }
.bubble s { color: var(--muted); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .demo-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .graph { display: none; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .demo-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-a, .card-f { grid-column: span 2; }
  .tech-grid { grid-template-columns: 1fr; }
  .stack-wrap { height: 480px; order: -1; }
  .charge-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .pulse-card { grid-template-columns: 1fr; }
  .pulse-left { border-right: 0; border-bottom: 1px solid rgba(255, 240, 225, .07); }
  .pf-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 22px; }
  .pf-arrow { display: none; }
  .demo-body { grid-template-columns: 1fr; height: auto; }
  .demo-site { height: 470px; padding: 14px; }
  .demo-chat { border-left: 0; border-top: 1px solid var(--line); height: 440px; }
  .mini { font-size: 12px; }
  .idea-pillars, .steps-grid, .price-grid, .versus-grid, .show-grid { grid-template-columns: 1fr; }
  .show-card:nth-child(even) { margin-top: 0; }
  .card-a, .card-f { grid-template-columns: 1fr; }
  .prompt-stream { min-height: 220px; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-grid > div:first-child { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .demo-chrome { grid-template-columns: auto 1fr; }
  .demo-chrome .version { display: none; }
  .url { justify-self: end; }
}

@media (max-width: 600px) {
  .prompt { flex-wrap: wrap; padding: 10px; }
  .prompt-spark { margin-left: 6px; }
  .prompt-input { flex-basis: calc(100% - 40px); height: 42px; }
  .prompt-mic { margin-left: auto; }
  .prompt-go { flex: 1; justify-content: center; }
  .trace-meta { display: none; }
  .container, .container.narrow { width: calc(100% - 32px); }
  .hero { padding-top: 130px; }
  .nav-login { display: none; }
  .nav { padding: 10px 0; }
  .bento { grid-template-columns: 1fr; }
  .card-a, .card-f { grid-column: auto; }
  .card { padding: 24px; }
  .card-a h3 { font-size: 2rem; }
  .charge-grid { grid-template-columns: 1fr; }
  .ms-hero { grid-template-columns: 1fr; }
  .ms-hero:not(.ms-hero--full) .ms-art { display: none; }
  .ms-quotes, .ms-visit, .ms-tiers { grid-template-columns: 1fr; }
  .ms-links { justify-content: center; }
  .ms-nav { flex-wrap: wrap; justify-content: center; }
  .show-meta { flex-direction: column; align-items: flex-start; }
  .said { text-align: left; }
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tl-node span { font-size: .66rem; }
  .bot-wrap { width: 74px; height: 92px; }
  .bot-bubble { left: 66px; bottom: 60px; max-width: 200px; font-size: .8rem; }
  .stack-wrap { height: 380px; }
  .plate { width: 230px; height: 230px; left: -115px; top: -115px; }
  .faq-list details p { padding-right: 0; }
}

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