:root {
  color-scheme: light dark;
  --background: #07111f;
  --surface: #0d1a2b;
  --surface-strong: #13243a;
  --text: #f6f8fb;
  --muted: #a8b5c5;
  --subtle: #758397;
  --border: #263a53;
  --accent: #64e4d1;
  --accent-strong: #27c9b3;
  --warm: #ffbd66;
  --danger: #ff9b95;
  --max-width: 74rem;
  --radius: 1.1rem;
  --shadow: 0 1.5rem 4.5rem rgb(0 0 0 / 0.24);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 20rem;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgb(48 142 151 / 0.22), transparent 34rem),
    var(--background);
  font-size: 1rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.55rem;
  color: #06131c;
  background: var(--accent);
  font-weight: 800;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(38 58 83 / 0.85);
  background: rgb(7 17 31 / 0.9);
  backdrop-filter: blur(1rem);
}
.header-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 820;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 1.8rem;
  height: 1.8rem;
  border: 0.34rem solid var(--accent);
  border-right-color: transparent;
  border-radius: 0.5rem;
}
.brand-mark::after {
  position: absolute;
  right: -0.28rem;
  bottom: 0;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--warm);
  content: "";
}
.site-navigation { display: flex; align-items: center; gap: 0.25rem; }
.site-navigation > a,
.nav-dropdown > summary {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}
.site-navigation > a:hover,
.site-navigation > a:focus-visible,
.site-navigation > a[aria-current="page"],
.nav-dropdown > summary:hover,
.nav-dropdown > summary:focus-visible,
.nav-dropdown[open] > summary,
.nav-dropdown.is-active > summary { color: var(--text); background: var(--surface-strong); }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { cursor: pointer; list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary svg { width: 0.7rem; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 160ms ease; }
.nav-dropdown[open] > summary svg { transform: rotate(180deg); }
.category-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.65rem);
  left: 0;
  display: grid;
  width: 16rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.category-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem; border-radius: 0.55rem; color: var(--muted); font-weight: 680; text-decoration: none; }
.category-menu a:hover, .category-menu a:focus-visible { color: var(--text); background: var(--surface-strong); }
.category-menu .category-menu-all { padding-bottom: 0.8rem; margin-bottom: 0.35rem; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--accent); }
.navigation-icon { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.search-button {
  display: inline-flex;
  width: 2.75rem;
  min-height: 2.75rem;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  color: var(--muted);
  background: var(--surface);
  font-weight: 700;
}
.search-button:hover { color: var(--text); border-color: var(--subtle); }
.search-button svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-button {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  color: var(--text);
  background: var(--surface);
}

.site-search-dialog {
  width: min(48rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.site-search-dialog::backdrop { background: rgb(2 8 15 / 0.82); backdrop-filter: blur(0.3rem); }
.site-search-shell { padding: clamp(1rem, 4vw, 1.75rem); }
.site-search-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.site-search-heading h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.search-close {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  font-size: 1.55rem;
  line-height: 1;
}
.global-search-field {
  display: flex;
  min-height: 3.5rem;
  margin-top: 1.25rem;
  padding: 0 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--background);
}
.global-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgb(100 228 209 / 0.12); }
.global-search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-status { margin: 0.9rem 0 0.55rem; color: var(--subtle); font-size: 0.84rem; }
.global-search-results { display: grid; gap: 0.35rem; max-height: 55vh; overflow-y: auto; }
.global-search-result {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  text-decoration: none;
}
.global-search-result:hover, .global-search-result:focus-visible { border-color: var(--border); background: var(--surface-strong); }
.global-search-image { width: 6rem; aspect-ratio: 4 / 3; border-radius: 0.55rem; object-fit: cover; }
.global-search-copy { display: grid; min-width: 0; }
.global-search-category { color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.global-search-copy strong { font-size: 1rem; }
.global-search-summary { overflow: hidden; color: var(--muted); font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.global-search-score { color: var(--warm); font-size: 0.86rem; font-weight: 800; white-space: nowrap; }
.global-search-empty { padding: 2.5rem 1rem; border: 1px dashed var(--border); border-radius: 0.8rem; text-align: center; }
.global-search-empty p { margin: 0.4rem 0 0; color: var(--muted); }

main { min-height: 65vh; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.55fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.8rem, 7.8vw, 6.1rem);
  letter-spacing: -0.062em;
}
h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.045em;
}
h3 { margin-bottom: 0.65rem; font-size: 1.25rem; letter-spacing: -0.025em; }
.lead { max-width: 46rem; margin-bottom: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.hero-panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(255 255 255 / 0.035), transparent 55%), var(--surface);
}
.hero-panel p { margin-bottom: 0.4rem; color: var(--muted); }
.hero-panel strong { display: block; color: var(--text); font-size: 2.15rem; letter-spacing: -0.04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 0.72rem;
  color: #06131c;
  background: var(--accent);
  font-weight: 780;
  text-decoration: none;
}
.button:hover { background: var(--accent-strong); }
.button.secondary { color: var(--text); border-color: var(--border); background: transparent; }
.button.secondary:hover { border-color: var(--subtle); background: var(--surface); }
.button[aria-disabled="true"] { pointer-events: none; opacity: 0.45; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading > div { max-width: 48rem; }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.text-link { color: var(--accent); font-weight: 700; text-underline-offset: 0.25rem; }

.category-grid, .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.category-card, .review-card {
  position: relative;
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  padding: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(255 255 255 / 0.025), transparent 55%), var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}
.category-card-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  place-items: center;
  border: 1px solid rgb(100 228 209 / 0.3);
  border-radius: 0.8rem;
  color: var(--accent);
  background: rgb(100 228 209 / 0.08);
}
.category-card-icon .navigation-icon { width: 1.6rem; height: 1.6rem; }
.product-media {
  aspect-ratio: 4 / 3;
  margin: -1.4rem -1.4rem 1.2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.review-card:hover .product-media img { transform: scale(1.025); }
.category-card:hover, .review-card:hover { border-color: #46627f; transform: translateY(-0.18rem); }
.category-card p, .review-card p { color: var(--muted); }
.category-card .card-link, .review-card .card-link { margin-top: auto; color: var(--accent); font-weight: 760; text-decoration: none; }
.category-card .card-link::after, .review-card .card-link::after { position: absolute; inset: 0; content: ""; }
.review-card:has(.card-link-cover) { cursor: pointer; }
.review-card .card-link-cover { margin-top: 0; }
.review-card .card-link-cover:focus-visible { outline: 0; }
.review-card .card-link-cover:focus-visible::after {
  border-radius: var(--radius);
  outline: 0.2rem solid var(--warm);
  outline-offset: -0.35rem;
}
.card-kicker, .review-meta { color: var(--subtle); font-size: 0.78rem; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }
.score-price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.2rem 0; padding-block: 0.9rem; border-block: 1px solid var(--border); }
.score { font-size: 1.75rem; font-weight: 830; letter-spacing: -0.04em; }
.score small { color: var(--subtle); font-size: 0.8rem; }
.price { color: var(--warm); font-weight: 800; }

.toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.search-field {
  display: flex;
  min-height: 3.25rem;
  flex: 1;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgb(100 228 209 / 0.12); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.result-count { min-width: 5.5rem; margin: 0; color: var(--muted); text-align: right; }
.empty-state { padding: 4rem 1rem; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }
.empty-state p { color: var(--muted); }

.listing-card { min-height: 36rem; }
.listing-card .summary { min-height: 5rem; }
.spec-preview { display: grid; gap: 0.4rem; margin: 0 0 1.4rem; }
.spec-preview div { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.9rem; }
.spec-preview dt, .spec-preview dd { margin: 0; }
.spec-preview dd { color: var(--text); text-align: right; }
.card-actions { position: relative; z-index: 2; display: flex; gap: 0.6rem; margin-top: auto; }
.compare-button {
  min-height: 2.85rem;
  flex: 1;
  padding: 0 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 0.7rem;
  color: #06131c;
  background: var(--accent);
  font-weight: 760;
}
.compare-button[aria-pressed="true"] { color: var(--accent); background: transparent; }
.compare-button:disabled { cursor: not-allowed; opacity: 0.45; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-top: 2rem; color: var(--subtle); font-size: 0.88rem; }
.breadcrumbs a { color: var(--muted); }
.page-intro { max-width: 52rem; padding: clamp(3rem, 7vw, 5rem) 0; }
.page-intro h1 { max-width: 14ch; font-size: clamp(2.7rem, 7vw, 5.2rem); }

.review-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr); gap: clamp(2rem, 7vw, 5rem); padding-bottom: 5rem; }
.review-article { max-width: 48rem; }
.review-article p { color: #ced6e0; }
.review-article h2 { margin-top: 3rem; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.review-summary { font-size: 1.2rem; color: var(--muted) !important; }
.review-sidebar { display: grid; gap: 1rem; align-self: start; }
.review-product-media { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.review-product-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.score-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.score-card .big-score { display: block; margin-bottom: 0.75rem; color: var(--accent); font-size: 4rem; font-weight: 850; letter-spacing: -0.06em; line-height: 1; }
.score-card p { color: var(--muted); }
.review-list { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.review-list li + li { margin-top: 0.5rem; }
.strengths h3 { color: var(--accent); }
.limitations h3 { color: var(--danger); }
.spec-table, .comparison-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td, .comparison-table th, .comparison-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th, .comparison-table tbody th { color: var(--muted); font-size: 0.9rem; }
.spec-table th { width: 42%; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.comparison-table { min-width: 46rem; background: var(--surface); }
.comparison-table thead th { color: var(--text); background: var(--surface-strong); }
.comparison-empty { padding: 2rem; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

.prose { max-width: 48rem; padding-bottom: 5rem; }
.prose h2 { margin-top: 2.8rem; font-size: 1.75rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: #c5cfdb; }
.prose a { color: var(--accent); }
.notice { padding: 1.2rem 1.3rem; border-left: 0.22rem solid var(--warm); border-radius: 0.4rem; background: var(--surface); color: var(--muted); }

.compare-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 40;
  display: flex;
  width: min(42rem, calc(100% - 2rem));
  min-height: 4.5rem;
  margin-inline: auto;
  padding: 0.75rem 0.8rem 0.75rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #47617c;
  border-radius: 0.9rem;
  background: rgb(13 26 43 / 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(1rem);
}
.compare-bar p { margin: 0; color: var(--muted); }

.site-footer { padding: 3rem 0 6rem; border-top: 1px solid var(--border); color: var(--subtle); font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: center; }
.footer-brand { color: var(--muted); }
.footer-navigation-group { display: flex; align-items: flex-end; flex-direction: column; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem 1.2rem; }
.footer-links a:hover { color: var(--text); }
.social-links { display: flex; gap: 0.5rem; }
.social-links a {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.social-links svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-note { grid-column: 1 / -1; max-width: 48rem; margin: 0; }

.not-found { display: grid; min-height: 70vh; place-items: center; }
.not-found-inner { max-width: 42rem; padding: 3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.not-found h1 { max-width: none; font-size: clamp(3rem, 10vw, 6rem); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 0.2rem solid var(--warm); outline-offset: 0.18rem; }

@media (max-width: 56rem) {
  .hero, .review-layout { grid-template-columns: 1fr; }
  .hero-panel, .review-sidebar { max-width: 34rem; }
  .category-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  .menu-button { display: block; }
  .site-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.7rem;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 0 0 0.85rem 0.85rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .site-navigation[data-open="true"] { display: flex; }
  .site-navigation > a, .nav-dropdown > summary { width: 100%; }
  .category-menu { position: static; width: auto; margin: 0.3rem 0 0.4rem; box-shadow: none; }
  .category-grid, .review-grid { grid-template-columns: 1fr; }
  .section-heading, .toolbar, .footer-grid { align-items: flex-start; flex-direction: column; }
  .toolbar { display: flex; }
  .search-field { width: 100%; flex: auto; }
  .result-count { text-align: left; }
  .footer-grid { display: flex; }
  .footer-navigation-group { align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .compare-bar { align-items: stretch; flex-direction: column; }
  .global-search-result { grid-template-columns: 5rem minmax(0, 1fr); }
  .global-search-image { width: 5rem; }
  .global-search-score { grid-column: 2; }
  .global-search-summary { display: none; }
}

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