:root {
  color-scheme: dark;
  --bg: #071019;
  --panel: rgba(13, 29, 41, .78);
  --panel-solid: #0d1d29;
  --line: rgba(150, 207, 229, .14);
  --text: #f1f7f9;
  --muted: #8ba2ae;
  --cyan: #54d9dc;
  --lime: #9bea89;
  --blue: #6aa7ff;
  --danger: #ff817a;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(42, 146, 158, .18), transparent 31rem),
    radial-gradient(circle at 83% 17%, rgba(60, 103, 170, .15), transparent 26rem),
    var(--bg);
  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(1160px, calc(100% - 40px)); margin-inline: auto; }
.ambient { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .16; }
.ambient-a { width: 360px; height: 360px; background: var(--cyan); left: -180px; top: 35%; }
.ambient-b { width: 330px; height: 330px; background: var(--blue); right: -190px; top: 54%; }

.topbar { height: 88px; 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; letter-spacing: -.02em; }
.brand strong { display: block; font-size: 20px; }
.brand small { display: block; margin-top: -2px; color: var(--muted); font-size: 9px; letter-spacing: .26em; }
.brand-mark { width: 33px; height: 33px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 7px; border: 1px solid rgba(84, 217, 220, .45); border-radius: 10px; background: rgba(84, 217, 220, .08); transform: rotate(-8deg); }
.brand-mark span { width: 4px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 12px rgba(84, 217, 220, .5); }
.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 11px; }
.top-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #d8a84a; box-shadow: 0 0 0 5px rgba(216, 168, 74, .09); }
.pulse.online { background: var(--lime); box-shadow: 0 0 0 5px rgba(155, 234, 137, .09), 0 0 18px rgba(155, 234, 137, .35); }
.pulse.offline { background: var(--danger); }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.03fr .97fr; gap: 76px; align-items: center; padding-block: 92px 80px; }
.eyebrow, .label { color: var(--cyan); font-size: 11px; font-weight: 750; letter-spacing: .2em; }
.hero h1 { margin: 18px 0 24px; font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--cyan); font-style: normal; font-weight: 500; }
.lead { max-width: 590px; color: #a8bbc4; font-size: 19px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; transition: .2s ease; }
.button.primary { color: #071019; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 15px 34px rgba(84, 217, 220, .16); }
.button.secondary { background: rgba(255, 255, 255, .025); }
.button:hover { transform: translateY(-2px); }

.overview-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid rgba(139, 191, 210, .18); border-radius: 22px; background: linear-gradient(145deg, rgba(18, 40, 55, .94), rgba(8, 21, 31, .9)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.overview-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -85px; top: -95px; border-radius: 50%; background: rgba(84, 217, 220, .08); filter: blur(2px); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.card-head h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.03em; }
.radar { width: 52px; height: 52px; position: relative; border: 1px solid rgba(84, 217, 220, .18); border-radius: 50%; }
.radar i { position: absolute; inset: 50%; width: 4px; height: 4px; margin: -2px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 14px var(--cyan); }
.radar i:nth-child(2) { animation: radar 2.4s ease-out infinite; }
.radar i:nth-child(3) { animation: radar 2.4s 1.2s ease-out infinite; }
@keyframes radar { from { transform: scale(1); opacity: .7; } to { transform: scale(12); opacity: 0; } }

.service-list { display: grid; gap: 10px; }
.service-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(2, 10, 16, .28); }
.service-row strong, .service-row small { display: block; }
.service-row strong { font-size: 14px; }
.service-row small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.service-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font: 800 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.edge-icon { color: var(--cyan); background: rgba(84, 217, 220, .1); }
.channel-icon { color: var(--blue); background: rgba(106, 167, 255, .1); }
.core-icon { color: var(--lime); background: rgba(155, 234, 137, .1); }
.state { min-width: 76px; padding: 5px 8px; border-radius: 999px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.state.online { color: var(--lime); background: rgba(155, 234, 137, .09); }
.state.offline { color: var(--danger); background: rgba(255, 129, 122, .1); }
.state.pending { color: #d8a84a; background: rgba(216, 168, 74, .09); }
.telemetry-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.telemetry-strip div { padding-inline: 12px; border-right: 1px solid var(--line); }
.telemetry-strip div:first-child { padding-left: 0; }
.telemetry-strip div:last-child { border: 0; }
.telemetry-strip span, .telemetry-strip strong { display: block; }
.telemetry-strip span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.telemetry-strip strong { margin-top: 4px; font-size: 13px; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-block: 1px solid var(--line); }
.metrics article { padding: 38px 34px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics span { color: var(--cyan); font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.metrics strong { display: block; margin-top: 18px; font-size: 17px; }
.metrics p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.capabilities { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; padding-block: 120px; }
.section-copy h2 { max-width: 430px; margin: 15px 0 20px; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.section-copy p:last-child { max-width: 440px; color: var(--muted); }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.capability-grid article { min-height: 190px; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: rgba(13, 29, 41, .42); }
.capability-grid b { color: var(--cyan); font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.capability-grid h3 { margin: 33px 0 8px; font-size: 18px; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.event-section { margin-bottom: 110px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.event-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.event-head h2 { margin: 6px 0 0; font-size: 25px; }
.clock { color: var(--muted); font: 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.event-log { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.event-item { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, .18); color: #bfd0d7; font-size: 13px; }
.event-item time { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.brand.compact { color: var(--text); }
.brand.compact .brand-mark { width: 27px; height: 27px; padding: 5px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 70px; }
  .capabilities { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 26px, 1160px); }
  .topbar { height: 74px; }
  .top-status span:last-child { display: none; }
  .hero { padding-block: 58px; }
  .hero h1 { font-size: 45px; }
  .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .overview-card { padding: 19px; }
  .service-row { grid-template-columns: 38px 1fr; }
  .service-row .state { grid-column: 2; width: max-content; }
  .telemetry-strip { grid-template-columns: 1fr; gap: 14px; }
  .telemetry-strip div { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr; }
  .metrics article { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 12px; }
  .metrics article:last-child { border-bottom: 0; }
  .capabilities { padding-block: 85px; }
  .capability-grid { grid-template-columns: 1fr; }
  .event-head { align-items: start; gap: 20px; }
  .event-item { grid-template-columns: 66px 1fr; }
  .footer { grid-template-columns: 1fr; gap: 10px; padding-block: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
