/* ===================================================================
   CommentX — Production CSS
   Dark SaaS, glassmorphism, pink/magenta + purple accent system
   =================================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* --- Backgrounds --- */
  --bg: transparent;
  --bg-solid: #0a0005;
  --bg-card: rgba(10,0,5,.6);
  --bg-header: rgba(10,0,5,.7);
  --bg-footer: rgba(10,0,5,.5);
  --bg-mobile: rgba(10,0,5,.98);
  --section-alt-bg: rgba(168,85,247,.03);

  /* --- Text --- */
  --text: #e0d0d8;
  --text-heading: #fff;
  --text-muted: #b99;
  --text-dim: #a88;
  --text-label: #665;

  /* --- Pink / Magenta accent --- */
  --accent: #f472b6;
  --accent-2: #ec4899;
  --accent-3: #db2777;
  --accent-4: #be185d;
  --accent-light: #f9a8d4;

  /* --- Purple alt accent --- */
  --accent-alt: #a855f7;
  --accent-alt-2: #9333ea;
  --accent-alt-light: #c084fc;

  /* --- Borders --- */
  --border: rgba(244,114,182,.15);
  --border-hover: rgba(244,114,182,.4);
  --border-light: rgba(244,114,182,.08);
  --border-alt: rgba(168,85,247,.2);
  --border-alt-light: rgba(168,85,247,.1);

  /* --- Glow / shadow --- */
  --glow: 0 0 20px rgba(236,72,153,.3);
  --glow-strong: 0 0 40px rgba(244,114,182,.4);
  --glow-alt: 0 0 20px rgba(168,85,247,.3);
  --shadow-card: 0 8px 40px rgba(236,72,153,.2), inset 0 1px 0 rgba(255,255,255,.05);
  --shadow-card-alt: 0 8px 40px rgba(168,85,247,.15), inset 0 1px 0 rgba(255,255,255,.05);

  /* --- UI element backgrounds --- */
  --icon-bg: linear-gradient(135deg, rgba(236,72,153,.15), rgba(244,114,182,.1));
  --icon-bg-alt: linear-gradient(135deg, rgba(168,85,247,.15), rgba(147,51,234,.1));
  --btn-secondary-bg: rgba(244,114,182,.08);
  --btn-secondary-border: rgba(244,114,182,.2);
  --btn-secondary-hover: rgba(244,114,182,.15);
  --stat-gradient: linear-gradient(135deg, #f472b6, #db2777);
  --stat-gradient-alt: linear-gradient(135deg, #a855f7, #9333ea);

  /* --- Orbs / canvas --- */
  --orb-opacity: .12;
  --neural-node-core: 'rgba(253,224,240,';
  --neural-glow-1: 'rgba(244,114,182,';
  --neural-glow-2: 'rgba(236,72,153,';
  --neural-line: 'rgba(244,114,182,';
  --neural-shooting: 'rgba(255,255,255,';

  /* --- Misc --- */
  --scrollbar-track: #0a0005;
  --transition: background-color .4s, color .4s, border-color .4s;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 100px;
}

[data-theme="light"] {
  --bg: transparent;
  --bg-solid: #f8f0f4;
  --bg-card: rgba(255,255,255,.92);
  --bg-header: rgba(255,255,255,.8);
  --bg-footer: rgba(248,240,244,.8);
  --bg-mobile: rgba(255,255,255,.98);
  --section-alt-bg: rgba(124,58,237,.03);

  --text: #2e1422;
  --text-heading: #14000a;
  --text-muted: #523040;
  --text-dim: #6a4050;
  --text-label: #7a5060;

  --accent: #db2777;
  --accent-2: #ec4899;
  --accent-3: #be185d;
  --accent-4: #9d174d;
  --accent-light: #f472b6;

  --accent-alt: #7c3aed;
  --accent-alt-2: #6d28d9;
  --accent-alt-light: #8b5cf6;

  --border: rgba(219,39,119,.15);
  --border-hover: rgba(219,39,119,.35);
  --border-light: rgba(219,39,119,.08);
  --border-alt: rgba(124,58,237,.2);
  --border-alt-light: rgba(124,58,237,.1);

  --glow: 0 0 20px rgba(219,39,119,.15);
  --glow-strong: 0 0 30px rgba(236,72,153,.25);
  --glow-alt: 0 0 20px rgba(124,58,237,.2);
  --shadow-card: 0 8px 30px rgba(219,39,119,.1), inset 0 1px 0 rgba(255,255,255,.5);
  --shadow-card-alt: 0 8px 30px rgba(124,58,237,.1), inset 0 1px 0 rgba(255,255,255,.5);

  --icon-bg: linear-gradient(135deg, rgba(219,39,119,.1), rgba(236,72,153,.08));
  --icon-bg-alt: linear-gradient(135deg, rgba(124,58,237,.1), rgba(109,40,217,.08));
  --btn-secondary-bg: rgba(219,39,119,.06);
  --btn-secondary-border: rgba(219,39,119,.15);
  --btn-secondary-hover: rgba(219,39,119,.12);
  --stat-gradient: linear-gradient(135deg, #db2777, #be185d);
  --stat-gradient-alt: linear-gradient(135deg, #7c3aed, #6d28d9);

  --orb-opacity: .08;
  --neural-node-core: 'rgba(180,40,100,';
  --neural-glow-1: 'rgba(219,39,119,';
  --neural-glow-2: 'rgba(190,24,93,';
  --neural-line: 'rgba(219,39,119,';
  --neural-shooting: 'rgba(219,39,119,';

  --scrollbar-track: #f0e8ec;
  --transition: background-color .4s, color .4s, border-color .4s;
}

/* Light theme: fix elements with hardcoded dark backgrounds */
[data-theme="light"] .section-dark {
  background: rgba(219,39,119,.04);
}
[data-theme="light"] .article-body pre {
  background: rgba(0,0,0,.04);
  color: var(--text);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-solid);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text-heading); transition: color .4s; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); margin-bottom: .75rem; }
p { margin-bottom: 1rem; color: var(--text-muted); transition: color .4s; }
.section-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  transition: color .4s;
}

/* ===== CANVAS — FULL SCREEN FIXED ===== */
#neural-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: all;
}

/* ===== FLOATING ORBS ===== */
.orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(60px);
  opacity: var(--orb-opacity);
  transition: opacity .4s;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent-2); top: 10%; left: 60%; animation: orb-float 15s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-3); top: 50%; left: 10%; animation: orb-float 18s ease-in-out infinite 2s; }
.orb-3 { width: 350px; height: 350px; background: var(--accent); top: 70%; left: 70%; animation: orb-float 12s ease-in-out infinite 4s; }
.orb-4 { width: 300px; height: 300px; background: var(--accent-alt); top: 30%; left: 40%; animation: orb-float 20s ease-in-out infinite 6s; }
@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(40px,-30px) scale(1.1); }
  50% { transform: translate(-20px,20px) scale(.9); }
  75% { transform: translate(30px,10px) scale(1.05); }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem;
  color: var(--accent); transition: all .3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.theme-toggle:hover { border-color: var(--border-hover); box-shadow: var(--glow); transform: scale(1.1); }

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* Logo text */
.logo {
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-heading); letter-spacing: -.5px;
  transition: color .4s;
}
.logo span { color: var(--accent); }

/* Logo with image (SVG) */
.logo-wrap {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--text-heading);
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.5px;
  transition: color .4s;
}
.logo-wrap span { color: var(--accent); }
.logo-img {
  width: 32px; height: 32px;
  display: block; flex-shrink: 0;
  object-fit: contain;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; flex: 1; justify-content: flex-end; }
.nav-links a { color: var(--text-dim); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  box-shadow: var(--glow);
  transition: box-shadow .2s, transform .2s;
}
.nav-cta:hover { box-shadow: var(--glow-strong); transform: translateY(-1px); }
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.mobile-toggle span { width: 24px; height: 2px; background: var(--text-dim); border-radius: 2px; transition: .3s; }

/* ===== HERO — CENTERED (homepage) ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative; overflow: hidden; z-index: 1;
}
.hero h1 { margin-bottom: 1.5rem; text-shadow: 0 0 30px rgba(244,114,182,.3); }
.hero h1 span {
  background: var(--stat-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(244,114,182,.4));
}
.hero p { font-size: 1.1rem; max-width: 650px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== HERO — SPLIT (inner pages: grid 2-col) ===== */
.hero-split {
  padding: 80px 0 60px;
  position: relative; overflow: hidden; z-index: 1;
}
.hero-split .hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-split .hero-text { text-align: left; }
.hero-split .hero-text h1 { margin-bottom: 1.5rem; text-shadow: 0 0 30px rgba(244,114,182,.3); }
.hero-split .hero-text h1 span {
  background: var(--stat-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(244,114,182,.4));
}
.hero-split .hero-text p { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-split .hero-text .hero-buttons { justify-content: flex-start; }
.hero-split .hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* ===== HERO BADGE ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.3);
  color: var(--accent-alt);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: .3px;
  transition: border-color .3s, background .3s;
}
.hero-badge:hover { background: rgba(168,85,247,.18); border-color: rgba(168,85,247,.5); }

/* ===== TRUST ROW ===== */
.trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.trust-badge {
  display: flex; align-items: center; gap: .5rem;
  color: var(--text-dim); font-size: .85rem; font-weight: 500;
  transition: color .3s;
}
.trust-badge .trust-icon { font-size: 1rem; }
.trust-badge:hover { color: var(--text); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  box-shadow: var(--glow);
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer;
  text-align: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); color: #fff !important; }

.btn-secondary {
  display: inline-block;
  background: var(--btn-secondary-bg);
  color: var(--accent) !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  border: 1px solid var(--btn-secondary-border);
  transition: .2s; cursor: pointer;
  text-align: center;
}
.btn-secondary:hover { background: var(--btn-secondary-hover); }

/* Purple alt button */
.btn-alt {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-alt-2), var(--accent-alt));
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  box-shadow: var(--glow-alt);
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer;
  text-align: center;
}
.btn-alt:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(168,85,247,.45); color: #fff !important; }

/* Small button modifier */
.btn-sm { padding: 9px 20px; font-size: .875rem; border-radius: 8px; }

/* ===== GLASS CARDS ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .4s;
  position: relative; z-index: 1;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

/* Purple tint variant */
.glass-card-alt {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-alt);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .4s;
  position: relative; z-index: 1;
}
.glass-card-alt:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.45);
  box-shadow: var(--shadow-card-alt);
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; position: relative; z-index: 1; }

.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent-2); margin-bottom: .75rem;
  text-shadow: 0 0 10px rgba(236,72,153,.3);
}

/* Alternating section background with purple + pink subtle gradients */
.section-alt {
  padding: 80px 0; position: relative; z-index: 1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(168,85,247,.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(244,114,182,.05) 0%, transparent 50%);
}

/* Dark section variant with strong border */
.section-dark {
  padding: 80px 0; position: relative; z-index: 1;
  background: rgba(0,0,0,.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== GRIDS ===== */
.grid-3, .grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

/* ===== FEATURE ICON ===== */
.feature-icon {
  width: 52px; height: 52px;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
  transition: border-color .4s;
}
.feature-icon-alt {
  width: 52px; height: 52px;
  background: var(--icon-bg-alt);
  border: 1px solid var(--border-alt);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
  transition: border-color .4s;
}

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2rem; text-align: center; }

/* .stat-card is an alias — same styles */
.stat-card { text-align: center; }

.stat-number {
  font-size: 2.5rem; font-weight: 800;
  background: var(--stat-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(244,114,182,.3));
}
.stat-number-alt {
  font-size: 2.5rem; font-weight: 800;
  background: var(--stat-gradient-alt);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(168,85,247,.3));
}
.stat-label { color: var(--text-dim); font-size: .9rem; margin-top: .25rem; transition: color .4s; }

/* ===== PROCESS STEPS ===== */
.process-steps { position: relative; }

/* Vertical connector line */
.process-steps::before {
  content: '';
  position: absolute;
  left: 24px; /* center of .step-num (48px / 2) */
  top: 48px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-3), var(--accent-alt), transparent);
  opacity: .3;
  z-index: 0;
}

.process-step {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  z-index: 1;
}
.process-step:last-child { margin-bottom: 0; }

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #fff;
  font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(236,72,153,.35);
  position: relative; z-index: 1;
}
.step-num-alt {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-alt-2), var(--accent-alt));
  color: #fff;
  font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(168,85,247,.35);
  position: relative; z-index: 1;
}

.step-content { flex: 1; padding-top: .25rem; }
.step-content h3 { margin-bottom: .4rem; }
.step-content p { margin-bottom: 0; }

/* ===== COMPARISON TABLE ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: .95rem;
}
.compare-table th,
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  transition: background .3s, border-color .4s;
  vertical-align: middle;
}
.compare-table th {
  font-weight: 700;
  color: var(--text-heading);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.compare-table td { color: var(--text-muted); }

/* Highlighted "us" column */
.compare-table .col-us {
  background: rgba(244,114,182,.06);
  border-left: 1px solid rgba(244,114,182,.2);
  border-right: 1px solid rgba(244,114,182,.2);
}
.compare-table thead .col-us {
  background: rgba(244,114,182,.12);
}
.compare-table tr:last-child .col-us {
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.compare-table .check { color: var(--accent); font-weight: 700; }
.compare-table .cross { color: #666; }
.compare-table .partial { color: var(--accent-alt); }

/* ===== MARQUEE TICKER ===== */
.ticker-wrap {
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 3rem 0;
  position: relative; z-index: 1;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  white-space: nowrap;
  color: var(--text-dim);
  font-size: .9rem;
  display: flex; align-items: center; gap: .5rem;
  transition: color .3s;
}
.ticker-item::before { content: "✦"; color: var(--accent-2); flex-shrink: 0; }
.ticker-item:hover { color: var(--text); }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== NICHE CARDS ===== */
.niche-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .4s;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: .75rem;
}
.niche-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  border-top-color: var(--accent);
  box-shadow: var(--shadow-card);
}
.niche-card .niche-icon {
  font-size: 2rem; margin-bottom: .25rem;
}
.niche-card h3 { margin-bottom: .25rem; }
.niche-card p { margin-bottom: 0; font-size: .9rem; }
.niche-card .niche-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: .5rem;
}
.niche-tag {
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(244,114,182,.1);
  color: var(--accent-2);
  border: 1px solid rgba(244,114,182,.15);
}

/* ===== VIDEO EMBED SECTION ===== */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.video-wrap iframe,
.video-wrap video,
.video-wrap embed,
.video-wrap object {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===== PRICING ===== */
.pricing-card { text-align: center; }
.pricing-card.featured { border-color: var(--border-hover); position: relative; }
.pricing-card.featured::before {
  content: 'Популярный';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #fff; font-size: .75rem; font-weight: 600;
  padding: 4px 16px; border-radius: 20px;
}
.price { font-size: 2.5rem; font-weight: 800; color: var(--text-heading); margin: 1rem 0; transition: color .4s; }
.price span { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.pricing-features { text-align: left; margin: 1.5rem 0; }
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
  transition: border-color .4s;
  color: var(--text-muted);
}
.pricing-features li::before { content: '\2726'; color: var(--accent-2); font-weight: 700; }

/* Pricing comparison matrix (pricing page) */
.pricing-compare-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: .9rem;
}
.pricing-compare-table th,
.pricing-compare-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  transition: background .3s, border-color .4s;
  vertical-align: middle;
}
.pricing-compare-table th:first-child,
.pricing-compare-table td:first-child { text-align: left; }
.pricing-compare-table th {
  font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--text-heading);
}
.pricing-compare-table td { color: var(--text-muted); }

/* Start plan */
.pricing-compare-table .plan-col-start {
  background: rgba(244,114,182,.04);
}
/* Mid (featured) plan */
.pricing-compare-table .plan-col-mid {
  background: rgba(244,114,182,.08);
  border-left: 1px solid rgba(244,114,182,.2);
  border-right: 1px solid rgba(244,114,182,.2);
}
.pricing-compare-table thead .plan-col-mid {
  background: rgba(244,114,182,.14);
}
/* End (premium) plan */
.pricing-compare-table .plan-col-end {
  background: rgba(168,85,247,.05);
}
.pricing-compare-table thead .plan-col-end {
  background: rgba(168,85,247,.1);
}
.pricing-compare-table .check { color: var(--accent); font-weight: 700; }
.pricing-compare-table .cross  { color: #666; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border-light); padding: 1.25rem 0; transition: border-color .4s; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600;
  color: var(--text-heading); font-size: 1.05rem;
  background: none; border: none; width: 100%; text-align: left; padding: 0;
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--accent-2); transition: transform .3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s, padding .3s;
  padding-top: 0; color: var(--text-muted);
}
.faq-item.active .faq-answer { max-height: 400px; padding-top: 1rem; }

/* ===== CASES ===== */
.cases-card { text-align: center; }
.cases-card .case-status {
  display: inline-block;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-2);
  padding: 4px 14px;
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  margin-bottom: 1rem;
}
.cases-card .case-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* All case cards — uniform; no special .case-profit override */
.case-profit { /* inherits glass-card */ }

.case-skeleton {
  height: 8px;
  background: linear-gradient(90deg, var(--btn-secondary-bg), rgba(219,39,119,.15), var(--btn-secondary-bg));
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}
.case-skeleton:last-child { width: 60%; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== BLOG GRID & CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex; flex-direction: column;
  height: 100%;
}
.blog-card .glass-card {
  height: 100%;
  display: flex; flex-direction: column;
}
.blog-card .glass-card p { flex: 1; }

/* Card image area */
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, rgba(244,114,182,.15), rgba(168,85,247,.1));
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: -2rem -2rem 1.5rem -2rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-img .blog-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,0,5,.6));
}

.blog-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent-2);
  margin-bottom: .75rem;
}
.blog-meta { font-size: .8rem; color: var(--text-label); margin-bottom: .5rem; transition: color .4s; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }

/* Card "read more" link */
.blog-card .blog-read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent-2); font-size: .875rem; font-weight: 600;
  margin-top: auto; padding-top: 1rem;
  transition: color .2s, gap .2s;
}
.blog-card .blog-read-more:hover { color: var(--accent); gap: .65rem; }

/* ===== ARTICLE LAYOUT ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}
.article-body p { color: var(--text); }
.article-body h2 {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 1.5rem;
}
.article-body h3 {
  margin-top: 2rem;
  color: var(--accent);
  font-size: 1.2rem;
}
.article-body h4 { margin-top: 1.5rem; font-size: 1.05rem; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(244,114,182,.35); }
.article-body a:hover { color: var(--accent-light); text-decoration-color: var(--accent-light); }
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1rem; }
.article-body ul li, .article-body ol li {
  margin-bottom: .5rem; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: .4rem;
}
.article-body ul li::before { content: "→"; color: var(--accent-2); margin-right: .5rem; flex-shrink: 0; }
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before { content: counter(ol-counter) "."; color: var(--accent-2); font-weight: 700; flex-shrink: 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent-2);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.article-body blockquote p { color: var(--text); margin-bottom: 0; font-style: italic; }
.article-body code {
  background: rgba(244,114,182,.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .88em;
  color: var(--accent-light);
}
.article-body pre {
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.article-body pre code { background: none; border: none; padding: 0; font-size: .9em; color: var(--text); }
.article-body img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 1.5rem 0; }
.article-body hr { border: none; border-top: 1px solid var(--border-light); margin: 2.5rem 0; }

/* Table of contents sidebar */
.article-toc {
  position: sticky; top: 80px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background .4s, border-color .4s;
}
.article-toc h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--accent-2); margin-bottom: 1rem; font-weight: 700;
}
.article-toc ul { margin: 0; }
.article-toc ul li { margin-bottom: 0; display: block; }
.article-toc ul li::before { display: none; }
.article-toc a {
  display: block; color: var(--text-dim); font-size: .85rem; padding: 5px 0;
  border-left: 2px solid transparent; padding-left: .75rem;
  transition: color .2s, border-color .2s;
}
.article-toc a:hover, .article-toc a.active {
  color: var(--accent); border-left-color: var(--accent-2);
}
.article-toc .toc-h3 { padding-left: 1.5rem; font-size: .8rem; }

/* ===== LEGAL PAGE ===== */
.legal-body { max-width: 800px; margin: 0 auto; }
.legal-body h2 {
  font-size: 1.3rem; margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.legal-body h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.legal-body p, .legal-body li { color: var(--text-muted); font-size: .95rem; }
.legal-body ul { margin: .75rem 0; }
.legal-body ul li { margin-bottom: .35rem; padding-left: 1rem; position: relative; }
.legal-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent-2); }
.legal-updated {
  font-size: .82rem; color: var(--text-label);
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.legal-section { margin-bottom: 2rem; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 1rem 0; font-size: .85rem;
  color: var(--text-label); position: relative; z-index: 1;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--accent); }
.breadcrumbs .sep { margin: 0 .4rem; color: var(--text-label); }

/* ===== NEURAL LINE DIVIDER ===== */
.neural-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-3), var(--accent-2), var(--accent), transparent);
  margin: 2rem auto;
  max-width: 300px;
  border-radius: 2px;
  animation: pulse-line 3s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: .3; transform: scaleX(.6); }
  50%       { opacity: 1; transform: scaleX(1); }
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
  position: relative; z-index: 1;
  background: var(--bg-footer);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-col h4 { font-size: .9rem; margin-bottom: 1rem; color: var(--text); }
.footer-col a { display: block; color: var(--text-dim); font-size: .85rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-label); font-size: .8rem;
}
/* Legal links row */
.footer-legal {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
  padding: .75rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 1rem;
}
.footer-legal a { color: var(--text-label); font-size: .78rem; transition: color .2s; }
.footer-legal a:hover { color: var(--accent-2); }
.footer-legal .footer-legal-sep { color: var(--text-label); opacity: .4; font-size: .7rem; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Slide in from left (for hero-split text) */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

/* Slide in from right (for hero-split visual) */
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

/* Staggered children */
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .2s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .3s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .4s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .5s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); transition: background .4s; }
::-webkit-scrollbar-thumb { background: rgba(236,72,153,.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(236,72,153,.6); }

/* ===== RESPONSIVE ===== */

/* Tablet: 768px and below */
@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-mobile);
    flex-direction: column;
    padding: 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 200; transition: background .4s;
    flex: unset; justify-content: unset;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: flex; }
  /* On mobile: theme toggle is outside dropdown, sits between logo and hamburger */
  .theme-toggle { margin-left: auto; margin-right: .25rem; }

  /* Sections */
  .hero { padding: 50px 0 30px; }
  .section,
  .section-alt,
  .section-dark { padding: 50px 0; }

  /* Hero split becomes single column */
  .hero-split { padding: 50px 0 30px; }
  .hero-split .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-split .hero-text { text-align: center; }
  .hero-split .hero-text .hero-buttons { justify-content: center; }
  .hero-split .hero-visual { order: -1; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Article layout: single column */
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; order: -1; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }

  /* Slide-in: disable on mobile */
  .slide-in-left,
  .slide-in-right { transform: translateY(20px); }
  .slide-in-left.visible,
  .slide-in-right.visible { transform: none; }
}

/* Small mobile: 480px and below */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero-split .hero-text h1 { font-size: 1.8rem; }
  .btn-primary, .btn-secondary, .btn-alt { width: 100%; text-align: center; display: block; }

  /* Hide ticker on very small screens */
  .ticker-wrap { display: none; }

  /* Article body reduce font */
  .article-body { font-size: .97rem; }

  /* Trust row center + stack */
  .trust-row { justify-content: flex-start; gap: 1rem; }

  /* Process steps: tighten */
  .process-step { gap: 1rem; }
  .step-num, .step-num-alt { width: 40px; height: 40px; font-size: 1rem; }
  .process-steps::before { left: 20px; }

  /* Pricing compare: shrink cells */
  .pricing-compare-table th,
  .pricing-compare-table td { padding: 9px 10px; font-size: .78rem; }
}

/* Tablet landscape: 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr 260px; gap: 2rem; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== HEADER SCROLL STATE ===== */
header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
  border-bottom-color: var(--border-hover);
}

/* ===== CASE CARDS (homepage & cases.html) ===== */
.case-card { text-align: center; }
.case-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.case-theme {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent-2);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 1rem;
}
.case-name { font-size: 1.1rem; margin-bottom: .25rem; }
.case-name-note { font-size: .78rem; color: var(--text-dim); font-weight: 400; }
.case-metric-main {
  font-size: 2.2rem; font-weight: 800;
  background: var(--stat-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: .5rem 0 .1rem;
  filter: drop-shadow(0 0 8px rgba(244,114,182,.3));
}
.case-metric-label { font-size: .85rem; color: var(--text-dim); margin-bottom: 1rem; }
.case-metrics-row {
  display: flex; justify-content: center; gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}
.case-metric-item { text-align: center; }
.case-metric-value { font-size: 1.25rem; font-weight: 700; color: var(--text-heading); }
.case-metric-sub { font-size: .75rem; color: var(--text-dim); margin-top: 2px; }
.case-note { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ===== NAV ACTIVE LINK ===== */
.nav-links a.active { color: var(--accent); }

/* ===== HERO BADGE PURPLE VARIANT ===== */
.hero-badge-alt {
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.3);
  color: var(--accent-alt);
}

/* ===== NICHE CARD TAGS ===== */
.niche-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.niche-tag {
  font-size: .72rem; font-weight: 600;
  background: rgba(244,114,182,.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--accent-2);
}

/* ===== CASES PAGE FULL CASE ===== */
.case-full { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.case-full-stats { display: flex; flex-direction: column; gap: 1rem; }
.case-stat-item { padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); text-align: center; }
.case-stat-num { font-size: 2rem; font-weight: 800; background: var(--stat-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.case-stat-label { font-size: .8rem; color: var(--text-dim); margin-top: 4px; }
@media (max-width: 768px) {
  .case-full { grid-template-columns: 1fr; }
  .case-full-stats { flex-direction: row; flex-wrap: wrap; }
  .case-stat-item { flex: 1 1 140px; }
}

/* ===== LEGAL PAGE IMPROVEMENTS ===== */
.legal-body h2 { font-size: 1.2rem; }
.legal-body ol { list-style: decimal; padding-left: 1.5rem; color: var(--text-muted); }
.legal-body ol li { padding: 4px 0; font-size: .95rem; }
.legal-body a { color: var(--accent); }

/* ===== BLOG CARD IMAGE GRADIENTS ===== */
.blog-card-img-1 { background: linear-gradient(135deg, rgba(244,114,182,.3), rgba(168,85,247,.2)), #0a0005; }
.blog-card-img-2 { background: linear-gradient(135deg, rgba(168,85,247,.3), rgba(236,72,153,.2)), #0a0005; }
.blog-card-img-3 { background: linear-gradient(135deg, rgba(236,72,153,.3), rgba(219,39,119,.2)), #0a0005; }

/* ===== PRICING CARD FEAT MARK ===== */
.pricing-featured { border-color: var(--border-hover) !important; }
.pricing-featured::before {
  content: 'Популярный';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 18px; border-radius: 20px;
  white-space: nowrap;
}

/* ===== PRICING NAME / PRICE (homepage + pricing page variants) ===== */
.pricing-name,
.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: .5rem;
  letter-spacing: .2px;
  transition: color .4s;
}
.pricing-price,
.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: .75rem 0;
  line-height: 1.1;
  transition: color .4s;
}
.pricing-currency,
.plan-currency {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: .15rem;
  transition: color .4s;
}
.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: .875rem;
  color: var(--text-dim);
  transition: color .4s;
}
.plan-desc {
  font-size: .875rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  transition: color .4s;
}
.plan-features {
  text-align: left;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: .9rem;
  transition: border-color .4s;
}
.plan-features li:last-child { border-bottom: none; }

/* ===== LOGO-WRAP AS LINK ===== */
.logo-wrap span { color: var(--accent); }
