/* ============================================================
   HowToEarnAI — Full Design System
   ============================================================ */

/* ------ TOKENS ------ */
:root {
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark: #5B21B6;
  --purple-bg: #F5F3FF;
  --purple-border: #EDE9FE;

  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --bg-dark: #0F0A1E;

  --text: #1A1A1A;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-purple: 0 8px 32px rgba(124,58,237,0.18);

  --transition: 0.22s cubic-bezier(0.22,1,0.36,1);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;

  --container: 1180px;
  --nav-h: 68px;
}

/* ------ RESET ------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ------ SKIP NAV ------ */
.skip-nav {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-nav:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto;
  background: var(--purple); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 9999; outline: 2px solid #fff;
}

/* ------ CONTAINER ------ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: var(--shadow-purple); }
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-primary.btn-block { width: 100%; justify-content: center; padding: 14px 24px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); color: var(--text);
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-bg); }
.btn-outline.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

.btn-primary-sm {
  display: inline-flex; align-items: center;
  background: var(--purple); color: #fff;
  padding: 8px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary-sm:hover { background: var(--purple-dark); transform: translateY(-1px); }

.btn-outline-sm {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border); color: var(--text-muted);
  padding: 7px 16px; border-radius: 8px;
  font-weight: 500; font-size: 14px;
  transition: all var(--transition);
}
.btn-outline-sm:hover { border-color: var(--purple); color: var(--purple); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.nav-inner { display: flex; align-items: center; gap: 32px; width: 100%; }

.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 34px; height: 34px; background: var(--purple);
  border-radius: 8px; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
}
.logo-text { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.logo-accent { color: var(--purple); }

.nav-links { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-links li a {
  display: block; padding: 7px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links li a:hover { color: var(--purple); background: var(--purple-bg); }
.nav-links li a.active { color: var(--purple); background: var(--purple-bg); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  background: linear-gradient(175deg, #faf9ff 0%, #ffffff 60%);
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow-1 {
  position: absolute; top: -120px; right: -80px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: -80px; left: -100px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--purple);
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--purple-bg); border: 1px solid var(--purple-border);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.eyebrow-dot { width: 7px; height: 7px; background: var(--purple); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }

.hero-title {
  font-family: var(--font-heading); font-size: clamp(42px, 7vw, 72px);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 22px;
}
.line-accent { color: var(--purple); }
.hero-sub { font-size: 19px; color: var(--text-muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.65; }

/* Hero Search */
.hero-search { margin-bottom: 32px; }
.search-wrap {
  display: flex; align-items: center;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 8px 8px 8px 16px;
  max-width: 560px; margin: 0 auto 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124,58,237,0.1); }
.search-icon { color: var(--text-light); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none; padding: 6px 12px;
  font-size: 15px; color: var(--text); background: transparent;
}
.search-input::placeholder { color: var(--text-light); }
.search-btn {
  background: var(--purple); color: #fff;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--purple-dark); }

.search-suggestions { font-size: 13.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.search-suggestions a { color: var(--purple); font-weight: 500; }
.search-suggestions a:hover { text-decoration: underline; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.trust-num { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--text); }
.trust-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip { background: var(--text); padding: 40px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 34px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-number span { color: var(--purple-light); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }

/* ============================================================
   SECTION UTILITY
   ============================================================ */
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--purple); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--text); margin-bottom: 14px; }
.section-sub { font-size: 16.5px; color: var(--text-muted); max-width: 500px; margin: 0 auto; }
.accent-text { color: var(--purple); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: 96px 0; background: var(--bg-alt); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-border); }
.step-number {
  font-family: var(--font-heading); font-size: 72px; font-weight: 900;
  color: var(--purple-bg); position: absolute; top: -12px; right: 20px;
  line-height: 1; letter-spacing: -0.04em; user-select: none;
}
.step-icon { font-size: 36px; margin-bottom: 18px; }
.step-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.step-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.step-link { font-size: 14px; font-weight: 600; color: var(--purple); transition: gap var(--transition); display: inline-flex; align-items: center; gap: 4px; }
.step-link:hover { gap: 8px; text-decoration: underline; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories { padding: 96px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px 26px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-border); }
.cat-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--purple); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.cat-card:hover .cat-card-accent { transform: scaleX(1); }
.cat-icon-wrap { width: 46px; height: 46px; background: var(--purple-bg); border-radius: 10px; display: grid; place-items: center; margin-bottom: 4px; }
.cat-icon { font-size: 22px; }
.cat-name { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--text); }
.cat-count { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.cat-link { font-size: 13px; font-weight: 600; color: var(--purple); margin-top: 6px; }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-tab {
  padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition); cursor: pointer;
}
.filter-tab:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-bg); }
.filter-tab.active { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ============================================================
   ARTICLES
   ============================================================ */
.articles { padding: 96px 0; background: var(--bg-alt); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-border); }
.article-thumb {
  height: 160px; background: linear-gradient(135deg, var(--purple-bg) 0%, #f0eaff 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 52px;
}
.article-cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--purple); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.article-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.article-meta-item { display: flex; align-items: center; gap: 4px; }
.article-title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 10px; letter-spacing: -0.01em; }
.article-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.article-read-more { font-size: 13.5px; font-weight: 600; color: var(--purple); display: inline-flex; align-items: center; gap: 4px; }
.articles-footer { text-align: center; margin-top: 44px; }

/* ============================================================
   FEATURED TOOLS (homepage row)
   ============================================================ */
.featured-tools { padding: 96px 0; }
.tools-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-mini-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; gap: 14px;
}
.tool-mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-border); }
.tool-mini-header { display: flex; align-items: center; gap: 14px; }
.tool-mini-icon { width: 48px; height: 48px; background: var(--purple-bg); border-radius: 12px; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.tool-mini-meta { flex: 1; }
.tool-mini-name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--text); }
.tool-mini-price { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.tool-mini-stars { color: #F59E0B; font-size: 13px; letter-spacing: 1px; }
.tool-mini-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.tool-mini-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; font-weight: 500; color: var(--purple);
  background: var(--purple-bg); border: 1px solid var(--purple-border);
  padding: 3px 10px; border-radius: 100px;
}
.tool-mini-cta { margin-top: auto; }
.tools-footer { text-align: center; margin-top: 44px; }

/* ============================================================
   TOOL HIGHLIGHT
   ============================================================ */
.tool-highlight { padding: 48px 0 96px; }
.tool-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tool-card-topbar { height: 4px; background: linear-gradient(90deg, var(--purple) 0%, var(--purple-light) 100%); }
.tool-card-inner-wrap { padding: 36px 40px; }
.tool-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tool-card-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--purple); }
.editor-badge { font-size: 13px; font-weight: 600; color: #B45309; background: #FEF3C7; padding: 4px 12px; border-radius: 100px; border: 1px solid #FDE68A; }
.tool-card-body { display: flex; align-items: flex-start; gap: 24px; }
.tool-icon { font-size: 48px; flex-shrink: 0; }
.tool-info { flex: 1; }
.tool-title { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -0.02em; }
.tool-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }
.tool-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.stars { color: #F59E0B; font-size: 16px; letter-spacing: 2px; }
.rating-num { font-weight: 700; font-size: 14px; }
.rating-count { font-size: 13px; color: var(--text-muted); }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.tool-read-more { font-size: 13.5px; font-weight: 600; color: var(--purple); display: inline-flex; align-items: center; gap: 5px; }
.tool-read-more:hover { text-decoration: underline; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 96px 0; background: var(--bg-alt); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px; cursor: pointer; user-select: none;
}
.faq-q span { font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.faq-chevron { flex-shrink: 0; color: var(--text-muted); transition: transform 0.25s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.25s ease; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }
.faq-a p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { padding: 96px 0; }
.nl-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 56px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.nl-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-light) 100%);
}
.nl-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--purple-bg); border: 1px solid var(--purple-border);
  font-size: 13px; font-weight: 600; color: var(--purple);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 22px;
}
.nl-title { font-family: var(--font-heading); font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 14px; }
.nl-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }
.nl-benefits { display: flex; flex-direction: column; gap: 12px; }
.nl-benefits li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-muted); font-weight: 500; }
.check-icon { width: 20px; height: 20px; flex-shrink: 0; }
.nl-right { display: flex; flex-direction: column; justify-content: center; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 15px; color: var(--text);
  background: var(--bg); outline: none; margin-bottom: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124,58,237,0.1); }
.nl-privacy { font-size: 12.5px; color: var(--text-light); text-align: center; margin-top: 10px; }
.nl-success { text-align: center; padding: 32px 24px; }
.nl-success-icon { font-size: 48px; margin-bottom: 12px; }
.nl-success h4 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.nl-success p { color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--text); padding: 72px 0 0; }
.footer-inner { }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 64px; padding-bottom: 56px; }
.footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 14px; line-height: 1.6; max-width: 260px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-social a:hover { color: var(--purple-light); }
.footer-links-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 8px;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  width: 44px; height: 44px; background: var(--purple); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-purple); opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--purple-dark); transform: translateY(-2px); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); padding: 20px 0 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb-sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--purple); z-index: 300; width: 0%; transition: width 0.1s linear; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.article-main { min-width: 0; }
.article-header { margin-bottom: 40px; }
.article-kicker { display: inline-flex; align-items: center; gap: 6px; background: var(--purple); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 18px; }
.article-h1 { font-family: var(--font-heading); font-size: clamp(28px,4vw,44px); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; color: var(--text); margin-bottom: 20px; }
.article-byline { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--purple-bg); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.author-info { flex: 1; }
.author-name { font-size: 14px; font-weight: 600; color: var(--text); }
.author-meta { font-size: 12.5px; color: var(--text-muted); }
.article-time-read { font-size: 13px; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px; }
.article-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.share-btn { width: 32px; height: 32px; border: 1.5px solid var(--border); border-radius: 8px; display: grid; place-items: center; color: var(--text-muted); transition: all var(--transition); }
.share-btn:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-bg); }

.article-body { font-size: 17px; line-height: 1.8; color: #374151; }
.article-body h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--text); margin: 48px 0 18px; letter-spacing: -0.02em; }
.article-body h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text); margin: 36px 0 14px; }
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--purple); text-decoration: underline; }
.article-body strong { color: var(--text); font-weight: 700; }

.callout-box { background: var(--purple-bg); border-left: 4px solid var(--purple); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 22px; margin: 28px 0; }
.callout-box p { margin: 0; font-size: 15.5px; color: #4B3B8C; font-weight: 500; }
.tip-box { background: #F0FDF4; border-left: 4px solid #22C55E; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 22px; margin: 28px 0; }
.tip-box p { margin: 0; font-size: 15px; color: #15803D; }
.tip-label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.article-tldr { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px; }
.article-tldr h4 { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--purple); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.article-tldr ul { list-style: disc; margin-left: 18px; }
.article-tldr li { font-size: 15px; color: var(--text); margin-bottom: 6px; }

/* Sidebar */
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 28px; }
.sidebar-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.sidebar-title { font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; color: var(--text); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.toc-list { list-style: none; }
.toc-list li { border-bottom: 1px solid var(--border-light); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { display: block; padding: 9px 0; font-size: 13.5px; color: var(--text-muted); transition: color var(--transition), padding-left var(--transition); line-height: 1.45; }
.toc-list a:hover { color: var(--purple); padding-left: 6px; }
.toc-list a.toc-active { color: var(--purple); font-weight: 600; }
.related-list { display: flex; flex-direction: column; gap: 14px; }
.related-item { display: flex; gap: 12px; text-decoration: none; }
.related-thumb { width: 48px; height: 48px; background: var(--purple-bg); border-radius: 8px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.related-info { flex: 1; }
.related-cat { font-size: 11px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.related-title { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; transition: color var(--transition); }
.related-item:hover .related-title { color: var(--purple); }

/* Author bio */
.author-bio { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; display: flex; gap: 22px; margin-top: 56px; }
.author-bio-avatar { width: 64px; height: 64px; background: var(--purple-bg); border-radius: 50%; display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.author-bio-name { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.author-bio-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   TOOLS DIRECTORY
   ============================================================ */
.tools-hero { background: linear-gradient(175deg, #faf9ff, #fff); padding: 72px 0 60px; text-align: center; border-bottom: 1px solid var(--border); }
.tools-search-bar { max-width: 480px; margin: 32px auto 0; }
.tools-grid-wrap { padding: 64px 0 96px; }
.tools-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-dir-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tool-dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--purple-border); }
.tool-dir-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool-dir-icon-name { display: flex; align-items: center; gap: 14px; }
.tool-dir-icon { width: 50px; height: 50px; background: var(--purple-bg); border-radius: 12px; display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.tool-dir-name { font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--text); }
.tool-dir-category { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.tool-dir-price { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--text); padding: 4px 10px; white-space: nowrap; }
.tool-dir-rating { display: flex; align-items: center; gap: 6px; }
.tool-dir-stars { color: #F59E0B; font-size: 13px; }
.tool-dir-score { font-size: 13px; font-weight: 700; }
.tool-dir-reviews { font-size: 12px; color: var(--text-muted); }
.tool-dir-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.tool-dir-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-dir-actions { display: flex; gap: 10px; margin-top: 6px; }
.tool-dir-try { flex: 1; background: var(--purple); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-align: center; transition: background var(--transition); }
.tool-dir-try:hover { background: var(--purple-dark); }
.tool-dir-review { border: 1.5px solid var(--border); color: var(--text-muted); padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all var(--transition); }
.tool-dir-review:hover { border-color: var(--purple); color: var(--purple); }
.no-results { text-align: center; padding: 64px 24px; color: var(--text-muted); display: none; }
.no-results-icon { font-size: 48px; margin-bottom: 12px; }

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.resources-hero { background: linear-gradient(175deg, #faf9ff, #fff); padding: 72px 0 60px; text-align: center; border-bottom: 1px solid var(--border); }
.resources-grid-wrap { padding: 64px 0 96px; }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resource-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-border); }
.resource-thumb { height: 130px; background: linear-gradient(135deg, var(--purple-bg), #f0eaff); display: flex; align-items: center; justify-content: center; font-size: 52px; position: relative; }
.resource-badge { position: absolute; top: 12px; right: 12px; background: #FEF3C7; color: #B45309; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; border: 1px solid #FDE68A; }
.resource-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.resource-type { font-size: 11px; font-weight: 700; color: var(--purple); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.resource-name { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.3; }
.resource-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 20px; }
.resource-cta { display: flex; align-items: center; justify-content: space-between; }
.resource-download { display: inline-flex; align-items: center; gap: 6px; background: var(--purple); color: #fff; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background var(--transition); }
.resource-download:hover { background: var(--purple-dark); }
.resource-format { font-size: 12px; color: var(--text-muted); }

/* Opt-in Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 500; display: none; place-items: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: grid; }
.modal-box { background: var(--bg); border-radius: var(--radius-xl); padding: 40px 44px; max-width: 460px; width: calc(100% - 40px); box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-alt); color: var(--text-muted); display: grid; place-items: center; transition: all var(--transition); }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-icon { font-size: 40px; margin-bottom: 16px; }
.modal-title { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -0.02em; }
.modal-sub { font-size: 14.5px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-hero { background: linear-gradient(175deg, #faf9ff, #fff); padding: 64px 0 52px; border-bottom: 1px solid var(--border); }
.category-hero-inner { display: flex; align-items: flex-start; gap: 28px; }
.category-hero-icon { width: 72px; height: 72px; background: var(--purple-bg); border-radius: 18px; display: grid; place-items: center; font-size: 36px; flex-shrink: 0; }
.category-hero-text h1 { font-family: var(--font-heading); font-size: clamp(28px,4vw,42px); font-weight: 900; color: var(--text); letter-spacing: -0.03em; margin-bottom: 8px; }
.category-hero-text p { font-size: 16px; color: var(--text-muted); max-width: 520px; line-height: 1.6; }
.category-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; padding: 64px 0 96px; align-items: start; }
.category-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }

/* ============================================================
   ANIMATIONS & SCROLL
   ============================================================ */
.fade-in-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
  .article-sidebar { position: static; }
  .category-layout { grid-template-columns: 1fr; }
  .category-sidebar { position: static; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 72px 0 60px; }
  .hero-title { font-size: 38px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .tools-row { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .nl-card { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-group { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
  .tool-card-body { flex-direction: column; }
  .tool-actions { flex-direction: row; align-items: center; }
  .category-hero-inner { flex-direction: column; }
  .hero-search .search-wrap { flex-wrap: wrap; }
  .back-to-top { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary.btn-lg, .btn-outline.btn-lg { text-align: center; justify-content: center; }
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 6px 14px; font-size: 13px; }
  .nl-card { padding: 28px 20px; }
  .section-title { font-size: 26px; }
}