@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #060608;
  --surface: #0f0f12;
  --surface2: #16161a;
  --border: #1e1e24;
  --border2: #2a2a33;
  --text: #f0eeff;
  --muted: #8884a8;
  --dim: #44425a;
  --accent: #7c6af7;
  --accent2: #f7956a;
  --green: #4ade80;
  --red: #f87171;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── TECH SYNTHETIC CARBON GRADIENT BG ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124,106,247,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(110,231,183,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 70% 70% at 50% 70%, rgba(247,149,106,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 90% 40% at 10% 90%, rgba(124,106,247,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #060608 0%, #08080c 20%, #0a0a10 40%, #08080e 60%, #060608 100%);
  animation: bgShift 20s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { opacity: 1; filter: hue-rotate(0deg); }
  50% { opacity: 0.9; filter: hue-rotate(8deg); }
  100% { opacity: 1; filter: hue-rotate(-5deg); }
}

/* ── SCROLLING GRADIENT OVERLAYS ── */
.bg-gradient-layer {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 600px at 70% 60%, rgba(124,106,247,0.04) 0%, transparent 100%),
    radial-gradient(circle 500px at 20% 80%, rgba(247,149,106,0.03) 0%, transparent 100%);
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 62px; display: flex; align-items: center;
  padding: 0 var(--gutter);
  background: rgba(6,6,8,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: var(--text); text-decoration: none;
  order: 2; margin-left: auto;
}
.logo-dot { color: var(--accent); }

/* Hide old inline nav links */
.nav-links { display: none; }

/* ── SIDEBAR MENU BUTTON ── */
.sidebar-toggle {
  order: 0;
  background: none; border: 1px solid var(--border2);
  border-radius: 8px; padding: 8px 10px;
  cursor: pointer; display: flex; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.sidebar-toggle:hover { border-color: var(--accent); background: rgba(124,106,247,0.06); }
.sidebar-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.sidebar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.sidebar-toggle.active span:nth-child(2) { opacity: 0; }
.sidebar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── SIDEBAR DROPDOWN ── */
.sidebar-menu {
  position: fixed; top: 62px; left: 0; bottom: 0;
  width: 280px; z-index: 99;
  background: rgba(10,10,14,0.97); backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.sidebar-menu.open { transform: translateX(0); }
.sidebar-backdrop {
  position: fixed; inset: 0; top: 62px; z-index: 98;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

.sidebar-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.sidebar-menu a:hover { background: rgba(124,106,247,0.06); color: var(--text); }
.sidebar-menu a .sb-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.sidebar-menu a:hover .sb-icon { border-color: var(--accent); background: rgba(124,106,247,0.08); }
.sidebar-menu a.sb-cta {
  margin-top: 12px; background: var(--accent); color: #fff;
  font-weight: 700; border-radius: 10px;
}
.sidebar-menu a.sb-cta:hover { filter: brightness(1.15); background: var(--accent); }
.sidebar-menu a.sb-cta .sb-icon { background: rgba(255,255,255,0.15); border-color: transparent; }

.nav-pill {
  display: none;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 1px; position: relative;
  overflow: visible;
}
.section-divider::after {
  content: '';
  position: absolute; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124,106,247,0.3) 20%,
    rgba(110,231,183,0.2) 50%,
    rgba(247,149,106,0.2) 80%,
    transparent 100%
  );
  animation: dividerShimmer 4s ease-in-out infinite alternate;
}
@keyframes dividerShimmer {
  0% { opacity: 0.4; background-position: 0% 50%; }
  50% { opacity: 0.7; }
  100% { opacity: 0.4; background-position: 100% 50%; }
}

/* ── HERO DESCRIPTION BOX ── */
.hero-desc-box {
  background: linear-gradient(135deg, rgba(124,106,247,0.06) 0%, rgba(15,15,18,0.8) 40%, rgba(110,231,183,0.04) 100%);
  border: 1px solid rgba(124,106,247,0.15);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.hero-desc-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(124,106,247,0.08), transparent 60%);
  pointer-events: none;
}
.hero-desc-box p {
  position: relative; z-index: 1;
  font-size: 18px; font-weight: 500;
  color: var(--muted); max-width: 540px;
  line-height: 1.7; margin: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all .2s; border: none;
}
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--muted); }

/* ── ARTICLE CARD ── */
.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .25s; position: relative; overflow: hidden;
}
.article-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(124,106,247,.07) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.article-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.article-card:hover::before { opacity: 1; }

.card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(124,106,247,.1);
  padding: 4px 10px; border-radius: 100px; width: fit-content;
}
.card-title {
  font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--text);
}
.card-excerpt { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.65; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--dim); }
.card-arrow { margin-left: auto; color: var(--accent); font-size: 18px; transition: transform .2s; }
.article-card:hover .card-arrow { transform: translateX(4px); }

/* ── PROSE ── */
.prose {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.82;
  color: #d4d0f0;
  max-width: 740px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  color: var(--text);
  margin: 2.8em 0 .8em;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.prose h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin: 2.2em 0 .6em;
  letter-spacing: -.01em;
}

.prose p { margin-bottom: 1.5em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 800; }
.prose em { font-style: italic; color: #b8b4e8; }

.prose table {
  width: 100%; border-collapse: collapse; margin: 2.2em 0; font-size: 14px; font-weight: 500;
}
.prose th {
  background: var(--surface2); color: var(--text);
  font-weight: 800; padding: 13px 16px;
  text-align: left; border-bottom: 2px solid var(--border2); font-size: 13px;
}
.prose td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-weight: 500;
}
.prose tr:hover td { background: rgba(255,255,255,.02); }

.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1.5em; }
.prose li { margin-bottom: .6em; font-weight: 500; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 18px 26px; margin: 2.2em 0;
  background: var(--surface); border-radius: 0 8px 8px 0;
  font-style: italic; font-weight: 500; color: var(--muted);
  font-size: 16px;
}

/* ── RATING BADGES ── */
.rating-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 1.5em 0;
}
.rating-badge {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 10px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 90px;
}
.rating-badge .rb-stars {
  font-size: 18px; font-weight: 800; color: var(--accent); line-height: 1;
}
.rating-badge .rb-source { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rating-badge .rb-count { font-size: 11px; font-weight: 600; color: var(--dim); }

/* ── ANTI-REC BOX ── */
.anti-rec-box {
  background: rgba(248,113,113,.06); border: 1px solid rgba(248,113,113,.2);
  border-radius: 12px; padding: 22px 26px; margin: 2em 0;
}
.anti-rec-box .arb-label {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.anti-rec-box p { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.7; margin: 0; }
.anti-rec-box strong { color: var(--text); font-weight: 700; }

/* ── AFFILIATE CTA BOX ── */
.aff-box {
  border: 1px solid var(--border2); border-radius: 12px; padding: 26px 28px;
  margin: 2.2em 0; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}
.aff-box .aff-info h4 { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.aff-box .aff-info p { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0; }
.aff-box .aff-commission { font-size: 11px; font-weight: 700; color: var(--green); margin-top: 6px; }

/* ── SCORE CARD ── */
.score-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 14px; padding: 28px; margin-bottom: 32px;
}
.sc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.sc-name { font-family: var(--serif); font-size: 26px; margin-bottom: 5px; }
.sc-price { font-size: 13px; font-weight: 600; color: var(--muted); }
.sc-scores { display: flex; gap: 12px; flex-shrink: 0; }
.sc-score { text-align: center; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; min-width: 64px; }
.sc-score-num { font-family: var(--serif); font-size: 28px; color: var(--accent); line-height: 1; }
.sc-score-label { font-size: 10px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.sc-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc-pros, .sc-cons { background: var(--surface2); border-radius: 10px; padding: 16px 18px; }
.spc-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.sc-pros .spc-label { color: var(--green); }
.sc-cons .spc-label { color: var(--red); }
.spc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.spc-list li { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.sc-pros .spc-list li::before { content: '✓'; color: var(--green); flex-shrink: 0; font-weight: 800; }
.sc-cons .spc-list li::before { content: '✗'; color: var(--red); flex-shrink: 0; font-weight: 800; }

/* ── SIDEBAR TOC ── */
.toc-sticky { position: sticky; top: 80px; }
.toc-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.toc-title { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color .2s; }
.toc-list a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--dim); flex-shrink: 0; transition: background .2s; }
.toc-list a:hover { color: var(--text); }
.toc-list a:hover::before { background: var(--accent); }

/* ── SIDEBAR CTA ── */
.sidebar-cta { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 14px; text-align: center; }
.sidebar-cta .emoji { font-size: 32px; margin-bottom: 10px; }
.sidebar-cta h4 { font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.sidebar-cta .comm { font-size: 11px; font-weight: 700; color: var(--green); background: rgba(74,222,128,.08); padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }
.sidebar-cta .price { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.sidebar-cta a.primary { display: block; background: var(--accent); color: white; text-decoration: none; padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 700; transition: filter .2s; margin-bottom: 8px; }
.sidebar-cta a.primary:hover { filter: brightness(1.15); }
.sidebar-cta a.secondary { display: block; background: var(--surface2); color: var(--muted); text-decoration: none; padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); transition: border-color .2s; }

/* ── FAQ ── */
.faq-section { max-width: var(--max); margin: 0 auto; padding: 60px var(--gutter) 80px; }
.faq-section h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin-bottom: 28px; }
.faq-section h2 em { font-style: italic; color: var(--accent); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 20px 0; background: none; border: none; font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-icon { color: var(--accent); font-size: 22px; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 15px; font-weight: 500; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ── DISCLOSURE ── */
.disclosure-bar { background: rgba(124,106,247,.06); border: 1px solid rgba(124,106,247,.15); border-radius: 8px; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

/* ── TAG PILL ── */
.tag-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }

/* ── FOOTER ── */
.site-footer { margin-top: 100px; border-top: 1px solid var(--border); padding: 48px var(--gutter); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; font-weight: 500; color: var(--dim); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── SECTION HEADERS ── */
.section-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.section-title em { font-style: italic; color: var(--accent); }
.view-all { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: gap .2s; }
.view-all:hover { gap: 10px; }

/* ── SEARCH BAR ── */
.search-container {
  position: relative;
  order: 1;
  margin-left: 0;
  margin-right: auto;
  padding-left: 16px;
}
.search-input {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 40px;
  padding: 8px 16px 8px 38px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  width: 200px;
  transition: all 0.2s;
  outline: none;
}
.search-input:focus {
  border-color: var(--accent);
  width: 280px;
}
.search-input::placeholder {
  color: var(--dim);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--dim);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
  margin-top: 8px;
}
.search-results.active {
  display: block;
}
.search-result-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: var(--surface2);
}
.search-result-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}
.search-result-category {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-result-excerpt {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .sc-pros-cons { grid-template-columns: 1fr; }
  .aff-box { flex-direction: column; }
  .toc-sticky { position: static; }
  .search-input { width: 100px; }
  .search-input:focus { width: 160px; }
  .search-results { width: 280px; right: -40px; }
  .sidebar-menu { width: 260px; }
  .hero-desc-box { padding: 18px 20px; }
}