/* SparkBox — design tokens + base */
:root {
  --bg: #0a0a0f;
  --bg-2: #101016;
  --bg-3: #16161f;
  --surface: #1a1a24;
  --surface-2: #20202c;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #f2f2f5;
  --text-2: #a8a8b4;
  --text-3: #6b6b78;
  /* Brand palette: white (text), purple (primary), gold (spark accent).
     No cyan, no green — older selectors that named those colors now
     alias to gold so JSX doesn't have to change. */
  --purple: #6366f1;
  --purple-2: #8b8dfb;
  --purple-soft: rgba(99,102,241,0.14);
  --purple-glow: rgba(99,102,241,0.45);

  --gold: #fdba73;
  --gold-2: #fde68a;
  --gold-soft: rgba(253,186,115,0.14);
  --gold-glow: rgba(253,186,115,0.4);

  /* Legacy color aliases — point cyan + green at gold so all existing
     .pill-cyan / .dot-cyan / .text-green / .t-green selectors auto-
     update to brand without touching every JSX file. */
  --cyan: var(--gold);
  --cyan-soft: var(--gold-soft);
  --green: var(--gold);
  --green-soft: var(--gold-soft);
  --red: #f87171;
  --red-soft: rgba(248,113,113,0.12);
  --amber: #fbbf24;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1240px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section {
  padding: 120px 0;
  position: relative;
}
.section-tight { padding: 80px 0; }

.section-head {
  max-width: 880px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  /* Was clamp(36px, 5vw, 60px) — hit 60px on desktop, made first
     lines wrap to 2 (so 2-line headings became 3-line). Tightened. */
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.05;
  margin: 14px 0 18px;
}
.section-head p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 620px;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #7b7eff 0%, #6366f1 100%);
  color: white;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset,
              0 10px 30px -8px var(--purple-glow),
              0 0 60px -10px var(--purple-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset,
              0 14px 40px -8px var(--purple-glow),
              0 0 90px -10px var(--purple-glow);
}
.btn-secondary {
  background: rgba(99,102,241,0.06);
  color: var(--purple-2);
  border: 1px solid rgba(99,102,241,0.4);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.05) inset;
}
.btn-secondary:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.6);
  color: #fff;
  transform: translateY(-1px);
}

.price-strike {
  color: var(--text-3);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
}
.pill-cyan { color: var(--cyan); border-color: rgba(34,211,238,0.3); background: var(--cyan-soft); }
.pill-gold { color: var(--gold); border-color: rgba(253,186,115,0.4); background: var(--gold-soft); }
.pill-purple { color: var(--purple-2); border-color: rgba(99,102,241,0.35); background: var(--purple-soft); }

/* Default status dot is now spark-gold (was generic dashboard-green).
   This is the dot used on the live changelog ticker, "all systems
   operational" indicators, sticky status pill, etc. */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
/* dot-cyan is named for legacy reasons — actually paints in brand gold now. */
.dot-cyan { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(251,191,36,0.18); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-soft); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Aurora + mesh */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: drift 34s ease-in-out infinite;
}
.aurora::before {
  background: radial-gradient(circle, rgba(99,102,241,0.6) 0%, transparent 60%);
  top: -200px;
  left: -100px;
}
.aurora::after {
  background: radial-gradient(circle, rgba(34,211,238,0.35) 0%, transparent 60%);
  bottom: -300px;
  right: -100px;
  animation-delay: -12s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}

/* Grid dot background for hero */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,15,0.72);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-left { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
/* Real SparkBox logo (NAS box + spark). Replaces the placeholder
   purple→cyan gradient dot the original Claude Design template used. */
.wordmark-glyph {
  width: 28px; height: 28px;
  background: url(logo.png) center/contain no-repeat;
  filter: drop-shadow(0 2px 8px var(--purple-glow));
  flex-shrink: 0;
}
.wordmark-glyph::after { content: none; }

/* Changelog strip types */
.ticker {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.ticker::-webkit-scrollbar { height: 6px; }
.ticker::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-purple { color: var(--purple-2); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Media */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
}
