:root {
  --void: #0a0812;
  --void-2: #12101c;
  --ink: #f4f2ff;
  --muted: #9b94b8;
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.18);
  --rose: #fb7185;
  --rose-dim: rgba(251, 113, 133, 0.15);
  --sky: #38bdf8;
  --lime: #a3e635;
  --amber: #fbbf24;
  --fuchsia: #e879f9;
  --line: rgba(244, 242, 255, 0.08);
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-bottom: 4.5rem; }
body.prism {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--void);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}
a, button { color: inherit; text-decoration: none; font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: "Literata", Georgia, serif; font-weight: 700; line-height: 1.08; }

.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 5% 80%, rgba(251, 113, 133, 0.14), transparent 50%),
    var(--void);
}

.note-top {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 8, 18, 0.9);
}

/* Dock nav — top pill, not sidebar */
.dock {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  margin: 0.75rem 1rem 0;
  background: rgba(18, 16, 28, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.dock-mark {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.dock-nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 1.5rem;
}
.dock-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.dock-nav a:hover { color: var(--sky); }
.dock-cta {
  margin-left: auto;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.dock-cta:hover { filter: brightness(1.08); }
@media (min-width: 768px) {
  .dock-nav { display: flex; }
  .dock-cta { margin-left: 0; }
}

.flow { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-hot { background: var(--rose); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }

/* Burst hero */
.burst {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
  align-items: center;
}
@media (min-width: 900px) {
  .burst { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; padding: 4rem 0 5rem; }
}
.burst-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sky);
  margin-bottom: 1rem;
}
.burst h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: 1rem; }
.burst h1 .line { display: block; }
.burst h1 .accent {
  background: linear-gradient(120deg, var(--violet), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.burst-lead { color: var(--muted); font-size: 1.02rem; max-width: 32rem; }
.burst-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.5rem 0 0.75rem; }
.burst-note { font-size: 0.72rem; color: var(--muted); display: block; }
.burst-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.burst-stats b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lime);
  display: block;
}
.burst-stats dd { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }

.burst-stack {
  position: relative;
  min-height: 280px;
}
@media (min-width: 900px) { .burst-stack { min-height: 360px; } }
.stack-card {
  position: absolute;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}
.sc-code { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; opacity: 0.8; }
.sc-name { font-family: "Literata", serif; font-size: 1rem; font-weight: 700; }
.sc-1 { top: 0; left: 5%; width: 58%; animation-delay: 0s; }
.sc-2 { top: 28%; right: 0; width: 52%; animation-delay: -1.5s; }
.sc-3 { bottom: 18%; left: 12%; width: 48%; animation-delay: -3s; }
.sc-4 { bottom: 0; right: 8%; width: 55%; animation-delay: -4.5s; }
.tone-ds { background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(10,8,18,0.9)); }
.tone-biz { background: linear-gradient(135deg, rgba(251,113,133,0.3), rgba(10,8,18,0.9)); }
.tone-tech { background: linear-gradient(135deg, rgba(56,189,248,0.28), rgba(10,8,18,0.9)); }
.tone-health { background: linear-gradient(135deg, rgba(163,230,53,0.25), rgba(10,8,18,0.9)); }
.tone-art { background: linear-gradient(135deg, rgba(251,191,36,0.28), rgba(10,8,18,0.9)); }
.tone-lang { background: linear-gradient(135deg, rgba(232,121,249,0.28), rgba(10,8,18,0.9)); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Subject stream */
.stream { padding: 2rem 0 3.5rem; }
.stream-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.35rem; }
.stream-head p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.stream-rail {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.stream-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 9.5rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 2px solid transparent;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.stream-chip.is-on { border-color: var(--ink); transform: scale(1.03); }
.chip-code {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}
.chip-label { font-family: "Literata", serif; font-size: 1rem; font-weight: 700; }
.stream-focus {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--void-2);
  border-left: 3px solid var(--violet);
  border-radius: 0 12px 12px 0;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 3.5rem;
}

/* Pipeline timeline */
.pipeline { padding: 2rem 0 3.5rem; }
.pipeline-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.35rem; }
.pipeline-head p { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }
.pipeline-list {
  list-style: none;
  position: relative;
  padding-left: 3.5rem;
}
.pipeline-list::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--violet), var(--rose));
}
.pipe-step {
  position: relative;
  margin-bottom: 2rem;
}
.pipe-step:last-child { margin-bottom: 0; }
.pipe-num {
  position: absolute;
  left: -3.5rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 8px;
  background: var(--void-2);
  border: 2px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violet);
}
.pipe-body {
  padding: 1.1rem 1.25rem;
  background: var(--void-2);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.pipe-body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.pipe-body p { font-size: 0.88rem; color: var(--muted); }

/* Marquee */
.marquee-sec {
  padding: 2rem 0;
  margin: 0 -1.25rem;
  border-block: 1px solid var(--line);
  background: var(--void-2);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
}
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scroll 28s linear infinite;
  padding: 0.5rem 0;
}
.marquee-track span {
  font-family: "Literata", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(244, 242, 255, 0.35);
  white-space: nowrap;
}
.marquee-sub {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  padding: 0 1.25rem;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Feature matrix */
.matrix { padding: 3rem 0; }
.matrix-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.35rem; }
.matrix-head p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.matrix-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 600px) {
  .matrix-grid { grid-template-columns: repeat(4, 1fr); }
}
.matrix-cell {
  padding: 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--void-2);
  min-height: 9rem;
}
.mc-glyph {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.mc-1 .mc-glyph { background: linear-gradient(135deg, var(--violet), transparent); }
.mc-2 .mc-glyph { background: linear-gradient(135deg, var(--sky), transparent); }
.mc-3 .mc-glyph { background: linear-gradient(135deg, var(--lime), transparent); }
.mc-4 .mc-glyph { background: linear-gradient(135deg, var(--amber), transparent); }
.matrix-cell h3 { font-size: 0.82rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; margin-bottom: 0.25rem; }
.matrix-cell p { font-size: 0.72rem; color: var(--muted); line-height: 1.45; }

/* Quote wall */
.wall {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .wall { grid-template-columns: 10rem 1fr; align-items: start; }
}
.wall-score {
  text-align: center;
  padding: 1.25rem;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--violet-dim), var(--rose-dim));
  border: 1px solid var(--line);
}
.wall-score b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.25rem;
  color: var(--amber);
  display: block;
}
.wall-score span { font-size: 0.72rem; color: var(--muted); }
.wall-quotes {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .wall-quotes { grid-template-columns: repeat(3, 1fr); }
}
.wall-card {
  padding: 1.1rem;
  background: var(--void-2);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.wall-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.wall-card p { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.wall-card cite { display: block; margin-top: 0.5rem; font-size: 0.75rem; font-weight: 700; font-style: normal; }

/* FAQ panel */
.panel-faq { padding: 2rem 0 3rem; }
.panel-faq h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.panel-list { display: flex; flex-direction: column; gap: 0.5rem; }
.panel-row {
  background: var(--void-2);
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  overflow: hidden;
}
.panel-row[open] { border-left-color: var(--rose); }
.panel-row summary {
  padding: 0.95rem 1rem;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  list-style: none;
}
.panel-row summary::-webkit-details-marker { display: none; }
.panel-row p { padding: 0 1rem 1rem; font-size: 0.84rem; color: var(--muted); }

/* Slant CTA */
.slant {
  margin: 0 -1.25rem 2rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--violet) 0%, #6d28d9 40%, var(--rose) 100%);
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}
@media (min-width: 768px) {
  .slant { padding: 4rem 2.5rem; clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%); }
}
.slant-inner { max-width: 28rem; }
.slant h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.5rem; }
.slant p { opacity: 0.92; margin-bottom: 1.5rem; font-size: 0.95rem; }

/* Footer */
.base {
  padding: 2rem 1.25rem 5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .base { padding-bottom: 2rem; } }
.base nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0;
  font-weight: 600;
  color: var(--ink);
}
.base-fine { font-size: 0.68rem; }

/* Mobile thumb nav */
.thumb {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(18, 16, 28, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 768px) { .thumb { display: none; } }
.thumb a:hover { color: var(--ink); }
.thumb-dl {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--rose);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cookie {
  display: none;
  position: fixed;
  bottom: 4.25rem;
  left: 1rem;
  right: 1rem;
  z-index: 110;
  max-width: 22rem;
  margin: 0 auto;
  padding: 1rem;
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.76rem;
}
@media (min-width: 768px) { .cookie { bottom: 1rem; } }
.cookie.show { display: block; }
.cookie-no {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: underline;
}

/* Legal pages */
.legal-body { background: var(--void); min-height: 100vh; color: var(--ink); }
.legal-top { max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem; }
.legal-main { max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem 5rem; }
.legal-content h2 { font-size: 0.95rem; color: var(--violet); margin: 1.5rem 0 0.5rem; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 0.92rem; margin-top: 0.45rem; }
.legal-content ul { margin-left: 1.2rem; list-style: disc; }
.legal-content a { color: var(--sky); font-weight: 600; }
.legal-footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
