/* ============================================================
   BestSaaSSEOAgency.com — Master Stylesheet
   Single CSS file for ALL 42 pages
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-surface: #1A1A2E;
  --accent-primary: #7C3AED;
  --accent-secondary: #06B6D4;
  --gradient: linear-gradient(135deg, #7C3AED, #06B6D4);
  --gradient-hover: linear-gradient(135deg, #6D28D9, #0891B2);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --border: rgba(255, 255, 255, 0.06);
  --glow: rgba(124, 58, 237, 0.15);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-section: 100px;
  --max-width: 1200px;
  --blog-width: 720px;

  /* Border Radius */
  --card-radius: 16px;
  --btn-radius: 12px;
  --btn-radius-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 300ms;

  /* Navbar */
  --nav-height: 72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover {
  color: var(--accent-secondary);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.4;
}

h5 {
  font-size: 18px;
  font-weight: 600;
}

h6 {
  font-size: 16px;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-section) 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: between;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border-radius: var(--btn-radius);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
  padding: 8px 0;
}
.btn-ghost:hover {
  color: var(--accent-secondary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 14px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-pill {
  border-radius: var(--btn-radius-pill);
}

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  transition: all var(--duration) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--glow);
  border-color: rgba(124, 58, 237, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  font-size: 24px;
  margin-bottom: var(--space-md);
}

.card h3, .card h4 {
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-weight: 500;
  font-size: 14px;
}
.card-link:hover {
  gap: 10px;
}

/* ============================================================
   7. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--duration) var(--ease);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--duration) var(--ease);
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--duration) var(--ease);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--duration) var(--ease);
}

.nav-cta {
  font-size: 14px;
  padding: 10px 20px;
}

/* Dropdown */
.nav-item {
  position: relative;
}

.has-dropdown > .nav-link {
  cursor: pointer;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: rgba(18, 18, 26, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.has-dropdown:hover .dropdown,
.has-dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: 8px;
  transition: all 200ms var(--ease);
}
.dropdown a:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-sm) 0;
}

/* Mega Dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 680px;
  background: rgba(18, 18, 26, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.mega-card {
  display: block;
  padding: var(--space-md);
  border-radius: 12px;
  transition: all 200ms var(--ease);
  text-decoration: none;
}
.mega-card:hover {
  background: rgba(124, 58, 237, 0.08);
}

.mega-icon {
  font-size: 24px;
  margin-bottom: var(--space-sm);
}

.mega-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mega-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.mega-cta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.mega-cta strong {
  font-size: 14px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.mega-cta span {
  font-size: 12px;
  color: var(--text-muted);
}

.mega-cta .btn {
  font-size: 13px;
  padding: 8px 16px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.mobile-menu-overlay.active {
  opacity: 1;
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--btn-radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: var(--space-xl);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.stat-card {
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Trust logos */
.trust-section {
  text-align: center;
}

.trust-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  opacity: 0.4;
}

.trust-logos img {
  height: 28px;
  filter: grayscale(100%) brightness(2);
}

/* ============================================================
   9. SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: block;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--glow);
  border-color: rgba(124, 58, 237, 0.2);
}

.service-card .card-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ============================================================
   10. FEATURED TOOLS SECTION
   ============================================================ */
.tool-preview {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.tool-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.tool-preview-header h3 {
  font-size: 20px;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.tool-card {
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: block;
}
.tool-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.tool-card .card-icon {
  margin: 0 auto var(--space-md);
}

.tool-card h4 {
  font-size: 15px;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.tool-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================================
   11. CASE STUDIES
   ============================================================ */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  transition: all var(--duration) var(--ease);
}
.case-study-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 40px var(--glow);
}

.case-study-card:nth-child(even) {
  direction: rtl;
}
.case-study-card:nth-child(even) > * {
  direction: ltr;
}

.case-study-image {
  border-radius: 12px;
  overflow: hidden;
}
.case-study-image img {
  width: 100%;
  border-radius: 12px;
  transition: transform var(--duration) var(--ease);
}
.case-study-card:hover .case-study-image img {
  transform: scale(1.03);
}

.case-study-info h3 {
  font-size: 14px;
  color: var(--accent-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.case-study-info h4 {
  font-size: 22px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.metrics-pills {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--btn-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

/* ============================================================
   12. BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--glow);
  border-color: rgba(124, 58, 237, 0.2);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.blog-card-body {
  padding: var(--space-lg);
}

.blog-card-body h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
}

/* Featured blog card (blog hub) */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  text-decoration: none;
}
.blog-featured:hover {
  border-color: rgba(124, 58, 237, 0.2);
}

.blog-featured-image {
  overflow: hidden;
}
.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-body {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Blog category tabs */
.blog-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.blog-tab {
  padding: 8px 20px;
  border-radius: var(--btn-radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.blog-tab:hover,
.blog-tab.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* ============================================================
   13. TESTIMONIALS CAROUSEL
   ============================================================ */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 500ms var(--ease);
}

.testimonial-slide {
  min-width: 100%;
  padding: var(--space-xl);
  text-align: center;
}

.testimonial-quote {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-xl);
  position: relative;
}
.testimonial-quote::before {
  content: '"';
  font-size: 64px;
  color: var(--accent-primary);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
}

.testimonial-stars {
  color: var(--warning);
  font-size: 18px;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.testimonial-info h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Carousel controls */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.carousel-dot.active {
  background: var(--accent-primary);
  transform: scale(1.3);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  z-index: 5;
}
.carousel-arrow:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--accent-primary);
}
.carousel-arrow.prev { left: -56px; }
.carousel-arrow.next { right: -56px; }

/* ============================================================
   14. AFFILIATE RECOMMENDATIONS
   ============================================================ */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.affiliate-card {
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--duration) var(--ease);
}
.affiliate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 40px var(--glow);
}

.affiliate-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-surface);
  font-size: 28px;
}

.affiliate-card h4 {
  margin-bottom: var(--space-xs);
}

.affiliate-card .stars {
  color: var(--warning);
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

.affiliate-card p {
  font-size: 14px;
  margin-bottom: var(--space-md);
}

/* ============================================================
   15. FOUNDER / ABOUT SECTION
   ============================================================ */
.founder-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.founder-photo {
  position: relative;
}

.founder-photo img {
  width: 100%;
  border-radius: var(--card-radius);
  border: 2px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.15);
}

.founder-info h3 {
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.founder-info .title {
  color: var(--accent-primary);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.founder-info p {
  font-size: 16px;
  margin-bottom: var(--space-lg);
}

.founder-social {
  display: flex;
  gap: var(--space-md);
}

.founder-social a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 14px;
}
.founder-social a:hover {
  color: var(--accent-primary);
}

/* ============================================================
   16. NEWSLETTER
   ============================================================ */
.newsletter-section {
  padding: var(--space-3xl) 0;
}

.newsletter-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: var(--card-radius);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
}

/* Fix border-image with border-radius (use pseudo element) */
.newsletter-card {
  border: none;
  position: relative;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.newsletter-card h2 {
  font-size: 24px;
  margin-bottom: var(--space-md);
}

.newsletter-card > p {
  font-size: 15px;
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  font-size: 15px;
}
.newsletter-form input:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

.newsletter-card small {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   17. CTA BANNER
   ============================================================ */
.cta-banner {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(124, 58, 237, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner > p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}
.footer-social a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.1);
}

.footer-column h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.footer-column a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}
.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 13px;
}
.footer-legal a:hover {
  color: var(--accent-primary);
}

/* ============================================================
   19. BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: var(--space-lg) 0;
  padding-top: calc(var(--nav-height) + var(--space-lg));
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.breadcrumbs span {
  color: var(--text-muted);
  margin: 0 var(--space-sm);
}

.breadcrumbs .current {
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   20. COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: var(--space-lg);
  transform: translateY(100%);
  transition: transform 400ms var(--ease);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  min-width: 300px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.cookie-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
}

/* ============================================================
   21. TOOL PAGES — INTERFACE STYLES
   ============================================================ */
.tool-section {
  padding-top: calc(var(--nav-height) + var(--space-lg));
}

.tool-hero {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.tool-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--space-md);
}

.tool-hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.tool-interface {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.tool-input-group {
  margin-bottom: var(--space-lg);
}

.tool-input-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.tool-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--duration) var(--ease);
}
.tool-input:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

textarea.tool-input {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

select.tool-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.tool-actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* Progress bars */
.progress-bar {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--space-sm);
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 300ms var(--ease), background-color 300ms var(--ease);
}

.progress-fill.good { background: var(--success); }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger { background: var(--error); }

/* Status indicators */
.status-good { color: var(--success); }
.status-warning { color: var(--warning); }
.status-error { color: var(--error); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.good {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.status-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.status-badge.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Code output */
.code-output {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  margin-top: var(--space-md);
  overflow-x: auto;
}

.code-output pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}

.code-output .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.code-output .copy-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* SERP Preview */
.serp-preview {
  background: #fff;
  border-radius: 12px;
  padding: var(--space-lg);
  margin-top: var(--space-md);
}

.serp-preview .serp-title {
  font-size: 20px;
  color: #1a0dab;
  font-family: Arial, sans-serif;
  margin-bottom: 4px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.serp-preview .serp-url {
  font-size: 14px;
  color: #006621;
  font-family: Arial, sans-serif;
  margin-bottom: 4px;
}

.serp-preview .serp-description {
  font-size: 14px;
  color: #545454;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.serp-mobile .serp-title { font-size: 16px; }
.serp-mobile .serp-url { font-size: 12px; }
.serp-mobile .serp-description { font-size: 13px; }

/* Character count indicators */
.char-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  font-size: 13px;
}

.char-count .count {
  font-weight: 600;
}

/* Tool result stats grid */
.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.result-stat {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: var(--space-md);
  text-align: center;
}

.result-stat .value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.result-stat .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   22. BLOG POST LAYOUT
   ============================================================ */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-2xl);
  max-width: 1060px;
  margin: 0 auto;
  padding-top: var(--space-lg);
}

.blog-post-main {
  max-width: var(--blog-width);
}

.blog-post-featured-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  aspect-ratio: 16/9;
}
.blog-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-header {
  margin-bottom: var(--space-2xl);
}

.blog-post-header h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: var(--space-lg);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.blog-post-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-post-author span {
  font-size: 14px;
  color: var(--text-secondary);
}
.blog-post-author strong {
  color: var(--text-primary);
}

/* Author byline (actual HTML classes) */
.blog-meta-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.blog-meta-author .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  flex-shrink: 0;
}

.blog-meta-author strong {
  color: var(--text-primary);
  font-size: 15px;
}

.blog-meta-author div div,
.blog-meta-author div > :not(strong) {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-meta-author a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.blog-meta-author a:hover {
  color: var(--accent-primary);
}

.blog-post-date,
.blog-post-readtime {
  font-size: 14px;
  color: var(--text-muted);
}

.blog-post-share {
  display: flex;
  gap: var(--space-sm);
  margin-left: auto;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.share-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Blog post body content */
.blog-post-body {
  font-size: 18px;
  line-height: 1.8;
}

.blog-post-body h2 {
  font-size: 28px;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--accent-primary);
}

.blog-post-body h3 {
  font-size: 22px;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.blog-post-body h4 {
  font-size: 18px;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.blog-post-body p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.blog-post-body a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.3);
  text-underline-offset: 3px;
}
.blog-post-body a:hover {
  text-decoration-color: var(--accent-primary);
}

.blog-post-body ul,
.blog-post-body ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.blog-post-body ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}
.blog-post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.blog-post-body ol {
  list-style: decimal;
  padding-left: var(--space-xl);
}
.blog-post-body ol li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}
.blog-post-body ol li::marker {
  color: var(--accent-primary);
  font-weight: 600;
}

.blog-post-body img {
  border-radius: 12px;
  margin: var(--space-xl) 0;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 0 12px 12px 0;
}
.blog-post-body blockquote p {
  font-style: italic;
  margin-bottom: 0;
  color: var(--text-primary);
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: 15px;
}
.blog-post-body table th,
.blog-post-body table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.blog-post-body table th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
}
.blog-post-body table td {
  color: var(--text-secondary);
}

.blog-post-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent-secondary);
}

.blog-post-body pre {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-xl) 0;
}
.blog-post-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Callout/Tip boxes */
.callout {
  background: rgba(124, 58, 237, 0.06);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 12px 12px 0;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.callout-title {
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
  font-size: 15px;
}

.callout p {
  font-size: 15px;
  margin-bottom: 0;
}

.callout.tip {
  border-left-color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.06);
}
.callout.tip .callout-title { color: var(--accent-secondary); }

.callout.warning {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.06);
}
.callout.warning .callout-title { color: var(--warning); }

/* Table of Contents (sidebar) */
.blog-sidebar {
  position: relative;
}

.toc {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
}

.toc h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: var(--space-sm);
}

.toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all var(--duration) var(--ease);
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.05);
}

/* Author bio card (bottom of blog posts) */
.author-bio-box {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  background: #111122 !important;
  border: 1px solid #3b2d68 !important;
  border-left: 4px solid #7c3aed !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  margin: 40px 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.15) !important;
  position: relative !important;
  overflow: hidden !important;
}

.author-bio-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  border-radius: 16px 16px 0 0;
}

.author-bio-box img.author-bio-img,
.author-bio-box .author-bio-img {
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #7c3aed !important;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4) !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  margin: 0 !important;
}

.author-bio-box .author-bio-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
}

.author-bio-box .author-bio-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #a78bfa !important;
}

.author-bio-box .author-bio-name {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 2px 0 !important;
  line-height: 1.2 !important;
}

.author-bio-box .author-bio-name a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.author-bio-box .author-bio-name a:hover {
  color: #a78bfa !important;
}

.author-bio-box .author-bio-title {
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  width: fit-content !important;
  margin: 4px 0 8px 0 !important;
}

.author-bio-box .author-bio-text {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #94a3b8 !important;
  margin: 0 0 14px 0 !important;
}

.author-bio-box .author-bio-social {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.author-bio-box .author-bio-social a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  background: #1e1e38 !important;
  border: 1px solid #3730a3 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.author-bio-box .author-bio-social a:hover {
  color: #ffffff !important;
  border-color: #7c3aed !important;
  background: #6d28d9 !important;
  transform: translateY(-2px) !important;
}
.author-bio-box .author-bio-social a svg {
  flex-shrink: 0 !important;
}

/* Related articles */
.related-articles {
  margin-top: var(--space-2xl);
}

.related-articles h3 {
  font-size: 24px;
  margin-bottom: var(--space-xl);
}

/* ============================================================
   23. AD ZONES
   ============================================================ */
.ad-zone {
  background: rgba(26, 26, 46, 0.3);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-zone .ad-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   24. FAQ ACCORDION
   ============================================================ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: rgba(26, 26, 46, 0.5);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  transition: background var(--duration) var(--ease);
}

.faq-question:hover {
  background: rgba(26, 26, 46, 0.8);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent-primary);
  transition: transform var(--duration) var(--ease);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease);
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ============================================================
   25. SERVICE PAGE SPECIFICS
   ============================================================ */
.service-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(124, 58, 237, 0.08), transparent 60%);
  pointer-events: none;
}

.service-hero h1 {
  position: relative;
  margin-bottom: var(--space-md);
}

.service-hero p {
  position: relative;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

/* Process steps */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  counter-increment: step;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-primary);
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

.step-content p {
  font-size: 15px;
}

/* Feature grid / checklist */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(26, 26, 46, 0.4);
  border-radius: 12px;
}

.feature-item .check-icon {
  color: var(--success);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: rgba(124, 58, 237, 0.03);
}

/* Lead capture form */
.lead-form {
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-2xl);
  max-width: 560px;
  margin: 0 auto;
}

.lead-form h3 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--duration) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

.form-success.show {
  display: block;
}

.form-success .check {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

/* ============================================================
   26. CASE STUDY PAGE LAYOUT
   ============================================================ */
.case-study-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.case-study-hero h1 {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.metric-card {
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  text-align: center;
}

.metric-card .metric-value {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.metric-card .metric-value.up {
  color: var(--success);
}
.metric-card .metric-value.down {
  color: var(--error);
}

.metric-card .metric-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.case-study-content {
  max-width: 800px;
  margin: 0 auto;
}

.case-study-content h2 {
  font-size: 28px;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--accent-primary);
}

.case-study-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.client-quote {
  background: rgba(124, 58, 237, 0.05);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.client-quote p {
  font-size: 20px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.client-quote cite {
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
}
.client-quote cite strong {
  color: var(--text-secondary);
}

/* Client overview box */
.client-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.overview-item {
  text-align: center;
}

.overview-item .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.overview-item .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Results table */
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
}

.results-table th,
.results-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.results-table th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

.results-table td {
  font-size: 14px;
  color: var(--text-secondary);
}

.results-table .change {
  font-weight: 700;
}
.results-table .change.positive { color: var(--success); }
.results-table .change.negative { color: var(--error); }

/* ============================================================
   27. LOCATION PAGE
   ============================================================ */
.location-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
}

.location-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(124, 58, 237, 0.06), transparent 60%);
  pointer-events: none;
}

.city-tags {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.city-tag {
  padding: 6px 16px;
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius-pill);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   28. ABOUT PAGE
   ============================================================ */
.about-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.expertise-item .icon {
  font-size: 24px;
}

/* ============================================================
   29. CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: var(--space-md);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-info-card a {
  font-size: 14px;
  color: var(--accent-primary);
}

/* ============================================================
   30. LEGAL PAGES
   ============================================================ */
.legal-page {
  padding-top: calc(var(--nav-height) + var(--space-lg));
}

.legal-content {
  max-width: var(--blog-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.legal-content h1 {
  font-size: 36px;
  margin-bottom: var(--space-xl);
}

.legal-content h2 {
  font-size: 24px;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: 20px;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.legal-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.legal-content .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ============================================================
   31. HTML SITEMAP
   ============================================================ */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.sitemap-section h3 {
  font-size: 18px;
  margin-bottom: var(--space-md);
  color: var(--accent-primary);
}

.sitemap-section a {
  display: block;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.sitemap-section a:hover {
  color: var(--accent-primary);
}

/* ============================================================
   32. API DOCS
   ============================================================ */
.api-docs {
  padding-top: calc(var(--nav-height) + var(--space-lg));
}

.api-endpoint {
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.api-endpoint h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

.api-endpoint p {
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.api-method {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 4px;
  margin-right: var(--space-sm);
}

/* ============================================================
   33. SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration) var(--ease);
  z-index: 900;
  border: none;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #6D28D9;
  transform: translateY(-2px);
}

/* ============================================================
   34. AFFILIATE CTA BOX (in blog posts)
   ============================================================ */
.affiliate-cta-box {
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.affiliate-cta-box .tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.affiliate-cta-box h4 {
  margin-bottom: var(--space-xs);
}

.affiliate-cta-box p {
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

/* ============================================================
   35. ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: all 500ms var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }

/* ============================================================
   36. KEYWORD DENSITY BAR CHART
   ============================================================ */
.density-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.density-bar .keyword {
  width: 150px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.density-bar .bar-container {
  flex: 1;
  height: 20px;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
}

.density-bar .bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 500ms var(--ease);
  min-width: 2px;
}

.density-bar .percent {
  width: 50px;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Tabs for n-gram switching */
.ngram-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.ngram-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}
.ngram-tab.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ============================================================
   37. TOOL PAGE — TOGGLE BUTTONS
   ============================================================ */
.toggle-group {
  display: inline-flex;
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--border);
}

.toggle-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.toggle-btn.active {
  background: var(--accent-primary);
  color: #fff;
}

/* ============================================================
   38. SCHEMA GENERATOR — Dynamic form fields
   ============================================================ */
.dynamic-fields .form-group {
  animation: fadeIn 300ms var(--ease);
}

.add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.add-row-btn:hover {
  background: rgba(124, 58, 237, 0.15);
}

.remove-row-btn {
  padding: 6px;
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  border: none;
  transition: all var(--duration) var(--ease);
}
.remove-row-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.row-group {
  display: flex;
  gap: var(--space-sm);
  align-items: end;
  margin-bottom: var(--space-sm);
}

.row-group .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* ============================================================
   39. HEADING ANALYZER — Tree output
   ============================================================ */
.heading-tree {
  padding: var(--space-md);
}

.heading-tree .tree-item {
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.heading-tree .tree-item .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
}

.heading-tree .h1 .tag { color: var(--accent-primary); }
.heading-tree .h2 .tag { color: var(--accent-secondary); }
.heading-tree .h3 .tag { color: var(--success); }
.heading-tree .h4 .tag { color: var(--warning); }
.heading-tree .h5 .tag, .heading-tree .h6 .tag { color: var(--text-muted); }

.heading-tree .h2 { padding-left: var(--space-lg); }
.heading-tree .h3 { padding-left: calc(var(--space-lg) * 2); }
.heading-tree .h4 { padding-left: calc(var(--space-lg) * 3); }
.heading-tree .h5 { padding-left: calc(var(--space-lg) * 4); }
.heading-tree .h6 { padding-left: calc(var(--space-lg) * 5); }

.issue-list {
  margin-top: var(--space-md);
}

.issue-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: var(--space-xs);
  font-size: 14px;
}
.issue-item.error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
}
.issue-item.warning {
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
}
.issue-item.success {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
}

/* ============================================================
   40. TOOLS HUB — Categories
   ============================================================ */
.tools-category {
  margin-bottom: var(--space-2xl);
}

.tools-category h3 {
  font-size: 20px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.tool-hub-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: rgba(26, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.tool-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--glow);
  border-color: rgba(124, 58, 237, 0.2);
}

.tool-hub-card .card-icon {
  flex-shrink: 0;
}

.tool-hub-card h4 {
  font-size: 17px;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.tool-hub-card p {
  font-size: 14px;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* ============================================================
   41. SOCIAL SHARE PREVIEW (OG Generator)
   ============================================================ */
.social-preview {
  margin-top: var(--space-lg);
}

.social-preview-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 500px;
  border: 1px solid #ddd;
}

.social-preview-card .preview-image {
  width: 100%;
  height: 260px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 14px;
}

.social-preview-card .preview-body {
  padding: 12px 16px;
}

.social-preview-card .preview-site {
  font-size: 12px;
  color: #65676B;
  text-transform: uppercase;
}

.social-preview-card .preview-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d2129;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-preview-card .preview-desc {
  font-size: 14px;
  color: #65676B;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   42. RESPONSIVE — TABLET (768px - 1199px)
   ============================================================ */
@media (max-width: 1199px) {
  :root {
    --space-section: 80px;
  }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-cards { grid-template-columns: repeat(2, 1fr); }
  .affiliate-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-hub-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }

  .blog-post-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar { display: none; }

  .founder-section {
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
  }

  .case-study-card { grid-template-columns: 1fr; }
  .case-study-card:nth-child(even) { direction: ltr; }

  .blog-featured { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .mega-dropdown { width: 580px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .carousel-arrow.prev { left: -10px; }
  .carousel-arrow.next { right: -10px; }

  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .client-overview { grid-template-columns: repeat(2, 1fr); }

  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   43. RESPONSIVE — MOBILE (<768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --space-section: 64px;
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Nav */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
    gap: 0;
    transition: right 400ms var(--ease);
    z-index: 1050;
    overflow-y: auto;
    border-left: 1px solid var(--border);
  }
  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu .nav-link::after { display: none; }

  .nav-item {
    width: 100%;
  }

  .has-dropdown .dropdown,
  .has-dropdown .mega-dropdown {
    position: static;
    transform: none;
    width: 100%;
    min-width: unset;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms var(--ease), visibility 0ms 400ms;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
    border-radius: 0;
  }
  .has-dropdown.open .dropdown,
  .has-dropdown.open .mega-dropdown {
    visibility: visible;
    max-height: 1000px;
    transition: max-height 400ms var(--ease), visibility 0ms 0ms;
    padding: var(--space-sm) 0;
  }

  .mega-dropdown {
    border: none !important;
  }

  .mega-grid { grid-template-columns: 1fr; }
  .mega-cta { flex-direction: column; text-align: center; }

  .hamburger { display: flex; }
  .nav-cta { display: none; }

  /* Hero */
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + var(--space-xl)); }
  .hero-content { padding: var(--space-xl) var(--space-sm); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; }

  .trust-logos { gap: var(--space-lg); }
  .trust-logos img { height: 20px; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .tool-cards { grid-template-columns: 1fr; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }

  .founder-section { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { max-width: 200px; margin: 0 auto; }
  .founder-social { justify-content: center; }

  .case-study-card { grid-template-columns: 1fr; }
  .case-study-card:nth-child(even) { direction: ltr; }

  .blog-featured { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .client-overview { grid-template-columns: repeat(2, 1fr); }

  .expertise-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }

  .carousel-arrow { display: none; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }

  .cookie-content { flex-direction: column; text-align: center; }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-actions .btn { width: 100%; }

  .affiliate-cta-box { flex-direction: column; text-align: center; }
  .author-bio-box { flex-direction: column; text-align: center; align-items: center; }
  .author-bio-box .author-bio-social { justify-content: center; }
  .author-bio-box .author-bio-title { margin-left: auto; margin-right: auto; }

  .section-header p { font-size: 16px; }

  .testimonial-quote { font-size: 17px; }

  /* Touch targets */
  .btn { min-height: 48px; }
  .tool-input { min-height: 48px; }
  .faq-question { min-height: 56px; }

  .process-step { flex-direction: column; gap: var(--space-md); }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 340px; }

  .blog-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--space-sm); }
  .blog-tab { flex-shrink: 0; }

  .row-group { flex-direction: column; }
  .row-group .form-group { width: 100%; }

  .density-bar .keyword { width: 100px; font-size: 12px; }

  .ad-zone { min-height: 60px; }

  .tool-preview-header { flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
}

/* ============================================================
   44. PRINT STYLES
   ============================================================ */
@media print {
  .navbar, .footer, .cookie-banner, .scroll-top, .ad-zone { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   45. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}
