﻿/* ============================================================
   AI++ — Dark Tech Stylesheet
   Accent: #58a6ff | BG: #010409 | Text: #e6edf3
   ============================================================ */

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

:root {
  --blue: #58a6ff;
  --blue-dark: #388bfd;
  --blue-dim: #1158c7;
  --blue-light: rgba(88,166,255,0.1);
  --blue-glow: rgba(88,166,255,0.18);
  --text: #e6edf3;
  --text-muted: #7d8590;
  --text-secondary: #8b949e;
  --bg: #010409;
  --bg-card: #0d1117;
  --bg-soft: #161b22;
  --bg-elevated: #21262d;
  --border: #30363d;
  --border-strong: #3d444d;
  --border-blue: rgba(88,166,255,0.3);
  --radius: 10px;
  --radius-btn: 8px;
  --shadow: 0 1px 0 rgba(27,31,36,0.2), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-hover: 0 0 0 1px var(--border-blue), 0 8px 24px rgba(88,166,255,0.12);
  --shadow-glow: 0 0 32px rgba(88,166,255,0.15);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --max-w: 1200px;
  --reading-w: 720px;
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --text: #1a1e27;
  --text-muted: #57606a;
  --text-secondary: #6e7781;
  --bg: #ffffff;
  --bg-card: #f6f8fa;
  --bg-soft: #f0f2f5;
  --bg-elevated: #e8ecf0;
  --border: #d0d7de;
  --border-strong: #b8bfc7;
  --shadow: 0 1px 3px rgba(27,31,36,0.1), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 0 0 1px var(--border-blue), 0 8px 24px rgba(88,166,255,0.15);
  --shadow-glow: 0 0 32px rgba(88,166,255,0.1);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.reading-container { max-width: var(--reading-w); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--blue); color: #ffffff; border-color: var(--blue);
  box-shadow: 0 0 16px rgba(88,166,255,0.25);
}
.btn-primary:hover {
  background: var(--blue-dark); border-color: var(--blue-dark);
  color: #ffffff; transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(88,166,255,0.4);
}
.btn-outline {
  background: transparent; color: var(--blue); border-color: var(--border-blue);
}
.btn-outline:hover {
  background: var(--blue-light); color: var(--blue);
  border-color: var(--blue); transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-elevated); color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--blue); border-color: var(--border-blue); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(1,4,9,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.navbar-logo {
  font-size: 1.5rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
}
.navbar-logo img { height: 36px; width: auto; display: inline-block; }
.navbar-logo span { color: var(--blue); text-shadow: 0 0 12px rgba(88,166,255,0.5); }
.navbar-links {
  display: flex; align-items: center; gap: 2px; list-style: none;
}
.navbar-links a {
  padding: 8px 14px; border-radius: var(--radius-btn);
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  transition: all 0.15s;
}
.navbar-links a:hover { background: var(--bg-soft); color: var(--text); }
.navbar-links a.active { color: var(--blue); background: var(--blue-light); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " ▾"; font-size: 0.75rem; opacity: 0.6; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px rgba(88,166,255,0.05);
  min-width: 220px; list-style: none; padding: 8px 0; z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 16px; color: var(--text-muted); font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--blue); }

.navbar-cta { margin-left: 8px; }
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text-muted);
}

/* Theme toggle */
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-btn);
  cursor: pointer; padding: 7px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Mobile nav */
@media (max-width: 768px) {
  .navbar-links {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--bg-card);
    border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px;
  }
  .navbar-links.open { display: flex; }
  .navbar-cta { display: none; }
  .navbar-toggle { display: block; }
  .dropdown-menu {
    position: static; box-shadow: none; border: none;
    background: var(--bg-soft); border-radius: var(--radius); margin: 4px 0;
  }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(88,166,255,0.1) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(88,166,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,166,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid var(--border-blue);
  padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 28px; letter-spacing: 0.03em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 24px; font-size: clamp(2.2rem, 5.5vw, 3.75rem); }
.hero h1 em { font-style: normal; color: var(--blue); text-shadow: 0 0 30px rgba(88,166,255,0.4); }
.hero-sub {
  font-size: 1.2rem; color: var(--text-muted);
  margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px;
}
.hero-search {
  max-width: 520px; margin: 0 auto;
  display: flex; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88,166,255,0.1); }
.hero-search input {
  flex: 1; padding: 14px 18px; border: none; outline: none;
  font-size: 1rem; font-family: var(--font); color: var(--text);
  background: transparent;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
  background: var(--blue); color: #ffffff; border: none;
  padding: 14px 24px; font-weight: 700; cursor: pointer;
  font-size: 0.95rem; transition: background 0.2s;
}
.hero-search button:hover { background: var(--blue-dark); }
.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 60px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 1.75rem; font-weight: 800; color: var(--blue);
  font-family: var(--font-mono);
}
.hero-stat span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--bg-card); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 12px auto 0; line-height: 1.7; }
.section-label {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  border: 1px solid var(--border-blue);
  padding: 4px 14px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none; display: block; color: var(--text);
}
.category-card:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px); color: var(--text);
  background: var(--bg-soft);
}
.category-card-icon { font-size: 2rem; margin-bottom: 14px; }
.category-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.category-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 14px; }
.category-card-count { font-size: 0.8rem; color: var(--blue); font-weight: 600; }

/* ============================================================
   TOOL CARDS
   ============================================================ */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.2s ease; position: relative;
}
.tool-card:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.tool-card-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--blue); color: #ffffff; font-size: 0.65rem; font-weight: 800;
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em;
}
.tool-card-logo {
  width: 52px; height: 52px; background: var(--bg-soft); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  border: 1px solid var(--border);
}
.tool-card h3 { font-size: 1.05rem; color: var(--text); }
.tool-card p { font-size: 0.875rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.tool-card-meta { display: flex; align-items: center; justify-content: space-between; }
.tool-card-rating { display: flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 700; color: var(--text); }
.stars { color: #f59e0b; }
.tool-card-price {
  font-size: 0.775rem; background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px; font-weight: 600; color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: all 0.2s ease;
}
.article-card:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.article-card-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-elevated) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
  overflow: hidden; border-bottom: 1px solid var(--border);
  position: relative;
}
.article-card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-light) 0%, transparent 100%);
  opacity: 0.5;
}
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-card-category {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue); background: var(--blue-light);
  border: 1px solid var(--border-blue);
  padding: 3px 10px; border-radius: 100px;
}
.article-card h3 { font-size: 1rem; line-height: 1.4; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--blue); }
.article-card-meta {
  display: flex; align-items: center; gap: 12px; font-size: 0.775rem;
  color: var(--text-muted); margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
}
.article-card-footer { padding: 0 20px 20px; }

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
.trust-item { text-align: center; padding: 32px 20px; }
.trust-icon {
  width: 60px; height: 60px; background: var(--blue-light);
  border: 1px solid var(--border-blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 20px;
}
.trust-item h4 { margin-bottom: 10px; color: var(--text); }
.trust-item p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0; text-align: center;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(88,166,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-section h2 { color: var(--text); margin-bottom: 12px; position: relative; }
.newsletter-section > .container > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; position: relative; }
.newsletter-form {
  display: flex; max-width: 480px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.newsletter-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88,166,255,0.1); }
.newsletter-form input {
  flex: 1; padding: 14px 18px; border: none; outline: none;
  font-size: 1rem; font-family: var(--font); color: var(--text);
  background: transparent;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
  background: var(--blue); color: #ffffff; border: none;
  padding: 14px 24px; font-weight: 700; cursor: pointer; font-size: 0.95rem;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--blue-dark); }
.newsletter-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; position: relative; }
.newsletter-shell { position: relative; z-index: 1; }
.newsletter-form-centered { margin-left: auto; margin-right: auto; }
.beehiiv-native-form {
  display: flex;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.beehiiv-native-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88,166,255,0.1);
}
.beehiiv-native-form input[type="email"] {
  flex: 1;
  min-width: 0;
}
.newsletter-feedback {
  margin: 14px auto 0;
  max-width: 560px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}
.newsletter-feedback-success {
  background: rgba(0, 200, 100, 0.12);
  color: #7ee787;
  border: 1px solid rgba(0, 200, 100, 0.18);
}
.newsletter-feedback-error {
  background: rgba(255, 60, 60, 0.12);
  color: #ff7b72;
  border: 1px solid rgba(255, 60, 60, 0.18);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card); color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { height: 40px; width: auto; display: inline-block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }
.footer-col h4 {
  color: var(--text-secondary); font-size: 0.75rem; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.8rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--blue); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.filter-tab {
  padding: 8px 18px; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.filter-tab:hover { border-color: var(--border-blue); color: var(--blue); background: var(--blue-light); }
.filter-tab.active { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }

/* ============================================================
   PAGE HERO (non-homepage)
   ============================================================ */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -100%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(88,166,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 12px; position: relative; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; position: relative; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  display: flex; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; max-width: 560px;
}
.search-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88,166,255,0.1); }
.search-bar input {
  flex: 1; padding: 12px 16px; border: none; outline: none;
  font-size: 0.95rem; font-family: var(--font); color: var(--text); background: transparent;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  background: var(--blue); color: #ffffff; border: none;
  padding: 12px 20px; cursor: pointer; transition: background 0.2s;
}
.search-bar button:hover { background: var(--blue-dark); }

/* ============================================================
   SORT CONTROLS
   ============================================================ */
.tools-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.sort-select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-family: var(--font); font-size: 0.9rem; color: var(--text);
  background: var(--bg-card); cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--blue); }

/* ============================================================
   ARTICLE / READING LAYOUT
   ============================================================ */
.article-layout {
  display: grid; grid-template-columns: 1fr 260px; gap: 48px;
  align-items: start; padding: 48px 0;
}
.article-content h2, .article-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h2 { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.5rem; color: var(--text); }
.article-content blockquote {
  border-left: 3px solid var(--blue); padding: 16px 20px;
  background: var(--blue-light); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0; color: var(--text);
}
.article-content code {
  font-family: var(--font-mono); background: var(--bg-elevated);
  padding: 2px 6px; border-radius: 4px; font-size: 0.85em; color: var(--blue);
}
.article-toc {
  position: sticky; top: 80px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; font-size: 0.875rem;
}
.article-toc h4 {
  margin-bottom: 14px; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
}
.article-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.article-toc ul a { color: var(--text-muted); }
.article-toc ul a:hover { color: var(--blue); }
.affiliate-disclosure {
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius); padding: 12px 16px; font-size: 0.875rem;
  color: #fbbf24; margin-bottom: 32px;
}
.author-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start; margin-top: 48px;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue-light);
  border: 1px solid var(--border-blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.author-box h4 { margin-bottom: 4px; color: var(--text); }
.author-box p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table {
  width: 100%; border-collapse: collapse; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); margin: 32px 0;
}
.comparison-table th {
  background: var(--bg-soft); padding: 16px; text-align: left;
  font-weight: 700; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text); background: var(--bg-card);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-soft); }
.comparison-table .winner td { background: rgba(88,166,255,0.06) !important; }
.winner-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #ffffff; padding: 3px 10px;
  border-radius: 100px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.check { color: var(--blue); font-size: 1.1rem; font-weight: 700; }
.cross { color: #f87171; font-size: 1.1rem; }

/* ============================================================
   VERDICT BOX
   ============================================================ */
.verdict-box {
  border: 1px solid var(--border-blue); border-radius: var(--radius);
  padding: 28px; background: var(--blue-light); margin: 32px 0;
}
.verdict-box h3 { color: var(--blue); margin-bottom: 12px; }
.verdict-box p { color: var(--text); margin-bottom: 0; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.page-link {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-weight: 600; font-size: 0.9rem; color: var(--text-muted); transition: all 0.15s;
  background: var(--bg-card);
}
.page-link:hover, .page-link.active {
  border-color: var(--blue); background: var(--blue-light); color: var(--blue);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.875rem; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 0.95rem;
  color: var(--text); background: var(--bg-card); transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88,166,255,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: var(--bg-card); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-articles { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-articles h3 { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* ============================================================
   CALLOUT / INFO BOXES
   ============================================================ */
.callout {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
  background: var(--bg-card);
}
.callout-blue { border-color: var(--border-blue); background: var(--blue-light); }
.callout-yellow { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.06); }
.callout h4 { margin-bottom: 8px; font-size: 1rem; }
.callout-blue h4 { color: var(--blue); }
.callout-yellow h4 { color: #fbbf24; }
.callout p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   STEP / PROCESS CARDS
   ============================================================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  position: relative; overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.step-num {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  color: var(--blue); background: var(--blue-light); border: 1px solid var(--border-blue);
  padding: 4px 10px; border-radius: 100px; display: inline-block; margin-bottom: 16px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   TABLE OF CONTENTS (legal/policy pages)
   ============================================================ */
.toc-nav {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 40px;
}
.toc-nav h4 {
  margin-bottom: 14px; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
}
.toc-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.toc-nav ul a { color: var(--text-muted); }
.toc-nav ul a:hover { color: var(--blue); }

/* ============================================================
   INFO CARDS (contact page, about, etc.)
   ============================================================ */
.info-card {
  padding: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.info-card h4 { margin-bottom: 8px; color: var(--text); }
.info-card p { margin: 0; color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }
.info-card a { color: var(--blue); }
.info-card a:hover { color: var(--blue-dark); }

/* ============================================================
   BADGE / TAG
   ============================================================ */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border);
}
.tag-blue { background: var(--blue-light); color: var(--blue); border-color: var(--border-blue); }

/* ============================================================
   PROSE (legal/about long-form content)
   ============================================================ */
.prose { color: var(--text); line-height: 1.8; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; color: var(--text); }
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--blue); }
.prose a:hover { color: var(--blue-dark); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; color: var(--text-muted); }
.prose li strong { color: var(--text); }
.prose section { margin-bottom: 56px; }
.prose section:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--blue); }
.text-mono { font-family: var(--font-mono); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.border-t { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.rounded { border-radius: var(--radius); }
.w-full { width: 100%; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  border: none; border-top: 1px solid var(--border); margin: 40px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
}
@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }
  .blog-grid, .tools-grid, .category-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); }
  .tools-controls { flex-direction: column; align-items: flex-start; }
  .comparison-table { font-size: 0.825rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
}
