:root {
  --bg: #0a0e17;
  --bg-raised: #111827;
  --bg-card: #161f32;
  --fg: #e8ecf4;
  --fg-muted: #8892a8;
  --fg-dim: #5a6478;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --safe: #22c55e;
  --safe-glow: rgba(34, 197, 94, 0.12);
  --warn: #f59e0b;
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --mono: 'Space Mono', monospace;
}

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

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

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

/* Nav CTA button */
.nav-cta {
  margin-left: auto;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; }

/* Hero CTA button */
.hero-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 0 30px rgba(59,130,246,.3);
}
.hero-cta:hover { opacity: .88; transform: translateY(-1px); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

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

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Gauge Section */
.gauge-section {
  padding: 20px 24px 80px;
}

.gauge-inner {
  max-width: 620px;
  margin: 0 auto;
}

.gauge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

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

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

.gauge-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gauge-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.gauge-status.safe {
  background: var(--safe-glow);
  color: var(--safe);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.gauge-visual {
  margin-bottom: 28px;
}

.gauge-bar {
  height: 10px;
  background: var(--bg);
  border-radius: 100px;
  position: relative;
  overflow: visible;
  margin-bottom: 12px;
}

.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--safe), var(--accent));
  border-radius: 100px;
  transition: width 1s ease;
  position: relative;
}

.gauge-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-card);
}

.gauge-threshold {
  position: absolute;
  right: 10%;
  top: -6px;
  width: 2px;
  height: 22px;
  background: var(--warn);
  border-radius: 1px;
}

.gauge-numbers {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.gauge-current {
  color: var(--accent);
  font-weight: 700;
}

.gauge-limit {
  color: var(--warn);
}

.gauge-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gauge-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

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

.safe-dot { background: var(--safe); }
.track-dot { background: var(--accent); }

.gauge-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--fg-dim);
  margin-top: 20px;
}

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

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.features-header p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

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

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

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* How / Stats */
.how {
  padding: 80px 24px;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 48px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

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

.stat-number {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.how-body {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Closing */
.closing {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--safe-glow) 0%, transparent 60%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

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

/* Footer */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

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

.footer-brand .logo-text {
  font-size: 1rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin-top: 4px;
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 0.75rem;
  color: var(--fg-dim);
  line-height: 1.5;
  max-width: 400px;
}

.footer-legal p + p {
  margin-top: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 120px 20px 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .gauge-card { padding: 24px; }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer-legal { text-align: left; }
  .feature-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .stat-number { font-size: 1.8rem; }
  .gauge-numbers { font-size: 0.65rem; }
}