/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #080b0f;
  --surface: #101820;
  --panel: #14202a;
  --line: #263746;
  --text: #edf4f8;
  --muted: #a9bac6;
  --soft: #d7e1e7;
  --accent: #3ee6d2;
  --accent-2: #f4c95d;
  --accent-3: #ff7a59;
  --ink: #061012;
  --shadow: 0 22px 60px rgba(0, 0, 0, .35);
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* =============================================================
   2. Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(62, 230, 210, .14), transparent 28rem),
    radial-gradient(circle at 8% 34%, rgba(244, 201, 93, .10), transparent 26rem),
    linear-gradient(180deg, #080b0f 0%, #0b1117 52%, #080b0f 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
p { color: var(--muted); text-wrap: pretty; }
h1, h2, h3 { line-height: 1.05; letter-spacing: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: .7rem 1rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* =============================================================
   4. Components
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 11, 15, .86);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0;
  font-weight: 800;
}
.brand-logo {
  width: clamp(9.5rem, 17vw, 14.5rem);
  height: 3.05rem;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem;
}
.nav a {
  padding: .55rem .75rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: .92rem;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.language-switch {
  display: flex;
  gap: .25rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}
.language-switch button {
  min-width: 2.4rem;
  padding: .4rem .55rem;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .8rem;
}
.language-switch button.is-active { background: var(--accent); color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: .74rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  transition: transform .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-secondary { border: 1px solid rgba(244, 201, 93, .55); color: var(--accent-2); }
.btn-ghost { border: 1px solid var(--line); color: var(--soft); }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #07090c;
}
.site-footer p { max-width: 62rem; font-size: .9rem; }
.footer-links { display: grid; gap: .6rem; color: var(--accent); }

/* =============================================================
   5. Sections
   ============================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  min-height: calc(100svh - 4rem);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem) 3rem;
  align-items: center;
}
.hero-copy { max-width: 54rem; }
.hero h1 {
  max-width: 16ch;
  margin-top: .7rem;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
}
.hero p { max-width: 45rem; margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }
.hero-board {
  display: grid;
  gap: .9rem;
}
.hero-pick {
  display: grid;
  grid-template-columns: 3rem minmax(7rem, 8.75rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  min-height: 7.4rem;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 32, .72);
  box-shadow: var(--shadow);
}
.hero-pick img {
  width: 100%;
  height: 6.05rem;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  padding: .25rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #090f15;
}
.rank { color: var(--accent-2); font-family: var(--mono); }
.notice-band,
.method-strip,
.section-head,
.product-grid,
.detail-layout,
.editorial,
.review-grid,
.guide-grid,
.rank-list,
.legal-copy,
.compare-picker {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.notice-band {
  display: grid;
  gap: .35rem;
  margin-block: 1rem 3rem;
  padding: 1rem;
  border: 1px solid rgba(244, 201, 93, .35);
  border-radius: 8px;
  background: rgba(244, 201, 93, .08);
}
.section-head { margin-block: 4rem 1.2rem; }
.section-head.compact { margin: 0 0 1.2rem; }
.page-title { padding-top: 3rem; }
.section-head h1,
.section-head h2 { margin-top: .5rem; font-size: clamp(2rem, 5vw, 4.5rem); }
.section-head.compact h2 { font-size: 2.2rem; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.15rem;
}
.product-grid.small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 32, .82);
  box-shadow: var(--shadow);
}
.product-media { background: #0c1218; }
.product-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  padding: .45rem;
  background: #090f15;
}
.product-body { display: grid; gap: .8rem; padding: 1.1rem; }
.product-body h3 { font-size: 1.14rem; line-height: 1.18; }
.product-body p { font-size: .92rem; }
.mini-row {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: .75rem;
}
.spec-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.spec-chips div {
  display: grid;
  align-content: center;
  min-height: 3.35rem;
  min-width: 0;
  padding: .5rem .55rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
}
.spec-chips dt { color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.spec-chips dd {
  color: var(--text);
  font-size: clamp(.88rem, 1.6vw, 1rem);
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
}
.method-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block: 3rem;
}
.method-strip div {
  padding: 1rem;
  border-top: 2px solid var(--accent);
  background: rgba(255, 255, 255, .04);
}
.method-strip span { display: block; color: var(--muted); }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c1218;
}
.product-summary {
  align-self: center;
  display: grid;
  gap: 1rem;
}
.product-summary h1 {
  max-width: 17ch;
  font-size: clamp(2.15rem, 4.2vw, 3.7rem);
}
.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .8rem;
}
.price-line strong { color: var(--accent-2); font-family: var(--mono); font-size: 2rem; }
.price-line span, .tag-warning { color: var(--muted); font-size: .9rem; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-block: 2rem;
}
.panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 32, .72);
}
.radar { width: 100%; height: 360px; min-height: 300px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td {
  padding: .72rem .2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  vertical-align: top;
}
.spec-table th { width: 50%; color: var(--muted); font-weight: 600; }
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-block: 3rem;
}
.article-copy { display: grid; gap: 1rem; }
.pros-cons {
  display: grid;
  gap: 1rem;
}
.pros-cons div,
.review-card,
.guide-grid article,
.rank-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 32, .72);
}
.pros-cons div { padding: 1rem; }
.pros-cons h3 { margin-bottom: .75rem; color: var(--accent); }
.pros-cons ul { display: grid; gap: .45rem; padding-left: 1.1rem; color: var(--soft); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.review-card { padding: 1rem; }
.review-card span { display: block; margin-block: .3rem; color: var(--accent-2); font-family: var(--mono); font-size: .8rem; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
  margin-block: 1rem 3rem;
}
.guide-grid article { padding: 1rem; }
.guide-grid h2 { margin-bottom: .65rem; font-size: 1.25rem; }
.rank-list { display: grid; gap: .75rem; }
.rank-item {
  display: grid;
  grid-template-columns: 2.5rem 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .75rem;
}
.rank-item > span { color: var(--accent-2); font-family: var(--mono); font-weight: 800; }
.rank-item img { width: 5rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.legal-copy {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin-block: 1rem 4rem;
}
.compare-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-block: 1rem;
}
.compare-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--soft);
}
.compare-pill.is-selected { border-color: var(--accent); background: rgba(62, 230, 210, .11); color: var(--accent); }
.detail-layout.compare-layout {
  grid-template-columns: 1fr;
}
.detail-layout.compare-layout .radar {
  height: 430px;
}
.compare-table-wrap {
  overflow: visible;
}
.compare-matrix {
  display: grid;
  gap: .4rem;
}
.compare-row {
  display: grid;
  grid-template-columns: minmax(8rem, .7fr) repeat(var(--compare-cols, 3), minmax(0, 1fr));
  gap: .4rem;
}
.compare-cell {
  min-width: 0;
  padding: .72rem .65rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  color: var(--soft);
  font-size: clamp(.78rem, .92vw, .95rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.compare-cell.label,
.compare-cell.head {
  color: var(--text);
  font-weight: 800;
}
.compare-cell.head {
  background: rgba(62, 230, 210, .08);
}
.compare-cell.is-best {
  border-color: rgba(62, 230, 210, .4);
  color: var(--accent);
  font-weight: 800;
}
.compare-cell .mini-link {
  display: inline-block;
  margin-top: .25rem;
  color: var(--accent-2);
  font-size: .82em;
}

/* =============================================================
   6. Effects & Responsive
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (min-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr); }
  .product-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .detail-layout.compare-layout { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (min-width: 960px) {
  .product-grid {
    width: min(1320px, calc(100% - 2rem));
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid.small { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 719px) {
  .site-header { grid-template-columns: 1fr auto; }
  .brand-logo { width: clamp(8.4rem, 48vw, 11rem); height: 2.55rem; }
  .nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .hero-pick {
    grid-template-columns: 2.1rem minmax(5.25rem, 6.4rem) minmax(0, 1fr);
    min-height: 6.6rem;
    gap: .65rem;
  }
  .hero-pick img { height: 5.15rem; }
  .hero-pick strong { grid-column: 3; justify-self: start; }
  .method-strip { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 2rem 4rem minmax(0, 1fr); }
  .rank-item .btn { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr; }
  .detail-layout.compare-layout .radar { height: 420px; }
  .compare-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare-row.compare-header-row { display: none; }
  .compare-cell.label {
    grid-column: 1 / -1;
    background: rgba(62, 230, 210, .08);
  }
  .compare-cell[data-product]::before {
    content: attr(data-product);
    display: block;
    margin-bottom: .25rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
