:root {
  color-scheme: dark;
  --ink: #f6f2e8;
  --muted: #aeb9af;
  --soft: #d6ded3;
  --panel: rgba(10, 16, 18, 0.78);
  --line: rgba(246, 242, 232, 0.14);
  --green: #79f6bd;
  --gold: #ffce6b;
  --blue: #8fc9ff;
  --red: #ff7d70;
  --bg: #061114;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 17, 20, 0.04), rgba(6, 17, 20, 0.96) 78%),
    #061114;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

#atlas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 44%, transparent 0 20%, rgba(6, 17, 20, 0.24) 48%, rgba(6, 17, 20, 0.9) 100%),
    linear-gradient(90deg, rgba(6, 17, 20, 0.96), rgba(6, 17, 20, 0.34) 58%, rgba(6, 17, 20, 0.7));
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 52px);
}

.brand,
.metric,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
}

.mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px var(--green);
}

.site-control label,
.eyebrow,
.metric span,
.panel-head strong,
.ring small {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.site-control select {
  max-width: min(46vw, 280px);
  min-height: 32px;
  border: 1px solid rgba(246, 242, 232, 0.22);
  border-radius: 6px;
  background: #0b1719;
  color: var(--ink);
  padding: 0 32px 0 10px;
  font: inherit;
}

.headline {
  width: min(920px, calc(100% - 36px));
  margin: clamp(70px, 11vh, 130px) 0 0 clamp(18px, 7vw, 96px);
}

.eyebrow {
  color: var(--gold);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 880px;
  margin-top: 12px;
  font-size: clamp(4.2rem, 9vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  margin-top: 28px;
  color: var(--soft);
  font-size: clamp(1.06rem, 2vw, 1.38rem);
  line-height: 1.56;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: -60px auto 0;
  position: relative;
  z-index: 2;
}

.metric,
.panel {
  border-radius: 8px;
}

.metric {
  min-height: 134px;
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 0.95;
}

.metric small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.82fr);
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding-bottom: 34px;
}

.panel {
  min-height: 260px;
  padding: 18px;
}

.chart-panel,
.table-panel {
  grid-column: span 1;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: 1.05rem;
}

.panel p,
.notes,
.traffic-table {
  color: var(--soft);
  line-height: 1.5;
}

.bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  align-items: end;
  gap: 8px;
  height: 260px;
  padding-top: 16px;
}

.bar {
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
  height: 100%;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, rgba(121, 246, 189, 0.9), rgba(143, 201, 255, 0.34));
  box-shadow: 0 0 26px rgba(121, 246, 189, 0.12);
  position: relative;
}

.bar span {
  position: absolute;
  bottom: -25px;
  color: var(--muted);
  font-size: 0.72rem;
}

.notes {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.notes li {
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

.rings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 166px;
  align-items: center;
}

.ring {
  display: grid;
  place-items: center;
  width: min(170px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--value), rgba(255, 255, 255, 0.08) 0);
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #081214;
  border: 1px solid var(--line);
}

.ring span,
.ring small {
  position: relative;
  z-index: 1;
}

.ring span {
  align-self: end;
  font-size: 1.35rem;
  font-weight: 850;
}

.ring small {
  align-self: start;
  margin-top: 6px;
}

.traffic-table {
  display: grid;
  gap: 8px;
}

.row {
  display: grid;
  grid-template-columns: 86px 1fr 88px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
}

.track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
  }

  .metrics,
  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .hero {
    min-height: 78vh;
  }

  .headline {
    margin-top: 54px;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.6rem);
  }

  .metrics,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-top: -28px;
  }

  .bars {
    gap: 5px;
  }

  .row {
    grid-template-columns: 78px 1fr 76px;
  }
}
