@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Spectra original tokens */
  --bg: #1c1c1e;
  --bg-elevated: #2c2c2e;
  --bg-surface: #242426;
  --bg-card: #1a1a1c;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --accent: #00f99b;
  --accent-dim: rgba(0, 249, 155, 0.12);
  --accent-glow: rgba(0, 249, 155, 0.15);
  --accent-glow-strong: rgba(0, 249, 155, 0.3);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #636366;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-launch:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  min-height: calc(100vh - var(--header-h));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 28px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-surface);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow-strong);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  max-width: 900px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-sub + .hero-sub {
  margin-top: -24px;
  margin-bottom: 40px;
}

/* Buttons — Spectra Launch App style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 32px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn-primary:hover svg { transform: translateX(3px); }

.btn-vote {
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 500;
}

/* Features */
.features {
  padding: 0 24px 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(0, 249, 155, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 300;
}

/* Stats */
.stats {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Proposal page */
.proposal-hero {
  min-height: calc(100vh - var(--header-h) - 200px);
}

.boost-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 249, 155, 0.35);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

@media (max-width: 767px) {
  .header-actions .btn-launch { display: none; }
}
