/* ============================================================
   Solana LevelUp — Design System
   Style: Modern Dark (Cinematic) · Solana brand accents
   Tokens first, components second, sections third.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces */
  --bg-deep: #05060b;
  --bg-base: #0a0c14;
  --bg-elevated: #10131f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text-primary: #edeff7;
  --text-secondary: #a7b0c4;
  --text-muted: #7d879e;

  /* Brand (Solana) */
  --sol-green: #14f195;
  --sol-green-soft: rgba(20, 241, 149, 0.12);
  --sol-teal: #00d1ff;
  --sol-blue: #5b8def;
  --sol-purple: #9945ff;
  --sol-purple-text: #b78bff;
  --sol-purple-soft: rgba(153, 69, 255, 0.14);

  /* Semantic */
  --color-up: #2ee6a8;
  --color-down: #ff6b81;
  --color-danger: #ff6b81;
  --on-accent: #05130c;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #9945ff 0%, #5b8def 45%, #00d1ff 70%, #14f195 100%);
  --grad-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));

  /* Shape & motion */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --shadow-card: 0 12px 40px rgba(2, 4, 10, 0.5);
  --shadow-glow-green: 0 8px 32px rgba(20, 241, 149, 0.22);

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

  color-scheme: dark;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--sol-green);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: #5ff7bb;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  font: inherit;
}

::selection {
  background: rgba(20, 241, 149, 0.28);
  color: #eafff5;
}

:focus-visible {
  outline: 2px solid var(--sol-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--sol-green);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--on-accent);
}

/* ---------- 3. Ambient background ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(153, 69, 255, 0.16), transparent 62%),
    radial-gradient(900px 480px at 88% -4%, rgba(20, 241, 149, 0.10), transparent 60%),
    radial-gradient(760px 420px at 50% 108%, rgba(0, 209, 255, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.11;
  will-change: transform;
}

.blob-a {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  background: var(--sol-purple);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.blob-b {
  width: 400px;
  height: 400px;
  top: 30vh;
  right: -140px;
  background: var(--sol-green);
  opacity: 0.08;
  animation: drift-b 32s var(--ease) infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(90px, 70px) scale(1.12); }
}

@keyframes drift-b {
  to { transform: translate(-70px, -90px) scale(1.08); }
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: rgba(7, 8, 14, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 8, 14, 0.86);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text-primary);
}

.brand .logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand .brand-up {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-strong);
}

.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--surface-strong);
  box-shadow: inset 0 -2px 0 var(--sol-green);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}

.nav-toggle:hover {
  background: var(--surface-strong);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
  touch-action: manipulation;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text-primary);
}

.btn:active {
  transform: scale(0.97);
}

.btn .btn-icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn-primary {
  background: var(--sol-green);
  border-color: var(--sol-green);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
  background: #46f6ad;
  border-color: #46f6ad;
  color: var(--on-accent);
  box-shadow: 0 10px 38px rgba(20, 241, 149, 0.34);
}

.btn-sm {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.9rem;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid rgba(5, 19, 12, 0.3);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 6. Ticker strip ---------- */
.ticker-strip {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 20, 0.6);
  padding: 9px 0;
}

.ticker-pause {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  margin-left: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.ticker-pause:hover {
  background: var(--surface-strong);
  color: var(--text-primary);
}

.ticker-pause svg {
  width: 14px;
  height: 14px;
}

.ticker-pause .icon-play { display: none; }
.ticker-strip.is-paused .ticker-pause .icon-pause { display: none; }
.ticker-strip.is-paused .ticker-pause .icon-play { display: block; }

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  margin-left: 12px;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 42s linear infinite;
}

.ticker-strip:hover .ticker-track,
.ticker-strip:focus-within .ticker-track,
.ticker-strip.is-paused .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin-right: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tick .sym {
  color: var(--text-primary);
  font-weight: 600;
}

.tick .px {
  color: var(--text-secondary);
}

.delta-up { color: var(--color-up); }
.delta-down { color: var(--color-down); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 64px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(20, 241, 149, 0.28);
  background: var(--sol-green-soft);
  color: #a9f5d4;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.5);
  animation: pulse 2.2s var(--ease) infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(20, 241, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); }
}

.hero h1 {
  margin: 22px auto 18px;
  max-width: 15ch;
  font-size: clamp(2.5rem, 6.4vw, 4.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero h1 .grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 1.14rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-bottom: 58px;
}

.stat {
  text-align: center;
  min-width: 128px;
}

.stat .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat .stat-label {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ---------- 8. Terminal panel (live board) ---------- */
.terminal {
  position: relative;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 19, 31, 0.92), rgba(10, 12, 20, 0.92));
  box-shadow: var(--shadow-card), 0 0 80px rgba(153, 69, 255, 0.08);
  overflow: hidden;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(153, 69, 255, 0.4), transparent 30%, transparent 68%, rgba(20, 241, 149, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.term-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.term-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.term-dots span:first-child { background: rgba(255, 107, 129, 0.7); }
.term-dots span:nth-child(2) { background: rgba(255, 200, 90, 0.65); }
.term-dots span:last-child { background: rgba(20, 241, 149, 0.65); }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-tag {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a9f5d4;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(20, 241, 149, 0.3);
  background: var(--sol-green-soft);
}

.board-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.board-scroll:focus-visible {
  outline: 2px solid var(--sol-green);
  outline-offset: -3px;
}

.board {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.board caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.board th {
  padding: 11px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.board td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board tbody tr {
  transition: background var(--dur-fast) var(--ease);
}

.board tbody tr:hover {
  background: rgba(255, 255, 255, 0.028);
}

.board tbody tr:last-child td {
  border-bottom: none;
}

.board .num {
  text-align: right;
}

.board th.num {
  text-align: right;
}

.token-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-ava {
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--sol-purple-soft);
  border: 1px solid rgba(153, 69, 255, 0.35);
}

.token-name {
  color: var(--text-primary);
  font-weight: 600;
}

.token-pair {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.score-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}

.score-bar {
  flex: 1;
  height: 6px;
  min-width: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.score-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-brand);
}

.score-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 2ch;
}

.spark {
  display: block;
  margin-left: auto;
}

.spark .up-line { stroke: var(--color-up); }
.spark .down-line { stroke: var(--color-down); }

.board-note {
  margin: 0;
  padding: 10px 18px 13px;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-note .note-icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--sol-purple-text);
}

/* ---------- 9. Sections ---------- */
.section {
  padding: 92px 0;
}

.section-alt {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.014);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.overline {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sol-green);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

/* Trust strip */
.trust-strip {
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-right: 6px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

.trust-chip svg {
  width: 15px;
  height: 15px;
  color: var(--sol-purple-text);
}

/* ---------- 10. Cards / bento ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  grid-column: span 4;
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--grad-panel);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(153, 69, 255, 0.4);
  box-shadow: 0 16px 44px rgba(2, 4, 10, 0.55), 0 0 0 1px rgba(153, 69, 255, 0.12);
}

.card-wide { grid-column: span 8; }
.card-half { grid-column: span 6; }

.card h3 {
  font-size: 1.16rem;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  border: 1px solid rgba(153, 69, 255, 0.3);
  background: var(--sol-purple-soft);
  color: var(--sol-purple-text);
}

.card-icon.green {
  border-color: rgba(20, 241, 149, 0.3);
  background: var(--sol-green-soft);
  color: var(--sol-green);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- 11. Steps (how it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--grad-panel);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.3);
  background: var(--sol-green-soft);
}

.step h3 {
  font-size: 1.06rem;
  margin-bottom: 7px;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
}

.step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -14px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--text-muted);
  border-right: 2px solid var(--text-muted);
  transform: rotate(45deg);
  opacity: 0.5;
}

.step:last-child::after {
  display: none;
}

/* ---------- 12. Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.phase {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--grad-panel);
  overflow: hidden;
}

.phase::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--border-strong);
}

.phase.is-live::before {
  background: var(--grad-brand);
}

.phase.is-next::before {
  background: var(--sol-purple);
}

.phase-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.phase.is-live .phase-status {
  color: #a9f5d4;
  border-color: rgba(20, 241, 149, 0.35);
  background: var(--sol-green-soft);
}

.phase.is-next .phase-status {
  color: var(--sol-purple-text);
  border-color: rgba(153, 69, 255, 0.4);
  background: var(--sol-purple-soft);
}

.phase h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.phase ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.phase li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.phase li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--sol-green);
  border-bottom: 2px solid var(--sol-green);
  transform: rotate(-45deg);
  opacity: 0.85;
}

/* ---------- 13. Community ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.community-grid .card {
  grid-column: auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--grad-panel);
  color: var(--text-secondary);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 241, 149, 0.35);
  color: var(--text-secondary);
}

.social-card .social-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.social-card .card-icon {
  margin-bottom: 0;
}

.social-card .arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.social-card:hover .arrow {
  transform: translate(3px, -3px);
  color: var(--sol-green);
}

.social-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.social-card p {
  margin: 0;
  font-size: 0.9rem;
}

.social-handle {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--sol-green);
}

/* ---------- 14. FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--grad-panel);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--sol-green);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.faq-item[open] {
  border-color: rgba(153, 69, 255, 0.35);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease);
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
  color: var(--sol-green);
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.faq-item .faq-body p {
  margin: 0;
}

/* ---------- 15. Forms ---------- */
.panel {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 19, 31, 0.9), rgba(10, 12, 20, 0.9));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 85% -20%, rgba(20, 241, 149, 0.09), transparent 65%),
    radial-gradient(520px 260px at 8% 115%, rgba(153, 69, 255, 0.11), transparent 65%);
  pointer-events: none;
}

.panel > * {
  position: relative;
}

.form-field {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label .req {
  color: var(--color-danger);
}

.form-input,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(5, 6, 11, 0.6);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sol-green);
  box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.16);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.form-input[aria-invalid="true"]:focus,
.form-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.16);
}

.form-textarea {
  min-height: 128px;
  resize: vertical;
}

.form-error {
  display: none;
  margin-top: 7px;
  font-size: 0.82rem;
  color: var(--color-down);
  align-items: center;
  gap: 6px;
}

.form-error.is-visible {
  display: flex;
}

.form-error svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.form-hint {
  margin-top: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.ok {
  color: var(--color-up);
}

.form-status.err {
  color: var(--color-down);
}

.waitlist-form {
  max-width: 480px;
  margin-inline: auto;
}

.waitlist-form .form-field {
  margin: 0;
}

.waitlist-form .form-label {
  text-align: left;
}

.wl-row {
  display: flex;
  gap: 12px;
}

.wl-row .form-input {
  flex: 1;
  min-width: 0;
}

.contact-form {
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- 16. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 11, 0.75);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}

.footer-col h3 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--sol-green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- 17. About page ---------- */
.page-hero {
  padding: 88px 0 56px;
  text-align: center;
}

.page-hero h1 {
  max-width: 18ch;
  margin: 20px auto 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}

.page-hero .hero-sub {
  margin-bottom: 34px;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fact-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.87rem;
}

.fact-chip .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.fact-chip .v {
  color: var(--text-primary);
  font-weight: 600;
}

.mission-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.mission-quote .grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 18. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1023px) {
  .card { grid-column: span 6; }
  .card-wide { grid-column: span 12; }
  .t-wide { grid-column: span 12; }
  .grid-3 .card { grid-column: span 12; }
  .community-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    background: rgba(7, 8, 14, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }

  .nav-links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }

  .nav-links a {
    min-height: 48px;
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta .btn-header {
    display: none;
  }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 64px 0 48px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
    margin-bottom: 44px;
  }
  .stat { min-width: 0; }
  .card { grid-column: span 12; }
  .card-half { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    row-gap: 8px;
    width: auto;
  }

  .ticker-track .tick-dup {
    display: none;
  }

  .blob {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
