/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --secondary: #059669;
  --secondary-light: #d1fae5;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease-out forwards; }

/* ===== Header ===== */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.logo span { color: var(--primary); }
.logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
}
.nav-links a {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(150deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4338ca 100%);
  color: #fff;
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #a5b4fc;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79,70,229,0.4);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.trust-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}
.trust-items {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-item span {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== Categories ===== */
.categories {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.categories h2 {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.categories > p.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.category-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover {
  border-color: rgba(79,70,229,0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  color: var(--text);
}
.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
  line-height: 1.55;
}

.category-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ===== Latest Reviews ===== */
.latest-reviews {
  background: var(--bg-alt);
  padding: 5rem 1.5rem;
}
.latest-reviews h2 {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.latest-reviews > p.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.articles-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: all var(--transition);
}
.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(79,70,229,0.2);
}

.article-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.article-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.article-card h3 a {
  color: var(--text);
  transition: color var(--transition);
}
.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-lighter);
  font-weight: 500;
}

/* ===== Newsletter ===== */
.newsletter {
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-light) 100%);
  position: relative;
}
.newsletter-content {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.newsletter h2 {
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.newsletter p {
  color: var(--text-light);
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  background: var(--bg);
  transition: all var(--transition);
}
.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.newsletter small {
  color: var(--text-lighter);
  font-size: 0.8rem;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0f1e 100%);
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-section h4 {
  color: #e2e8f0;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-section p {
  font-size: 0.88rem;
  line-height: 1.6;
}
.footer-section ul {
  list-style: none;
}
.footer-section li {
  margin-bottom: 0.55rem;
}
.footer-section a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-section a:hover {
  color: #c7d2fe;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(148,163,184,0.12);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #64748b;
}
.footer-bottom p + p {
  margin-top: 0.4rem;
}

/* ===== Article Page ===== */
.article-header {
  background: linear-gradient(150deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.article-header .breadcrumb {
  font-size: 0.82rem;
  color: #a5b4fc;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 1;
}
.article-header .breadcrumb a {
  color: #a5b4fc;
  transition: color var(--transition);
}
.article-header .breadcrumb a:hover { color: #fff; }
.article-header h1 {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto 1rem;
  line-height: 1.18;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.article-header .article-meta-header {
  color: #a5b4fc;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary-light);
  letter-spacing: -0.3px;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.article-body p {
  margin-bottom: 1.3rem;
  line-height: 1.75;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.3rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

/* Product Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.88rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.comparison-table th {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 100%);
  color: #e2e8f0;
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.comparison-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
}
.comparison-table tbody tr {
  transition: background var(--transition);
}
.comparison-table tbody tr:hover {
  background: var(--primary-light);
}
.comparison-table tr:nth-child(even) td {
  background: var(--bg-alt);
}
.comparison-table tbody tr:hover td {
  background: var(--primary-light);
}
.comparison-table .rating {
  color: var(--accent);
  font-weight: 800;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed, #a855f7);
}
.cta-box h4 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.cta-box p {
  margin-bottom: 1.1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Pros/Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.25rem 0;
}
.pros, .cons {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
}
.pros {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
}
.cons {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border: 1px solid #fecaca;
}
.pros h4 {
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.cons h4 {
  color: #dc2626;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.pros ul, .cons ul { margin-left: 1rem; }
.pros li, .cons li { margin-bottom: 0.4rem; font-size: 0.9rem; line-height: 1.5; }

/* Verdict Box */
.verdict {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-left: 4px solid var(--primary);
  padding: 2rem 2rem 2rem 1.75rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
}
.verdict h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
}
.verdict p {
  line-height: 1.7;
}
.verdict p + p {
  margin-top: 0.6rem;
}

/* ===== Category Index Page ===== */
.category-header {
  background: linear-gradient(150deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.category-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.category-header h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.category-header p {
  color: #a5b4fc;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
  }
  .hero h1 { font-size: 2rem; letter-spacing: -0.8px; }
  .hero { padding: 3.5rem 1.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .category-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .pros-cons { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.7rem; letter-spacing: -0.5px; }
  .article-header { padding: 2.5rem 1.5rem; }
  .trust-items { gap: 2rem; }
  .categories, .latest-reviews { padding: 3.5rem 1.5rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.65rem 0.75rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .footer-content { grid-template-columns: 1fr; }
  .trust-items { gap: 1.5rem; }
  .categories h2, .latest-reviews h2 { font-size: 1.7rem; }
}

/* ===== Table of Contents ===== */
.toc {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 2.5rem;
}
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.toc-title {
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text);
}
.toc-list {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
}
.toc-list li {
  counter-increment: toc;
  margin-bottom: 0.45rem;
  break-inside: avoid;
}
.toc-list li a {
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
  display: block;
  padding: 0.2rem 0;
}
.toc-list li a::before {
  content: counter(toc) ". ";
  color: var(--primary);
  font-weight: 700;
}
.toc-list li a:hover {
  color: var(--primary);
}

@media (max-width: 600px) {
  .toc-list { columns: 1; }
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79,70,229,0.45);
}

/* ===== Reading Progress Bar ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #7c3aed, #a855f7);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ===== Scroll Animations ===== */
.fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* ===== "Start Here" Page ===== */
.start-here-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.start-here-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.3px;
}
.start-here-content p {
  margin-bottom: 1.3rem;
  line-height: 1.75;
}

.tool-path {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
  transition: all var(--transition);
}
.tool-path:hover {
  border-color: rgba(79,70,229,0.3);
  box-shadow: var(--shadow-md);
}
.tool-path h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.tool-path h3 a { color: var(--text); }
.tool-path h3 a:hover { color: var(--primary); }
.tool-path p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}
.tool-path .path-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tool-path .path-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  transition: all var(--transition);
}
.tool-path .path-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Featured Review Spotlight (homepage) ===== */
.featured-review {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.featured-review h2 {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 2rem;
}
.spotlight-content .spotlight-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
}
.spotlight-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}
.spotlight-content h3 a { color: var(--text); }
.spotlight-content h3 a:hover { color: var(--primary); }
.spotlight-content p {
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.spotlight-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.spotlight-stat {
  text-align: center;
}
.spotlight-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}
.spotlight-stat span {
  font-size: 0.78rem;
  color: var(--text-lighter);
  font-weight: 500;
}

@media (max-width: 768px) {
  .spotlight-card { grid-template-columns: 1fr; padding: 2rem; gap: 1.5rem; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; font-size: 1rem; }
}

/* ===== How We Test Credibility Section ===== */
.how-we-test {
  background: var(--bg-dark);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}
.how-we-test h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.how-we-test > p {
  color: #a5b4fc;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.test-steps {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.test-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.test-step:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.test-step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.test-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}
.test-step p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .how-we-test { padding: 3.5rem 1.5rem; }
  .test-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .test-steps { grid-template-columns: 1fr; }
}

/* ===== Slide-in CTA ===== */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-cta {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  max-width: 340px;
  width: calc(100% - 3rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}
.slide-in-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide-in-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--primary), #7c3aed, #a855f7);
}

.slide-in-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--text-lighter);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition);
}
.slide-in-close:hover {
  color: var(--text);
}

.slide-in-cta h4 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.slide-in-cta p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.slide-in-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.slide-in-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  background: var(--bg);
  transition: all var(--transition);
}
.slide-in-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.slide-in-form .btn {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}
.slide-in-cta small {
  font-size: 0.72rem;
  color: var(--text-lighter);
}

@media (max-width: 480px) {
  .slide-in-cta {
    bottom: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
  }
}

/* ===== Exit Intent Popup ===== */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.exit-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.exit-popup-modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2.75rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInScale 0.35s ease forwards;
}

.exit-popup-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-lighter);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition);
}
.exit-popup-close:hover {
  color: var(--text);
}

.exit-popup-icon {
  font-size: 2.5rem;
  margin-bottom: 0.85rem;
}

.exit-popup-modal h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.exit-popup-modal p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.exit-popup-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.exit-popup-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  background: var(--bg);
  transition: all var(--transition);
}
.exit-popup-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.exit-popup-form .btn {
  white-space: nowrap;
  padding: 0.8rem 1.35rem;
  font-size: 0.9rem;
}
.exit-popup-modal small {
  font-size: 0.78rem;
  color: var(--text-lighter);
}

@media (max-width: 520px) {
  .exit-popup-modal {
    padding: 2rem 1.5rem;
  }
  .exit-popup-form {
    flex-direction: column;
  }
  .exit-popup-form .btn {
    width: 100%;
  }
}

/* ===== Related Articles ===== */
.related-articles {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.related-articles h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.related-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  opacity: 0;
  transition: opacity var(--transition);
}
.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.related-card:hover::before {
  opacity: 1;
}
.related-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.related-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .related-articles {
    padding: 2rem 1.5rem 3rem;
  }
}

/* ===== Author Box (article byline) ===== */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.author-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
}
.author-info {
  flex: 1;
}
.author-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.author-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.author-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

/* ===== About Page Author Section ===== */
.about-author-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 1.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-author-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed, #a855f7);
}
.about-author-section h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
}
.about-author-info p {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.about-stat {
  text-align: center;
}
.about-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat span {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}
@media (max-width: 600px) {
  .about-stats {
    gap: 1.5rem;
  }
  .about-stat strong {
    font-size: 1.3rem;
  }
}
