:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-accent: #1a1a2e;
  --fg-primary: #e8e8f0;
  --fg-secondary: #8888a0;
  --fg-muted: #55556a;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.15);
  --accent-glow: rgba(0, 229, 160, 0.3);
  --warning: #ff6b4a;
  --border: #222233;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

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

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 160, 0.2);
  display: inline-block;
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── PULSE VISUAL ─── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pulse-grid {
  width: 320px;
  height: 320px;
  position: relative;
}

.pulse-node {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg-secondary);
  z-index: 2;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: 0; transform: translateY(-50%); }
.node-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.node-4 { top: 50%; left: 0; transform: translateY(-50%); }

.pulse-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  z-index: 3;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 1px solid var(--accent-glow);
  border-radius: 50%;
  animation: pulse-expand 3s ease-out infinite;
}

.pulse-ring.ring-2 {
  width: 140px;
  height: 140px;
  animation-delay: 1.5s;
}

@keyframes pulse-expand {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

.pulse-line {
  position: absolute;
  background: linear-gradient(to right, var(--accent-glow), transparent);
  height: 1px;
  z-index: 1;
}

.line-1 {
  top: 28px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(to bottom, var(--accent-glow), transparent);
  width: 1px;
  height: 104px;
  left: 50%;
  top: 56px;
}

.line-2 {
  top: 50%;
  right: 56px;
  width: 104px;
  height: 1px;
}

.line-3 {
  top: 50%;
  left: 56px;
  width: 104px;
  height: 1px;
  background: linear-gradient(to left, var(--accent-glow), transparent);
}

/* ─── SIGNAL STATS ─── */
.signal {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.signal-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.signal-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
  max-width: 160px;
}

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

/* ─── FEATURES ─── */
.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 3.5rem;
}

.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.features-header p {
  font-size: 1.05rem;
  color: var(--fg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--fg-muted);
}

.feature-card.card-accent {
  background: var(--bg-card-accent);
  border-color: rgba(0, 229, 160, 0.15);
}

.feature-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ─── HOW (Comparison) ─── */
.how {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

.how-container {
  max-width: 1000px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.how-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.how-column {
  padding: 2rem;
  border-radius: 8px;
}

.how-old {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.how-new {
  background: var(--bg-card-accent);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.how-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: var(--fg-muted);
}

.how-new .how-label {
  color: var(--accent);
}

.how-column ul {
  list-style: none;
}

.how-column li {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-left: 1.2rem;
  position: relative;
}

.how-column li:last-child {
  border-bottom: none;
}

.how-old li::before {
  content: '\00D7';
  position: absolute;
  left: 0;
  color: var(--warning);
  font-weight: 600;
}

.how-new li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ─── CLOSING ─── */
.closing {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

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

.closing h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.closing p {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* ─── LANDING NAV ─── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
}

.landing-nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(0, 229, 160, 0.3);
  border-radius: 3px;
  transition: background 0.2s;
}

.landing-nav-cta:hover {
  background: var(--accent-dim);
}

/* Add top padding to hero to account for fixed nav */
.hero {
  padding-top: 8rem !important;
}

/* ─── HERO CTA ─── */
.hero-cta-row {
  margin-top: 2rem;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-btn:hover { opacity: 0.87; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .pulse-grid {
    width: 240px;
    height: 240px;
  }

  .pulse-node {
    width: 44px;
    height: 44px;
    font-size: 0.6rem;
  }

  .pulse-center {
    width: 56px;
    height: 56px;
  }

  .line-1 { height: 76px; top: 44px; }
  .line-2 { right: 44px; width: 76px; }
  .line-3 { left: 44px; width: 76px; }

  .signal-container {
    flex-direction: column;
    gap: 2rem;
  }

  .signal-divider {
    width: 48px;
    height: 1px;
  }

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

  .how-comparison {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}