html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html { background: #0d1916; }

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(7, 18, 16, .6) 0%, rgba(13, 28, 24, .72) 44%, rgba(9, 20, 17, .82) 100%),
    url("datacenter-background.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.shell,
.agent-panel,
.panel,
.results,
.site-footer { max-width: 100%; }

.agent-layout > *,
.form-grid > *,
.workload-grid > *,
.capacity-grid > *,
.result-layout > *,
.comparison-grid > *,
.hardware-grid > *,
.roadmap > *,
.resource-grid > * { min-width: 0; }

.topbar {
  gap: 32px;
  border-bottom-color: rgba(255, 255, 255, .4);
  background: rgba(244, 243, 237, .9);
  backdrop-filter: blur(12px);
}

.top-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 3px 9px;
  max-width: 340px;
  padding-left: 16px;
  border-left: 2px solid var(--lime);
  text-align: right;
  line-height: 1.35;
}

.top-note strong {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.top-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.agent-identity { min-width: 0; }

.private-badge {
  flex: 0 0 auto;
  max-width: 175px;
  border-color: rgba(200, 215, 122, .46);
  background: rgba(200, 215, 122, .12);
  line-height: 1.25;
  text-align: center;
}

.private-badge b {
  color: var(--lime);
  font-size: 12px;
}

.hero .eyebrow {
  color: var(--lime);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .4);
}

.hero h1 {
  color: white;
  letter-spacing: 0;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .45);
}

.hero .lede {
  color: rgba(239, 246, 242, .86);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.hero .lede strong {
  color: white;
  font-weight: 750;
}

.hero-stat {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(12, 31, 26, .78);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
}

.hero-stat span { color: var(--lime); }
.hero-stat small { color: rgba(239, 246, 242, .78); }

.panel {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}

.agent-panel {
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .26);
}

.results-head h2 {
  color: white;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

.results-head .eyebrow { color: var(--lime); }
.results > .disclaimer { color: rgba(239, 246, 242, .78); }

.site-footer {
  background: rgba(244, 243, 237, .94);
  backdrop-filter: blur(10px);
}

@media (max-width: 780px) {
  body::before {
    background-image:
      linear-gradient(180deg, rgba(7, 18, 16, .48) 0%, rgba(9, 20, 17, .68) 100%),
      url("datacenter-background.webp");
    background-position: 68% center;
  }
}

@media (max-width: 480px) {
  .topbar {
    gap: 12px;
    padding-inline: 16px;
  }
}

@media (max-width: 900px) and (min-width: 481px) {
  .roadmap article:nth-child(3n)::after { display: none; }
}

@media (max-width: 360px) {
  .rank-row { grid-template-columns: minmax(0, 1fr) 54px 34px; gap: 8px; }
  .rank-row strong:first-child { overflow-wrap: anywhere; }
}

@media print {
  html,
  body { background: white !important; }
  body::before { display: none; }
  .results-head h2 { color: var(--ink); text-shadow: none; }
  .results-head .eyebrow { color: var(--green); }
}
