/* ═══════════════════════════════════════════════════════════
   CleanVault — Main Stylesheet  (Redesigned 2026)
   Font: Inter (body) + Clash Display (headings)
   Design: Modern SaaS / App-marketing — NOT generic AI look
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts import (Inter + Clash Display via bunny) ── */
@import url('https://fonts.bunny.net/css?family=inter:300,400,500,600,700,800&display=swap');

:root {
  /* Brand */
  --brand:        #7C5CFC;
  --brand-light:  #A78BFA;
  --brand-dark:   #5B3FD4;
  --brand-glow:   rgba(124,92,252,0.35);

  /* Accent */
  --accent-cyan:  #22D3EE;
  --accent-pink:  #F472B6;
  --accent-green: #34D399;

  /* Neutrals */
  --bg-base:      #07060F;
  --bg-surface:   #0F0D1E;
  --bg-card:      #151228;
  --bg-border:    rgba(124,92,252,0.18);

  /* Text */
  --text-primary:   #F5F3FF;
  --text-secondary: #A8A3C1;
  --text-muted:     #6B6785;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-brand: 0 8px 32px rgba(124,92,252,0.3);
  --shadow-card:  0 2px 24px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ─────────────────────────────────
   TYPOGRAPHY
───────────────────────────────── */
.font-display {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(120deg, #A78BFA 0%, #7C5CFC 45%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(120deg, #F472B6 0%, #A78BFA 50%, #7C5CFC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow text ── */
.text-glow {
  text-shadow: 0 0 40px rgba(124,92,252,0.5);
}

/* ─────────────────────────────────
   NOISE TEXTURE OVERLAY
───────────────────────────────── */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────────
   GRADIENT MESH BACKGROUNDS
───────────────────────────────── */
.mesh-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,92,252,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(34,211,238,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 70%, rgba(244,114,182,0.07) 0%, transparent 60%),
    var(--bg-base);
}

.section-mesh {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124,92,252,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(34,211,238,0.06) 0%, transparent 60%),
    transparent;
}

/* ─────────────────────────────────
   GRID DOT PATTERN
───────────────────────────────── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(124,92,252,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ─────────────────────────────────
   NAVBAR
───────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
}

#navbar.scrolled {
  background: rgba(7,6,15,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(124,92,252,0.12);
  padding: 0.875rem 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover { color: var(--text-primary); }

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: var(--radius-full);
}

/* ─────────────────────────────────
   BUTTONS
───────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-brand);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,92,252,0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--brand-light);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-ghost:hover {
  color: #fff;
  gap: 10px;
}

/* App Store button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.22s ease;
}

.btn-appstore:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* ─────────────────────────────────
   BADGE / CHIP
───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.25);
  color: #34D399;
}

.badge-cyan {
  background: rgba(34,211,238,0.1);
  border-color: rgba(34,211,238,0.25);
  color: #22D3EE;
}

/* ─────────────────────────────────
   HERO SECTION
───────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

/* Animated gradient bg */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(124,92,252,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 40%, rgba(34,211,238,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 5% 80%, rgba(244,114,182,0.08) 0%, transparent 55%),
    var(--bg-base);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124,92,252,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
  z-index: 0;
}

.hero-section > * { position: relative; z-index: 1; }

/* ─────────────────────────────────
   PHONE MOCKUP
───────────────────────────────── */
.phone-wrap {
  position: relative;
  display: inline-block;
}

.phone-mockup {
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(124,92,252,0.2),
    0 0 100px rgba(124,92,252,0.2);
  animation: phone-float 5s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-16px) rotate(1deg); }
}

/* Floating pill badges */
.float-pill {
  position: absolute;
  background: rgba(15,13,30,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: var(--radius-lg);
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.float-pill-left {
  left: -4rem;
  top: 28%;
  animation: pill-float-a 4s ease-in-out infinite;
}

.float-pill-right {
  right: -4rem;
  top: 58%;
  animation: pill-float-b 4.5s ease-in-out infinite 0.5s;
}

@keyframes pill-float-a {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes pill-float-b {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ─────────────────────────────────
   CARDS
───────────────────────────────── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,252,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(124,92,252,0.38);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(124,92,252,0.12), 0 4px 12px rgba(0,0,0,0.3);
}

.feature-card:hover::before { opacity: 1; }

/* Icon wrapper */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(124,92,252,0.15);
  border: 1px solid rgba(124,92,252,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────
   STAT CARDS
───────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.5;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─────────────────────────────────
   SCREENSHOTS STRIP
───────────────────────────────── */
.screenshots-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1.5rem 0 2rem;
  cursor: grab;
}

.screenshots-track:active { cursor: grabbing; }
.screenshots-track::-webkit-scrollbar { display: none; }

.screenshot-item {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: start;
}

.screenshot-item img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(124,92,252,0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 24px rgba(124,92,252,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.screenshot-item img:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(124,92,252,0.3);
}

/* ─────────────────────────────────
   SECTION HEADER
───────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─────────────────────────────────
   DIVIDER
───────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,252,0.25), transparent);
  margin: 0 2rem;
}

/* ─────────────────────────────────
   FAQ
───────────────────────────────── */
.faq-item {
  border: 1px solid rgba(124,92,252,0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
  margin-bottom: 0.75rem;
}

.faq-item.open {
  border-color: rgba(124,92,252,0.4);
  box-shadow: 0 4px 20px rgba(124,92,252,0.08);
}

.faq-question {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(124,92,252,0.04);
  transition: background 0.2s ease;
  user-select: none;
}

.faq-question:hover { background: rgba(124,92,252,0.09); }

.faq-question span {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.faq-answer.open {
  max-height: 500px;
  padding: 1.25rem 1.5rem;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(124,92,252,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-light);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(124,92,252,0.15);
}

/* ─────────────────────────────────
   BLOG CARDS
───────────────────────────────── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.28s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  border-color: rgba(124,92,252,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(124,92,252,0.12);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #151228 0%, #1e1840 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(7,6,15,0.8) 100%);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─────────────────────────────────
   PROSE (blog post body)
───────────────────────────────── */
.prose-dark {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1.0625rem;
}

.prose-dark h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(124,92,252,0.15);
}

.prose-dark h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.prose-dark p { margin-bottom: 1.375rem; }

.prose-dark ul, .prose-dark ol {
  padding-left: 1.5rem;
  margin-bottom: 1.375rem;
}

.prose-dark ul { list-style: none; padding-left: 0; }
.prose-dark ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.625rem;
}
.prose-dark ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-light);
  font-weight: 600;
}

.prose-dark ol { list-style: decimal; }
.prose-dark ol li { margin-bottom: 0.625rem; }

.prose-dark strong { color: var(--text-primary); font-weight: 600; }

.prose-dark a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose-dark a:hover { color: #fff; }

.prose-dark blockquote {
  border-left: 3px solid var(--brand);
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 2rem 0;
  background: rgba(124,92,252,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose-dark .highlight-box {
  background: rgba(124,92,252,0.08);
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: var(--text-secondary);
}

.prose-dark .highlight-box strong { color: var(--brand-light); }

/* ─────────────────────────────────
   STEP / HOW IT WORKS
───────────────────────────────── */
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(124,92,252,0.15);
  border: 2px solid rgba(124,92,252,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-light);
  flex-shrink: 0;
}

/* ─────────────────────────────────
   TESTIMONIAL
───────────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.stars { color: #FBBF24; letter-spacing: 1px; }

/* ─────────────────────────────────
   INTERNAL LINK STRIP
───────────────────────────────── */
.quick-links-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.5rem 0;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(124,92,252,0.2);
  background: rgba(124,92,252,0.06);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-link:hover {
  background: rgba(124,92,252,0.15);
  border-color: rgba(124,92,252,0.4);
  color: var(--text-primary);
}

/* ─────────────────────────────────
   RELATED POSTS SIDEBAR
───────────────────────────────── */
.related-post-link {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124,92,252,0.12);
  background: rgba(124,92,252,0.04);
  text-decoration: none;
  transition: all 0.22s ease;
  margin-bottom: 0.625rem;
}

.related-post-link:hover {
  border-color: rgba(124,92,252,0.35);
  background: rgba(124,92,252,0.09);
  transform: translateX(4px);
}

.related-post-link h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.related-post-link span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────
   COMPARISON TABLE
───────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  font-size: 0.9375rem;
}

.comparison-table th {
  background: rgba(124,92,252,0.12);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(124,92,252,0.15);
}

.comparison-table th.highlight {
  background: rgba(124,92,252,0.22);
  color: var(--brand-light);
}

.comparison-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─────────────────────────────────
   CTA SECTION
───────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(124,92,252,0.2) 0%, transparent 70%),
    var(--bg-surface);
  border-top: 1px solid rgba(124,92,252,0.12);
  border-bottom: 1px solid rgba(124,92,252,0.12);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ─────────────────────────────────
   STICKY MOBILE CTA
───────────────────────────────── */
#sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(15,13,30,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(124,92,252,0.2);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#sticky-cta.show { transform: translateY(0); }

/* ─────────────────────────────────
   ANIMATIONS
───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ─────────────────────────────────
   GLOW ORBS
───────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,92,252,0.22) 0%, transparent 70%);
}

.orb-cyan {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 70%);
}

.orb-pink {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244,114,182,0.1) 0%, transparent 70%);
}

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer-link:hover { color: var(--text-primary); }

/* ─────────────────────────────────
   RESPONSIVE UTILITIES
───────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 6rem 0 4rem; min-height: auto; }
  .phone-mockup { border-radius: 34px; }
  .float-pill-left { left: -1rem; }
  .float-pill-right { right: -1rem; }
  .screenshot-item { width: 175px; }
  .prose-dark h2 { font-size: 1.25rem; }
  .section-header h2 { font-size: 1.875rem; }
}

@media (max-width: 480px) {
  .float-pill { display: none; }
  .screenshot-item { width: 155px; }
  .btn-primary-lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
}

/* ─────────────────────────────────
   PILLAR / FEATURE PAGE NAV
───────────────────────────────── */
.pillar-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.pillar-nav-item {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(124,92,252,0.2);
  background: rgba(124,92,252,0.06);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pillar-nav-item:hover,
.pillar-nav-item.active {
  background: rgba(124,92,252,0.18);
  border-color: rgba(124,92,252,0.45);
  color: var(--text-primary);
}

/* ─────────────────────────────────
   BREADCRUMB
───────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover { color: var(--brand-light); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--text-secondary); }

/* ─────────────────────────────────
   PROGRESS / TABLE OF CONTENTS
───────────────────────────────── */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-light);
  margin-bottom: 0.875rem;
}

.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.toc ol li {
  margin-bottom: 0.375rem;
}

.toc ol li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc ol li a:hover { color: var(--brand-light); }

/* ─────────────────────────────────
   READING PROGRESS BAR
───────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent-cyan));
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}
