/* GPU Pricing Site — Dark theme */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080a0f;
  --surface: #0f1117;
  --surface-2: #141720;
  --surface-hover: #1a1d2a;
  --border: #1e2130;
  --border-light: #272b3d;
  --text: #e2e4ed;
  --muted: #6b6f8a;
  --muted-light: #9498b8;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-dim: rgba(99,102,241,0.1);
  --accent-glow: rgba(99,102,241,0.25);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.1);
  --green-border: rgba(34,197,94,0.2);
  --yellow: #f59e0b;
  --yellow-dim: rgba(245,158,11,0.1);
  --red: #ef4444;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Nav ── */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(8,10,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 56px;
}
.site-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.01em;
}
.site-title::before {
  content: '⬡';
  color: var(--accent);
  font-size: 1.1rem;
}
nav ul { list-style: none; display: flex; gap: 0.25rem; margin-left: auto; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--text); background: var(--surface-2); }

/* ── Main ── */
main { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }

/* ── Typography ── */
h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.2; letter-spacing: -0.025em; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  vertical-align: middle;
}
.badge-live {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.badge-live::before { content: '●'; font-size: 0.45rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } }

/* ── Page header ── */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.updated {
  font-size: 0.78rem;
  color: var(--green);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.description { color: var(--muted-light); font-size: 1.05rem; margin-top: 0.5rem; }

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
thead tr { background: var(--surface); }
th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
}
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--surface-hover); }
tbody tr:last-child td { border-bottom: none; }

/* Price tier coloring on first data column */
td.price-best { color: var(--green); font-weight: 600; }
td.price-mid  { color: var(--yellow); }
td.price-high { color: var(--red); }

/* Highlight cheapest row */
tbody tr.row-best {
  background: rgba(34,197,94,0.04);
}
tbody tr.row-best td:first-child::after {
  content: ' ↙ best';
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.5rem;
  opacity: 0.8;
}

/* ── Home hero ── */
.home-hero {
  position: relative;
  margin-bottom: 3rem;
  padding: 3rem 0 2rem;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 15% 50%, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { color: var(--muted-light); font-size: 1.05rem; max-width: 560px; margin-bottom: 0; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Live stats bar ── */
.stats-bar {
  display: flex;
  gap: 1px;
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-item {
  flex: 1;
  background: var(--surface);
  padding: 1rem 1.25rem;
  transition: background 0.15s;
}
.stat-item:hover { background: var(--surface-hover); }
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}
.stat-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── Section cards ── */
.sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 0 0 2.5rem; }
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.section-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.section-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.section-card h2 { margin-top: 0; margin-bottom: 0.4rem; font-size: 1.15rem; }
.section-card p { color: var(--muted-light); font-size: 0.875rem; margin-bottom: 1rem; }
.section-card ul { list-style: none; margin: 0 0 1.25rem; }
.section-card li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.section-card li:last-child { border-bottom: none; }
.section-card li a { color: var(--muted-light); }
.section-card li a:hover { color: var(--text); }

/* ── CTAs ── */
.cta-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.cta {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s, gap 0.15s;
  gap: 0.3rem;
}
.cta:hover { color: var(--accent-hover); gap: 0.5rem; }
.cta-affiliate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.cta-affiliate:hover {
  background: rgba(99,102,241,0.16);
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 0 12px var(--accent-glow);
  color: var(--accent-hover);
}
.cta-affiliate::after { content: '→'; }

/* ── Sponsor callout ── */
.sponsor-callout {
  background: linear-gradient(135deg, rgba(99,102,241,0.07) 0%, rgba(99,102,241,0.03) 100%);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 0 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sponsor-callout::before {
  content: '★';
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sponsor-callout p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.9rem;
}
.sponsor-callout a {
  color: var(--accent-hover);
  font-weight: 600;
}
.sponsor-callout a:hover { text-decoration: underline; }

/* ── Newsletter section ── */
.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 0 0 2rem;
  text-align: center;
}
.newsletter h2 { margin-top: 0; margin-bottom: 0.5rem; }
.newsletter p { color: var(--muted-light); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; justify-content: center; }
.newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.newsletter-form button:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px var(--accent-glow);
}
.newsletter-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; margin-bottom: 0; }

/* ── List page ── */
.page-list { list-style: none; }
.page-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.page-list .desc { color: var(--muted); font-size: 0.875rem; margin-top: 0.2rem; }

/* ── Article content ── */
.content { max-width: 800px; }
.content h2 { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.content ul, .content ol { margin: 1rem 0 1rem 1.5rem; }
.content li { margin-bottom: 0.4rem; }
blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  color: var(--muted-light);
  font-style: normal;
  font-size: 0.9rem;
}

/* ── Affiliate directory ── */
.affiliate-category { margin-bottom: 2.5rem; }
.affiliate-category h2 { border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; }
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.affiliate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.affiliate-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.affiliate-card h3 { margin: 0; font-size: 1rem; }
.affiliate-card h3 a { color: var(--text); }
.affiliate-card h3 a:hover { color: var(--accent-hover); }
.affiliate-card p { color: var(--muted-light); font-size: 0.85rem; margin: 0; flex: 1; }
.affiliate-card .commission {
  font-size: 0.75rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin: 0;
}
.affiliate-card .commission strong { font-weight: 600; color: var(--green); }
.affiliate-card .cta {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

/* ── Host cards (per-game pages) ── */
.host-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
  transition: border-color 0.2s;
}
.host-card:hover { border-color: var(--border-light); }
.host-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}
.host-card .price-tag {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.host-card ul {
  margin: 0.4rem 0 0.75rem 1.2rem;
}
.host-card ul li { margin-bottom: 0.25rem; font-size: 0.9rem; color: var(--muted-light); }
.host-card .pros-label { font-weight: 600; color: var(--green); font-size: 0.85rem; margin: 0.75rem 0 0.25rem; }
.host-card .cons-label { font-weight: 600; color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0.25rem; }
.host-card .host-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.host-card .host-cta:hover {
  background: rgba(99,102,241,0.16);
  box-shadow: 0 0 12px var(--accent-glow);
  color: var(--accent-hover);
}

/* ── Disclosure ── */
.disclosure {
  margin-top: 3rem;
  padding: 0.875rem 1.1rem;
  background: var(--surface);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 3px solid var(--border-light);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
footer a { color: var(--muted); transition: color 0.15s; }
footer a:hover { color: var(--muted-light); }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }

/* ── Responsive ── */
@media (max-width: 640px) {
  main { padding: 2rem 1rem; }
  h1 { font-size: 1.6rem; }
  .home-hero h1 { font-size: 1.8rem; }
  .sections { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; gap: 0; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  table { font-size: 0.8rem; }
  th, td { padding: 0.5rem 0.65rem; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .sponsor-callout { flex-direction: column; text-align: center; }
  .affiliate-grid { grid-template-columns: 1fr; }
}
