/* Blazing Monster — modern dark gaming theme
   Designed for speed, conversion, and SEO. No frameworks. */

:root {
  /* Brand colors */
  --bg-0: #07080d;
  --bg-1: #0d0f17;
  --bg-2: #141826;
  --bg-3: #1c2236;
  --border: #252b43;
  --border-bright: #2f3754;

  --text-0: #ffffff;
  --text-1: #e6e8f0;
  --text-2: #a8aec5;
  --text-3: #6f7691;

  --accent: #ff3a30;          /* fiery red — "blazing" */
  --accent-hot: #ff7a18;      /* orange highlight */
  --accent-cool: #00d4ff;     /* electric cyan — "monster" tech */
  --accent-glow: rgba(255, 58, 48, 0.35);

  --green: #2dd47f;
  --gold: #ffc857;

  /* Type */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Layout */
  --max-width: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 58, 48, 0.08), transparent 60%),
    radial-gradient(1000px 600px at 0% 110%, rgba(0, 212, 255, 0.06), transparent 60%),
    var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cool); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-0);
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(255, 58, 48, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 58, 48, 0.3);
  margin-bottom: 16px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text-0); }
.brand-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  box-shadow: 0 0 24px var(--accent-glow);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--bg-0);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 11px;
  background: linear-gradient(135deg, var(--accent-cool), var(--accent));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text-0); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 1.5rem;
  padding: 0;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-1);
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--border);
    gap: 12px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff;
  box-shadow: 0 8px 28px -8px var(--accent-glow);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px var(--accent-glow);
}
.btn-secondary {
  background: var(--bg-2);
  color: var(--text-0);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover {
  background: var(--bg-3);
  color: var(--text-0);
}
.btn-amazon {
  background: linear-gradient(135deg, #ff9900, #ff6f00);
  color: #0d0d0d;
  font-weight: 800;
}
.btn-amazon:hover {
  color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(255, 153, 0, 0.4);
}

/* Pulsing attention button — used on hero Build Generator CTA */
.btn-attention {
  background: linear-gradient(135deg, var(--accent-hot), var(--gold));
  color: #0d0d0d;
  font-weight: 800;
  border: 1px solid rgba(255, 200, 87, 0.55);
  animation: btn-attention-pulse 2.6s ease-in-out infinite;
  will-change: box-shadow, transform;
}
.btn-attention:hover {
  color: #0d0d0d;
  transform: translateY(-2px);
  animation-play-state: paused;
  box-shadow: 0 0 36px 6px rgba(255, 122, 24, 0.55), 0 12px 32px -10px rgba(255, 122, 24, 0.6);
}
@keyframes btn-attention-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(255, 122, 24, 0.55),
      0 8px 28px -8px rgba(255, 122, 24, 0.35);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 0 28px 8px rgba(255, 122, 24, 0.35),
      0 10px 34px -10px rgba(255, 122, 24, 0.6);
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-attention { animation: none; }
}

/* ---------- Hero with gaming background ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 72vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(80px, 10vw, 130px) 0;
  background-color: #07080d;
  background-image:
    linear-gradient(rgba(7, 8, 13, 0.82), rgba(7, 8, 13, 0.82)),
    radial-gradient(70% 70% at 75% 40%, rgba(255, 58, 48, 0.12), transparent 60%),
    url('/assets/img/hero-gaming.jpg');
  background-size: cover, cover, 100% auto;
  background-position: center, center, center center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
@media (max-width: 760px) {
  .hero {
    background-image:
      linear-gradient(rgba(7, 8, 13, 0.82), rgba(7, 8, 13, 0.82)),
      radial-gradient(60% 50% at 50% 35%, rgba(255, 58, 48, 0.12), transparent 70%),
      url('/assets/img/hero-gaming-mobile.jpg');
    background-size: cover, cover, 100% auto;
    background-position: center, center, center;
  }
}

/* Hero eyebrow — red→orange gradient text on a subtle pill, no glow */
.hero .eyebrow {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border-color: rgba(255, 122, 24, 0.42);
  box-shadow: inset 0 0 0 999px rgba(255, 122, 24, 0.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
}
@media (max-width: 760px) {
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-cta { justify-content: center; }
}

.hero h1 {
  background: linear-gradient(180deg, #fff 30%, #b4bce0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.hero .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-1);
  max-width: 580px;
  margin: 0 0 32px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
@media (max-width: 760px) {
  .hero p { margin: 0 auto 32px; }
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero stats strip below CTAs - 4 column grid that becomes 2x2 on mobile */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2.5vw, 24px);
  margin-top: 48px;
  max-width: 600px;
}
@media (max-width: 760px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 48px auto 0;
    max-width: 360px;
  }
}
.hero-stat {
  background: rgba(13, 15, 23, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(47, 55, 84, 0.6);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  display: block;
}
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-top: 6px;
  display: block;
}

/* ---------- Cards / Grid ---------- */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
}
.card-link { color: inherit; display: block; }
.card-link:hover { color: inherit; }

.card-thumb {
  margin: -24px -24px 18px;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #0a0b11;
}
.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,13,0) 45%, rgba(7,8,13,0.55) 100%);
  pointer-events: none;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tag-flagship  { color: var(--gold); background: rgba(255, 200, 87, 0.12); border: 1px solid rgba(255, 200, 87, 0.35); }
.tag-high-end  { color: var(--accent); background: rgba(255, 58, 48, 0.12); border: 1px solid rgba(255, 58, 48, 0.35); }
.tag-mid-range { color: var(--accent-cool); background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.3); }
.tag-budget    { color: var(--green); background: rgba(45, 212, 127, 0.1); border: 1px solid rgba(45, 212, 127, 0.3); }

.card h3 { margin-bottom: 8px; }
.card .price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-hot);
  font-weight: 700;
  margin: 8px 0 12px;
}
.card .specs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-2);
}
.card .specs li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.card .specs li:last-child { border-bottom: none; }
.card .specs strong { color: var(--text-1); font-weight: 600; }

/* ---------- Comparison Table ---------- */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
@media (max-width: 700px) { .compare-wrap { grid-template-columns: 1fr; } }

.compare-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.compare-card.winner {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -28px var(--accent-glow);
}
.compare-card.winner::before {
  content: "WINNER";
  position: absolute;
  top: -12px;
  left: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.12em;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  background: var(--bg-2);
  color: var(--text-1);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spec-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.spec-table td:first-child { color: var(--text-2); font-weight: 500; }
.spec-table td.better { color: var(--green); font-weight: 700; }
.spec-table td.worse { color: var(--text-3); }

/* ---------- Score Bars ---------- */
.score-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.score-label { font-size: 0.85rem; color: var(--text-2); }
.score-bar-bg {
  background: var(--bg-3);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cool), var(--accent));
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.score-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-1);
  font-size: 0.9rem;
  text-align: right;
}

/* ---------- Affiliate disclosure ---------- */
.disclosure {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-hot);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 24px 0;
}
.disclosure strong { color: var(--text-1); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 56px 0 32px;
  margin-top: 80px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h4 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-1);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--text-0); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; color: var(--text-3); }

/* ---------- Long-form content ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-1);
}
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 20px;
  margin: 1.5em 0;
  color: var(--text-2);
  font-style: italic;
}

/* ---------- Coming Soon ---------- */
.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.coming-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 20% 20%, rgba(255, 58, 48, 0.18), transparent 60%),
    radial-gradient(700px 500px at 80% 80%, rgba(0, 212, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.coming-soon-inner { position: relative; max-width: 720px; }
.coming-soon h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 16px;
}
.coming-soon .pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 0 0 rgba(45, 212, 127, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 212, 127, 0.7); }
  70%  { box-shadow: 0 0 0 16px rgba(45, 212, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 127, 0); }
}

/* ---------- Product images / thumbnails ---------- */
.product-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.product-thumb:hover {
  border-color: var(--accent);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .3s ease;
}
.product-thumb:hover img {
  transform: scale(1.04);
}
.product-thumb .zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(7, 8, 13, 0.85);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-1);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.product-thumb:hover .zoom-icon { opacity: 1; }

/* Hero (large) product image on individual product pages */
.product-hero {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  margin: 0 0 24px;
  position: relative;
}
.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}
.product-hero .zoom-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(7, 8, 13, 0.85);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-1);
}

/* SVG fallback styling — gives a clean branded card when no real image */
.product-thumb.fallback,
.product-hero.fallback {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
}
.fallback-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.fallback-content .brand-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.fallback-content .model-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--text-0);
  line-height: 1.1;
}
.fallback-content .accent-bar {
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  border-radius: 999px;
  margin-top: 14px;
}

/* Product hero layout (image + content side-by-side on product pages) */
.product-hero-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}
@media (max-width: 800px) {
  .product-hero-layout { grid-template-columns: 1fr; }
  .product-hero { max-width: 100%; }
}

/* ---------- Lightbox modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 13, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  background: var(--bg-1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform .25s ease;
}
.lightbox.open .lightbox-content {
  transform: scale(1);
}
@media (max-width: 760px) {
  .lightbox-content { grid-template-columns: 1fr; }
}

.lightbox-image {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 320px;
}
.lightbox-image img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
}
.lightbox-image .fallback-content { min-height: 320px; }

.lightbox-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.lightbox-info h3 {
  margin: 8px 0 6px;
  font-size: 1.4rem;
}
.lightbox-info .brand {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 600;
}
.lightbox-info .price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-hot);
  font-size: 1.05rem;
  margin: 8px 0 16px;
}
.lightbox-info .summary {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.lightbox-info .lightbox-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.lightbox-info .lightbox-cta .btn { justify-content: center; }
.lightbox-info .lightbox-cta .review-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-3);
}
.lightbox-info .lightbox-cta .review-link a { color: var(--accent-cool); }

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(7, 8, 13, 0.85);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  color: var(--text-1);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .15s ease;
}
.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

body.lightbox-open { overflow: hidden; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- Pros & Cons grid (product pages) ---------- */
.proscons-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 24px;
}
.proscons-card {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.proscons-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.proscons-card.pros { border-left: 3px solid var(--green); }
.proscons-card.cons { border-left: 3px solid var(--accent-hot); }
.proscons-card.pros h3 { color: var(--green); }
.proscons-card.cons h3 { color: var(--accent-hot); }
.proscons-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-1);
  line-height: 1.75;
}
.proscons-card li { margin-bottom: 6px; }

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-1);
  font-size: 1.02rem;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-hot);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-body {
  padding: 0 20px 18px;
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.98rem;
}
.faq-body a { color: var(--accent-cool); }

/* ---------- Buying guide pick cards ---------- */
.guide-picks-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 24px;
}
.guide-pick {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 28px;
}
.guide-pick h3 { font-size: 1.25rem; }
.guide-pick .price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-hot);
  font-weight: 700;
}

/* ---------- Interactive tools ---------- */
.tool-form {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 720px;
  margin-top: 32px;
}
.tool-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.tool-select {
  width: 100%;
  background: var(--bg-0);
  color: var(--text-1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
}
.tool-select:focus, .tool-range:focus {
  outline: 2px solid var(--accent-hot);
  outline-offset: 2px;
}
.tool-range {
  width: 100%;
  height: 6px;
  margin: 10px 0 4px;
  accent-color: var(--accent-hot);
}
.tool-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px 18px;
  margin: 20px 0 8px;
}
.tool-fieldset legend {
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tool-fieldset label {
  display: block;
  padding: 6px 0;
  cursor: pointer;
  color: var(--text-1);
}
.tool-fieldset input[type="radio"], .tool-check input[type="checkbox"] {
  accent-color: var(--accent-hot);
  margin-right: 8px;
}
.tool-check {
  display: block;
  cursor: pointer;
}
#generate {
  margin-top: 22px;
}

.tool-result {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 24px;
}
.tool-result h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.tool-parts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.95rem;
}
.tool-parts-table th, .tool-parts-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.tool-parts-table th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.tool-parts-table td.mono {
  font-family: var(--font-mono);
  color: var(--text-1);
}
.tool-parts-table tfoot td {
  border-top: 2px solid var(--border-bright);
  border-bottom: none;
  font-size: 1rem;
}

.tool-bars {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.tool-bar {
  display: grid;
  grid-template-columns: 180px 1fr 50px;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}
.tool-bar-label { color: var(--text-2); }
.tool-bar-track {
  height: 12px;
  background: var(--bg-0);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.tool-bar-fill {
  height: 100%;
  transition: width .4s ease;
}
.tool-bar-fill.cpu { background: linear-gradient(90deg, var(--accent-hot), var(--gold)); }
.tool-bar-fill.gpu { background: linear-gradient(90deg, var(--accent-cool), var(--green)); }
.tool-bar-num {
  font-family: var(--font-mono);
  color: var(--text-1);
  text-align: right;
  font-weight: 600;
}

@media (max-width: 640px) {
  .tool-parts-table th:nth-child(3),
  .tool-parts-table td:nth-child(3) { display: none; }
  .tool-bar { grid-template-columns: 110px 1fr 40px; font-size: 0.85rem; }
}
