/* ===== Tokens ===== */
/* Shared with the Lumos and Sonorus sites; Studio's neon pair comes from its logo: magenta to mint. */
:root {
  --bg: #0a0a0c;
  --elevated: #141418;
  --elevated-2: #1c1c21;
  --text: #f5f5f7;
  --muted: #8a8a94;
  --hairline: rgba(255, 255, 255, 0.08);
  --neon-a: #ff3fd8; /* magenta, the logo's outer strands */
  --neon-b: #2ff5c4; /* mint, the logo's inner strands */
  --maxw: 1100px;
  --pad: clamp(20px, 5vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ===== Base ===== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(64px, 12vh, 140px); border-top: 1px solid var(--hairline); }
h1, h2, h3 { text-wrap: balance; }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.neon-text {
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  max-width: 22ch;
}
.section-lead {
  margin-top: 1rem; color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 56ch;
}
.section-head { margin-bottom: clamp(32px, 6vh, 56px); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b));
  color: #0a0a0c; font-weight: 700; font-size: 1rem; font-family: inherit;
  border: 0; border-radius: 10px; padding: 0.85rem 1.5rem; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--hairline); padding: calc(0.85rem - 1px) calc(1.5rem - 1px);
}
.btn-ghost:hover { filter: none; border-color: var(--neon-b); }

/* ===== Nav ===== */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 22px; }
.nav-links { display: flex; gap: 1.75rem; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ===== Hero ===== */
.hero { background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 63, 216, 0.14), transparent 70%), radial-gradient(ellipse 50% 40% at 70% 10%, rgba(47, 245, 196, 0.08), transparent 70%); }
.hero-body { padding-top: clamp(40px, 10vh, 110px); }
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-logo {
  width: 44px; height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 63, 216, 0.35));
}
.brand-word {
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero-title {
  font-size: clamp(2.8rem, 9vw, 6.25rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 0.95;
}
.hero-sub {
  margin-top: 1.5rem; color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
}
.hero-actions { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.range {
  margin-top: clamp(48px, 9vh, 96px); padding-bottom: clamp(48px, 8vh, 88px);
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 760px) { .range { grid-template-columns: 1fr 1fr; } }

/* ===== Spark card (mirrors the app's card) ===== */
.spark {
  background: var(--elevated);
  border: 1px solid rgba(47, 245, 196, 0.25); border-radius: 18px;
  padding: clamp(18px, 3vw, 24px);
  display: grid; gap: 0.6rem; align-content: start;
  box-shadow: 0 30px 70px -50px rgba(255, 63, 216, 0.45);
}
.spark-kicker { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.spark-title { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.spark-premise { color: var(--muted); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li { font-size: 0.8rem; background: rgba(255, 255, 255, 0.06); border-radius: 999px; padding: 0.25rem 0.7rem; }

/* ===== What's a Spark ===== */
.anatomy { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (min-width: 900px) { .anatomy { grid-template-columns: 1.1fr 1fr; } }
.field { display: grid; gap: 0.35rem; padding-top: 0.9rem; border-top: 1px solid var(--hairline); }
.field-label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--neon-b); }
.field p { font-size: 0.98rem; }
.things { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; }
.things li { background: var(--elevated-2); border-radius: 12px; padding: 0.6rem; font-size: 0.85rem; display: grid; gap: 0.45rem; }
.thumb { aspect-ratio: 1; border-radius: 8px; }
.thumb-crash { background: radial-gradient(circle at 40% 60%, #7cffb2, #1b3b2e 60%, #0b1410); }
.thumb-stars { background: radial-gradient(circle at 50% 40%, #9bb8ff, #1d2442 55%, #0a0c18); }
.thumb-badge { background: radial-gradient(circle at 60% 50%, #ffb86b, #4a2412 55%, #140a06); }
.notes { list-style: none; counter-reset: note; border-top: 1px solid var(--hairline); }
.notes li {
  counter-increment: note; position: relative;
  padding: 1.1rem 0 1.1rem 2.25rem; border-bottom: 1px solid var(--hairline);
  color: var(--muted); font-size: 1rem;
}
.notes li::before {
  content: counter(note); position: absolute; left: 0; top: 1.2rem;
  font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--neon-b);
}
.notes strong { display: block; color: var(--text); font-weight: 600; font-size: 1.08rem; margin-bottom: 0.15rem; }

/* ===== Philosophy ===== */
.qualities { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hairline); }
@media (min-width: 700px) { .qualities { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 6vw, 80px); } }
.qualities li { padding-block: 1.1rem; border-bottom: 1px solid var(--hairline); color: var(--muted); }
.qualities strong { display: block; color: var(--text); font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 500; letter-spacing: -0.01em; }
.beliefs { margin-top: clamp(40px, 7vh, 72px); display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 800px) { .beliefs { grid-template-columns: repeat(3, 1fr); } }
.beliefs h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.beliefs p { color: var(--muted); }
.creed {
  margin-top: clamp(40px, 7vh, 72px);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  max-width: 30ch;
}
.creed-note { margin-top: 1rem; color: var(--muted); }

/* ===== How it works ===== */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--elevated); border: 1px solid var(--hairline); border-radius: 16px;
  padding: clamp(20px, 3vw, 28px); display: grid; gap: 0.7rem; align-content: start;
}
.step-num { font-size: 2.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.2rem; font-weight: 600; }
.steps p { color: var(--muted); }
.bubble { font-size: 0.92rem; padding: 0.55rem 0.8rem; justify-self: start; }
.bubble-you { background: #221a30; border-radius: 14px 14px 4px 14px; }
.bubble-noir {
  background: linear-gradient(135deg, #2a1426, #16202a);
  border: 1px solid rgba(47, 245, 196, 0.3); border-radius: 14px 14px 14px 4px;
}
.steps-note { margin-top: 1.75rem; color: var(--muted); }

/* ===== Toolkit ===== */
.kit { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hairline); }
@media (min-width: 700px) { .kit { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 6vw, 80px); } }
.kit li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--hairline); }
.kit strong { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 500; }
.kit span { color: var(--muted); align-self: center; }

/* ===== Signup ===== */
.signup { text-align: center; }
.signup .section-title, .signup .section-lead { margin-inline: auto; }
.signup .section-lead { max-width: 46ch; margin-bottom: 2rem; }
.signup-form {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
  max-width: 480px; margin-inline: auto;
}
.signup-input {
  flex: 1 1 240px; min-width: 0;
  background: var(--elevated); color: var(--text);
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 0.85rem 1rem; font-size: 1rem; font-family: inherit;
}
.signup-input::placeholder { color: var(--muted); }
.signup-input:focus-visible { outline: 2px solid var(--neon-b); outline-offset: 2px; border-color: transparent; }
.signup-status { margin-top: 1.25rem; color: var(--text); font-size: 1rem; }
.signup-status.is-error { color: #ff6b6b; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--hairline); padding-block: clamp(48px, 9vh, 96px); }
.foot-mark { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.foot-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.foot-meta a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.foot-meta a:hover, .foot-meta a:focus-visible { color: var(--text); border-color: var(--neon-b); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Focus ===== */
:focus-visible { outline: 2px solid var(--neon-b); outline-offset: 3px; border-radius: 2px; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}
