/* LILT - Interactive Animations & Styles */

:root {
  /* Core Base */
  --lilt-page-bg: #f8fafc;
  --lilt-page-bg-soft: #f1f5f9;
  --lilt-page-bg-accent: rgba(139, 92, 246, 0.03);
  
  /* Surface Tokens */
  --lilt-surface: #ffffff;
  --lilt-surface-soft: #f8fafc;
  --lilt-surface-raised: #ffffff;
  --lilt-surface-hero: linear-gradient(180deg, #ffffff, #f8fafc);
  --lilt-header-bg: rgba(255, 255, 255, 0.8);
  
  /* Border & Divider */
  --lilt-border: #e2e8f0;
  --lilt-border-strong: #cbd5e1;
  
  /* Text & Visibility */
  --lilt-text-primary: #0f172a;
  --lilt-text-secondary: #475569;
  --lilt-text-muted: #64748b;
  --lilt-text-meta: #94a3b8;
  
  /* Color Palette */
  --lilt-brand-primary: #6366f1; /* Indigo tone */
  --lilt-brand-secondary: #a855f7; /* Purple tone */
  --lilt-brand-accent: #22d3ee;
  --lilt-success: #10b981;
  --lilt-danger: #f43f5e;
  --lilt-warning: #f59e0b;
  
  /* Button Specifics (Solid by default) */
  --lilt-btn-primary-bg: var(--lilt-brand-primary);
  --lilt-btn-primary-text: #ffffff;
  
  /* Geometry (Restrained) */
  --lilt-radius-sm: 8px;
  --lilt-radius-md: 12px;
  --lilt-radius-lg: 16px;
  --lilt-radius-xl: 24px;
  
  /* Shadows */
  --lilt-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --lilt-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --lilt-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --lilt-shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

.dark {
  /* Core Base */
  --lilt-page-bg: #09090b;
  --lilt-page-bg-soft: #121217;
  --lilt-page-bg-accent: rgba(139, 92, 246, 0.05);
  
  /* Surface Tokens */
  --lilt-surface: #18181b;
  --lilt-surface-soft: #202025;
  --lilt-surface-raised: #27272a;
  --lilt-surface-hero: linear-gradient(135deg, #18181b, #121217);
  --lilt-header-bg: rgba(9, 9, 11, 0.8);
  
  /* Border & Divider */
  --lilt-border: #27272a;
  --lilt-border-strong: #3f3f46;
  
  /* Text & Visibility */
  --lilt-text-primary: #fafafa;
  --lilt-text-secondary: #d4d4d8;
  --lilt-text-muted: #a1a1aa;
  --lilt-text-meta: #71717a;
  
  /* Color Palette (Slightly more vibrant for dark) */
  --lilt-brand-primary: #818cf8;
  --lilt-brand-secondary: #c084fc;
}

/* ─── Semantic surface tokens (light/dark auto) ─── */
.lilt-surface-raised {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--lilt-border);
}
.dark .lilt-surface-raised {
  background: rgba(255, 255, 255, 0.06);
}

.lilt-surface-inset {
  background: rgba(0, 0, 0, 0.03);
}
.dark .lilt-surface-inset {
  background: rgba(255, 255, 255, 0.03);
}

.lilt-surface-hover-muted {
  transition: background-color 180ms ease;
}
.lilt-surface-hover-muted:hover {
  background: rgba(0, 0, 0, 0.04);
}
.dark .lilt-surface-hover-muted:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lilt-border-subtle {
  border-color: var(--lilt-border);
}

.lilt-sticky-header {
  background: var(--lilt-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lilt-border);
}

.lilt-icon-surface {
  background: rgba(0, 0, 0, 0.04);
  color: var(--lilt-text-muted);
  transition: background-color 180ms ease, color 180ms ease;
}
.dark .lilt-icon-surface {
  background: rgba(255, 255, 255, 0.05);
}
.lilt-icon-surface:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--lilt-text-primary);
}
.dark .lilt-icon-surface:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--lilt-text-primary);
}

body {
  background:
    radial-gradient(circle at top right, var(--lilt-page-bg-accent), transparent 32%),
    var(--lilt-page-bg);
  color: var(--lilt-text-primary);
  transition: background-color 240ms ease, color 240ms ease;
}

.lilt-page-shell {
  background:
    radial-gradient(circle at top right, var(--lilt-page-bg-accent), transparent 32%),
    var(--lilt-page-bg);
  color: var(--lilt-text-primary);
}

.lilt-header-shell {
  background: var(--lilt-header-bg);
  border-bottom: 1px solid var(--lilt-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lilt-surface,
.lilt-hero-surface {
  border: 1px solid var(--lilt-border);
  box-shadow: var(--lilt-shadow-card);
}

.lilt-surface {
  background: var(--lilt-surface);
}

.lilt-surface-soft {
  background: var(--lilt-surface-soft);
  border: 1px solid var(--lilt-border);
}

.lilt-hero-surface {
  background: var(--lilt-surface-hero);
}

.lilt-text-primary { color: var(--lilt-text-primary); }
.lilt-text-secondary { color: var(--lilt-text-secondary); }
.lilt-text-muted { color: var(--lilt-text-muted); }
.lilt-text-meta { color: var(--lilt-text-meta); }
.lilt-brand-text { color: var(--lilt-brand-primary); }
.lilt-bookmark-saved { color: #f59e0b; }
.dark .lilt-bookmark-saved { color: #fbbf24; }

.lilt-chip,
.lilt-ghost-chip {
  background: var(--lilt-surface-soft);
  border: 1px solid transparent;
  color: var(--lilt-text-secondary);
  border-radius: var(--lilt-radius-chip);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lilt-ghost-chip:hover {
  background: var(--lilt-surface);
  color: var(--lilt-text-primary);
  border-color: var(--lilt-border);
}

.lilt-ghost-button,
.lilt-icon-button,
.lilt-input,
.lilt-kbd,
.lilt-tab-inactive {
  background: var(--lilt-surface);
  border: 1px solid var(--lilt-border);
  color: var(--lilt-text-secondary);
  box-shadow: var(--lilt-shadow-soft);
}

.lilt-ghost-button,
.lilt-tab-inactive,
.lilt-icon-button {
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.lilt-ghost-button:hover,
.lilt-tab-inactive:hover,
.lilt-icon-button:hover {
  background: var(--lilt-surface-soft);
  color: var(--lilt-text-primary);
  border-color: var(--lilt-border-strong);
  transform: translateY(-1px);
}

.lilt-tab-active {
  background: linear-gradient(135deg, var(--lilt-brand-primary), var(--lilt-brand-secondary));
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: var(--lilt-shadow-brand);
}

.lilt-tab-active-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.lilt-filter-active {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #6d28d9;
}

.dark .lilt-filter-active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(168, 85, 247, 0.28);
  color: #ede9fe;
}

.lilt-filter-warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.dark .lilt-filter-warn {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.26);
  color: #fde68a;
}

.lilt-progress-track {
  background: rgba(148, 163, 184, 0.18);
}

.dark .lilt-progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.lilt-progress-brand {
  background: var(--lilt-brand-primary);
}

.lilt-progress-cat {
  background: linear-gradient(90deg, var(--lilt-brand-primary), var(--lilt-brand-secondary));
}

.lilt-input {
  color: var(--lilt-text-primary);
}

.lilt-input::placeholder {
  color: var(--lilt-text-meta);
}

.lilt-btn-primary,
.lilt-btn-positive,
.lilt-btn-negative {
  border-radius: var(--lilt-radius-md);
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.lilt-btn-primary {
  background: var(--lilt-brand-primary);
  box-shadow: var(--lilt-shadow-md);
}

.lilt-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--lilt-shadow-lg);
}

/* Gradient restricted to CAT module */
.lilt-btn-cat {
  background: linear-gradient(135deg, var(--lilt-brand-primary), var(--lilt-brand-secondary));
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
}

.lilt-btn-positive {
  background-color: var(--lilt-success);
}

.lilt-btn-negative {
  background-color: var(--lilt-danger);
}


.lilt-btn-positive-chip,
.lilt-btn-negative-chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lilt-choice-btn-positive,
.lilt-choice-btn-negative {
  border-radius: 14px;
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-shadow: 0 1px 0 rgba(15, 23, 42, 0.18);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease,
    filter 180ms ease,
    border-color 180ms ease;
}

.lilt-choice-btn-positive::before,
.lilt-choice-btn-negative::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 42%);
  pointer-events: none;
}

.lilt-choice-btn-positive:hover,
.lilt-choice-btn-negative:hover {
  transform: translateY(-1px) scale(1.008);
  filter: brightness(1.02);
}

.lilt-choice-btn-positive:active,
.lilt-choice-btn-negative:active {
  transform: translateY(2px) scale(0.995);
}

.lilt-choice-btn-positive {
  background-color: #10b981;
  background-image: linear-gradient(180deg, #2fd6a1, #10b981);
  border-color: rgba(5, 150, 105, 0.44);
  box-shadow:
    0 5px 0 #059669,
    0 18px 28px -18px rgba(5, 150, 105, 0.45);
}

.lilt-choice-btn-positive:active {
  box-shadow:
    0 2px 0 #059669,
    0 12px 18px -16px rgba(5, 150, 105, 0.35);
}

.lilt-choice-btn-negative {
  background-color: #f43f5e;
  background-image: linear-gradient(180deg, #ff6b96, #f43f5e);
  border-color: rgba(225, 29, 72, 0.44);
  box-shadow:
    0 5px 0 #e11d48,
    0 18px 28px -18px rgba(225, 29, 72, 0.42);
}

.lilt-choice-btn-negative:active {
  box-shadow:
    0 2px 0 #e11d48,
    0 12px 18px -16px rgba(225, 29, 72, 0.35);
}

.lilt-choice-btn-chip {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.lilt-elastic {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, filter 180ms ease;
}

.lilt-elastic:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.02);
}

.lilt-elastic:active {
  transform: translateY(1px) scale(0.988);
}

.lilt-attempt-shell {
  background: var(--lilt-surface-soft);
  border: 1px solid var(--lilt-border);
}

.lilt-attempt-empty {
  background: rgba(148, 163, 184, 0.28);
}

.dark .lilt-attempt-empty {
  background: rgba(255, 255, 255, 0.14);
}

.lilt-surface-hover {
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lilt-surface-hover:hover {
  background: var(--lilt-surface-soft);
  border-color: var(--lilt-border-strong);
}

.lilt-option-index-hover {
  transition: color 180ms ease, border-color 180ms ease;
}

.group:hover .lilt-option-index-hover {
  color: var(--lilt-text-primary);
  border-color: var(--lilt-border-strong);
}

.lilt-card-overlay {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.03), transparent 36%);
}

.dark .lilt-card-overlay {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.08), transparent 32%);
}

.lilt-feedback-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.22);
  color: #047857;
}

.dark .lilt-feedback-success {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.26);
  color: #a7f3d0;
}

.lilt-feedback-danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.22);
  color: #be123c;
}

.dark .lilt-feedback-danger {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.22);
  color: #fecdd3;
}

.lilt-feedback-success-text { color: #059669; }
.dark .lilt-feedback-success-text { color: #6ee7b7; }
.lilt-feedback-danger-text { color: #e11d48; }
.dark .lilt-feedback-danger-text { color: #fda4af; }
.lilt-feedback-warning-text { color: #d97706; }
.dark .lilt-feedback-warning-text { color: #fcd34d; }

.lilt-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.12);
  color: #0f766e;
}

.dark .lilt-source-badge {
  border-color: rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
}

/* ─── Radius utility classes (token-driven) ─── */
.lilt-rounded-card { border-radius: var(--lilt-radius-md); }
.lilt-rounded-btn { border-radius: var(--lilt-radius-md); }
.lilt-rounded-chip { border-radius: var(--lilt-radius-sm); }
.lilt-rounded-sm { border-radius: var(--lilt-radius-sm); }
.lilt-rounded-lg { border-radius: var(--lilt-radius-lg); }
.lilt-rounded-xl { border-radius: var(--lilt-radius-xl); }


/* ─── Spring-bounce interactive card ─── */
.lilt-card-spring {
  transition:
    transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 320ms ease,
    border-color 200ms ease;
}

.lilt-card-spring:hover {
  transform: translateY(-4px);
  border-color: var(--lilt-border-strong);
  box-shadow: 0 20px 44px -18px rgba(15, 23, 42, 0.18);
}

.dark .lilt-card-spring:hover {
  box-shadow: 0 20px 44px -18px rgba(139, 92, 246, 0.12);
}

.lilt-card-spring:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 120ms;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom cursor for interactive elements */
.interactive-cursor {
  cursor: pointer;
}

/* Floating animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes floatReverse {

  0%,
  100% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(10px);
  }
}

/* Pulse glow animation */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.6);
  }
}

/* Gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Reveal animation on scroll */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce animation */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Sparkle animation */
@keyframes sparkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Typing cursor */
@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Wave animation for text */
@keyframes wave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(20deg);
  }

  75% {
    transform: rotate(-20deg);
  }
}

/* Shake animation */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* V3 Premium Utilities */
.glass-v3 {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-v3 {
  background: rgba(10, 8, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.primary-gradient-v3 {
  background: linear-gradient(135deg, #7c3aed, #db2777, #f43f5e);
  background-size: 200% 200%;
}

.premium-shadow-v3 {
  box-shadow: 0 22px 48px -12px rgba(15, 23, 42, 0.12);
}

.dark .premium-shadow-v3 {
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.6);
}

/* Utility classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.animate-reveal-up {
  animation: revealUp 0.8s ease-out forwards;
}

.animate-reveal-left {
  animation: revealLeft 0.8s ease-out forwards;
}

.animate-reveal-right {
  animation: revealRight 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-bounce-subtle {
  animation: bounce 2s ease infinite;
}

.animate-sparkle {
  animation: sparkle 1.5s ease-in-out infinite;
}

.animate-wave {
  animation: wave 1s ease-in-out infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.animate-fade-in-up {
  animation: revealUp 0.8s ease-out forwards;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.5s ease;
}

.hover-rotate:hover {
  transform: rotate(360deg);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.5);
}

/* Gradient text animation */
.gradient-text-animated {
  background: linear-gradient(90deg, #9333ea, #ec4899, #9333ea);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s linear infinite;
}

/* Glass morphism enhancer */
.glass-enhanced {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Particle effect container */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.6;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

/* Stagger animation delays */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

/* Initial state for scroll animations */
.scroll-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Magnetic button effect */
.magnetic-btn {
  position: relative;
  transition: transform 0.2s ease;
}

/* Ripple effect */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Image reveal effect */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #9333ea, #ec4899);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.image-reveal:hover::after {
  transform: translateX(100%);
}

/* Text underline animation */
.underline-animated {
  position: relative;
}

.underline-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9333ea, #ec4899);
  transition: width 0.3s ease;
}

.underline-animated:hover::after {
  width: 100%;
}

/* 3D tilt effect helper */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

/* Confetti styles */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 1000;
}

/* Loading shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 3D Carousel Utilities */
.perspective-1000 {
  perspective: 1000px;
}

.will-change-transform {
  will-change: transform;
}

/* Mascot Animations */
@keyframes mascot-breathe {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.02) translateY(-4px);
  }
}

.animate-mascot-breathe {
  animation: mascot-breathe 4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes mascot-wag {

  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(20deg) scale(1.05);
  }
}

.animate-mascot-wag {
  animation: mascot-wag 1.5s ease-in-out infinite;
}

/* Watercolor Modernization Set */
.watercolor-page-shell {
  background-color: #FAF9F6;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(0,0,0,0.01) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

.dark .watercolor-page-shell {
  background-color: #0f1012;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 1px);
}

.watercolor-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 28px;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.03),
    0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.dark .watercolor-card {
  background: rgba(30, 30, 35, 0.7);
  border-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.watercolor-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

.watercolor-ink-text {
  color: #2c3e50;
  text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.03);
}

.dark .watercolor-ink-text {
  color: #ecf0f1;
  text-shadow: 0.5px 0.5px 1px rgba(255,255,255,0.03);
}

.watercolor-splash {
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  mix-blend-mode: multiply;
}

.dark .watercolor-splash {
  opacity: 0.18;
  mix-blend-mode: lighten;
  filter: brightness(1.2);
}

/* ─── Revamp A — Nordic/Editorial Design System ─── */
@keyframes rv-pane { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
.rv-pane { animation: rv-pane .34s cubic-bezier(.22,1,.36,1) both; }
.rv-display { font-family: "Playfair Display", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", "Iowan Old Style", "Palatino Linotype", serif; letter-spacing: -0.045em; }
.rv-hero-title { max-width: 10.6ch; font-size: clamp(3.15rem, 6.35vw, 5.9rem); line-height: 0.96; }
.rv-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; }
.rv-kicker-warm { color: #8f5b1e; }
.rv-kicker-muted { color: #76857d; }
.rv-kicker-dark { color: rgba(255,255,255,0.58); }
.rv-section-title { font-family: "Playfair Display", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", "Iowan Old Style", "Palatino Linotype", serif; font-size: clamp(2.3rem, 4vw, 3.75rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em; color: #18322a; }
.rv-section-copy { font-size: 15px; line-height: 1.9; color: #5c6c65; }
.rv-card-title { font-size: 1.25rem; line-height: 1.18; font-weight: 600; letter-spacing: -0.025em; color: #18322a; }
.rv-card-copy { margin-top: 0.75rem; font-size: 14px; line-height: 1.72; color: #60716a; }
.rv-data-value { font-size: 1.85rem; line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; color: #18322a; }
.rv-dark-title { font-family: "Playfair Display", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", "Iowan Old Style", "Palatino Linotype", serif; font-size: clamp(1.9rem, 3.3vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.04em; color: #ffffff; }
.rv-dark-copy { font-size: 14px; line-height: 1.72; color: rgba(255,255,255,0.78); }
.rv-mini { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }
.rv-section { padding-top: 5rem; padding-bottom: 5rem; }
.rv-card-equal { height: 100%; display: flex; flex-direction: column; }
.rv-shot-frame { aspect-ratio: 1.02 / 1; }
.rv-page { background: #f4f2eb; color: #18322a; font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif; min-height: 100vh; }
.rv-app-card { background: #ffffff; border: 1px solid #d5dbd2; border-radius: 1.5rem; }
.rv-app-card-dark { background: #18322a; border: 1px solid #243d34; border-radius: 1.5rem; color: #ffffff; }
.rv-app-card-cream { background: #fbfaf6; border: 1px solid #d5dbd2; border-radius: 1.5rem; }
.rv-stat-chip { background: #fbfaf6; border: 1px solid #d5dbd2; border-radius: 1rem; padding: 1rem 1.25rem; }
.rv-action-chip { background: #ffffff; border: 1px solid #d5dbd2; border-radius: 1.25rem; padding: 1.25rem; transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease; }
.rv-action-chip:hover { transform: translateY(-3px); box-shadow: 0 10px 28px -8px rgba(24,50,42,.14); }
.rv-progress-track { background: #e9eeea; border-radius: 999px; overflow: hidden; }
.rv-progress-bar { background: #18322a; border-radius: 999px; transition: width .5s ease; }
.rv-tab-active { background: #18322a; color: #ffffff; border-radius: 0.875rem; }
.rv-tab-inactive { color: #76857d; border-radius: 0.875rem; transition: background .18s ease, color .18s ease; }
.rv-tab-inactive:hover { background: #e9eeea; color: #18322a; }
@media (min-width: 768px) {
  .rv-section { padding-top: 5.75rem; padding-bottom: 5.75rem; }
  .rv-hero-title { max-width: 10.9ch; }
  .rv-section-copy { font-size: 16px; }
  .rv-card-title { font-size: 1.38rem; }
  .rv-shot-frame { aspect-ratio: 1.12 / 1; }
}
@media (min-width: 1280px) {
  .rv-shot-frame { aspect-ratio: 1.08 / 1; }
}
