/* The Launch Index — v2 Design System
   Aesthetic: Financial terminal × editorial luxury
   Gold #EAB308 / Warm Black #1C1917 / Space Grotesk
   ================================================= */

/* ===== RESET & CUSTOM PROPERTIES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #EAB308;
  --gold-hover: #CA9D07;
  --gold-light: #FACC15;
  --gold-dim: #8B6914;
  --gold-glow: rgba(234,179,8,0.25);
  --gold-glow-soft: rgba(234,179,8,0.08);
  --bg: #1C1917;
  --bg-darker: #141110;
  --bg-darkest: #0E0C0A;
  --surface: #252220;
  --surface-raised: #2E2A27;
  --border: #3D3835;
  --border-light: #4A4440;
  --text: #F5F0EB;
  --text-secondary: #C4BFBA;
  --text-muted: #706A65;
  --tag-bg: rgba(234,179,8,0.06);
  --tag-border: rgba(234,179,8,0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --max-width: 1200px;
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', 'SF Mono', 'Fira Code', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== BASE ===== */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.5rem; letter-spacing: -0.035em; }
h2 { font-size: 1.6rem; margin-top: 2.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; letter-spacing: -0.01em; }
p { margin-top: 0.75rem; }

::selection { background: rgba(234,179,8,0.3); color: var(--text); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234,179,8,0); }
  50% { box-shadow: 0 0 20px 2px rgba(234,179,8,0.15); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.animate-in {
  animation: fadeUp 0.6s var(--ease-out) both;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,17,16,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(61,56,53,0.6);
  padding: 0 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0.85rem 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--text); }
.nav-logo .logo-accent { color: var(--gold); }
.nav-logo svg { flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(234,179,8,0.35)); }
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: color 0.2s var(--ease-out);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--gold); color: var(--bg-darkest); padding: 0.45rem 1.1rem;
  border-radius: var(--radius); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 0 12px rgba(234,179,8,0.2);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold-light); color: var(--bg-darkest);
  box-shadow: 0 0 24px rgba(234,179,8,0.35);
  transform: translateY(-1px);
}

.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.25rem; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg-darker);
    border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; gap: 0.85rem;
    animation: slideDown 0.3s var(--ease-out);
  }
  .nav-links.open { display: flex; }
  .nav-links a::after { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Radial gold haze behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(234,179,8,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 3.25rem;
  letter-spacing: -0.04em;
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp 0.7s var(--ease-out) both;
  position: relative;
}
.hero h1 .accent {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(234,179,8,0.3);
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 1.25rem auto 0;
  line-height: 1.55;
  animation: fadeUp 0.7s var(--ease-out) 0.1s both;
  position: relative;
}
.hero-stats {
  display: flex; gap: 0; justify-content: center;
  margin-top: 2.5rem;
  animation: fadeUp 0.7s var(--ease-out) 0.2s both;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.hero-stat {
  flex: 1; text-align: center;
  padding: 1.25rem 0.75rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-number {
  font-size: 1.65rem; font-weight: 700; color: var(--gold);
  display: block; font-family: var(--font-mono);
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(234,179,8,0.2);
}
.hero-stat-label {
  font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-top: 0.25rem; display: block;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-stats { flex-wrap: wrap; max-width: 340px; }
  .hero-stat { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-bottom: none; }
}

/* ===== SEARCH ===== */
.search-box {
  max-width: 520px; margin: 2.5rem auto 0;
  position: relative;
  animation: fadeUp 0.7s var(--ease-out) 0.3s both;
}
.search-box input {
  width: 100%; padding: 0.9rem 1.25rem 0.9rem 2.75rem;
  background: var(--bg-darker); border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--text);
  font-family: var(--font); font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(234,179,8,0.1), 0 0 20px rgba(234,179,8,0.08);
}
.search-box svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
  transition: color 0.2s;
}
.search-box input:focus ~ svg { color: var(--gold); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface-raised); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); max-height: 340px; overflow-y: auto;
  display: none; z-index: 50;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(234,179,8,0.05);
  animation: slideDown 0.2s var(--ease-out);
}
.search-results.active { display: block; }
.search-result-item {
  display: block; padding: 0.7rem 1rem;
  color: var(--text); font-size: 0.9rem;
  border-bottom: 1px solid rgba(61,56,53,0.4);
  transition: all 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover {
  background: rgba(234,179,8,0.06); color: var(--gold);
  padding-left: 1.25rem;
}
.search-result-item small { color: var(--text-muted); display: block; font-size: 0.75rem; margin-top: 0.1rem; }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(234,179,8,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  z-index: -1;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(234,179,8,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(234,179,8,0.08);
}
.card:hover::before { opacity: 1; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Product card */
.product-card { position: relative; }
.product-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem;
}
.product-card-name {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  line-height: 1.3; letter-spacing: -0.01em;
}
.product-card-name a { color: var(--text); transition: color 0.2s; }
.product-card-name a:hover { color: var(--gold); }
.product-card-score {
  display: flex; align-items: center; gap: 0.3rem;
  color: var(--gold); font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0; white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  text-shadow: 0 0 12px rgba(234,179,8,0.2);
}
.product-card-tagline {
  color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.3rem;
  line-height: 1.4;
}
.product-card-desc {
  color: var(--text); font-size: 0.87rem; margin-top: 0.6rem;
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem;
}
.product-card-meta {
  display: flex; gap: 1rem; margin-top: 0.7rem;
  font-size: 0.75rem; color: var(--text-secondary);
  padding-top: 0.7rem; border-top: 1px solid rgba(61,56,53,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* ===== TAGS & BADGES ===== */
.tag {
  display: inline-block; padding: 0.18rem 0.55rem;
  background: var(--tag-bg); border: 1px solid var(--tag-border);
  border-radius: 999px; font-size: 0.7rem; color: var(--gold-dim);
  font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.2s var(--ease-out);
}
.tag:hover {
  background: rgba(234,179,8,0.12);
  border-color: rgba(234,179,8,0.25);
  color: var(--gold);
}
.tag-muted {
  background: rgba(112,106,101,0.08); border-color: rgba(112,106,101,0.12);
  color: var(--text-muted);
}
.badge {
  display: inline-block; padding: 0.12rem 0.45rem;
  background: rgba(234,179,8,0.08); border-radius: var(--radius);
  font-size: 0.65rem; color: var(--gold); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ===== STATS BOX (Terminal style) ===== */
.stats-box {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; margin: 1.5rem 0;
  background: var(--bg-darker);
  position: relative;
}
/* Subtle scanline effect */
.stats-box::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(234,179,8,0.008) 2px,
    rgba(234,179,8,0.008) 4px
  );
  pointer-events: none;
}
.stats-box-item {
  flex: 1; padding: 1.1rem 0.75rem;
  text-align: center; min-width: 0;
  border-right: 1px solid var(--border);
  position: relative; z-index: 1;
}
.stats-box-item:last-child { border-right: none; }
.stats-box-value {
  font-size: 1.3rem; font-weight: 700; color: var(--gold);
  display: block;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  text-shadow: 0 0 16px rgba(234,179,8,0.15);
}
.stats-box-label {
  font-size: 0.6rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 0.25rem; display: block;
}
@media (max-width: 600px) {
  .stats-box { flex-wrap: wrap; }
  .stats-box-item { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
}

/* ===== COMPARISON TABLE ===== */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
  padding: 0.7rem 1rem; text-align: left;
  border-bottom: 1px solid rgba(61,56,53,0.5);
}
.compare-table th {
  background: var(--bg-darkest); color: var(--text-muted);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
  position: sticky; top: 0;
}
.compare-table td { font-size: 0.88rem; }
.compare-table tbody tr {
  transition: background 0.15s;
}
.compare-table tbody tr:hover td {
  background: rgba(234,179,8,0.03);
}

/* Side-by-side compare */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin: 1.5rem 0;
}
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-side {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color 0.3s;
}
.compare-side:hover { border-color: rgba(234,179,8,0.2); }
.compare-side h3 { margin-top: 0; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 1.25rem 0 0; font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.breadcrumbs a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: rgba(112,106,101,0.5); margin: 0 0.35rem; }
.breadcrumbs .current { color: var(--text-secondary); }

/* ===== FAQ ===== */
.faq-section { margin: 3rem 0; }
.faq-section h2 { margin-bottom: 1.25rem; }
.faq-item {
  border-bottom: 1px solid rgba(61,56,53,0.4); padding: 0;
}
.faq-question {
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); background: none; border: none; width: 100%;
  font-family: var(--font); text-align: left; padding: 1rem 0;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }
.faq-question::after {
  content: '+'; font-size: 1.1rem; color: var(--gold-dim);
  flex-shrink: 0; margin-left: 1rem;
  transition: transform 0.3s var(--ease-spring), color 0.2s;
  font-weight: 300;
}
.faq-item.open .faq-question::after {
  content: '+';
  transform: rotate(45deg);
  color: var(--gold);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 1rem; }

/* ===== NEWSLETTER ===== */
.newsletter {
  border-radius: var(--radius-xl); padding: 3rem 2.5rem;
  text-align: center; margin: 2.5rem 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
/* Gold gradient shimmer on top border */
.newsletter::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}
.newsletter h2 { margin-top: 0; font-size: 1.5rem; }
.newsletter p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.newsletter-form {
  display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1; padding: 0.8rem 1rem;
  background: var(--bg-darker); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font); font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter-form input[type="email"]:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(234,179,8,0.1);
}
.newsletter-form button {
  padding: 0.8rem 1.75rem; background: var(--gold); color: var(--bg-darkest);
  border: none; border-radius: var(--radius); font-weight: 700;
  font-family: var(--font); font-size: 0.85rem; cursor: pointer;
  white-space: nowrap; letter-spacing: 0.02em; text-transform: uppercase;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 0 16px rgba(234,179,8,0.2);
}
.newsletter-form button:hover {
  background: var(--gold-light);
  box-shadow: 0 0 28px rgba(234,179,8,0.35);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .newsletter { padding: 2rem 1.5rem; }
  .newsletter-form { flex-direction: column; }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem; margin-top: 4rem;
  background: var(--bg-darkest);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.6rem; line-height: 1.5; }
.footer-col h4 {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 0.85rem; font-weight: 700;
}
.footer-col a {
  display: block; color: var(--text-secondary); font-size: 0.88rem;
  padding: 0.22rem 0;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: var(--gold); padding-left: 0.25rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(61,56,53,0.4);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.02em;
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ===== CATEGORY NAV ===== */
.category-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 1.5rem 0;
}
.category-nav a {
  padding: 0.35rem 0.8rem;
  background: transparent; border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem; color: var(--text-secondary); font-weight: 500;
  transition: all 0.25s var(--ease-out);
}
.category-nav a:hover {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 12px rgba(234,179,8,0.1);
}
.category-nav a.active {
  background: var(--gold); color: var(--bg-darkest);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(234,179,8,0.25);
}

/* ===== CONTENT ===== */
.content { max-width: 780px; }
.content p { margin-top: 1rem; line-height: 1.7; color: var(--text-secondary); }
.content h2 { margin-top: 2.5rem; margin-bottom: 0.5rem; color: var(--text); }
.content h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; color: var(--text); }
.content ul, .content ol {
  margin: 0.75rem 0; padding-left: 1.5rem;
}
.content li { margin: 0.35rem 0; color: var(--text-secondary); line-height: 1.6; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 3rem 0 1.5rem;
}
.page-header h1 {
  font-size: 2.25rem;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.page-header .subtitle {
  color: var(--text-muted); font-size: 1rem; margin-top: 0.6rem;
  max-width: 620px; line-height: 1.5;
  animation: fadeUp 0.5s var(--ease-out) 0.08s both;
}

/* ===== BAR CHART ===== */
.bar-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 140px; padding: 0.5rem 0 2rem;
}
.bar-chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--gold-dim), var(--gold));
  border-radius: 3px 3px 0 0;
  min-width: 10px; position: relative;
  transform-origin: bottom;
  animation: barGrow 0.8s var(--ease-out) both;
  transition: filter 0.2s;
}
.bar-chart-bar:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 12px rgba(234,179,8,0.3);
}
.bar-chart-bar:nth-child(1) { animation-delay: 0s; }
.bar-chart-bar:nth-child(2) { animation-delay: 0.05s; }
.bar-chart-bar:nth-child(3) { animation-delay: 0.1s; }
.bar-chart-bar:nth-child(4) { animation-delay: 0.15s; }
.bar-chart-bar:nth-child(5) { animation-delay: 0.2s; }
.bar-chart-bar:nth-child(6) { animation-delay: 0.25s; }
.bar-chart-bar .bar-label {
  position: absolute; bottom: -1.75rem; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; color: var(--text-muted); white-space: nowrap;
  font-family: var(--font-mono);
}
.bar-chart-bar .bar-value {
  position: absolute; top: -1.4rem; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; color: var(--text-secondary); white-space: nowrap;
  font-family: var(--font-mono); font-weight: 600;
}

/* ===== RELATED LINKS ===== */
.related-links {
  margin: 2.5rem 0;
}
.related-links h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.related-links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.6rem;
}
.related-link {
  display: block; padding: 0.7rem 1rem;
  background: transparent; border: 1px solid rgba(61,56,53,0.5);
  border-radius: var(--radius); color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all 0.25s var(--ease-out);
}
.related-link:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(234,179,8,0.03);
  padding-left: 1.25rem;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 0.4rem; justify-content: center;
  margin: 2.5rem 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 0.4rem 0.8rem; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600;
  font-family: var(--font-mono);
}
.pagination a {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active {
  background: var(--gold); color: var(--bg-darkest); border: 1px solid var(--gold);
}

/* ===== SUBSCRIBED PAGE ===== */
.subscribed-page {
  text-align: center; padding: 8rem 1.5rem;
  max-width: 480px; margin: 0 auto;
}
.subscribed-page .check {
  width: 72px; height: 72px; background: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem; font-size: 2rem; color: var(--bg-darkest);
  box-shadow: 0 0 40px rgba(234,179,8,0.3);
  animation: fadeUp 0.6s var(--ease-out) both;
}
.subscribed-page h1 {
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

/* ===== UTILITY ===== */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }
