:root {
  color-scheme: dark;
  --ink: #e6f1ff;
  --muted: #8ea7bd;
  --line: rgba(125, 211, 252, 0.18);
  --paper: #070b12;
  --white: #0d1420;
  --hot-red: #22d3ee;
  --hot-orange: #60a5fa;
  --yellow: #e7aa18;
  --red: #c94f38;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.13), transparent 32rem),
    var(--paper);
}

button {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  min-height: 310px;
}

.hero-copy,
.status-panel,
.control-band,
.metric,
.info-block {
  background: rgba(13, 20, 32, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--hot-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.status-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 8px;
  text-align: center;
}

.gauge {
  display: grid;
  place-items: center;
  width: min(250px, 70vw);
  aspect-ratio: 1;
  border: 18px solid rgba(15, 138, 98, 0.16);
  border-top-color: var(--hot-red);
  border-right-color: var(--hot-orange);
  border-radius: 50%;
}

.gauge span {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
}

.gauge small {
  color: var(--muted);
  font-weight: 800;
}

.status-label {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 850;
}

.status-detail {
  max-width: 360px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.control-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
  padding: 14px;
  border-radius: 8px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--hot-red);
}

.secondary-button {
  color: var(--ink);
  background: #eaf0ed;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-icon {
  width: 1.25em;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  min-height: 160px;
  padding: 22px;
  border-radius: 8px;
}

.metric-label,
.metric-unit {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.metric strong {
  display: block;
  margin: 18px 0 4px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.info-block {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
}

.info-block h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.network-list {
  margin: 0;
}

.network-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.network-list dt {
  color: var(--muted);
  font-weight: 750;
}

.network-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.summary-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.progress-track {
  height: 12px;
  margin-top: 28px;
  overflow: hidden;
  background: #e5ece8;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--hot-orange), var(--hot-red), var(--yellow));
  transition: width 240ms ease;
}

@media (max-width: 860px) {
  .hero,
  .details-layout {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0 24px;
  }

  .hero-copy,
  .status-panel,
  .info-block {
    padding: 20px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .control-band {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .network-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
