:root {
  --bg: #071019;
  --panel: #0d1a25;
  --panel-2: #102434;
  --text: #eef7ff;
  --muted: #9cb1c3;
  --line: rgba(158, 179, 197, 0.2);
  --cyan: #24d6d6;
  --lime: #9be564;
  --amber: #f7c948;
  --red: #ff5c7a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  margin: 0;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(7, 16, 25, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
nav {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--cyan);
  color: #061017;
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

nav {
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  align-items: end;
  background:
    linear-gradient(115deg, rgba(7, 16, 25, 0.96), rgba(7, 16, 25, 0.66)),
    repeating-linear-gradient(90deg, rgba(36, 214, 214, 0.1) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(155, 229, 100, 0.07) 0 1px, transparent 1px 72px);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  min-height: 720px;
  padding: 148px clamp(20px, 5vw, 72px) 70px;
}

.eyebrow,
.section-heading p {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  margin: 0;
  max-width: 980px;
}

.lede {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  margin: 26px 0 0;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-actions a,
.contact-section a {
  background: var(--cyan);
  color: #061017;
  font-weight: 800;
  padding: 13px 18px;
  text-decoration: none;
}

.hero-actions a:nth-child(2) {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-panel,
.chart-panel,
.feed-column,
.ops-grid article {
  background: rgba(13, 26, 37, 0.9);
  border: 1px solid var(--line);
}

.hero-panel {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: 180px 1fr;
  padding: 24px;
}

.radar {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(36, 214, 214, 0.48);
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.radar span {
  border: 1px solid rgba(36, 214, 214, 0.34);
  border-radius: 50%;
  inset: calc(var(--i, 0) * 19%);
  position: absolute;
}

.radar span:nth-child(1) { --i: 0; }
.radar span:nth-child(2) { --i: 1; }
.radar span:nth-child(3) { --i: 2; }
.radar span:nth-child(4) { --i: 3; }

.radar::after {
  background: linear-gradient(90deg, transparent, rgba(155, 229, 100, 0.62));
  content: "";
  height: 2px;
  position: absolute;
  transform-origin: left center;
  width: 50%;
  animation: sweep 4s linear infinite;
}

.radar strong {
  color: var(--lime);
  font-size: 34px;
  z-index: 1;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.hero-panel p,
.hero-panel h2 {
  margin: 0;
}

.hero-panel p,
.hero-panel span {
  color: var(--muted);
}

.hero-panel h2 {
  font-size: 26px;
  margin: 8px 0;
}

.metrics-band,
.dashboard,
.feed-section,
.ops-section,
.contact-section,
footer {
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

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

.metrics-band article {
  background: #0b1721;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 26px;
}

.metrics-band span,
.metrics-band small {
  color: var(--muted);
}

.metrics-band strong {
  color: var(--text);
  font-size: clamp(32px, 4vw, 54px);
}

.dashboard {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 56px;
}

.chart-panel {
  padding: 22px;
}

.chart-panel.wide {
  grid-column: 1 / -1;
}

.panel-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-heading h2,
.feed-column h3,
.ops-section h2,
.contact-section h2,
.section-heading h2 {
  margin: 0;
}

.panel-heading span,
.item p,
.ops-grid span,
.contact-section p,
footer {
  color: var(--muted);
}

canvas {
  height: auto;
  max-width: 100%;
  width: 100%;
}

.feed-section,
.tools-section,
.ops-section,
.contact-section {
  padding-top: 76px;
}

.section-heading h2,
.ops-section h2,
.contact-section h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  max-width: 820px;
}

.feed-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.tool-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.tool-card {
  background: rgba(13, 26, 37, 0.9);
  border: 1px solid var(--line);
  display: grid;
  gap: 20px;
  padding: 24px;
}

.tool-copy h3 {
  font-size: 24px;
  margin: 0 0 10px;
}

.tool-copy p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.tool-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tool-form input {
  background: #081520;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  min-height: 46px;
  min-width: 0;
  padding: 0 14px;
}

.tool-form button {
  background: var(--cyan);
  border: 0;
  color: #061017;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 0 16px;
}

.tool-result {
  display: grid;
  gap: 12px;
  min-height: 28px;
}

.tool-summary {
  align-items: center;
  background: rgba(36, 214, 214, 0.08);
  border: 1px solid rgba(36, 214, 214, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 14px;
}

.tool-summary strong {
  color: var(--text);
}

.status-pill {
  background: rgba(155, 229, 100, 0.14);
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  text-transform: uppercase;
}

.status-pill.warn,
.status-pill.attention {
  background: rgba(247, 201, 72, 0.15);
  color: var(--amber);
}

.status-pill.fail {
  background: rgba(255, 92, 122, 0.14);
  color: var(--red);
}

.result-table {
  border: 1px solid var(--line);
  display: grid;
}

.result-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 12px 14px;
}

.result-row + .result-row {
  border-top: 1px solid var(--line);
}

.result-row span:first-child {
  color: var(--muted);
  font-weight: 700;
}

.result-row span:last-child {
  overflow-wrap: anywhere;
}

.feed-column {
  padding: 22px;
}

.item-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.item strong {
  line-height: 1.35;
}

.item p {
  line-height: 1.55;
  margin: 0;
}

.meta {
  align-items: center;
  color: var(--cyan);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  text-transform: uppercase;
}

.ops-section {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
}

.ops-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.contact-section {
  padding-bottom: 84px;
}

.contact-section p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
}

footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 30px;
  padding-top: 30px;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .hero-panel,
  .dashboard,
  .feed-grid,
  .tool-grid,
  .ops-section,
  .ops-grid,
  .metrics-band {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .hero-panel {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 12px;
  }

  .hero-panel {
    padding: 18px;
  }

  .radar {
    width: min(180px, 100%);
  }

  .tool-form,
  .result-row {
    grid-template-columns: 1fr;
  }
}
