:root {
  color-scheme: dark;
  --bg: #06080c;
  --bg-elevated: rgba(7, 10, 16, 0.9);
  --panel: rgba(10, 15, 23, 0.82);
  --panel-strong: rgba(12, 18, 28, 0.96);
  --ink: #f7fbff;
  --muted: #a6b4c5;
  --soft: #d9e7f4;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --cyan: #38dbff;
  --green: #44f0a7;
  --amber: #ffd166;
  --pink: #ff5c93;
  --red: #ff725e;
  --violet: #a88cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
  --radius: 8px;
  --header-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 9%, rgba(56, 219, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(255, 92, 147, 0.08), transparent 26rem),
    radial-gradient(circle at 86% 74%, rgba(68, 240, 167, 0.07), transparent 23rem),
    linear-gradient(140deg, #030407 0%, #080b12 46%, #04100c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 50%, transparent 50%);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

canvas {
  display: block;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #061014;
  background: var(--cyan);
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-meter {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber), var(--pink));
  box-shadow: 0 0 18px rgba(56, 219, 255, 0.6);
}

.neural-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.46;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 36px));
  height: var(--header-h);
  margin: 0 auto;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(56, 219, 255, 0.45);
  border-radius: var(--radius);
  color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(56, 219, 255, 0.18), rgba(68, 240, 167, 0.1)),
    rgba(5, 8, 13, 0.82);
  box-shadow: inset 0 0 20px rgba(56, 219, 255, 0.12);
  font-size: 0.74rem;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 21, 0.68);
}

.site-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

main,
.footer {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 52px 0 38px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6.1vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3.1vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 28px;
  color: var(--soft);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.hero-actions,
.hero-kpis,
.api-row,
.control-grid,
.preset-row,
.model-top,
.model-actions,
.score-row,
.chips,
.source-grid,
.compare-tray,
.tray-items,
.modal-specs,
.modal-metrics,
.battle-row,
.table-actions {
  display: flex;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.btn.primary {
  color: #041014;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 42px rgba(56, 219, 255, 0.18);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.075);
}

.btn.small {
  min-height: 38px;
  padding: 10px 13px;
  font-size: 0.82rem;
}

.btn.ghost {
  min-height: 36px;
  padding: 8px 10px;
  background: transparent;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.hero-kpis div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 22, 0.56);
}

.hero-kpis dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-kpis dd {
  margin: 4px 0 0;
  font-size: 1.08rem;
  font-weight: 950;
}

.hero-console {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 219, 255, 0.1), transparent 28%),
    linear-gradient(210deg, rgba(255, 92, 147, 0.08), transparent 30%),
    rgba(4, 7, 12, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.hero-console::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 90deg, transparent, rgba(56, 219, 255, 0.16), transparent, rgba(255, 209, 102, 0.12), transparent);
  animation: slow-spin 18s linear infinite;
  pointer-events: none;
}

.console-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.holo-display {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 355px;
  place-items: center;
  margin: 0 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle, rgba(56, 219, 255, 0.13), transparent 34%),
    radial-gradient(circle at 70% 26%, rgba(68, 240, 167, 0.1), transparent 22%),
    rgba(4, 9, 14, 0.72);
}

.object-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.holo-grid {
  position: absolute;
  inset: -30%;
  opacity: 0.26;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(500px) rotateX(62deg);
  animation: grid-drift 8s linear infinite;
}

.rank-beacon {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  border: 1px solid rgba(56, 219, 255, 0.34);
  border-radius: 50%;
  background: rgba(3, 6, 10, 0.84);
  box-shadow: 0 0 50px rgba(56, 219, 255, 0.22);
}

.rank-beacon span {
  align-self: end;
  font-size: 2.8rem;
  font-weight: 950;
}

.rank-beacon small {
  align-self: start;
  max-width: 120px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 20px;
}

.signal-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.signal-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-item span {
  color: var(--accent, var(--cyan));
  font-weight: 950;
}

.command-center,
.metrics-strip,
.compare-lab,
.media-arena,
.insight-panel,
.model-card,
.table-zone,
.source-section,
.faq,
.seo-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.command-center {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 30;
  padding: 14px;
}

.control-grid {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 7px;
  flex: 1;
  min-width: 190px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.search-field {
  flex: 1.6;
  min-width: min(100%, 280px);
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.065);
}

select option {
  color: #eef6ff;
  background: #070b12;
}

select option:checked,
select option:hover {
  color: #061014;
  background: var(--cyan);
}

input:focus,
select:focus {
  border-color: rgba(56, 219, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(56, 219, 255, 0.11);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.86rem;
  font-weight: 850;
}

.switch input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.preset-row {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.preset-btn {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
  font-weight: 900;
}

.preset-btn:hover,
.preset-btn.is-active {
  color: #061014;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  margin-top: 18px;
  padding: 12px;
  background: rgba(4, 7, 12, 0.86);
}

.metric {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(3, 6, 10, 0.86);
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green), transparent);
  opacity: 0.82;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1.12rem, 2.2vw, 1.8rem);
  font-weight: 950;
}

.compare-lab {
  margin-top: 18px;
  padding: 18px;
}

.media-arena {
  margin-top: 18px;
  padding: 18px;
}

.media-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

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

.media-card {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 0%, var(--wash), transparent 38%),
    rgba(3, 6, 10, 0.78);
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.media-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.media-provider {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.media-rank {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 950;
}

.media-card h3 {
  margin-bottom: 6px;
  font-size: 1.22rem;
}

.media-card p {
  min-height: 66px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.media-score {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 12px 0;
}

.media-score strong {
  font-size: 2.1rem;
  line-height: 0.92;
}

.media-score span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-lab-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(240px, 0.5fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 16px;
}

.compare-lab-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.duel-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.duel-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.duel-card,
.duel-verdict {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 6, 10, 0.72);
}

.duel-card {
  padding: 16px;
}

.duel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.duel-card h3 {
  margin-bottom: 6px;
  font-size: 1.22rem;
}

.duel-card p {
  min-height: 54px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.duel-score {
  display: flex;
  align-items: end;
  gap: 9px;
  margin: 12px 0;
}

.duel-score strong {
  font-size: 2.5rem;
  line-height: 0.9;
}

.duel-score span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.duel-verdict {
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.duel-verdict strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.duel-verdict span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  margin: 0 auto 10px;
  border: 1px solid rgba(56, 219, 255, 0.4);
  border-radius: 50%;
  color: #041014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 1.45rem;
  font-weight: 950;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.48fr);
  gap: 28px;
  align-items: end;
  padding: 78px 0 22px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.insight-panel {
  position: sticky;
  top: calc(var(--header-h) + 126px);
  padding: 18px;
}

.insight-panel h2 {
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.advisor-result {
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(56, 219, 255, 0.12), transparent),
    rgba(255, 255, 255, 0.04);
}

.advisor-result strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.advisor-result p {
  color: var(--soft);
  line-height: 1.6;
}

.advisor-score {
  display: inline-grid;
  width: 94px;
  height: 94px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 1.85rem;
  font-weight: 950;
}

.weight-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.weight-row {
  display: grid;
  grid-template-columns: 88px 1fr 40px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.weight-track i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

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

.model-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 382px;
  padding: 18px;
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.model-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
}

.model-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
}

.model-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.model-top {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.rank-num {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.16);
  font-weight: 950;
}

.family-tag {
  max-width: 160px;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 999px;
  color: #061014;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-actions {
  gap: 8px;
}

.icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font-size: 1rem;
  font-weight: 950;
}

.icon-btn:hover,
.icon-btn.is-active {
  border-color: var(--accent);
  color: #061014;
  background: var(--accent);
}

.model-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.16rem, 2.1vw, 1.52rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.model-note {
  min-height: 78px;
  color: var(--soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.score-row {
  align-items: end;
  gap: 12px;
  margin: 20px 0 18px;
}

.score-value {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 950;
  line-height: 0.92;
}

.score-meta {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-chart {
  width: 100%;
  height: 108px;
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 7, 12, 0.48);
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 32px;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

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

.bar-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.72));
  transform-origin: left;
  animation: grow-bar 700ms ease both;
}

.chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips span {
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.76rem;
  font-weight: 900;
}

.api-row {
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 16px;
}

.api-row .btn {
  flex: 1 1 136px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel);
}

.table-zone {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  scrollbar-color: rgba(56, 219, 255, 0.55) rgba(255, 255, 255, 0.08);
}

table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  table-layout: fixed;
}

th:nth-child(1),
td:nth-child(1) {
  width: 72px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 170px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 132px;
}

th:nth-child(5),
td:nth-child(5),
th:nth-child(6),
td:nth-child(6),
th:nth-child(7),
td:nth-child(7),
th:nth-child(8),
td:nth-child(8) {
  width: 92px;
}

th:nth-child(9),
td:nth-child(9) {
  width: 152px;
}

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: rgba(12, 17, 25, 0.98);
  font-size: 0.74rem;
  text-transform: uppercase;
}

td {
  color: var(--soft);
  line-height: 1.45;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.sort-btn {
  border: 0;
  color: inherit;
  background: none;
  font-weight: 950;
  text-transform: uppercase;
}

.model-cell strong {
  display: block;
  color: var(--ink);
}

.model-cell small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.table-score {
  color: var(--accent);
  font-weight: 950;
}

.table-link {
  display: inline-flex;
  width: 64px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 0.78rem;
  font-weight: 950;
}

.table-link.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.table-actions {
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.source-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 78px;
  padding: 22px;
}

.source-section p,
.faq p,
.seo-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.source-grid {
  align-content: start;
  flex-wrap: wrap;
  gap: 10px;
}

.source-grid a {
  flex: 1 1 230px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.source-grid a:hover {
  border-color: rgba(56, 219, 255, 0.42);
  color: var(--ink);
}

.hub-links {
  margin-top: 14px;
}

.cluster-grid a {
  color: var(--cyan);
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 22px;
}

.faq h2 {
  margin-bottom: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

summary {
  padding: 16px;
  font-weight: 950;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
}

.seo-copy {
  margin-top: 18px;
  padding: 22px;
}

.seo-copy h2 {
  font-size: 1.35rem;
}

.compare-tray {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  align-items: center;
  gap: 14px;
  max-width: min(760px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 12, 18, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.compare-tray strong,
.compare-tray span {
  display: block;
}

.compare-tray span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.tray-items {
  max-width: 320px;
  gap: 6px;
  flex-wrap: wrap;
}

.tray-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 900;
}

.tray-chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  color: #061014;
  background: var(--amber);
  font-size: 0.7rem;
  font-weight: 950;
}

.modal {
  width: min(960px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(56, 219, 255, 0.08), transparent 34%),
    rgba(9, 13, 20, 0.98);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 52px);
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  margin: 12px 12px 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 950;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  padding: 8px 24px 24px;
}

.modal-grid p {
  color: var(--soft);
  line-height: 1.7;
}

.modal-chart {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.modal-specs {
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.modal-specs span {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 900;
}

.modal-metrics {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
}

.modal-metrics div {
  flex: 1 1 140px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.modal-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.modal-metrics strong {
  display: block;
  margin-top: 7px;
  font-size: 1.45rem;
}

.compare-modal {
  width: min(1080px, calc(100% - 28px));
}

.compare-modal h2,
.compare-modal .eyebrow {
  padding: 0 24px;
}

.battleboard {
  display: grid;
  gap: 12px;
  padding: 20px 24px 24px;
}

.battle-row {
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.battle-name {
  width: 160px;
  font-weight: 950;
}

.battle-bars {
  flex: 1;
  display: grid;
  gap: 7px;
}

.battle-bars div {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 46px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--cyan);
  font-weight: 950;
}

.local-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: center;
  min-height: 58vh;
  padding: 52px 0 28px;
}

.local-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 5rem);
}

.local-chipboard,
.local-advisor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.local-chipboard {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.local-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.local-chip strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.local-chip span {
  color: var(--green);
  font-weight: 950;
  text-align: right;
}

.local-advisor {
  padding: 18px;
}

.seo-cluster {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

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

.cluster-grid article {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 6, 10, 0.72);
}

.cluster-grid h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.cluster-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.local-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.local-verdict {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 6, 10, 0.76);
}

.local-verdict-score {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border-radius: 50%;
  color: #061014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 2.3rem;
  font-weight: 950;
}

.local-verdict p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.local-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 6, 10, 0.74);
}

.local-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.local-card h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
}

.local-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.fit-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #061014;
  background: var(--accent);
  font-size: 0.74rem;
  font-weight: 950;
}

.command-line {
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.8rem;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

@keyframes slow-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes grid-drift {
  to {
    transform: perspective(500px) rotateX(62deg) translateY(26px);
  }
}

@keyframes grow-bar {
  from {
    transform: scaleX(0);
  }
}

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

@media (max-width: 1040px) {
  .hero,
  .rank-layout,
  .local-hero,
  .source-section,
  .modal-grid,
  .compare-lab-head,
  .duel-stage {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: auto;
  }

  .hero-console {
    min-height: 520px;
  }

  .insight-panel {
    position: static;
  }

  .modal-chart {
    min-height: 280px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 66px;
  }

  .site-header,
  main,
  .footer {
    width: min(100% - 24px, 1220px);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
    background: rgba(8, 12, 18, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    gap: 24px;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.9rem);
  }

  .hero-console {
    min-height: 430px;
  }

  .holo-display {
    min-height: 280px;
  }

  .command-center {
    position: static;
  }

  .metrics-strip,
  .leaderboard,
  .media-grid,
  .local-controls,
  .local-grid,
  .cluster-grid,
  .local-verdict,
  .section-heading,
  .duel-controls {
    grid-template-columns: 1fr;
  }

  .table-zone {
    border-radius: var(--radius);
  }

  .table-wrap {
    margin: 0 -12px;
    padding: 0 12px 10px;
  }

  table {
    min-width: 980px;
  }

  .section-heading {
    padding-top: 72px;
  }

  .compare-tray {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-wrap: wrap;
  }

  .tray-items {
    max-width: none;
  }
}

@media (max-width: 560px) {
  body::before {
    background-size: 42px 42px;
  }

  .brand small {
    display: none;
  }

  .control-grid,
  .source-grid,
  .footer {
    flex-direction: column;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .hero-kpis div,
  .field,
  .switch,
  .source-grid a {
    width: 100%;
  }

  .rank-beacon {
    width: 124px;
    height: 124px;
  }

  .rank-beacon span {
    font-size: 2.15rem;
  }

  .model-card {
    min-height: 0;
    padding: 15px;
  }

  .model-note {
    min-height: 0;
  }

  .api-row .btn,
  .hero-actions .btn {
    width: 100%;
    flex-basis: 100%;
  }

  .bar-row {
    grid-template-columns: 74px 1fr 30px;
  }

  .modal {
    width: calc(100% - 16px);
  }

  .modal-grid,
  .modal-metrics,
  .battleboard {
    padding-left: 16px;
    padding-right: 16px;
  }

  .battle-row {
    align-items: stretch;
    flex-direction: column;
  }

  .battle-name {
    width: auto;
  }

  .local-chip {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .local-chip span {
    text-align: left;
  }
}
