﻿/* ============================================
   BISMUTH  Premium Visual Enhancement Layer v2
   Glassmorphism, Particle FX, Spotlight Cards,
   Aurora Hero, Animated Gradients, Magnetic UI
   ============================================ */

/* === KEYFRAMES === */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(2deg); }
  66% { transform: translateY(8px) rotate(-1deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-24px) rotate(3deg) scale(1.05); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(37, 99, 235, 0.3); }
  50% { border-color: rgba(99, 102, 241, 0.6); }
}

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(18px) rotateX(-30deg); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}

@keyframes rippleOut {
  from { transform: scale(0); opacity: 0.5; }
  to   { transform: scale(1); opacity: 0; }
}

@keyframes auroraFlow {
  0%   { transform: translateX(-15%) translateY(-5%) rotate(-3deg); }
  50%  { transform: translateX(15%) translateY(5%) rotate(3deg); }
  100% { transform: translateX(-15%) translateY(-5%) rotate(-3deg); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.15), 0 0 60px rgba(59,130,246,0.08); }
  50%      { box-shadow: 0 0 30px rgba(99,102,241,0.25), 0 0 80px rgba(59,130,246,0.15); }
}

@keyframes progressShimmer {
  0% { left: -40%; }
  100% { left: 140%; }
}

@keyframes subtleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(5deg); }
  75% { transform: translateY(6px) rotate(-3deg); }
}

@keyframes backToTopPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(99,102,241,0.3); }
  50% { box-shadow: 0 4px 30px rgba(99,102,241,0.5), 0 0 40px rgba(99,102,241,0.15); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.15) rotate(-5deg); }
  60% { transform: scale(1.05) rotate(2deg); }
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes morphBlob {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg); }
  25% { border-radius: 73% 27% 35% 65% / 55% 70% 30% 45%; transform: rotate(5deg); }
  50% { border-radius: 28% 72% 55% 45% / 65% 35% 70% 30%; transform: rotate(-3deg); }
  75% { border-radius: 60% 40% 30% 70% / 40% 60% 55% 45%; transform: rotate(4deg); }
}

@keyframes confettiPop {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--cx, 30px), var(--cy, -80px)) rotate(var(--cr, 360deg)); opacity: 0; }
}

@keyframes textScrambleIn {
  0% { opacity: 0; transform: translateY(4px); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pageReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientTextFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes navIndicatorSlide {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes borderTrail {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.3); }
}

@keyframes svgStrokeDraw {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

@keyframes letterStagger {
  from { opacity: 0; transform: translateY(15px) scale(0.9); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(37,99,235,0.3); }
  50% { transform: scale(1.015); box-shadow: 0 6px 22px rgba(37,99,235,0.38), 0 0 35px rgba(99,102,241,0.1); }
}

@keyframes rainbowBorder {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@keyframes welcomeSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes welcomeFade {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-15px); }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes flipDigit {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(-90deg); }
  51% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

@keyframes glitchText {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes gradientOrb {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4, #2563eb);
  background-size: 300% 100%;
  animation: gradientShift 4s ease infinite;
  z-index: 10000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* === PARTICLE CANVAS === */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === HERO SECTION  AURORA + PREMIUM === */
.home-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 25%, #f0f9ff 50%, #ede9fe 75%, #eff6ff 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Aurora light overlay */
.home-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(99,102,241,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 30% 70%, rgba(59,130,246,0.06) 0%, transparent 50%),
              radial-gradient(ellipse 70% 35% at 70% 50%, rgba(168,85,247,0.05) 0%, transparent 50%);
  animation: auroraFlow 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* Noise texture overlay */
.home-hero::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='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.home-hero .hero-content {
  position: relative;
  z-index: 2;
}

/* Floating orbs  enhanced */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  will-change: transform;
  transition: transform 0.3s ease-out;
}

.hero-orb-1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, rgba(59,130,246,0.08) 50%, transparent 70%);
  top: -5%; left: -5%;
  animation: floatSlow 18s ease-in-out infinite, pulse 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(129,140,248,0.06) 50%, transparent 70%);
  bottom: -8%; right: -3%;
  animation: floatSlow 22s ease-in-out infinite reverse, pulse 10s ease-in-out infinite 2s;
}

.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, rgba(99,102,241,0.05) 50%, transparent 70%);
  top: 30%; right: 15%;
  animation: floatSlow 14s ease-in-out infinite 1s;
}

/* Geometric decoration */
.hero-geo {
  position: absolute;
  z-index: 0;
  opacity: 0.12;
  will-change: transform;
  transition: transform 0.3s ease-out;
}

.hero-geo-1 {
  width: 60px; height: 60px;
  border: 2px solid #6366f1;
  border-radius: 12px;
  top: 18%; left: 8%;
  animation: float 12s ease-in-out infinite;
}

.hero-geo-2 {
  width: 40px; height: 40px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  top: 12%; right: 12%;
  animation: float 16s ease-in-out infinite reverse;
}

.hero-geo-3 {
  width: 50px; height: 50px;
  border: 2px solid #8b5cf6;
  border-radius: 8px;
  bottom: 20%; left: 15%;
  animation: float 14s ease-in-out infinite 2s;
}

.hero-geo-4 {
  width: 35px; height: 35px;
  border: 2px solid #06b6d4;
  transform: rotate(45deg);
  bottom: 15%; right: 10%;
  animation: float 18s ease-in-out infinite 1s;
}

/* Hero text  shimmer + word reveal */
.home-hero .hero-content h1 {
  perspective: 600px;
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  animation: wordReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Generic hero p animation removed — v6 uses per-element staggered entrance
   (.hero-subtitle, .hero-typing-line, .hero-cta, .hero-trust) */

/* Hero CTA buttons */
.hero-cta .btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3), 0 0 0 0 rgba(99,102,241,0);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.hero-cta .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(37,99,235,0.4), 0 0 30px rgba(99,102,241,0.15);
}

.hero-cta .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hero-cta .btn-primary:hover::before { opacity: 1; }

.hero-cta .btn-secondary {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(99,102,241,0.2);
  transition: all 0.3s ease;
}

.hero-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12);
}

/* Trust badges  frosted glass */
.hero-badges .badge {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.hero-badges .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.8);
}

/* === STATS RIBBON === */
.stats-ribbon {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #1e3a5f);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.stats-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 50%, rgba(6,182,212,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-ribbon .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #93c5fd, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* === WAVE DIVIDERS === */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: -1px 0;
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.wave-divider.wave-visible {
  opacity: 1;
  transform: scaleX(1);
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-divider.flip svg {
  transform: rotate(180deg);
}

/* === SECTION TITLES === */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  margin: 0.75rem auto 0;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-title:hover::after {
  width: 100px;
}

/* === TOOL CARDS  SPOTLIGHT + GLOW === */
.tool-card.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  will-change: transform;
}

/* Gradient border trick */
.tool-card.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(6,182,212,0.2), rgba(168,85,247,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Cursor spotlight */
.tool-card.card::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%);
  left: var(--spotlight-x, 50%);
  top: var(--spotlight-y, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.tool-card.card:hover::before { opacity: 1; }
.tool-card.card:hover::after { opacity: 1; }

.tool-card.card:hover {
  box-shadow: 0 20px 50px rgba(37,99,235,0.1), 0 0 0 1px rgba(99,102,241,0.08);
}

/* Featured card glow */
.tool-card.featured {
  animation: glowPulse 4s ease-in-out infinite;
}

.tool-card .card-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.tool-card:hover .card-icon {
  transform: scale(1.12) rotate(-3deg);
}

.tool-card h3 {
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.tool-card:hover h3 {
  color: #4f46e5;
}

.tool-card .card-arrow {
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 1;
}

.tool-card:hover .card-arrow {
  transform: translateX(4px);
  color: #4f46e5;
}

/* === HOW IT WORKS CARDS === */
.home-how {
  position: relative;
}

.home-how::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(6,182,212,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.how-step {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Spotlight on how-step cards too */
.how-step::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  left: var(--spotlight-x, 50%);
  top: var(--spotlight-y, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.how-step:hover::after { opacity: 1; }

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

/* Desktop connection line */
@media (min-width: 769px) {
  .how-steps {
    position: relative;
  }
  .how-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.15), rgba(6,182,212,0.15), transparent);
    z-index: 0;
  }
  .how-step { z-index: 1; }
}

.how-step .step-num {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(99,102,241,0.2);
}

/* === FEATURES SECTION === */
.feature-item {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.feature-item:hover {
  background: rgba(99,102,241,0.03);
  border-color: rgba(99,102,241,0.12) !important;
  transform: translateX(5px);
}

.feature-item .feature-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(59,130,246,0.08));
}

/* === GUIDE CARDS === */
.guide-card.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Left accent bar on hover */
.guide-card.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #6366f1, #3b82f6, #06b6d4);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

/* Spotlight on guide cards */
.guide-card.card::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%);
  left: var(--spotlight-x, 50%);
  top: var(--spotlight-y, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.guide-card.card:hover::before { transform: scaleY(1); }
.guide-card.card:hover::after { opacity: 1; }

.guide-card.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* === CTA BANNERS === */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(37,99,235,0.15);
}

/* === HEADER === */
.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header .logo:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #2563eb);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Nav link underline animation */
.site-header .nav-link {
  position: relative;
}

.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #3b82f6);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.site-header .nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Theme toggle glow */
.theme-toggle {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(15deg);
  box-shadow: 0 0 15px rgba(99,102,241,0.2);
}

/* Search focus */
.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 4px 12px rgba(0,0,0,0.04);
}

/* === FOOTER === */
.site-footer {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #6366f1, #3b82f6, #06b6d4, transparent) 1;
}

.site-footer a {
  position: relative;
  transition: color 0.2s ease;
}

.site-footer a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.site-footer a:hover::after { width: 100%; }

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.stagger-children > *:nth-child(1)  { transition-delay: 0.04s; }
.stagger-children > *:nth-child(2)  { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3)  { transition-delay: 0.12s; }
.stagger-children > *:nth-child(4)  { transition-delay: 0.16s; }
.stagger-children > *:nth-child(5)  { transition-delay: 0.20s; }
.stagger-children > *:nth-child(6)  { transition-delay: 0.24s; }
.stagger-children > *:nth-child(7)  { transition-delay: 0.28s; }
.stagger-children > *:nth-child(8)  { transition-delay: 0.32s; }
.stagger-children > *:nth-child(9)  { transition-delay: 0.36s; }
.stagger-children > *:nth-child(10) { transition-delay: 0.40s; }
.stagger-children > *:nth-child(11) { transition-delay: 0.44s; }
.stagger-children > *:nth-child(12) { transition-delay: 0.48s; }
.stagger-children > *:nth-child(13) { transition-delay: 0.52s; }
.stagger-children > *:nth-child(14) { transition-delay: 0.56s; }
.stagger-children > *:nth-child(15) { transition-delay: 0.60s; }

/* === BUTTON RIPPLE === */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
}

/* === ENHANCED BUTTONS === */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* === GLASS UTILITY === */
.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary, #f8fafc);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #6366f1, #3b82f6);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #4f46e5, #2563eb);
}

/* Text selection */
::selection {
  background: rgba(99,102,241,0.15);
  color: inherit;
}

/* Focus ring */
*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* === PAGE-HERO (subpages) === */
.page-hero {
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* === TOOLTIP/TOAST GLASSMORPHISM === */
.tooltip, .toast {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* === GPA DISPLAY GLOW === */
.gpa-number {
  position: relative;
}

.gpa-number::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

/* === TABLE HOVER === */
.data-table tbody tr {
  transition: background 0.2s ease, transform 0.2s ease;
}

.data-table tbody tr:hover {
  transform: translateX(2px);
}

/* === FLOATING HERO BADGES === */
.hero-floating-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-badge {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.25;
  animation: floatBadge 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.float-badge-1 { top: 15%; left: 5%; animation-delay: 0s; }
.float-badge-2 { top: 8%; right: 8%; animation-delay: 1.5s; font-size: 1.3rem; }
.float-badge-3 { bottom: 18%; left: 12%; animation-delay: 3s; font-size: 1.4rem; }
.float-badge-4 { bottom: 12%; right: 5%; animation-delay: 0.8s; font-size: 1.2rem; }

/* === MARQUEE TICKER === */
.marquee-bar {
  background: linear-gradient(90deg, #f0f0ff, #e8e0ff, #e0f0ff, #f0f0ff);
  border-top: 1px solid rgba(99,102,241,0.08);
  border-bottom: 1px solid rgba(99,102,241,0.08);
  overflow: hidden;
  padding: 0.6rem 0;
  position: relative;
}

.marquee-bar::before,
.marquee-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-bar::before {
  left: 0;
  background: linear-gradient(90deg, #f0f0ff, transparent);
}

.marquee-bar::after {
  right: 0;
  background: linear-gradient(270deg, #f0f0ff, transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4338ca;
  letter-spacing: 0.01em;
}

/* === TESTIMONIALS === */
.home-testimonials {
  padding: var(--space-16, 4rem) 0;
  position: relative;
}

.home-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6, 1.5rem);
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-primary, #e2e8f0);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -5px;
  right: 15px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(99,102,241,0.06);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(99,102,241,0.08);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary, #64748b);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary, #1e293b);
}

.testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-tertiary, #94a3b8);
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  animation: backToTopPulse 3s ease-in-out infinite;
  animation-play-state: paused;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation-play-state: running;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}

/* === ENHANCED TOOL ICONS === */
.tool-card:hover .tool-icon {
  animation: iconBounce 0.6s ease;
}

.tool-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.tool-card:hover .tool-icon {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* === GRADIENT SECTION TITLES === */
.section-title {
  background: linear-gradient(135deg, var(--text-primary, #1e293b), #4f46e5, var(--text-primary, #1e293b));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title:hover::after {
  animation: shimmer 2s linear infinite;
}

/* === ENHANCED NEW BADGE === */
.tool-badge {
  position: relative;
  overflow: hidden;
}

.tool-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  animation: shimmer 3s linear infinite;
}

/* === SEPARATOR DOTS === */
.separator-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1.5rem 0;
}

.separator-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  opacity: 0.3;
}

.separator-dots span:nth-child(2) {
  opacity: 0.5;
  width: 8px;
  height: 8px;
}

.separator-dots span:nth-child(3) {
  opacity: 0.3;
}

/* === PAGE ENTRANCE ANIMATION === */
body.page-loading {
  opacity: 0;
}

body.page-loaded {
  animation: pageReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-loaded .home-hero .hero-content {
  animation: pageReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* === TYPING TEXT EFFECT === */
.hero-typing-wrapper {
  display: inline;
}

.hero-typing-line {
  font-size: var(--font-size-lg, 1.125rem);
  color: var(--text-secondary, #64748b);
  text-align: center;
  margin-bottom: var(--space-6, 1.5rem);
  min-height: 1.7em;
}

.hero-typing-text {
  color: var(--brand-primary, #2563eb);
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.hero-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #6366f1;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blinkCursor 0.75s step-end infinite;
}

/* === SCROLLSPY ACTIVE NAV === */
.header-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.header-nav a.nav-active {
  color: var(--brand-primary, #2563eb);
}

.header-nav a.nav-active::after {
  width: 100%;
  left: 0;
  background: linear-gradient(90deg, #6366f1, #3b82f6);
  animation: navIndicatorSlide 0.3s ease forwards;
}

/* === CURSOR GLOW FOLLOWER === */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.035) 0%, rgba(59,130,246,0.015) 30%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  will-change: left, top;
}

.cursor-glow.active {
  opacity: 1;
}

/* === MORPHING BLOB BACKGROUNDS === */
.section-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.7;
  will-change: border-radius, transform;
}

.section-blob-1 {
  width: 350px;
  height: 350px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, rgba(59,130,246,0.03) 50%, transparent 70%);
  animation: morphBlob 18s ease-in-out infinite;
}

.section-blob-2 {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(6,182,212,0.05) 0%, rgba(99,102,241,0.03) 50%, transparent 70%);
  animation: morphBlob 22s ease-in-out infinite reverse;
}

/* === CONFETTI PIECES === */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.confetti-piece {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  animation: confettiPop 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
}

/* === TEXT SCRAMBLE === */
.scramble-char {
  display: inline-block;
  animation: textScrambleIn 0.25s ease forwards;
}

/* === GRADIENT FLOWING TEXT (Hero H1) === */
.home-hero .hero-content h1 .word-reveal {
  background: linear-gradient(135deg, var(--text-primary, #1e293b), #4f46e5, #2563eb, #7c3aed, var(--text-primary, #1e293b));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wordReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, gradientTextFlow 6s ease infinite 1s;
}

/* === ENHANCED STAT ITEMS === */
.stat-item {
  transition: transform 0.3s ease;
  cursor: default;
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-item:hover .stat-number {
  filter: brightness(1.2);
  transition: filter 0.3s ease;
}

/* === FEATURE SECTION ACCENT LINE === */
.home-features {
  position: relative;
}

.home-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #3b82f6, #06b6d4, transparent);
  border-radius: 1px;
}

/* === ENHANCED CTA BANNER HOVER === */
.cta-banner .btn {
  position: relative;
  overflow: hidden;
}

.cta-banner .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.cta-banner .btn:hover::after {
  width: 300px;
  height: 300px;
}

/* === GUIDE CARD ENHANCED === */
.guide-card h3 {
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.guide-card:hover h3 {
  color: #4f46e5;
  letter-spacing: 0.01em;
}

/* === TESTIMONIAL ENHANCED QUOTE === */
.testimonial-text {
  position: relative;
}

/* === TOOL CARD TITLE SCRAMBLE READY === */
.tool-card h3 {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* === AMBIENT GRADIENT BORDER ON SECTIONS === */
.home-how::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.12), rgba(59,130,246,0.12), transparent);
  pointer-events: none;
}

.home-testimonials::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.12), rgba(59,130,246,0.12), transparent);
  pointer-events: none;
}

/* === DOT GRID BACKGROUND PATTERN === */
.dot-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dot-grid-bg::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(circle, rgba(99,102,241,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* === RAINBOW BORDER TRAIL ON FEATURED CARD (uses ::before to avoid spotlight ::after conflict) === */
.tool-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    #6366f1, #3b82f6, #06b6d4, #8b5cf6, #ec4899, #f59e0b, #6366f1
  );
  z-index: -1;
  animation: borderTrail 4s linear infinite;
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-card.featured:hover::before {
  opacity: 0.6;
}

/* === SVG ICON STROKE DRAW === */
.tool-icon svg {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card.visible .tool-icon svg,
.tool-card.card .tool-icon svg {
  stroke-dashoffset: 0;
}

.reveal.visible .tool-icon svg {
  animation: svgStrokeDraw 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === LETTER STAGGER ON SECTION TITLES === */
.section-title .letter-stagger {
  display: inline-block;
  opacity: 0;
  animation: letterStagger 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  /* Inherit gradient from parent so letters stay gradient colored */
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BREATHING CTA REMOVED (v8 cleanup — over-the-top) === */

/* === WELCOME TOAST === */
.welcome-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  z-index: 10001;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(99,102,241,0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  max-width: 400px;
}

.welcome-toast.show {
  animation: welcomeSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

.welcome-toast.hide {
  animation: welcomeFade 0.4s ease forwards;
}

.welcome-toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.welcome-toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0 0 0.5rem;
  transition: color 0.2s ease;
}

.welcome-toast-close:hover {
  color: white;
}

/* === PULSE RING ON STEP NUMBERS === */
.how-step-num {
  position: relative;
}

.how-step-num::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.3);
  animation: pulseRing 2.5s ease-out infinite;
  pointer-events: none;
}

.how-step:nth-child(2) .how-step-num::before {
  animation-delay: 0.5s;
}

.how-step:nth-child(3) .how-step-num::before {
  animation-delay: 1s;
}

/* === GRADIENT ORB ON HEADER === */
.site-header.scrolled::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.04) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: gradientOrb 20s linear infinite;
}

/* === SPARKLE DOTS ON HERO === */
.hero-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-sparkle-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border-radius: 50%;
  animation: sparkle 3s ease-in-out infinite;
}

.hero-sparkle-dot:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-sparkle-dot:nth-child(2) { top: 35%; right: 15%; animation-delay: 0.8s; }
.hero-sparkle-dot:nth-child(3) { top: 60%; left: 25%; animation-delay: 1.6s; }
.hero-sparkle-dot:nth-child(4) { top: 15%; right: 25%; animation-delay: 2.4s; }
.hero-sparkle-dot:nth-child(5) { bottom: 25%; left: 8%; animation-delay: 1.2s; }
.hero-sparkle-dot:nth-child(6) { bottom: 20%; right: 10%; animation-delay: 2s; }

/* === GLITCH TEXT REMOVED (v8 cleanup) === */

/* === FEATURE ICON PULSE RING === */
.feature-icon {
  position: relative;
}

.feature-item:hover .feature-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(99,102,241,0.2);
  animation: pulseRing 1.5s ease-out;
  pointer-events: none;
}

/* === SCROLL PERCENTAGE INDICATOR === */
.scroll-pct {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #6366f1;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.scroll-pct.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-pct svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.scroll-pct-circle {
  fill: none;
  stroke: rgba(99,102,241,0.15);
  stroke-width: 3;
}

.scroll-pct-fill {
  fill: none;
  stroke: #6366f1;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s linear;
}

/* === ENHANCED TESTIMONIALS GLOW QUOTE === */
.testimonial-card:hover::before {
  color: rgba(99,102,241,0.12);
  transition: color 0.3s ease;
}

/* === PARALLAX SECTION DEPTH === */
.parallax-section {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* === HOVER GRADIENT UNDERLINE ON SECTION DESC === */
.section-desc {
  position: relative;
  display: block;
}

.section-desc::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin: 6px auto 0;
  background: linear-gradient(90deg, #6366f1, #3b82f6, #06b6d4);
  transition: width 0.5s ease;
  border-radius: 1px;
}

.section-desc:hover::after {
  width: 120px;
}

/* === ENHANCED HOW-STEP CONNECTOR === */
@media (min-width: 769px) {
  .how-step::before {
    content: '';
    position: absolute;
    top: 26px;
    right: -30px;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .how-step:not(:last-child):hover::before {
    opacity: 1;
  }
}

/* === STAT COUNTER FLIP DIGIT STYLING === */
.count-up {
  display: inline-block;
  perspective: 300px;
}

.count-up.counting {
  animation: flipDigit 0.2s ease;
}

/* === ANIMATED FAQ-STYLE HOVER ON POLICY CARDS === */
.home-policies .guide-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-policies .guide-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(99,102,241,0.1);
}

.home-policies .guide-card:hover h3 {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === FOOTER SOCIAL SHIMMER === */
.site-footer .footer-brand .brand-name {
  transition: all 0.3s ease;
}

.site-footer .footer-brand .brand-name:hover {
  background: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* === V6: TOOL CARD COLOR-CODED HOVER SHADOWS === */
.tool-card.card:hover {
  --glow-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 20px 50px var(--glow-color), 0 0 0 1px rgba(99,102,241,0.08);
}

.tool-card.featured:hover {
  --glow-color: rgba(37, 99, 235, 0.18);
}

/* === V6: HERO CTA SHIMMER SWEEP === */
@keyframes ctaShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hero-cta .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: ctaShimmer 3.5s ease-in-out infinite;
  animation-delay: 3s;
  pointer-events: none;
  z-index: 1;
}

/* === V6: MARQUEE PAUSE ON HOVER === */
.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track {
  transition: animation-play-state 0.3s ease;
}

/* === V6: HOW-STEP ANIMATED CONNECTOR (desktop) === */
@keyframes connectorDraw {
  from { width: 0; }
  to { width: 60%; }
}

/* === V6: FOOTER COLUMNS STAGGER REVEAL === */
.footer-grid .footer-col {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-grid.footer-visible .footer-col:nth-child(1) { transition-delay: 0s; }
.footer-grid.footer-visible .footer-col:nth-child(2) { transition-delay: 0.1s; }
.footer-grid.footer-visible .footer-col:nth-child(3) { transition-delay: 0.2s; }
.footer-grid.footer-visible .footer-col:nth-child(4) { transition-delay: 0.3s; }

.footer-grid.footer-visible .footer-col {
  opacity: 1;
  transform: translateY(0);
}

.footer-grid .footer-brand {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-grid.footer-visible .footer-brand {
  opacity: 1;
  transform: translateY(0);
}

/* === V6: TESTIMONIAL HOVER GLOW RING === */
@keyframes testimonialGlow {
  0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(99,102,241,0.08);
  animation: testimonialGlow 1.5s ease-out;
}

/* === V6: GRADIENT MESH SECTION BACKGROUNDS === */
.home-tools::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(99,102,241,0.04) 0%, transparent 100%),
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(6,182,212,0.03) 0%, transparent 100%),
    radial-gradient(ellipse 35% 30% at 50% 50%, rgba(168,85,247,0.02) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.home-tools {
  position: relative;
}

.home-tools > .container {
  position: relative;
  z-index: 1;
}

/* === V6: STAT RIBBON GLOW ON SCROLL === */
@keyframes statGlow {
  0% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 20px rgba(147,197,253,0.4); }
  100% { text-shadow: 0 0 0 transparent; }
}

.stat-item.stat-glowing .stat-number {
  animation: statGlow 2s ease-out;
}

/* === V6: HERO FLOATING BADGES TOOLTIP === */
.float-badge {
  cursor: default;
}

.float-badge::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(15,10,46,0.85);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.float-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* === V6: SECTION ENTRANCE STAGGER === */
@keyframes sectionSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === V6: ENHANCED GUIDE CARD ICON STRIPE === */
.guide-card.card::before {
  width: 4px;
  background: linear-gradient(to bottom, #6366f1, #3b82f6, #06b6d4);
}

/* === V6: TOOL CARD HOVER ARROW GLOW === */
.tool-card:hover .card-arrow {
  transform: translateX(4px);
  color: #4f46e5;
  text-shadow: 0 0 8px rgba(99,102,241,0.3);
}

/* === V6: STATS RIBBON SEPARATOR DOTS === */
.stat-item + .stat-item {
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: rgba(147,197,253,0.3);
  border-radius: 50%;
}

/* === V6: ENHANCED SEARCH HOVER === */
.header-search {
  transition: all 0.3s ease;
}

.header-search:focus-within {
  transform: scale(1.02);
}

.header-search input {
  transition: all 0.3s ease;
}

/* === V6: TOOL GRID FADE BORDER ON SCROLL === */
.tools-grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.08), transparent);
  pointer-events: none;
}

.tools-grid {
  position: relative;
}

/* === V6: ENHANCED TESTIMONIAL STARS === */
.testimonial-stars {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* === V6: BETTER HERO PARAGRAPH ENTRANCE === */
.home-hero .hero-content .hero-subtitle {
  animation: slideInUp 0.6s ease 0.5s both;
}

.home-hero .hero-content .hero-typing-line {
  animation: slideInUp 0.6s ease 0.7s both;
}

.home-hero .hero-content .hero-cta {
  animation: slideInUp 0.6s ease 0.9s both;
}

.home-hero .hero-content .hero-trust {
  animation: slideInUp 0.6s ease 1.1s both;
}

/* === V6: FEATURED CARD "MOST POPULAR" ENHANCED === */
.tool-badge.badge-info {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  padding: 4px 12px;
  border-radius: 20px;
}

/* === V6: POLICY CARDS NUMBERED LABELS === */
.home-policies .guides-grid > a {
  position: relative;
  counter-increment: policy-counter;
}

.home-policies .guides-grid {
  counter-reset: policy-counter;
}

.home-policies .guides-grid > a::after {
  content: counter(policy-counter, decimal-leading-zero);
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: 900;
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
  color: var(--brand-primary, #2563eb);
}

/* ============================================
   V7: VISUAL POLISH PASS
   ============================================ */

/* === V7: SMOOTHER TOOL CARD TRANSITIONS === */
.tool-card.card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.tool-card.card:hover {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

/* === V7: HERO SUBTITLE BETTER READABILITY === */
.home-hero .hero-content .hero-subtitle {
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* === V7: SECTION TITLE ::after UNDERLINE SMOOTHER === */
.section-title::after {
  border-radius: 2px;
  transition: width 0.5s ease;
}

.section-title:hover::after {
  width: 80px;
}

/* === V7: HOW-STEP CARDS CONSISTENT SPACING === */
.how-step {
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.how-step:hover {
  border-color: rgba(99,102,241,0.2);
}

/* === V7: FEATURE ITEMS BETTER ALIGNMENT === */
.feature-item {
  padding: 1.25rem;
  border-radius: 12px;
  transition: background 0.3s ease, transform 0.3s ease;
  align-items: flex-start;
}

.feature-item:hover {
  background: rgba(99,102,241,0.03);
  transform: translateX(4px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37,99,235,0.06);
  flex-shrink: 0;
}

/* === V7: TESTIMONIAL CARD REFINED HOVER === */
.testimonial-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99,102,241,0.06);
}

/* === V7: GUIDE CARDS LEFT ACCENT MORE VISIBLE === */
.guide-card.card::before {
  transition: height 0.4s ease, opacity 0.4s ease;
  height: 0;
  opacity: 0;
}

.guide-card.card:hover::before {
  height: 100%;
  opacity: 1;
}

/* === V7: CTA BANNER REFINED DESIGN === */
.cta-banner {
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(99,102,241,0.12);
}

/* === V7: MARQUEE SMOOTHER FLOW === */
.marquee-track span {
  transition: opacity 0.3s ease;
}

.marquee-bar:hover .marquee-track span {
  opacity: 0.7;
}

/* === V7: STATS RIBBON LABEL REFINEMENT === */
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* === V7: HERO TRUST ITEMS SUBTLE HOVER === */
.hero-trust span {
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: default;
}

.hero-trust span:hover {
  transform: translateY(-1px);
  opacity: 0.8;
}

/* === V7: FLOATING BADGES SMOOTHER MOTION === */
.float-badge {
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.float-badge:hover {
  opacity: 0.45 !important;
  transform: scale(1.15);
}

/* === V7: TOOLS GRID GAP CONSISTENCY === */
.tools-grid {
  gap: 1.25rem;
}

/* === V7: SECTION DESC POLISH === */
.section-desc {
  text-wrap: balance;
  letter-spacing: 0.005em;
}

/* === V7: SCROLL PROGRESS BAR GRADIENT === */
.scroll-progress {
  background: linear-gradient(90deg, #6366f1, #3b82f6, #06b6d4);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

/* === V7: SMOOTHER BACK-TO-TOP === */
.back-to-top {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease, box-shadow 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
}

/* === V7: POLICY CARD HOVER LINK INDICATOR (via border accent) === */
.home-policies .guide-card {
  border-left: 3px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.home-policies .guide-card:hover {
  border-left-color: #6366f1;
}

/* === V7: HERO GEO SHAPES SUBTLER === */
.hero-geo {
  opacity: 0.04;
}

/* === V7: WAVE DIVIDER FASTER REVEAL === */
.wave-divider {
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* === V7: TOOL CARD PARAGRAPH LINE CLAMP === */
.tool-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === V7: HEADER SEARCH FOCUS POLISH === */
.header-search input:focus {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.4);
}

/* === V7: TESTIMONIAL AUTHOR AVATAR RING ON HOVER === */
.testimonial-card:hover .testimonial-avatar {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  transition: box-shadow 0.3s ease;
}

/* === V7: TOOL BADGE POSITION FIX (prevent badge overlap on small cards) === */
.tool-badge {
  z-index: 2;
}

/* === V7: FEATURE NUMBERS MORE VISIBLE === */
.feature-item:hover > span:last-child {
  opacity: 0.08 !important;
  transition: opacity 0.3s ease;
}

/* === V7: SMOOTHER CURSOR GLOW === */
.cursor-glow {
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1), top 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* === DARK MODE OVERRIDES === */
[data-theme="dark"] .home-hero {
  background: linear-gradient(135deg, #0f0a2e 0%, #1a1145 25%, #0c1929 50%, #1a0e3e 75%, #0f0a2e 100%);
  background-size: 400% 400%;
}

[data-theme="dark"] .home-hero::before {
  background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(99,102,241,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 30% 70%, rgba(59,130,246,0.1) 0%, transparent 50%),
              radial-gradient(ellipse 70% 35% at 70% 50%, rgba(168,85,247,0.08) 0%, transparent 50%);
}

[data-theme="dark"] .hero-orb-1 {
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, rgba(59,130,246,0.1) 50%, transparent 70%);
}

[data-theme="dark"] .hero-orb-2 {
  background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, rgba(129,140,248,0.08) 50%, transparent 70%);
}

[data-theme="dark"] .hero-orb-3 {
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, rgba(99,102,241,0.08) 50%, transparent 70%);
}

[data-theme="dark"] .tool-card.card:hover {
  box-shadow: 0 20px 50px rgba(99,102,241,0.1), 0 0 0 1px rgba(99,102,241,0.15);
  background: rgba(30, 27, 75, 0.5);
}

[data-theme="dark"] .tool-card.card::after {
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
}

[data-theme="dark"] .how-step:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

[data-theme="dark"] .gpa-number {
  text-shadow: 0 0 20px rgba(99,102,241,0.3);
}

[data-theme="dark"] .feature-item:hover {
  background: rgba(99,102,241,0.06);
}

[data-theme="dark"] .guide-card.card:hover {
  background: rgba(30, 27, 75, 0.4);
}

[data-theme="dark"] .hero-cta .btn-secondary {
  background: rgba(30,27,75,0.5);
  border-color: rgba(99,102,241,0.3);
  color: #c7d2fe;
}

[data-theme="dark"] .hero-cta .btn-secondary:hover {
  background: rgba(30,27,75,0.7);
  border-color: rgba(99,102,241,0.5);
}

[data-theme="dark"] .hero-badges .badge {
  background: rgba(30,27,75,0.5);
  border-color: rgba(99,102,241,0.15);
}

[data-theme="dark"] .stats-ribbon {
  background: linear-gradient(135deg, #0a0820, #1a1145, #0c1929);
}

[data-theme="dark"] .glass {
  background: rgba(15, 10, 46, 0.6);
  border-color: rgba(99,102,241,0.15);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #0f0a2e;
}

[data-theme="dark"] .wave-divider svg path {
  fill: var(--bg-primary, #0f172a);
}

[data-theme="dark"] .btn-ripple {
  background: rgba(99,102,241,0.25);
}

[data-theme="dark"] .marquee-bar {
  background: linear-gradient(90deg, #0f0a2e, #1a1145, #0c1929, #0f0a2e);
  border-color: rgba(99,102,241,0.12);
}

[data-theme="dark"] .marquee-bar::before {
  background: linear-gradient(90deg, #0f0a2e, transparent);
}

[data-theme="dark"] .marquee-bar::after {
  background: linear-gradient(270deg, #0f0a2e, transparent);
}

[data-theme="dark"] .marquee-track span {
  color: #a5b4fc;
}

[data-theme="dark"] .testimonial-card {
  background: rgba(30, 27, 75, 0.3);
  border-color: rgba(99,102,241,0.12);
}

[data-theme="dark"] .testimonial-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  background: rgba(30, 27, 75, 0.5);
}

[data-theme="dark"] .testimonial-card::before {
  color: rgba(99,102,241,0.1);
}

[data-theme="dark"] .back-to-top {
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

[data-theme="dark"] .float-badge {
  opacity: 0.15;
}

[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, rgba(59,130,246,0.025) 30%, transparent 70%);
}

[data-theme="dark"] .section-blob-1 {
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, rgba(59,130,246,0.05) 50%, transparent 70%);
}

[data-theme="dark"] .section-blob-2 {
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, rgba(99,102,241,0.04) 50%, transparent 70%);
}

[data-theme="dark"] .hero-typing-text {
  color: #93c5fd;
}

[data-theme="dark"] .hero-typing-cursor {
  background: #818cf8;
}

[data-theme="dark"] .home-hero .hero-content h1 .word-reveal {
  background: linear-gradient(135deg, #e2e8f0, #818cf8, #93c5fd, #c4b5fd, #e2e8f0);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .home-features::before {
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), rgba(59,130,246,0.3), rgba(6,182,212,0.3), transparent);
}

[data-theme="dark"] .guide-card:hover h3 {
  color: #818cf8;
}

[data-theme="dark"] .confetti-piece {
  filter: brightness(1.3);
}

[data-theme="dark"] .dot-grid-bg::before {
  background-image: radial-gradient(circle, rgba(99,102,241,0.12) 1px, transparent 1px);
}

[data-theme="dark"] .welcome-toast {
  background: linear-gradient(135deg, #1a1145, #0c1929);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.4);
}

[data-theme="dark"] .hero-sparkle-dot {
  background: linear-gradient(135deg, #818cf8, #93c5fd);
}

[data-theme="dark"] .scroll-pct {
  color: #818cf8;
}

[data-theme="dark"] .scroll-pct-circle {
  stroke: rgba(99,102,241,0.2);
}

[data-theme="dark"] .scroll-pct-fill {
  stroke: #818cf8;
}

[data-theme="dark"] .home-policies .guide-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

[data-theme="dark"] .home-policies .guide-card:hover h3 {
  background: linear-gradient(135deg, #818cf8, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .tool-card.featured::before {
  opacity: 0;
}

[data-theme="dark"] .tool-card.featured:hover::before {
  opacity: 0.4;
}

[data-theme="dark"] .how-step-num::before {
  border-color: rgba(99,102,241,0.4);
}

[data-theme="dark"] .section-desc::after {
  background: linear-gradient(90deg, #818cf8, #93c5fd, #67e8f9);
}

/* V6 dark mode additions */
[data-theme="dark"] .home-tools::before {
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(99,102,241,0.08) 0%, transparent 100%),
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(6,182,212,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 35% 30% at 50% 50%, rgba(168,85,247,0.04) 0%, transparent 100%);
}

[data-theme="dark"] .stat-item + .stat-item::before {
  background: rgba(147,197,253,0.2);
}

[data-theme="dark"] .float-badge::after {
  background: rgba(30,27,75,0.9);
  border: 1px solid rgba(99,102,241,0.2);
}

[data-theme="dark"] .testimonial-stars {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .hero-typing-line {
  color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .hero-typing-text {
  color: #93c5fd;
}

/* V7 dark mode additions */
[data-theme="dark"] .how-step {
  background: var(--bg-surface, #1e293b);
  border-color: rgba(99,102,241,0.1);
}

[data-theme="dark"] .how-step:hover {
  border-color: rgba(99,102,241,0.25);
}

[data-theme="dark"] .feature-item:hover {
  background: rgba(99,102,241,0.05);
}

[data-theme="dark"] .feature-icon {
  background: rgba(99,102,241,0.1);
}

[data-theme="dark"] .home-policies .guide-card:hover {
  border-left-color: #818cf8;
}

[data-theme="dark"] .testimonial-card:hover .testimonial-avatar {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}

[data-theme="dark"] .hero-trust span:hover {
  opacity: 0.9;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-particles { display: none; }
  .scroll-progress { display: none; }
  .cursor-glow { display: none; }
  .section-blob { display: none; }
  .hero-typing-cursor { display: none; }
  .hero-sparkle { display: none; }
  .dot-grid-bg { display: none; }
  .scroll-pct { display: none; }
  .welcome-toast { display: none; }
  body.page-loading { opacity: 1; }
  .confetti-piece { display: none; }
  .how-step-num::before { display: none; }
  .hero-cta .btn-primary { animation: none; }
  .footer-grid .footer-col,
  .footer-grid .footer-brand {
    opacity: 1 !important;
    transform: none !important;
  }
  .wave-divider {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === MOBILE REFINEMENTS === */
@media (max-width: 768px) {
  .hero-orb, .hero-geo { display: none; }
  .hero-particles { display: none; }
  .hero-floating-badges { display: none; }
  .cursor-glow { display: none; }
  .section-blob { display: none; }
  .hero-sparkle { display: none; }
  .dot-grid-bg { display: none; }
  .scroll-pct { display: none !important; }

  .reveal { transform: translateY(20px); }
  .reveal-left { transform: translateX(-15px); }
  .reveal-right { transform: translateX(15px); }
  .reveal-scale { transform: scale(0.95); }

  .tool-card.card::before,
  .tool-card.card::after { display: none; }

  .stats-ribbon .container {
    gap: 1.5rem;
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .wave-divider svg {
    height: 30px;
  }

  .section-title::after {
    width: 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .marquee-track {
    animation-duration: 25s;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}