:root {
  --bg: #080c14;
  --surface: #0d1525;
  --surface2: #111d33;
  --border: #1a2740;
  --fg: #e2e8f4;
  --fg2: #7a8db0;
  --fg3: #4a5a78;
  --accent: #3B82F6;
  --accent2: #60A5FA;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* HERO */
.hero { padding: 96px 48px 80px; border-bottom: 1px solid var(--border); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-inner { max-width: 1280px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 64px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); font-weight: 500; text-transform: uppercase; }
h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.hero-lede { font-size: 18px; line-height: 1.6; color: var(--fg2); max-width: 480px; }
.hero-actions { display: flex; flex-direction: column; gap: 6px; }
.hero-cta-label { font-family: var(--font-mono); font-size: 13px; color: var(--fg3); }

/* OPS PANEL */
.hero-visual { display: flex; justify-content: flex-end; }
.ops-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 460px; overflow: hidden; font-family: var(--font-mono); font-size: 12px; }
.panel-header { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface2); display: flex; align-items: center; gap: 10px; }
.panel-dot { width: 8px; height: 8px; border-radius: 50%; }
.panel-dot.active { background: var(--green); box-shadow: 0 0 8px var(--green); }
.panel-title { color: var(--fg); font-weight: 500; flex: 1; }
.panel-status { color: var(--green); font-size: 11px; }

.panel-streams { padding: 18px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.stream-row { display: grid; grid-template-columns: 130px 1fr 80px; align-items: center; gap: 12px; }
.stream-label { color: var(--fg2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream-bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.stream-fill { height: 100%; border-radius: 2px; }
.stream-fill.green { background: var(--green); }
.stream-fill.amber { background: var(--amber); }
.stream-val { color: var(--fg2); font-size: 11px; text-align: right; }
.stream-val.warn { color: var(--amber); }

.panel-feed { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.feed-entry { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: start; }
.feed-time { color: var(--fg3); font-size: 10px; padding-top: 1px; }
.feed-text { color: var(--fg2); font-size: 11px; line-height: 1.5; }

/* STATS ROW */
.hero-stats { max-width: 1280px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.stat { padding: 28px 36px; border-right: 1px solid var(--border); background: var(--surface); }
.stat:last-child { border-right: none; }
.stat-val { display: block; font-size: 42px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); line-height: 1.4; }

/* LOOP SECTION */
.loop-section { padding: 96px 48px; border-bottom: 1px solid var(--border); }
.loop-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.loop-copy { display: flex; flex-direction: column; gap: 20px; }
.loop-copy h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.loop-copy p { color: var(--fg2); font-size: 16px; line-height: 1.7; }

.loop-diagram { display: flex; flex-direction: column; }
.loop-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.loop-step:last-child { border-bottom: none; }
.step-icon { width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent2); flex-shrink: 0; }
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-body strong { font-size: 14px; font-weight: 700; color: #fff; }
.step-body p { font-size: 13px; color: var(--fg2); line-height: 1.5; }
.loop-arrow { font-family: var(--font-mono); font-size: 18px; color: var(--accent); padding: 4px 0 4px 52px; font-weight: 700; }

/* FEATURES */
.features { padding: 96px 48px; border-bottom: 1px solid var(--border); background: var(--surface); }
.features-header { max-width: 600px; margin: 0 auto 64px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.features-header h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.features-header p { color: var(--fg2); font-size: 17px; line-height: 1.6; }

.features-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.feature-card { padding: 40px; background: var(--bg); display: flex; flex-direction: column; gap: 14px; transition: background 0.2s; }
.feature-card:hover { background: var(--surface2); }
.feature-icon { width: 44px; height: 44px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent2); }
.feature-card h3 { font-size: 18px; font-weight: 700; color: #fff; }
.feature-card p { font-size: 14px; color: var(--fg2); line-height: 1.6; }

/* HOW IT WORKS */
.howitworks { padding: 96px 48px; border-bottom: 1px solid var(--border); }
.hiw-inner { max-width: 1100px; margin: 0 auto; }
.hiw-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; margin-bottom: 20px; }
.hiw-inner h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: 56px; line-height: 1.15; }

.hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.hiw-step { display: flex; flex-direction: column; gap: 16px; }
.step-num { font-family: var(--font-mono); font-size: 48px; font-weight: 500; color: var(--border); line-height: 1; }
.step-content h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--fg2); line-height: 1.6; }

/* CLOSING */
.closing { padding: 96px 48px; border-bottom: 1px solid var(--border); background: var(--surface); }
.closing-inner { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 24px; }
.closing-inner h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.closing-inner p { font-size: 18px; color: var(--fg2); line-height: 1.6; }
.closing-meta { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.closing-meta span { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); }

/* FOOTER */
.footer { padding: 40px 48px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.footer-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.footer-tagline { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); }
.footer-links { display: flex; gap: 24px; }
.footer-links span { font-size: 13px; color: var(--fg2); cursor: pointer; }
.footer-links span:hover { color: #fff; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: flex-start; }
  .ops-panel { max-width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .loop-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hiw-steps { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
  .hero, .loop-section, .features, .howitworks, .closing, .footer { padding: 64px 24px; }
}