:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-soft: #0b0e17;
  --surface: rgba(18, 22, 34, 0.82);
  --surface-strong: #121623;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f7fb;
  --muted: #9ca5b7;
  --muted-strong: #c2c8d4;
  --accent: #8b7cff;
  --accent-strong: #aa9fff;
  --cyan: #51dec8;
  --amber: #f3be70;
  --danger: #ff827c;
  --ok: #62dfaa;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% -5%, rgba(123, 101, 255, 0.21), transparent 29rem),
    radial-gradient(circle at 92% 14%, rgba(45, 211, 186, 0.12), transparent 31rem),
    var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
  content: "";
  pointer-events: none;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 9px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 750;
}

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

.site-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.wide-shell {
  width: min(1500px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(132, 111, 255, 0.42), rgba(55, 223, 194, 0.14));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 8px 26px rgba(105, 87, 255, 0.2);
  font-weight: 850;
}

.brand-copy { display: grid; gap: 1px; }
.brand-name { font-size: 15px; font-weight: 760; letter-spacing: -0.02em; }
.brand-caption { color: #777f91; font-size: 9px; font-weight: 720; letter-spacing: 0.12em; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}

.identity {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.identity strong { color: var(--muted-strong); font-weight: 700; }
.identity[data-authenticated="true"] strong { color: var(--ok); }

.auth-button,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.auth-button:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.085);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(120deg, #7c6cff, #5c92ff);
  box-shadow: 0 12px 32px rgba(104, 91, 255, 0.28);
}

.button.primary:hover { background: linear-gradient(120deg, #8e80ff, #6ca0ff); }
.button.ghost { background: transparent; }
.button:disabled,
.button:disabled:hover { transform: none; border-color: var(--border); background: rgba(255, 255, 255, 0.035); box-shadow: none; color: var(--muted); cursor: not-allowed; }

.page-main { padding: 46px 0 88px; }
.home-main { padding-top: 0; }

.hero {
  min-height: min(620px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  padding: 58px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #b8bfce;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(81, 222, 200, 0.85);
  content: "";
}

.hero h1,
.page-title,
.detail-title {
  margin: 22px 0 0;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.98;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #fafbff 9%, #aaa3ff 53%, #67e5cf 95%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy,
.page-intro,
.detail-intro {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy { max-width: 620px; margin: 20px 0 0; font-size: clamp(15px, 1.6vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-resource-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.hero-resource-links a { color: var(--muted); font-size: 12px; font-weight: 680; text-underline-offset: 4px; }
.hero-resource-links a:hover { color: var(--text); }

.capability-orbit {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.orbit-core {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.17), transparent 28%),
    linear-gradient(145deg, rgba(120, 98, 255, 0.38), rgba(32, 189, 171, 0.11));
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.022), 0 0 90px rgba(106, 87, 255, 0.25);
  text-align: center;
}

.orbit-core strong { display: block; font-size: 32px; letter-spacing: -0.05em; }
.orbit-core span { color: var(--muted); font-size: 12px; }

.orbit-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.orbit-chip {
  position: absolute;
  z-index: 3;
  min-width: 112px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 13px;
  background: rgba(15, 19, 30, 0.9);
  box-shadow: var(--shadow);
  text-align: center;
}

.orbit-chip strong { display: block; font-size: 13px; }
.orbit-chip span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.orbit-chip:nth-of-type(2) { top: 28px; left: 50%; transform: translateX(-50%); }
.orbit-chip:nth-of-type(3) { top: 42%; right: 0; }
.orbit-chip:nth-of-type(4) { right: 15%; bottom: 18px; }
.orbit-chip:nth-of-type(5) { bottom: 18px; left: 13%; }
.orbit-chip:nth-of-type(6) { top: 42%; left: 0; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}

.metric-item { padding: 28px 24px; border-right: 1px solid var(--border); }
.metric-item:last-child { border-right: 0; }
.metric-item strong { display: block; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.05em; }
.metric-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.section { padding: 92px 0 0; }
.section.compact { padding-top: 54px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-kicker { margin: 0 0 9px; color: var(--accent-strong); font-size: 11px; font-weight: 760; letter-spacing: 0.12em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.045em; }
.section-heading p { max-width: 560px; margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.section-link { flex: 0 0 auto; color: var(--muted-strong); font-size: 13px; font-weight: 720; text-decoration: none; }
.section-link:hover { color: var(--text); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.glass-card,
.family-card,
.platform-card,
.model-panel,
.content-panel,
.filter-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.family-card,
.platform-card {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  padding: 24px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.family-card::after,
.platform-card::after {
  position: absolute;
  right: -66px;
  bottom: -78px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(127, 106, 255, 0.2)), transparent 68%);
  content: "";
}

.family-card:hover,
.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032));
}

.family-card-top,
.platform-card-top,
.model-heading,
.panel-heading,
.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-label { color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: 0.12em; text-transform: uppercase; }
.card-arrow { color: var(--muted-strong); font-size: 18px; }
.family-card h3,
.platform-card h3 { margin: 38px 0 9px; font-size: 25px; letter-spacing: -0.035em; }
.family-card p,
.platform-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.58; }
.card-meta { position: absolute; right: 24px; bottom: 21px; left: 24px; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }

.chip,
.status-chip {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 690;
  white-space: nowrap;
}

.status-chip.measured,
.status-chip.verified { border-color: rgba(98, 223, 170, 0.3); color: var(--ok); background: rgba(98, 223, 170, 0.075); }
.status-chip.catalog { border-color: rgba(139, 124, 255, 0.32); color: #b4aaff; background: rgba(139, 124, 255, 0.08); }
.status-chip.empty { border-color: rgba(243, 190, 112, 0.28); color: var(--amber); background: rgba(243, 190, 112, 0.07); }

.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.evidence-item { padding: 22px; }
.evidence-item strong { display: block; margin-top: 18px; font-size: 18px; }
.evidence-item p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.58; }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 23px; color: var(--muted); font-size: 12px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span[aria-hidden="true"] { color: #525969; }

.page-heading { max-width: 820px; margin-bottom: 28px; }
.page-title { font-size: clamp(38px, 5vw, 54px); line-height: 1.04; }
.page-intro { max-width: 680px; margin: 14px 0 0; font-size: 15px; }
.source-line { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 19px; color: var(--muted); font-size: 11px; }
.source-line code { color: var(--muted-strong); }

.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.filter-panel { position: sticky; top: 92px; padding: 18px; }
.filter-panel h2 { margin: 0 0 5px; font-size: 15px; }
.filter-panel > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.filter-stack { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field span { color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #101521;
  color: var(--text);
  outline: 0;
}
.field input:focus,
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.14); }
.reset-button { width: 100%; margin-top: 2px; }

.catalog-results { min-width: 0; }
.result-heading { align-items: center; margin-bottom: 15px; }
.result-heading h2 { margin: 0; font-size: 16px; }
.result-count { color: var(--muted); font-size: 12px; }
.family-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.empty-state,
.error-state {
  min-height: 230px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}
.error-state { color: var(--danger); }

.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 92% 8%, rgba(81, 222, 200, 0.12), transparent 24rem),
    linear-gradient(145deg, rgba(139, 124, 255, 0.12), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}
.detail-title { font-size: clamp(42px, 6vw, 64px); line-height: 1; }
.detail-intro { max-width: 720px; margin: 14px 0 0; font-size: 15px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 42px; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--border); }
.detail-stat { min-height: 88px; padding: 16px; background: rgba(10, 13, 21, 0.94); }
.detail-stat span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; }
.detail-stat strong { display: block; margin-top: 8px; font-size: 19px; }

.model-list { display: grid; gap: 16px; }
.model-panel { padding: 22px; }
.model-heading h3 { margin: 0; font-size: 22px; letter-spacing: -0.035em; }
.model-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.model-badges { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.model-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 19px 0; }
.fact { min-width: 0; border-radius: 12px; padding: 12px; background: var(--surface-soft); }
.fact span { display: block; color: var(--muted); font-size: 10px; }
.fact strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; }

.support-list { display: grid; gap: 8px; }
.support-highlights { margin-top: 19px; }
.support-highlights-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.support-highlights-heading h4 { margin: 0; font-size: 13px; }
.support-highlights-heading span { color: var(--muted); font-size: 10px; }
.support-highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.support-highlight { min-width: 0; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, 0.03); }
.support-highlight > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.support-highlight strong { font-size: 12px; }
.support-highlight > span,
.support-highlight small { display: block; overflow: hidden; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.support-details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.support-details summary,
.benchmark-more summary { color: var(--muted-strong); font-size: 11px; font-weight: 700; cursor: pointer; }
.support-details[open] summary { margin-bottom: 12px; }
.support-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(180px, 1fr) minmax(90px, 0.45fr) minmax(220px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}
.support-row strong { font-size: 12px; }
.support-quants { display: flex; flex-wrap: wrap; gap: 5px; }
.support-note { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.45; }

.content-panel { padding: 20px; }
.panel-heading { align-items: center; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font-size: 19px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 13px; }
.data-table { width: 100%; min-width: 1040px; border-collapse: collapse; }
.data-table th,
.data-table td { padding: 12px 13px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.data-table th { position: sticky; top: 0; z-index: 1; background: #151a27; color: var(--muted); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table td { font-size: 12px; font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(139, 124, 255, 0.045); }
.data-table .numeric { text-align: right; }
.data-table .unavailable { color: #6f7787; }
.data-table .source-cell { max-width: 310px; overflow: hidden; text-overflow: ellipsis; }
.sort-button { width: 100%; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.sort-button[data-direction="asc"]::after { content: " ↑"; color: var(--cyan); }
.sort-button[data-direction="desc"]::after { content: " ↓"; color: var(--cyan); }

.platform-stack { display: grid; gap: 18px; }
.device-finder { margin-bottom: 22px; scroll-margin-top: 92px; }
.device-select { max-width: 520px; }
.device-match { margin-top: 16px; }
.device-match-placeholder { margin: 0; border: 1px dashed var(--border); border-radius: 14px; padding: 24px; color: var(--muted); text-align: center; }
.device-match-card { border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: rgba(255, 255, 255, 0.025); }
.device-match-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.device-match-heading h3 { margin: 0; font-size: 22px; letter-spacing: -0.035em; }
.device-match-heading p,
.device-match-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.device-match-note { max-width: 850px; margin-top: 13px; }
.device-match-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 17px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.device-match-stats div { padding: 13px; background: #10141f; }
.device-match-stats span { display: block; color: var(--muted); font-size: 10px; }
.device-match-stats strong { display: block; margin-top: 5px; font-size: 18px; }
.device-match-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.device-match-links a { text-decoration: none; }
.device-match-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 17px; }
.platform-detail { scroll-margin-top: 92px; }
.platform-detail-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.platform-detail h2 { margin: 0; font-size: 28px; letter-spacing: -0.04em; }
.platform-detail-header p { max-width: 720px; margin: 9px 0 0; color: var(--muted); line-height: 1.6; }
.platform-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.subsection-title { margin: 0 0 11px; color: var(--muted-strong); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.backend-list,
.device-list { display: grid; gap: 8px; }
.backend-item,
.device-item { border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, 0.025); }
.backend-item strong,
.device-item strong { display: block; font-size: 13px; }
.backend-item span,
.device-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.benchmark-filters { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)) auto; gap: 10px; align-items: end; }
.page-heading-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.page-heading-actions > div { min-width: 0; }
.benchmark-admin-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.upload-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100dvh - 32px); border: 0; padding: 0; background: transparent; color: var(--text); }
.upload-dialog::backdrop { background: rgba(2, 4, 9, 0.82); backdrop-filter: blur(8px); }
.upload-dialog-card { overflow: auto; max-height: calc(100dvh - 32px); border: 1px solid var(--border-strong); border-radius: 22px; padding: 24px; background: #10141f; box-shadow: var(--shadow); }
.upload-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.upload-dialog-heading h2 { margin: 3px 0 0; font-size: 28px; }
.upload-dialog-heading p:last-child { max-width: 590px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-close { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); color: var(--muted-strong); font: inherit; font-size: 22px; cursor: pointer; }
.upload-contract { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; border-radius: 10px; padding: 11px 13px; background: rgba(139, 124, 255, 0.08); color: var(--muted-strong); font-size: 11px; }
.inline-link { border: 0; padding: 0; background: transparent; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.upload-dropzone { display: grid; gap: 7px; margin-top: 14px; border: 1px dashed var(--border-strong); border-radius: 14px; padding: 18px; background: rgba(255, 255, 255, 0.02); cursor: pointer; }
.upload-dropzone > span { font-weight: 700; }
.upload-dropzone small { color: var(--muted); line-height: 1.5; }
.upload-dropzone input { width: 100%; margin-top: 5px; color: var(--muted-strong); }
.upload-status { margin-top: 14px; border-left: 3px solid var(--border-strong); padding: 9px 11px; color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
.upload-status[data-kind="pending"] { border-color: var(--cyan); }
.upload-status[data-kind="success"] { border-color: var(--ok); color: var(--ok); }
.upload-status[data-kind="error"] { border-color: var(--danger); color: var(--danger); }
.validation-issues { max-height: 180px; overflow: auto; margin-top: 12px; border: 1px solid rgba(255, 105, 125, 0.25); border-radius: 10px; padding: 12px; color: var(--danger); font-size: 11px; }
.validation-issues ul { margin: 8px 0 0; padding-left: 18px; }
.validation-issues li + li { margin-top: 5px; }
.upload-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.requirements-dialog { width: min(760px, calc(100% - 28px)); }
.requirements-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-top: 22px; border: 1px solid var(--border); border-radius: 13px; background: var(--border); }
.requirements-summary span { padding: 13px; background: #121724; color: var(--muted); font-size: 11px; text-align: center; }
.requirements-summary strong { color: var(--text); }
.requirements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.requirements-grid section { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; border: 1px solid var(--border); border-radius: 13px; padding: 14px; background: rgba(255, 255, 255, 0.025); }
.requirements-grid section > span { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }
.requirements-grid h3 { margin: 0; font-size: 13px; }
.requirements-grid p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.requirements-note { margin: 14px 0 0; border-left: 3px solid var(--ok); padding: 9px 11px; background: rgba(98, 223, 170, 0.045); color: var(--muted-strong); font-size: 11px; line-height: 1.55; }
.requirements-actions { flex-wrap: wrap; }
.benchmark-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; border: 1px solid rgba(98, 223, 170, 0.2); border-radius: 13px; padding: 13px 14px; background: rgba(98, 223, 170, 0.055); color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
.benchmark-note strong { color: var(--ok); white-space: nowrap; }
.table-hint { margin: 0 0 10px; color: var(--muted); font-size: 10px; }
.benchmark-cards { display: none; }
.benchmark-card { border: 1px solid var(--border); border-radius: 15px; padding: 15px; background: rgba(255, 255, 255, 0.027); }
.benchmark-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.benchmark-card-heading h3 { margin: 0; font-size: 17px; }
.benchmark-card-heading h3 a { text-underline-offset: 3px; }
.benchmark-card-heading p,
.benchmark-route { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.benchmark-core-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin-top: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--border); }
.benchmark-core-metrics div { padding: 12px; background: #10141f; }
.benchmark-core-metrics span { display: block; color: var(--muted); font-size: 10px; }
.benchmark-core-metrics strong { display: block; margin-top: 5px; font-size: 17px; }
.benchmark-more { margin-top: 12px; }
.benchmark-more dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.benchmark-more dl div { border-radius: 9px; padding: 9px; background: rgba(255, 255, 255, 0.035); }
.benchmark-more dt { color: var(--muted); font-size: 9px; }
.benchmark-more dd { margin: 5px 0 0; font-size: 11px; }
.benchmark-more p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }

.site-footer { margin-top: 92px; border-top: 1px solid var(--border); }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #747d8d; font-size: 11px; }

@media (max-width: 1040px) {
  .site-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 10px; }
  .header-inner { flex-wrap: wrap; padding-top: 12px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .capability-orbit { min-height: 390px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-stack { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .benchmark-filters { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .support-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-shell,
  .wide-shell { width: min(100% - 28px, 1240px); }
  .header-actions { margin-left: auto; }
  .brand-caption { display: none; }
  .site-nav a { padding-inline: 9px; }
  .page-main { padding-top: 34px; }
  .hero { padding-top: 46px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .capability-orbit { min-height: 330px; }
  .orbit-core { width: 160px; height: 160px; }
  .orbit-core strong { font-size: 27px; }
  .orbit-ring { width: 300px; height: 300px; }
  .orbit-chip { width: 92px; min-width: 0; padding: 9px 8px; }
  .orbit-chip span { font-size: 9px; }
  .orbit-chip:nth-of-type(2) { top: 24px; }
  .orbit-chip:nth-of-type(3),
  .orbit-chip:nth-of-type(6) { top: 43%; }
  .orbit-chip:nth-of-type(4),
  .orbit-chip:nth-of-type(5) { bottom: 20px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-item:nth-child(2) { border-right: 0; }
  .metric-item:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .section { padding-top: 68px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .card-grid,
  .card-grid.two,
  .family-results,
  .evidence-grid { grid-template-columns: 1fr; }
  .filter-stack { grid-template-columns: 1fr 1fr; }
  .detail-stats,
  .model-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-heading { flex-direction: column; }
  .model-badges { justify-content: flex-start; }
  .platform-columns { grid-template-columns: 1fr; }
  .support-highlight-grid { grid-template-columns: 1fr; }
  .device-match-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benchmark-filters { grid-template-columns: 1fr 1fr; }
  .page-heading-actions { align-items: flex-start; flex-direction: column; }
  .benchmark-admin-actions { justify-content: flex-start; }
  .benchmark-table-view { display: none; }
  .table-hint { display: none; }
  .benchmark-cards { display: grid; gap: 10px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

@media (max-width: 480px) {
  .auth-button { padding-inline: 10px; }
  .site-nav { gap: 0; }
  .hero-actions .button { width: 100%; }
  .orbit-chip { min-width: 100px; }
  .metric-item { padding: 22px 16px; }
  .family-card,
  .platform-card { min-height: 225px; }
  .filter-stack,
  .benchmark-filters { grid-template-columns: 1fr; }
  .upload-contract { align-items: flex-start; flex-direction: column; }
  .upload-actions { flex-direction: column-reverse; }
  .upload-actions .button { width: 100%; }
  .requirements-summary,
  .requirements-grid { grid-template-columns: 1fr; }
  .detail-stats,
  .model-facts { grid-template-columns: 1fr 1fr; }
  .support-row { grid-template-columns: 1fr; }
  .support-note { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
