:root {
  --bg: #06100e;
  --panel: rgba(12, 28, 24, 0.78);
  --panel-solid: #0c1b18;
  --line: rgba(167, 226, 204, 0.14);
  --text: #effbf6;
  --muted: #8eaaa0;
  --lime: #a8ff78;
  --mint: #54e2ae;
  --amber: #ffc76b;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 58px 58px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ambient { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; z-index: -1; }
.ambient-a { background: var(--lime); top: -260px; right: -160px; }
.ambient-b { background: #00a8ff; bottom: -330px; left: -220px; }

.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: .84rem; font-weight: 800; letter-spacing: .16em; }
.brand b { color: var(--lime); }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-12deg); }
.brand-mark i { display: block; background: var(--lime); border-radius: 2px; }
.brand-mark i:nth-child(2) { opacity: .72; }
.brand-mark i:nth-child(3) { opacity: .38; }
.topbar nav { display: flex; gap: 34px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 650; transition: color .2s ease; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--text); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #b6d3c8; font-size: .72rem; }
.status-pill i { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 14px var(--lime); }

.hero { min-height: 690px; display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(48px, 7vw, 92px); align-items: center; padding-block: 74px 62px; }
.eyebrow { margin: 0 0 18px; color: var(--mint); font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(3rem, 5.7vw, 5.3rem); line-height: .96; letter-spacing: -.055em; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(239,251,246,.75); }
.lede { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; text-decoration: none; font-size: .82rem; font-weight: 750; }
.button.primary { background: var(--lime); color: #07110e; box-shadow: 0 12px 34px rgba(168,255,120,.16); }
.button.secondary { border: 1px solid var(--line); color: #c3d8d0; background: rgba(255,255,255,.025); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 1.12rem; font-weight: 750; }
.hero-facts dd { margin: 2px 0 0; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }

.console-card { position: relative; padding: 20px; background: linear-gradient(145deg, rgba(19,42,36,.96), rgba(7,18,15,.94)); border: 1px solid rgba(168,255,120,.18); border-radius: 26px; box-shadow: 0 28px 90px rgba(0,0,0,.42); overflow: hidden; }
.console-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 34%, rgba(168,255,120,.035), transparent 66%); pointer-events: none; }
.console-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 17px; border-bottom: 1px solid var(--line); }
.console-head div { display: grid; gap: 3px; }
.console-head strong { font-size: .78rem; letter-spacing: .08em; }
.micro { color: var(--muted); font-size: .58rem; letter-spacing: .14em; }
.live-dot { padding: 5px 9px; border-radius: 6px; background: rgba(168,255,120,.1); color: var(--lime); font-size: .58rem; font-weight: 850; letter-spacing: .08em; }
.score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 20px 0 14px; }
.score-row > div { padding: 12px 14px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; }
.score-row span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .55rem; letter-spacing: .1em; }
.score-row strong { font-size: 1.55rem; letter-spacing: -.04em; }
.score-row small { margin-left: 4px; color: var(--muted); font-size: .62rem; }
.chart-wrap { padding: 16px 12px 4px; background: #07130f; border: 1px solid rgba(255,255,255,.05); border-radius: 14px; }
.chart-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .59rem; letter-spacing: .04em; }
#telemetryChart { display: block; width: 100%; height: 180px; margin-top: 6px; }
.event-stream { margin-top: 14px; }
.event-stream p { display: grid; grid-template-columns: 56px 56px 1fr; align-items: center; gap: 10px; margin: 0; padding: 10px 4px; border-top: 1px solid rgba(255,255,255,.045); color: #aac1b8; font-size: .66rem; }
.event-stream time { color: #698279; font-variant-numeric: tabular-nums; }
.tag { width: fit-content; padding: 3px 6px; border-radius: 4px; font-size: .5rem; font-weight: 850; letter-spacing: .06em; }
.tag.good { color: var(--lime); background: rgba(168,255,120,.08); }
.tag.warn { color: var(--amber); background: rgba(255,199,107,.08); }

.signal-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 0 22px; border-block: 1px solid var(--line); color: #6f8c81; font-size: .59rem; font-weight: 750; letter-spacing: .12em; }
.signal-strip i { width: 4px; height: 4px; background: var(--mint); border-radius: 50%; opacity: .6; }

.feature-section { padding-block: 120px 98px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 80px; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.75rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.feature-grid article { min-height: 300px; padding: 26px; background: rgba(10,26,22,.7); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-index { color: var(--mint); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.feature-grid h3 { margin: 60px 0 10px; font-size: 1.25rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.mini-bars { height: 34px; display: flex; align-items: end; gap: 5px; margin-top: 28px; }
.mini-bars i { flex: 1; height: 30%; background: var(--mint); border-radius: 2px 2px 0 0; opacity: .58; }
.mini-bars i:nth-child(2), .mini-bars i:nth-child(5) { height: 70%; }
.mini-bars i:nth-child(3), .mini-bars i:nth-child(7) { height: 48%; }
.mini-bars i:nth-child(6) { height: 92%; background: var(--amber); }
.node-path { display: flex; align-items: center; margin-top: 40px; }
.node-path i { width: 12px; height: 12px; border: 2px solid var(--mint); border-radius: 50%; box-shadow: 0 0 14px rgba(84,226,174,.25); }
.node-path b { flex: 1; height: 1px; background: linear-gradient(90deg, var(--mint), rgba(84,226,174,.16)); }
.latency-meter { height: 5px; margin-top: 46px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.latency-meter span { display: block; width: 68%; height: 100%; background: linear-gradient(90deg, var(--mint), var(--lime)); border-radius: inherit; }

.report-section { padding-bottom: 110px; }
.report-card { display: grid; grid-template-columns: 1fr .8fr; min-height: 410px; gap: 72px; align-items: center; padding: clamp(34px, 6vw, 74px); background: linear-gradient(135deg, rgba(18,39,34,.92), rgba(8,19,17,.96)); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; }
.report-card p:last-child { max-width: 580px; color: var(--muted); line-height: 1.75; }
.report-stack { position: relative; min-height: 260px; perspective: 900px; }
.sheet { position: absolute; width: 220px; height: 260px; top: 0; left: 50%; padding: 24px; border-radius: 16px; transform-origin: bottom center; }
.sheet.back { background: #15352c; transform: translateX(-66%) rotate(-12deg); opacity: .45; }
.sheet.mid { background: #1b4a3b; transform: translateX(-44%) rotate(7deg); opacity: .62; }
.sheet.front { display: flex; flex-direction: column; background: #eafff5; color: #0b1a16; transform: translateX(-50%); box-shadow: 0 26px 60px rgba(0,0,0,.3); }
.sheet.front span { font-size: .56rem; font-weight: 800; letter-spacing: .13em; }
.sheet.front strong { margin-top: 34px; font-size: 3.6rem; letter-spacing: -.08em; }
.sheet.front small { color: #557168; }
.sheet.front i { height: 5px; margin-top: 16px; background: #bad3ca; border-radius: 99px; }
.sheet.front i:nth-last-child(2) { width: 76%; }
.sheet.front i:last-child { width: 48%; }

footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #627b72; font-size: .7rem; }
.brand.compact { color: var(--text); font-size: .68rem; }
.brand.compact .brand-mark { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { max-width: 680px; }
  .section-heading, .report-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 240px; }
  .feature-grid h3 { margin-top: 36px; }
  .report-stack { min-height: 280px; }
  .signal-strip span:nth-of-type(even), .signal-strip i:nth-of-type(even) { display: none; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { height: 72px; }
  .status-pill { display: none; }
  .hero { padding-block: 50px; gap: 48px; }
  h1 { font-size: 3.05rem; }
  .hero-actions { flex-direction: column; }
  .hero-facts dd { font-size: .56rem; }
  .console-card { padding: 12px; border-radius: 18px; }
  .score-row > div { padding: 10px 8px; }
  .score-row strong { font-size: 1.2rem; }
  #telemetryChart { height: 140px; }
  .event-stream p { grid-template-columns: 48px 52px 1fr; gap: 6px; font-size: .58rem; }
  .feature-section { padding-block: 86px 70px; }
  .report-card { padding: 28px 20px; }
  footer { padding-block: 32px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
