:root {
  --bg: #0F172A;
  --bg-2: #1E293B;
  --bg-3: #0B1420;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --accent: #14B8A6;
  --accent-dim: #0D9488;
  --coral: #FB923C;
  --healthy: #10B981;
  --at-risk: #F59E0B;
  --critical: #EF4444;
  --border: #334155;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grid overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.nav-inner { max-width: 1200px; margin: 0 auto; }
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
}
.hero .lede {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}
.hero-stat-row {
  display: flex;
  gap: 40px;
}
.hero-stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Account cards */
.accounts-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: transform 0.2s ease;
}
.account-card:hover { transform: translateX(4px); }
.account-card.healthy { border-left: 3px solid var(--healthy); }
.account-card.at-risk { border-left: 3px solid var(--at-risk); }
.account-card.critical { border-left: 3px solid var(--critical); }
.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.account-dot.healthy { background: var(--healthy); box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.account-dot.at-risk { background: var(--at-risk); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.account-dot.critical { background: var(--critical); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.account-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}
.account-score {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}
.healthy-label { color: var(--healthy); }
.at-risk-label { color: var(--at-risk); }
.critical-label { color: var(--critical); }
.account-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 6px;
  overflow: hidden;
}
.account-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.account-bar-fill.healthy { background: var(--healthy); }
.account-bar-fill.at-risk { background: var(--at-risk); }
.account-bar-fill.critical { background: var(--critical); }
.account-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Health section */
.health {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  background: var(--bg-3);
}
.health-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.health h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.health p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
}
.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.signal-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.signal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.signal-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}
.signal-desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  background: var(--bg);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Why it matters */
.why-matters {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  background: var(--bg-3);
}
.why-matters-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.big-stat {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.big-num {
  font-family: var(--font-head);
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -4px;
  line-height: 1;
  display: block;
  margin-bottom: 24px;
}
.big-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
}
.matters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.matter-item h4 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.matter-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* How it works */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  background: var(--bg);
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.how-it-works h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 56px;
}
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step {
  max-width: 300px;
  text-align: left;
}
.step-number {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.step-arrow {
  padding: 0 32px;
  color: var(--border);
}

/* Closing */
.closing {
  position: relative;
  z-index: 1;
  padding: 120px 40px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%);
  text-align: center;
}
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 24px;
}
.closing p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .health-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .matters-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    flex-direction: column;
    gap: 40px;
  }
  .step-arrow {
    display: none;
  }
  .hero { padding-top: 100px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stat-row { gap: 24px; }
  nav, .hero, .health, .features, .why-matters, .how-it-works, .closing, footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}