/* ── Variables ── */
:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --fg: #e6edf3;
  --fg-muted: #8b949e;
  --accent: #4facfe;
  --accent-dim: rgba(79, 172, 254, 0.12);
  --good: #3fb950;
  --watch: #f0a500;
  --border: rgba(255,255,255,0.06);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 10px;
}

/* ── Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #4facfe22, transparent 70%); top: -100px; right: -50px; }
.orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, #00f2fe22, transparent 70%); bottom: 50px; left: 20%; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero-text .sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
}

/* Monitor */
.monitor-frame {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(79,172,254,0.1);
}
.monitor-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.monitor-title { font-family: var(--font-head); font-size: 11px; color: var(--fg-muted); margin-left: 8px; }
.monitor-body { padding: 20px; }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.metric-label { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.metric-val { font-family: var(--font-head); font-size: 20px; font-weight: 600; display: block; }
.metric-val.good { color: var(--good); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 32px; margin-top: 8px; }
.spark-bar { flex: 1; background: var(--accent-dim); border-radius: 2px; min-height: 4px; }
.spark.up .spark-bar { background: rgba(63,185,80,0.3); }

.alert-feed { display: flex; flex-direction: column; gap: 6px; }
.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.feed-item.ok .feed-dot { background: var(--good); }
.feed-item.watch .feed-dot { background: var(--watch); box-shadow: 0 0 8px var(--watch); }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.feed-text { color: var(--fg-muted); }
.feed-item.watch .feed-text { color: var(--watch); }

/* ── Watch Section ── */
.watch-section { padding: 120px 48px; }
.watch-inner { max-width: 1100px; margin: 0 auto; }
.watch-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.watch-section h2 { font-family: var(--font-head); font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 56px; max-width: 500px; line-height: 1.1; }
.watch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.watch-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 40px;
  transition: border-color 0.2s;
}
.watch-card:hover { border-color: rgba(79,172,254,0.3); }
.watch-icon { color: var(--accent); margin-bottom: 20px; }
.watch-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.watch-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* ── Anomalies Section ── */
.anomalies-section { padding: 120px 48px; background: #0a0e14; }
.anomalies-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.signal-display { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 32px; }
.signal-line { margin-bottom: 32px; }
.signal-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 12px; }
.signal-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.sbar { flex: 1; background: var(--accent-dim); border-radius: 4px; min-height: 10px; height: var(--h, 60%); }
.sbar.spike { background: #ff7043; box-shadow: 0 0 12px rgba(255,112,67,0.6); height: 80%; }

.anomaly-callout {
  border: 1px solid rgba(255,112,67,0.3);
  border-radius: 10px;
  padding: 20px;
  background: rgba(255,112,67,0.05);
}
.callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #ff7043;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.callout-text { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

.section-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.anomalies-text h2 { font-family: var(--font-head); font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; line-height: 1.1; }
.anomalies-text > p { font-size: 16px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 32px; }
.anomaly-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.anomaly-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--fg); }
.anomaly-list li svg { color: var(--accent); flex-shrink: 0; }

/* ── Outcomes ── */
.outcomes-section { padding: 120px 48px; }
.outcomes-inner { max-width: 1100px; margin: 0 auto; }
.outcomes-inner h2 { font-family: var(--font-head); font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; text-align: center; margin-bottom: 64px; }
.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.outcome {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
}
.outcome-num {
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.outcome-label { font-size: 14px; color: var(--fg-muted); line-height: 1.6; max-width: 240px; margin: 0 auto; }

/* ── Footer ── */
.site-footer { padding: 80px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--fg); }
.footer-logo svg { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--fg-muted); max-width: 360px; line-height: 1.6; }
.footer-tagline {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  text-align: right;
  line-height: 1.8;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; padding: 60px 24px; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-text h1 { font-size: 36px; }
  .metric-row { grid-template-columns: 1fr; }
  .watch-section, .anomalies-section, .outcomes-section { padding: 80px 24px; }
  .watch-grid { grid-template-columns: 1fr; }
  .anomalies-inner { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-tagline { text-align: left; }
}

/* ── Animations ── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.feed-item.watch .feed-dot { animation: pulse 2s ease-in-out infinite; }
