/* stevesplaining101 shared styles. Look: TikTok-app near-black with cyan + pink glows; the gold crown is the logo only.
   Home opens on a particle orb behind a pretend TikTok LIVE where an AI co-host works the chat. */
:root {
  --bg: #0e0e11;
  --surface: #16161b;
  --surface-2: #1d1d24;
  --fg: #f3f3f6;
  --muted: #9c9ca8;
  --line: #2a2a33;
  --cyan: #25f4ee;
  --pink: #fe2c55;
  --gold: #e6b73c;
  --accent: var(--pink);
  --on-accent: #ffffff;
  --ornament: var(--cyan);
  --live: var(--pink);
  --glow-pink: 0 10px 32px -10px rgba(254, 44, 85, 0.75);
  --glow-cyan: 0 0 24px -8px rgba(37, 244, 238, 0.65);
  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --display-weight: 800;
  --display-stretch: 112%;
  --display-track: -0.035em;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* the hero's full-width canvas is 100vw, which includes the scrollbar; clip it so the page never scrolls sideways */
html { overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  padding-block: 0 2rem;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 72rem; margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}

h1, h2, h3 {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  letter-spacing: var(--display-track); line-height: 1.05; text-wrap: balance; margin: 0;
}
h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); line-height: 0.98; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

/* Header */
.top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.25rem; }
.mark {
  display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none;
  font: var(--display-weight) 1.3rem/1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.02em;
}
.mark svg { width: 1.5rem; height: 1.5rem; color: var(--gold); filter: drop-shadow(0 0 8px rgba(230, 183, 60, 0.45)); }
.mark b { font-weight: inherit; color: var(--cyan); }
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.92rem; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
.nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.45rem; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--accent);
  box-shadow: var(--glow-pink); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 38px -10px rgba(254, 44, 85, 0.95); }
.btn.ghost { background: rgba(22, 22, 27, 0.55); color: var(--fg); border-color: var(--line); box-shadow: none; backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn.small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.btn.disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.btn.disabled:hover { transform: none; border-color: var(--line); box-shadow: none; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}
.field {
  position: absolute; z-index: -1; pointer-events: none;
  top: -7rem; left: calc(50% - 50vw); width: 100vw; height: calc(100% + 7rem);
  /* faded at both ends: the top reaches up into the crest section above, the bottom into "Try real AI" */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 75%, transparent);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; min-width: 0; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.glitch { color: var(--fg); text-shadow: -0.045em 0 var(--cyan), 0.045em 0 var(--pink); }
@media (prefers-reduced-motion: no-preference) {
  .glitch { animation: glitch 5s steps(1) infinite; }
  @keyframes glitch {
    0%, 92%, 100% { text-shadow: -0.045em 0 var(--cyan), 0.045em 0 var(--pink); }
    93% { text-shadow: -0.09em 0.02em var(--cyan), 0.07em -0.02em var(--pink); }
    95% { text-shadow: 0.05em 0 var(--cyan), -0.06em 0 var(--pink); }
    97% { text-shadow: -0.02em 0 var(--cyan), 0.1em 0.01em var(--pink); }
  }
}
.running { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.running-label { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.running ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.running li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 0.78rem/1 var(--font-body); color: var(--fg);
  padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(22, 22, 27, 0.6); backdrop-filter: blur(6px);
}
.running i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.running li:nth-child(even) i { background: var(--pink); box-shadow: 0 0 8px var(--pink); }

/* The pretend TikTok LIVE */
.stage { display: flex; align-items: flex-end; min-width: 0; }
.phone {
  position: relative; flex: none; width: clamp(17rem, 24vw, 19.5rem); aspect-ratio: 9 / 16;
  border-radius: 2.4rem; padding: 0.5rem;
  background: linear-gradient(155deg, #34343d, #0b0b0e 38%, #1c1c22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -30px rgba(0, 0, 0, 0.95),
    -24px 0 70px -34px rgba(37, 244, 238, 0.7),
    24px 0 70px -34px rgba(254, 44, 85, 0.7);
}
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 1.95rem; color: #fff;
  display: flex; flex-direction: column; gap: 0.55rem; padding: 0.85rem 0.75rem 0.75rem;
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(37, 244, 238, 0.2), transparent 60%),
    radial-gradient(110% 60% at 95% 35%, rgba(254, 44, 85, 0.24), transparent 60%),
    radial-gradient(90% 50% at 50% 110%, rgba(254, 44, 85, 0.18), transparent 70%),
    #07070a;
}
.bar { display: flex; align-items: center; gap: 0.4rem; }
.who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.6rem 0.2rem 0.2rem; border-radius: 999px; background: rgba(0, 0, 0, 0.4); }
.av { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: #000; box-shadow: 0 0 0 2px var(--pink); }
.av svg { width: 1rem; height: 1rem; color: var(--gold); }
.who-text { min-width: 0; }
.who b, .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who b { font: 700 0.72rem/1.15 var(--font-body); }
.who small { font: 500 0.6rem/1.2 var(--font-mono); color: var(--cyan); }
.live-pill { flex: none; font: 800 0.62rem/1 var(--font-body); letter-spacing: 0.06em; padding: 0.32rem 0.45rem; border-radius: 4px; background: var(--pink); }
.viewers { flex: none; display: inline-flex; align-items: center; gap: 0.2rem; font: 600 0.66rem/1 var(--font-mono); padding: 0.3rem 0.4rem; border-radius: 4px; background: rgba(0, 0, 0, 0.45); }
.viewers svg { width: 0.75rem; height: 0.75rem; }
.demo-tag {
  position: absolute; top: 3.35rem; left: 0.8rem;
  font: 500 0.56rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6); border: 1px dashed rgba(255, 255, 255, 0.28); border-radius: 4px; padding: 0.25rem 0.4rem;
}
.toast {
  position: absolute; top: 3.2rem; right: 0.75rem; z-index: 2;
  font: 600 0.7rem/1 var(--font-body); padding: 0.45rem 0.65rem; border-radius: 999px;
  background: rgba(7, 7, 10, 0.85); border: 1px solid var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: none; }

.voice { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; }
.voice::before, .voice::after { content: ''; position: absolute; border-radius: 50%; }
.voice::before { width: 6.4rem; aspect-ratio: 1; background: conic-gradient(var(--cyan), var(--pink), var(--cyan)); filter: drop-shadow(0 0 18px rgba(254, 44, 85, 0.45)); }
.voice::after { width: 5.8rem; aspect-ratio: 1; background: radial-gradient(circle at 50% 35%, #1b1b22, #050507 70%); }
.voice svg { position: relative; z-index: 1; width: 2.6rem; height: 2.6rem; color: var(--gold); filter: drop-shadow(0 0 12px rgba(230, 183, 60, 0.55)); }
.voice i { position: absolute; width: 6.4rem; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(37, 244, 238, 0.7); opacity: 0; }
.voice i:nth-child(2) { border-color: rgba(254, 44, 85, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  .voice::before { animation: spin 5s linear infinite; }
  .voice.talking i { animation: ring 1.5s ease-out infinite; }
  .voice.talking i:nth-child(2) { animation-delay: 0.5s; }
  .voice.talking i:nth-child(3) { animation-delay: 1s; }
  @keyframes spin { to { transform: rotate(1turn); } }
  @keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
}

.gift {
  position: absolute; left: 0.75rem; bottom: 17.3rem; z-index: 2; max-width: calc(100% - 1.5rem);
  font: 700 0.74rem/1.2 var(--font-body); padding: 0.5rem 0.8rem; border-radius: 999px;
  background: linear-gradient(90deg, rgba(254, 44, 85, 0.95), rgba(160, 40, 200, 0.9)); box-shadow: var(--glow-pink);
  opacity: 0; transform: translateX(-110%); transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.gift.show { opacity: 1; transform: none; }

.caption { display: flex; gap: 0.45rem; align-items: flex-start; min-height: 2.75rem; padding: 0.45rem 0.55rem; border-radius: 10px; background: rgba(0, 0, 0, 0.55); font: 600 0.8rem/1.35 var(--font-body); }
.cc { flex: none; margin-top: 0.12rem; font: 700 0.54rem/1 var(--font-mono); padding: 0.22rem 0.3rem; border-radius: 3px; background: var(--cyan); color: #000; }

.chat {
  list-style: none; margin: 0; padding: 0; height: 9.4rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.32rem;
  font: 500 0.74rem/1.3 var(--font-body);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
}
.chat li { flex: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.chat b { font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-right: 0.35rem; }
.chat li.ai { padding: 0.3rem 0.45rem; border-left: 2px solid var(--cyan); border-radius: 0 8px 8px 0; background: rgba(37, 244, 238, 0.1); }
.chat li.ai b { color: var(--cyan); }
.chat li.you b { color: var(--pink); }
.chat .ai-tag { margin-right: 0.3rem; font: 700 0.52rem/1 var(--font-mono); padding: 0.14rem 0.25rem; border-radius: 3px; vertical-align: 1px; background: linear-gradient(90deg, var(--cyan), var(--pink)); color: #000; }
.chat li.typing::after { content: '\2022\2022\2022'; letter-spacing: 0.15em; color: var(--cyan); }
.chat li.spam { text-decoration: line-through; text-decoration-color: var(--pink); }
.chat li.hidden-msg { color: rgba(255, 255, 255, 0.45); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .chat li, .ai-log li { animation: rise 0.35s ease-out; }
  .chat li.typing::after { animation: blink 1s steps(2) infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
  @keyframes blink { 50% { opacity: 0.25; } }
}

.ask { display: flex; gap: 0.4rem; }
.ask input {
  flex: 1; min-width: 0; font: 500 0.85rem/1.2 var(--font-body); color: #fff;
  padding: 0.62rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.1);
}
.ask input::placeholder { color: rgba(255, 255, 255, 0.55); }
.ask input:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.25); }
.ask button { flex: none; width: 2.45rem; height: 2.45rem; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--pink); color: #fff; box-shadow: var(--glow-pink); }
.ask button svg { width: 1.1rem; height: 1.1rem; }
@media (pointer: coarse) { .ask input { font-size: 16px; } }

/* What the AI is doing, beside the phone */
.ai-log {
  position: relative; z-index: 2; width: 15.5rem; margin: 0 0 3.5rem -2rem;
  padding: 0.85rem 0.9rem; border-radius: 14px;
  background: rgba(22, 22, 27, 0.72); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  font: 400 0.68rem/1.45 var(--font-mono);
}
.log-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.log-head > span { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--fg); }
.log-head .dot { width: 0.45rem; height: 0.45rem; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.demo-pause { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.55rem; cursor: pointer; }
.demo-pause:hover { color: var(--fg); border-color: var(--muted); }
.ai-log ol {
  list-style: none; margin: 0; padding: 0; height: 12.5rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
  mask-image: linear-gradient(to bottom, transparent, #000 30%);
}
.ai-log li { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; color: rgba(243, 243, 246, 0.86); }
.ai-log time { color: var(--muted); }
.k { font-weight: 700; }
.k-chat { color: #c4c4cf; }
.k-cap, .k-host { color: var(--cyan); }
.k-clip, .k-gift { color: var(--pink); }
.k-mod { color: #ffc857; }

/* Try real AI: live captions + background remover */
.try-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.try-card {
  position: relative; display: flex; flex-direction: column; gap: 0.95rem; min-width: 0;
  padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: 20px;
  background: linear-gradient(180deg, #1b1b22, #141419); border: 1px solid var(--line);
}
.try-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.55), transparent 30%, transparent 70%, rgba(254, 44, 85, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.try-card.is-live { box-shadow: 0 0 60px -30px rgba(254, 44, 85, 0.8); }
.try-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.try-card > p { color: var(--muted); font-size: 0.95rem; }
.modes { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.modes button { font: 600 0.8rem/1 var(--font-body); color: var(--muted); background: none; border: 0; padding: 0.5rem 0.85rem; border-radius: 999px; cursor: pointer; }
.modes button[aria-checked="true"] { color: var(--fg); background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(37, 244, 238, 0.55), var(--glow-cyan); }
.on-device { font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(37, 244, 238, 0.4); border-radius: 999px; padding: 0.42rem 0.65rem; }

.cap-screen {
  position: relative; min-height: 14rem; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem 1.1rem; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(80% 70% at 20% 0%, rgba(37, 244, 238, 0.12), transparent 60%), radial-gradient(80% 70% at 100% 100%, rgba(254, 44, 85, 0.14), transparent 60%), #07070a;
}
.meter { position: absolute; top: 1rem; left: 1.1rem; display: flex; align-items: flex-end; gap: 3px; height: 1.6rem; opacity: 0; transition: opacity 0.3s; }
.cap-card.metering .meter { opacity: 1; }
.meter i { width: 4px; height: 100%; border-radius: 2px; background: linear-gradient(var(--pink), var(--cyan)); transform-origin: bottom; transform: scaleY(var(--h, 0.08)); transition: transform 0.08s linear; }
.cap-live { position: absolute; top: 1rem; right: 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem; font: 700 0.66rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink); }
.cap-lines { display: flex; flex-direction: column; gap: 0.35rem; }
.cap-old { font: 600 0.98rem/1.35 var(--font-body); color: rgba(255, 255, 255, 0.45); }
.cap-old:empty { display: none; }
.cap-now { font: 800 clamp(1.2rem, 2.1vw, 1.5rem)/1.25 var(--font-body); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); min-height: 1.25em; }

.load { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.load i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width 0.2s; }
.try-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; }
.try-actions .btn { cursor: pointer; font: 700 0.95rem/1 var(--font-body); }
.try-status { flex-basis: 100%; font: 500 0.76rem/1.45 var(--font-mono); color: var(--muted); }
.try-status:empty { display: none; }

.cut-stage {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  border-radius: 14px; border: 1px dashed rgba(255, 255, 255, 0.2); background: #07070a;
}
.cut-stage[data-state="working"], .cut-stage[data-state="done"] { border-style: solid; border-color: rgba(255, 255, 255, 0.08); }
.cut-stage.drag { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.cut-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.cut-stage[data-state="working"] .cut-canvas, .cut-stage[data-state="done"] .cut-canvas { display: block; }
.cut-empty { display: grid; place-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.cut-empty svg { width: 3rem; height: 3rem; color: var(--line); }
.cut-stage:not([data-state="empty"]) .cut-empty { display: none; }
.scan { position: absolute; inset: 0; display: none; pointer-events: none; }
.cut-stage[data-state="working"] .scan {
  display: block;
  background: linear-gradient(180deg, transparent 0, rgba(37, 244, 238, 0.18) 40%, var(--cyan) 50%, rgba(254, 44, 85, 0.25) 52%, transparent 70%) 0 0 / 100% 45% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .cut-stage[data-state="working"] .scan { animation: scan 1.3s linear infinite; }
  @keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 220%; } }
}
.cut-split { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; display: none; }
.cut-stage[data-state="done"] .cut-split { display: block; }
.cut-stage:has(.cut-split:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cut-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.2rem; }
.bgs { display: inline-flex; gap: 0.5rem; }
.bgs button { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.bgs button[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--pink); }
.bg-neon { background: linear-gradient(135deg, #25f4ee, #3b1d6e 50%, #fe2c55); }
.bg-stage { background: radial-gradient(circle at 50% 20%, #fe2c55, #3a0d1d 55%, #07070a); }
.bg-gold { background: radial-gradient(circle at 50% 35%, #e6b73c, #5a3d0c 55%, #07070a); }
.bg-clear { background: repeating-conic-gradient(#3a3a44 0 25%, #1b1b21 0 50%) 0 0 / 10px 10px; }
.credit { font: 400 0.7rem/1.4 var(--font-mono); color: var(--muted); }

/* Sections */
section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; max-width: 40rem; margin-bottom: 2rem; }
.head p { color: var(--muted); }

/* Scroll reveal (site.js adds .in) and the cursor light on .spot cards */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.in), .js [data-reveal-kids]:not(.in) > * { opacity: 0; }
  .js [data-reveal].in { animation: reveal-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js [data-reveal-kids].in > * { animation: reveal-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes reveal-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
}
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 244, 238, 0.13), rgba(254, 44, 85, 0.06) 45%, transparent 70%);
}
.spot:hover::before { opacity: 1; }

.topics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.topic {
  grid-column: span 2; display: flex; flex-direction: column; gap: 0.7rem;
  background: linear-gradient(180deg, #1a1a20, #141418); border: 1px solid var(--line); border-radius: 18px; padding: 1.35rem;
  color: inherit; text-decoration: none; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.topic:nth-child(n+4) { grid-column: span 3; }
a.topic:hover {
  transform: translateY(-4px); border-color: rgba(37, 244, 238, 0.5);
  box-shadow: 0 24px 50px -26px rgba(37, 244, 238, 0.55), 0 24px 60px -34px rgba(254, 44, 85, 0.6);
}
.topic-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; margin-bottom: 0.3rem;
  color: var(--cyan); background: rgba(37, 244, 238, 0.07); border: 1px solid rgba(37, 244, 238, 0.28);
  transition: box-shadow 0.25s, background 0.25s;
}
.topic:nth-child(even) .topic-icon { color: var(--pink); background: rgba(254, 44, 85, 0.07); border-color: rgba(254, 44, 85, 0.3); }
.topic-icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px currentColor); }
a.topic:hover .topic-icon { box-shadow: 0 0 24px -4px currentColor; background: rgba(255, 255, 255, 0.04); }
.topic p { color: var(--muted); font-size: 0.95rem; }
.topic-qa { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 0.35rem; padding: 0.35rem 0.65rem; border-radius: 999px; font: 500 0.72rem/1 var(--font-mono); color: var(--cyan); border: 1px solid rgba(37, 244, 238, 0.4); background: rgba(37, 244, 238, 0.06); }
.topic-qa b { font-size: 0.85rem; }
.topic-go { position: absolute; top: 1.35rem; right: 1.35rem; font-size: 1.2rem; color: var(--muted); transition: transform 0.25s, color 0.25s; }
a.topic:hover .topic-go { transform: translateX(4px); color: var(--cyan); }
.lesson { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.3rem; }
.lesson span { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ornament); }
.lesson strong { font-weight: 600; font-size: 0.95rem; }

.kingdom {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  border: 1px solid rgba(230, 183, 60, 0.22); border-radius: 22px; padding: clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(60% 80% at 78% 40%, rgba(230, 183, 60, 0.14), transparent 65%),
    radial-gradient(50% 60% at 10% 100%, rgba(254, 44, 85, 0.1), transparent 70%),
    linear-gradient(180deg, #16141a, #0d0c10);
}
.kingdom-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.kingdom-copy p { color: var(--muted); max-width: 34rem; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem; border-radius: 999px;
  font: 600 0.78rem/1 var(--font-body); color: var(--gold); border: 1px solid rgba(230, 183, 60, 0.45); background: rgba(230, 183, 60, 0.07);
}
.ai-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* three hidden portraits in gold frames, the middle one raised */
.court { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 1.6vw, 1.1rem); align-items: end; }
.seat { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.seat.main { transform: translateY(-1.25rem); }
.seat-crown { position: absolute; top: -1.9rem; z-index: 1; color: var(--gold); filter: drop-shadow(0 0 10px rgba(230, 183, 60, 0.7)); }
.seat-crown svg { width: 1.8rem; height: 1.8rem; }
.frame {
  position: relative; width: 100%; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 999px 999px 16px 16px;
  border: 2px solid transparent;
  background: radial-gradient(90% 60% at 50% 30%, #1d1b24, #08080b) padding-box, linear-gradient(160deg, #f6d987, #8a6414 45%, #e6b73c 80%, #fff1c2) border-box;
  box-shadow: 0 0 34px -12px rgba(230, 183, 60, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s, transform 0.3s;
}
.seat.main .frame { box-shadow: 0 0 50px -10px rgba(230, 183, 60, 0.75), inset 0 0 30px rgba(0, 0, 0, 0.6); }
.seat:hover .frame { box-shadow: 0 0 60px -6px rgba(230, 183, 60, 0.85), inset 0 0 30px rgba(0, 0, 0, 0.6); }
.sil { position: absolute; left: 6%; bottom: -2px; width: 88%; height: auto; }
.shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 241, 194, 0.18) 50%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; }
@media (prefers-reduced-motion: no-preference) {
  .shine { animation: shine 5s ease-in-out infinite; }
  .seat:nth-child(2) .shine { animation-delay: 1.2s; }
  .seat:nth-child(3) .shine { animation-delay: 2.4s; }
  @keyframes shine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
}
.seat figcaption { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.seat figcaption b { font: var(--display-weight) 1.25rem/1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: 0.08em; color: var(--fg); }
.seat figcaption span { font: 500 0.62rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.chip { font: 500 0.78rem/1 var(--font-mono); padding: 0.55rem 0.8rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); }
.chip.on { border-color: var(--cyan); color: var(--fg); background: var(--surface-2); }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--fg); }
.arches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.arch {
  aspect-ratio: 3 / 4; border: 1.5px solid var(--ornament); border-radius: 999px 999px 8px 8px; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--gold);
}
.arch svg { width: 1.75rem; height: 1.75rem; }
.arch span { font: 500 0.65rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Home shop teaser */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product {
  display: flex; flex-direction: column; gap: 0.65rem; padding: 0.9rem 0.9rem 1.1rem; border-radius: 18px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #1a1a20, #141418); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(254, 44, 85, 0.5); box-shadow: 0 24px 50px -26px rgba(254, 44, 85, 0.6); }
.product-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; margin-bottom: 0.2rem; }
.product-art svg { width: 3.4rem; height: 3.4rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px currentColor); transition: transform 0.3s; }
.product:hover .product-art svg { transform: scale(1.08) rotate(-3deg); }
.art-merch { color: var(--pink); background: radial-gradient(circle at 50% 40%, rgba(254, 44, 85, 0.22), #0b0b0e 70%); }
.art-gear { color: var(--cyan); background: radial-gradient(circle at 50% 40%, rgba(37, 244, 238, 0.2), #0b0b0e 70%); }
.art-digital { color: var(--gold); background: radial-gradient(circle at 50% 40%, rgba(230, 183, 60, 0.2), #0b0b0e 70%); }
.product-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.product-tags .tag { align-self: auto; }
.plat { font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.28rem 0.45rem; border-radius: 4px; color: #000; }
.plat-tts { background: var(--pink); }
.plat-mkt { background: var(--cyan); }
.plat-dig { background: var(--gold); }
.product h3 { font-size: 1.1rem; }
.shop-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }
.note-inline { font: 400 0.74rem/1.5 var(--font-mono); color: var(--muted); }

/* Built with AI: a blueprint-style panel listing the tools behind the site */
.built-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1.75rem;
  padding: clamp(1.5rem, 5vw, 3rem); border-radius: 22px; border: 1px solid rgba(37, 244, 238, 0.22);
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(37, 244, 238, 0.12), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(254, 44, 85, 0.12), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    #101014;
}
.built-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; max-width: 44rem; }
.built-head p { color: var(--muted); }
.built-head .dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tool {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(22, 22, 27, 0.85); backdrop-filter: blur(6px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tool:hover { transform: translateY(-4px); border-color: rgba(37, 244, 238, 0.5); box-shadow: 0 24px 50px -26px rgba(37, 244, 238, 0.55); }
.tool-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; color: var(--cyan); background: rgba(37, 244, 238, 0.07); border: 1px solid rgba(37, 244, 238, 0.28); }
.tool:nth-child(even) .tool-icon { color: var(--pink); background: rgba(254, 44, 85, 0.07); border-color: rgba(254, 44, 85, 0.3); }
.tool-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px currentColor); }
.tool-names { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; }
.tool-names b { font: var(--display-weight) 1.15rem/1.15 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.01em; }
.tool-names b + b::before { content: '+'; margin-right: 0.6rem; color: var(--muted); font-weight: 400; }
.tool p { color: var(--muted); font-size: 0.9rem; }
.built-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; }
.about p { color: var(--muted); max-width: 36rem; }
.team { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #1a1a20, #141418); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.stats div { display: flex; flex-direction: column; gap: 0.3rem; }
.stats b {
  font: var(--display-weight) clamp(2.2rem, 4vw, 3rem)/1 var(--font-display); font-stretch: var(--display-stretch);
  background: linear-gradient(120deg, var(--cyan), #fff 50%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.faces { display: flex; }
.faces span {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-right: -0.6rem; border-radius: 50%;
  font: 700 1rem/1 var(--font-mono); color: var(--muted);
  border: 2px solid transparent; background: linear-gradient(#121216, #121216) padding-box, linear-gradient(135deg, var(--cyan), var(--pink)) border-box;
}

.signup { position: relative; }
.signup::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(37, 244, 238, 0.6), transparent 40%, transparent 60%, rgba(254, 44, 85, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* Inner pages: glowing header band with drifting dots */
.band { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding-block: clamp(1.75rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.band::before, .band-dots { position: absolute; top: -6rem; bottom: 0; left: calc(50% - 50vw); width: 100vw; pointer-events: none; }
.band::before {
  content: ''; z-index: -2;
  background: radial-gradient(40% 70% at 12% 35%, rgba(37, 244, 238, 0.16), transparent 70%), radial-gradient(35% 60% at 88% 25%, rgba(254, 44, 85, 0.16), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.band-gold::before { background: radial-gradient(40% 70% at 12% 35%, rgba(230, 183, 60, 0.18), transparent 70%), radial-gradient(35% 60% at 88% 25%, rgba(254, 44, 85, 0.12), transparent 70%); }
.band-pink::before { background: radial-gradient(40% 70% at 12% 35%, rgba(254, 44, 85, 0.2), transparent 70%), radial-gradient(35% 60% at 88% 25%, rgba(37, 244, 238, 0.12), transparent 70%); }
.band-dots {
  z-index: -1; opacity: 0.55;
  background-image: radial-gradient(circle, rgba(37, 244, 238, 0.6) 1px, transparent 1.7px), radial-gradient(circle, rgba(254, 44, 85, 0.55) 1px, transparent 1.7px);
  background-size: 140px 120px, 190px 160px; background-position: 0 0, 60px 40px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 35%, #000, transparent); mask-image: radial-gradient(60% 80% at 50% 35%, #000, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .band-dots { animation: drift 45s linear infinite; }
  @keyframes drift { to { background-position: 140px -120px, -130px -120px; } }
}
.band-row { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.6rem); }
.band-icon {
  flex: none; display: grid; place-items: center; width: clamp(3.4rem, 7vw, 4.6rem); height: clamp(3.4rem, 7vw, 4.6rem); border-radius: 20px;
  color: var(--cyan); background: rgba(37, 244, 238, 0.07); border: 1px solid rgba(37, 244, 238, 0.35); box-shadow: 0 0 40px -12px rgba(37, 244, 238, 0.7);
}
.band-pink .band-icon { color: var(--pink); background: rgba(254, 44, 85, 0.07); border-color: rgba(254, 44, 85, 0.4); box-shadow: 0 0 40px -12px rgba(254, 44, 85, 0.7); }
.band-gold .band-icon { color: var(--gold); background: rgba(230, 183, 60, 0.07); border-color: rgba(230, 183, 60, 0.45); box-shadow: 0 0 40px -12px rgba(230, 183, 60, 0.75); }
.band-icon svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px currentColor); }
.band-icon.solid svg, .tool-icon.solid svg { fill: currentColor; stroke: none; }
.band-text { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.band h1 { overflow-wrap: anywhere; } /* "stevesplaining101" is one long word */
.band-text .lede { max-width: 40rem; }
.band-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.band-tags .topic-qa { text-decoration: none; }
.band-tags .topic-qa:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* Guide pages: planned lessons as a glowing path */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; max-width: 42rem; }
.timeline::before { content: ''; position: absolute; left: calc(1.2rem - 1px); top: 1.2rem; bottom: 1.2rem; width: 2px; background: linear-gradient(var(--cyan), var(--pink)); box-shadow: 0 0 12px rgba(37, 244, 238, 0.5); }
.timeline li { position: relative; display: flex; align-items: center; gap: 1rem; }
.step {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  font: var(--display-weight) 0.95rem/1 var(--font-display); color: var(--fg); border: 2px solid transparent;
  background: linear-gradient(#0e0e11, #0e0e11) padding-box, linear-gradient(135deg, var(--cyan), var(--pink)) border-box;
  box-shadow: 0 0 18px -4px rgba(37, 244, 238, 0.6);
}
.timeline li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; padding: 0.9rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.badge-planned { align-self: flex-start; font: 500 0.62rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); border: 1px dashed rgba(37, 244, 238, 0.5); border-radius: 999px; padding: 0.28rem 0.55rem; }
.timeline strong { font-weight: 700; }
.guide-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.guide-link { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.9rem 0.55rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s; }
.guide-link span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: var(--cyan); background: rgba(37, 244, 238, 0.08); }
.guide-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.guide-link:hover { border-color: rgba(37, 244, 238, 0.5); box-shadow: var(--glow-cyan); }

/* Kingdom pages */
.court-stage { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding-top: 3rem; }
.court-stage .court { width: min(100%, 34rem); }
.court-stage .court-lg { width: min(100%, 46rem); }
.court-lg .seat figcaption b { font-size: 1.6rem; }
.court-note { color: var(--muted); font-size: 0.92rem; text-align: center; max-width: 30rem; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 46rem; }
.platform {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1a20, #141418); color: inherit; text-decoration: none; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.platform b { font: var(--display-weight) 1.15rem/1.15 var(--font-display); font-stretch: var(--display-stretch); }
.platform span:not(.tool-icon):not(.topic-go) { color: var(--muted); font-size: 0.9rem; }
a.platform:hover { transform: translateY(-4px); border-color: rgba(37, 244, 238, 0.5); box-shadow: 0 24px 50px -26px rgba(37, 244, 238, 0.55); }
.platform.off { opacity: 0.55; border-style: dashed; }
.info-card { display: flex; align-items: center; gap: 1rem; max-width: 46rem; padding: 1.1rem 1.25rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.info-card .tool-icon { flex: none; }
.info-card p { color: var(--muted); }
.next-live {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; max-width: 46rem; padding: 1.5rem; border-radius: 18px;
  border: 1px solid rgba(254, 44, 85, 0.35); background: radial-gradient(60% 120% at 0% 0%, rgba(254, 44, 85, 0.16), transparent 70%), var(--surface);
}
.next-live .live-pill { display: inline-flex; align-items: center; gap: 0.35rem; }
.next-live .live-pill .dot { width: 0.45rem; height: 0.45rem; background: #fff; box-shadow: none; }
.next-live b { font: var(--display-weight) clamp(1.6rem, 4vw, 2.2rem)/1 var(--font-display); font-stretch: var(--display-stretch); }
.next-live span:last-child { color: var(--muted); }

/* Shop page */
.filters { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); align-self: flex-start; }
.filters button { font: 600 0.85rem/1 var(--font-body); color: var(--muted); background: none; border: 0; padding: 0.6rem 1rem; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--fg); background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(254, 44, 85, 0.55), var(--glow-pink); }
.product-blurb { color: var(--muted); font-size: 0.9rem; }
.product .buy { margin-top: 0.3rem; }

/* Inner pages (older blocks) */
.page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding-block: clamp(1.5rem, 5vw, 3rem) 1.5rem; max-width: 44rem; }
.crumbs { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.crumbs a { color: var(--muted); }
.status {
  display: inline-block; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 0.75rem; border: 1.5px dashed var(--ornament); border-radius: 999px; color: var(--ornament);
}
.block { display: flex; flex-direction: column; gap: 1rem; padding-block: 1.25rem; min-width: 0; }
.block > p { color: var(--muted); max-width: 40rem; }
.planned { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 40rem; }
.planned li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.planned li span { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ornament); }
.planned li strong { font-weight: 600; }
.note { font: 400 0.8rem/1.6 var(--font-mono); color: var(--muted); max-width: 44rem; border-left: 3px solid var(--line); padding-left: 0.9rem; }

/* Guide questions with AI search */
.qa { gap: 1.1rem; }
.qa-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; max-width: 46rem; }
.qa-badge {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.7rem; border-radius: 999px; border: 1px solid var(--line);
  font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.qa-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.qa-badge[data-state="loading"] i { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.qa-badge[data-state="ai"] { color: var(--cyan); border-color: rgba(37, 244, 238, 0.45); box-shadow: var(--glow-cyan); }
.qa-badge[data-state="ai"] i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.qa-search {
  display: flex; align-items: center; gap: 0.6rem; max-width: 46rem; padding: 0 0.5rem 0 1.1rem;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s;
}
.qa-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(37, 244, 238, 0.14), var(--glow-cyan); }
.qa-search svg { flex: none; width: 1.2rem; height: 1.2rem; color: var(--muted); }
.qa-search input { flex: 1; min-width: 0; padding: 0.95rem 0.5rem 0.95rem 0; border: 0; outline: none; background: none; color: var(--fg); font: 500 1rem/1.2 var(--font-body); }
.qa-search input::placeholder { color: var(--muted); }
.block > .qa-status { font: 500 0.76rem/1.4 var(--font-mono); min-height: 1.1em; }
.qa-list { display: grid; gap: 0.6rem; max-width: 46rem; }
.qa-item { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.qa-item[open] { border-color: rgba(37, 244, 238, 0.4); }
.qa-item.top { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.qa-item summary { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; list-style: none; cursor: pointer; font-weight: 700; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after { content: '+'; flex: none; font: 400 1.4rem/1 var(--font-mono); color: var(--cyan); transition: transform 0.2s; }
.qa-item[open] summary::after { transform: rotate(45deg); }
.qa-q { flex: 1; min-width: 0; }
.qa-score { flex: none; padding: 0.3rem 0.5rem; border-radius: 999px; font: 700 0.64rem/1 var(--font-mono); color: #000; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.qa-a { display: grid; gap: 0.7rem; padding: 0 1.1rem 1.1rem; color: #c9c9d3; }
.qa-a ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.3rem; }
.qa-src { font: 400 0.72rem/1.5 var(--font-mono); color: var(--muted); }
.qa-src a { color: var(--cyan); }
@media (prefers-reduced-motion: no-preference) {
  .qa-item.moved { animation: rise 0.3s ease-out; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.thumb { aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: 8px; display: grid; place-items: center; color: var(--gold); }
.thumb svg { width: 2.2rem; height: 2.2rem; }
.tag { align-self: flex-start; font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ornament); border: 1px solid var(--ornament); border-radius: 4px; padding: 0.25rem 0.4rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.price { font: 700 0.95rem/1 var(--font-mono); }
.buy { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }

.signup { display: flex; flex-direction: column; gap: 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.25rem, 4vw, 2rem); margin-block-end: clamp(2rem, 5vw, 3rem); }
.signup form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.signup input { flex: 1 1 14rem; min-width: 0; font: inherit; padding: 0.75rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); }
.signup input:disabled { opacity: 0.6; }

footer { border-top: 1px solid var(--line); padding-block: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; font: 400 0.78rem/1.6 var(--font-mono); color: var(--muted); }
footer p { max-width: 52rem; }

@media (max-width: 1180px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { flex-direction: column; align-items: center; gap: 1rem; }
  .ai-log { margin: 0; width: min(19.5rem, 100%); }
}
@media (max-width: 860px) {
  .hero, .kingdom, .about, .try-grid { grid-template-columns: minmax(0, 1fr); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products > :last-child { grid-column: 1 / -1; }
  .court { margin-top: 3rem; } /* room for the raised middle frame and its crown under the button */
  .court-stage .court { margin-top: 1rem; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .stage { justify-self: center; width: 100%; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic, .topic:nth-child(n+4) { grid-column: auto; }
  .topic:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .topics, .products, .tools { grid-template-columns: minmax(0, 1fr); }
  .topic:last-child, .products > :last-child { grid-column: auto; }
  .nav { gap: 0.4rem 1.1rem; }
  .phone { width: min(19.5rem, 100%); }
  .band-row { flex-direction: column; align-items: flex-start; }
  .band h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}
