:root {
  --bg: #090e19;
  --bg-soft: #0d1322;
  --panel: rgba(17, 25, 44, 0.94);
  --panel-strong: #131b2f;
  --line: rgba(112, 131, 175, 0.22);
  --line-strong: rgba(99, 126, 255, 0.32);
  --text: #edf3ff;
  --muted: #94a3c3;
  --muted-strong: #bac6de;
  --blue: #5b7cff;
  --blue-dark: #4768ef;
  --cyan: #33d0ff;
  --green: #21c463;
  --green-dark: #18a553;
  --red: #ff4d5f;
  --red-dark: #e7384b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #0a0f1c 0%, #090e19 100%);
  background-size: 54px 54px, 54px 54px, auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #0a0f1c;
  border-bottom: 1px solid rgba(128, 146, 184, 0.12);
}

.header-shell {
  width: min(1400px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  font-family: "Syne", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #7f95ff;
  text-transform: uppercase;
  line-height: 1;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-family: "DM Sans", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.top-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.top-nav a.is-active {
  color: #ffffff;
  background: rgba(72, 104, 239, 0.18);
  border-color: rgba(101, 132, 255, 0.45);
}

.page-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  padding: 12px 0 10px;
  margin-bottom: 16px;
}

.eyebrow-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow,
.eyebrow-sub {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: #7092ff;
}

.eyebrow-sub,
.eyebrow-divider {
  color: #9ca8c5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}

.logo {
  width: 88px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(91, 124, 255, 0.18));
}

.title-block {
  text-align: center;
  max-width: 900px;
}

.title-block h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: #edf2ff;
}

.title-block p {
  margin: 18px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-note {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(26, 36, 61, 0.9);
  border: 1px solid rgba(104, 130, 224, 0.22);
  color: #9cb0df;
  font-size: 0.83rem;
  font-weight: 700;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.panel-compact {
  background: rgba(20, 28, 47, 0.94);
}

.panel-head h2 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  color: #f5f8ff;
}

.panel-head p,
.quick-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.quick-copy {
  font-size: 0.95rem;
}

.filters-grid,
.selectors-grid {
  display: grid;
  gap: 14px;
}

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

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

.field {
  display: grid;
  gap: 8px;
}

.field-wide,
.field-year {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #edf2ff;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(112, 131, 175, 0.24);
  border-radius: 12px;
  background: rgba(10, 15, 28, 0.82);
  color: var(--text);
  font: inherit;
}

.field input::placeholder {
  color: #6e7c9d;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(99, 126, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.18);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.results-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-message {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(112, 131, 175, 0.2);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(10, 15, 28, 0.74);
}

.status-error {
  color: #ffbec6;
  background: rgba(143, 22, 43, 0.22);
  border-color: rgba(255, 77, 95, 0.35);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(112, 131, 175, 0.14);
  border-radius: 18px;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(10, 15, 28, 0.5);
}

.compare-table th,
.compare-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(112, 131, 175, 0.14);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: rgba(18, 28, 49, 0.98);
  font-size: 0.95rem;
  color: #f2f6ff;
}

.compare-table tbody th {
  color: #dce6ff;
  font-weight: 700;
}

.compare-table tbody td {
  color: #b7c4e0;
}

.empty-table,
.na-cell {
  color: var(--muted);
}

.actions-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 10px;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 17px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(48, 58, 84, 0.96);
  color: #ffffff;
  border-color: rgba(112, 131, 175, 0.18);
}

.button-secondary:hover {
  background: rgba(61, 73, 104, 0.96);
}

.button-success {
  background: var(--green);
  color: #ffffff;
}

.button-success:hover {
  background: var(--green-dark);
}

.button-danger {
  background: var(--red);
  color: #ffffff;
}

.button-danger:hover {
  background: var(--red-dark);
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  display: inline-flex;
  margin: 0 8px;
  color: #8fb0ff;
}

.noscript-banner {
  text-align: center;
  padding: 0 20px 20px;
  color: #ffbec6;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .header-shell {
    align-items: flex-start;
    padding: 10px 0;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selectors-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1280px);
    padding-top: 18px;
  }

  .topbar {
    flex-direction: column;
    gap: 14px;
  }

  .toolbar,
  .actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .top-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-mark {
    font-size: 0.94rem;
  }
}
