/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #060b14;
  --bg: #0a0f1a;
  --bg-surface: #111827;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: rgba(0, 229, 255, 0.08);
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.15);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

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

/* === HERO === */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,229,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.25);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

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

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* === FREQUENCY DISPLAY === */
.hero-visual {
  position: relative;
}

.frequency-display {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.frequency-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet), transparent);
}

.freq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.freq-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.freq-live {
  font-size: 0.7rem;
  color: #22c55e;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Simulated frequency bars */
.freq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  margin-bottom: 24px;
  padding: 0 2px;
}

.freq-bars .bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  opacity: 0.7;
  animation: barPulse 1.5s ease-in-out infinite;
}

@keyframes barPulse {
  0%, 100% { height: var(--h); opacity: 0.7; }
  50% { opacity: 1; }
}

/* Generate varied bar heights with CSS custom props */
.freq-bars .bar:nth-child(1)  { --h: 20px; animation-delay: 0s; }
.freq-bars .bar:nth-child(2)  { --h: 35px; animation-delay: 0.1s; }
.freq-bars .bar:nth-child(3)  { --h: 15px; animation-delay: 0.2s; }
.freq-bars .bar:nth-child(4)  { --h: 45px; animation-delay: 0.05s; }
.freq-bars .bar:nth-child(5)  { --h: 30px; animation-delay: 0.15s; }
.freq-bars .bar:nth-child(6)  { --h: 55px; animation-delay: 0.08s; }
.freq-bars .bar:nth-child(7)  { --h: 25px; animation-delay: 0.12s; }
.freq-bars .bar:nth-child(8)  { --h: 40px; animation-delay: 0.18s; }
.freq-bars .bar:nth-child(9)  { --h: 50px; animation-delay: 0.03s; }
.freq-bars .bar:nth-child(10) { --h: 35px; animation-delay: 0.22s; }
.freq-bars .bar:nth-child(11) { --h: 20px; animation-delay: 0.07s; }
.freq-bars .bar:nth-child(12) { --h: 45px; animation-delay: 0.14s; }
.freq-bars .bar:nth-child(13) { --h: 30px; animation-delay: 0.19s; }
.freq-bars .bar:nth-child(14) { --h: 60px; animation-delay: 0.01s; }
.freq-bars .bar:nth-child(15) { --h: 25px; animation-delay: 0.11s; }
.freq-bars .bar:nth-child(16) { --h: 40px; animation-delay: 0.16s; }
.freq-bars .bar:nth-child(17) { --h: 15px; animation-delay: 0.21s; }
.freq-bars .bar:nth-child(18) { --h: 35px; animation-delay: 0.06s; }
.freq-bars .bar:nth-child(19) { --h: 50px; animation-delay: 0.13s; }
.freq-bars .bar:nth-child(20) { --h: 30px; animation-delay: 0.17s; }
.freq-bars .bar:nth-child(21) { --h: 45px; animation-delay: 0.02s; }
.freq-bars .bar:nth-child(22) { --h: 20px; animation-delay: 0.09s; }
.freq-bars .bar:nth-child(23) { --h: 55px; animation-delay: 0.23s; }
.freq-bars .bar:nth-child(24) { --h: 35px; animation-delay: 0.04s; }
.freq-bars .bar:nth-child(25) { --h: 25px; animation-delay: 0.20s; }

.freq-reading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.reading-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.reading-hz {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.reading-unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.reading-meta {
  flex: 1;
}

.reading-source {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* SVG Wave Animation */
.freq-waves {
  height: 80px;
  margin-top: 8px;
  opacity: 0.6;
}

.freq-waves svg { width: 100%; height: 100%; }

.wave { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.wave-1 { stroke: var(--accent); animation: waveMove 3s ease-in-out infinite; }
.wave-2 { stroke: var(--violet); animation: waveMove 3s ease-in-out infinite 0.5s; }
.wave-3 { stroke: rgba(0,229,255,0.4); animation: waveMove 4s ease-in-out infinite 1s; }

@keyframes waveMove {
  0% { d: path("M0,40 Q50,10 100,40 T200,40 T300,40 T400,40"); }
  50% { d: path("M0,40 Q50,60 100,40 T200,40 T300,40 T400,40"); }
  100% { d: path("M0,40 Q50,10 100,40 T200,40 T300,40 T400,40"); }
}

.hero-tagline {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.manifesto-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}

.manifesto-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  line-height: 1.2;
}

.manifesto-body {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

/* === FEATURES === */
.features {
  padding: 100px 0;
  background: var(--bg-deep);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.features-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
}

.features-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.feature-card:hover .feature-icon svg circle,
.feature-card:hover .feature-icon svg path,
.feature-card:hover .feature-icon svg rect {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === SPECTRUM === */
.spectrum {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.spectrum::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.spectrum-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.spectrum-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--violet);
  margin-bottom: 16px;
  font-weight: 600;
}

.spectrum-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.spectrum-body {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* Spectrum visual */
.spectrum-visual {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.band-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.band-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.band {
  flex: 1;
  height: 80px;
  border-radius: 4px;
}

.band-low { background: linear-gradient(180deg, #1e3a5f 0%, #0a1929 100%); }
.band-low-mid { background: linear-gradient(180deg, #1a4a6b 0%, #0a2433 100%); }
.band-mid { background: linear-gradient(180deg, #15607a 0%, #0a2833 100%); }
.band-mid-high { background: linear-gradient(180deg, #0e7a8f 0%, #07333d 100%); }
.band-high { background: linear-gradient(180deg, #00a5bb 0%, #004d55 100%); }

.spectrum-legend {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.low { background: #1e3a5f; border: 1px solid rgba(0,229,255,0.3); }
.legend-dot.mid { background: #15607a; border: 1px solid rgba(0,229,255,0.3); }
.legend-dot.high { background: #00a5bb; border: 1px solid rgba(0,229,255,0.3); }

.legend-item span { color: var(--text); font-weight: 500; }
.legend-item small { color: var(--text-muted); margin-left: auto; }

/* === CLOSING === */
.closing {
  padding: 120px 0;
  background: var(--bg-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(0,229,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.closing-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

.ring-1 { width: 120px; height: 120px; opacity: 0.2; animation: ringPulse 3s ease-in-out infinite; }
.ring-2 { width: 80px; height: 80px; opacity: 0.4; animation: ringPulse 3s ease-in-out infinite 0.3s; }
.ring-3 { width: 50px; height: 50px; opacity: 0.7; animation: ringPulse 3s ease-in-out infinite 0.6s; }

.closing-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  z-index: 1;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.05); opacity: 0.4; }
}

.closing-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1.25;
}

.closing-body {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 32px;
}

.closing-tagline {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* === FOOTER === */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .spectrum-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .closing-title br { display: none; }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero-stats {
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}