:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --fg-dim: #555570;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.12);
  --accent-glow: rgba(0, 255, 136, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 255, 136, 0.2);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, var(--accent-glow), transparent),
    radial-gradient(ellipse 400px 300px at 80% 30%, rgba(88, 40, 255, 0.04), transparent),
    var(--bg);
}

.hero-grid {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  margin-bottom: 32px;
  background: var(--accent-dim);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--font-mono);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Sections */
.section-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin-bottom: 48px;
}

/* Engine */
.engine {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.engine-card {
  background: var(--bg-card);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.engine-card:hover {
  border-color: var(--border-accent);
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.engine-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.engine-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Niches */
.niches {
  padding: 100px 0;
}

.niche-list {
  margin: 40px 0;
}

.niche-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.niche-item:first-child {
  border-top: 1px solid var(--border);
}

.niche-item:hover,
.niche-item.active {
  background: var(--accent-dim);
}

.niche-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.niche-rpm {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.niche-footer {
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin-top: 24px;
  line-height: 1.6;
}

/* Numbers */
.numbers {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
}

.number-block {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}

.number-block:last-child {
  border-right: none;
}

.number-value {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 8px;
}

.number-context {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Closing */
.closing {
  padding: 120px 0;
}

.closing-content {
  max-width: 650px;
}

.closing-content h2 {
  margin-bottom: 24px;
}

.closing-content p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* ============================================
   NAVIGATION (site-header)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.header-brand:hover { color: var(--accent); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  background: var(--accent-dim);
  transition: background 0.15s;
}

.nav-cta:hover { background: rgba(0, 255, 136, 0.2); }

/* Push page content below fixed header */
body > main,
.blog-main,
.article-main {
  padding-top: 60px;
}

/* ============================================
   NEWSLETTER SECTION (landing + blog)
   ============================================ */
.newsletter-section {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.newsletter-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}

.newsletter-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.newsletter-desc {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.newsletter-form { max-width: 480px; }

.newsletter-input-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.newsletter-input::placeholder { color: var(--fg-dim); }

.newsletter-btn {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.newsletter-btn:hover { opacity: 0.88; }
.newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.newsletter-status {
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 20px;
  color: var(--fg-muted);
}

.newsletter-status--success { color: var(--accent); }
.newsletter-status--error { color: #ff5252; }

/* ============================================
   BLOG HOMEPAGE
   ============================================ */
.blog-hero {
  padding: 80px 24px 64px;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, var(--accent-glow), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.blog-hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

.articles-section { padding: 64px 0 80px; }

.articles-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover { border-color: var(--border-accent); }

/* Featured card spans full width */
.article-card--featured {
  grid-column: 1 / -1;
  padding: 40px 36px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}

.article-read-time {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-card--featured .article-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.article-title a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}

.article-title a:hover { color: var(--accent); }

.article-excerpt {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-date {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.article-read-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

.article-read-link:hover { opacity: 0.75; }

.no-articles {
  padding: 80px 0;
  text-align: center;
  color: var(--fg-muted);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-main { max-width: 100%; }

.article-full {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.article-header { margin-bottom: 40px; }

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-category-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
}

.article-header-divider { color: var(--fg-dim); }

.article-header-time,
.article-header-date {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.article-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.article-lead {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  border-left: 3px solid var(--border-accent);
  padding-left: 20px;
}

/* Prose body styles */
.prose { font-size: 1.02rem; line-height: 1.8; color: var(--fg); }
.prose h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; margin: 2.5em 0 0.75em; }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 2em 0 0.6em; color: var(--fg); }
.prose p { margin-bottom: 1.4em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose em { color: var(--fg-muted); font-style: italic; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--border-accent); }
.prose a:hover { border-bottom-color: var(--accent); }
.affiliate-link {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--border-accent) !important;
}
.affiliate-link:hover { background: rgba(0, 255, 136, 0.2); }

/* Comparison table inside prose */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.comparison-table th {
  background: var(--bg-elevated);
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comparison-table tr:hover td { background: var(--bg-elevated); }

/* In-article newsletter block */
.article-newsletter-block {
  margin: 56px 0 0;
  padding: 36px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
}

.anb-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.article-newsletter-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.article-newsletter-block p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.anb-form .newsletter-input-group { border-color: var(--border); }

/* Related articles */
.related-articles {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 60px 0 80px;
}

.related-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 32px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.related-card:hover { border-color: var(--border-accent); }

.related-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.related-title a {
  color: var(--fg);
  text-decoration: none;
}

.related-title a:hover { color: var(--accent); }

.related-excerpt {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ============================================
   Mobile
   ============================================ */
/* Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 20px 60px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .engine-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .number-block {
    border-bottom: 1px solid var(--border);
  }

  .number-block:nth-child(2) {
    border-right: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Nav */
  .header-nav { gap: 14px; }
  .nav-cta { display: none; }

  /* Blog grid */
  .articles-grid { grid-template-columns: 1fr; }
  .article-card--featured { grid-column: auto; }

  /* Related articles */
  .related-grid { grid-template-columns: 1fr; }

  /* Newsletter */
  .newsletter-input-group { flex-direction: column; }
  .newsletter-btn { width: 100%; padding: 14px; }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .number-block {
    border-right: none;
  }

  .niche-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}