/* ============================================
   LIQUID GLASS DESIGN SYSTEM
   统一液态玻璃设计系统 - for lan-che.top
   ============================================ */

:root {
  color-scheme: light;

  /* ===== 浅色 Acrylic 调色板 ===== */
  --bg-primary: #eef2f9;
  --bg-secondary: #e4eaf4;
  --bg-tertiary: #dce5f1;
  --fg-primary: #0d1422;
  --fg-secondary: #2a3950;
  --fg-muted: #46566d;
  --fg-subtle: #6b7c92;

  /* ===== Brand 亮族（浅底可读） ===== */
  --brand-cyan: #0891b2;
  --brand-purple: #7c3aed;
  --brand-pink: #db2777;
  --brand-green: #15803d;
  --brand-orange: #c2410c;
  --brand-blue: #2563eb;
  --brand-teal: #0f766e;
  --brand-red: #dc2626;

  /* ===== White-milk Glass Layers ===== */
  --glass-1: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.13);
  --glass-3: rgba(255, 255, 255, 0.2);
  --glass-4: rgba(255, 255, 255, 0.34);
  --glass-5: rgba(255, 255, 255, 0.5);
  --glass-highlight: rgba(255, 255, 255, 0.9);

  --glass-border-1: rgba(20, 32, 52, 0.10);
  --glass-border-2: rgba(20, 32, 52, 0.16);
  --glass-border-3: rgba(20, 32, 52, 0.26);
  --glass-border-4: rgba(20, 32, 52, 0.40);

  /* ===== Blur Values ===== */
  --blur-sm: blur(2px);
  --blur-md: blur(4px);
  --blur-lg: blur(8px);
  --blur-xl: blur(14px);
  --blur-2xl: blur(22px);

  --saturate-low: saturate(120%);
  --saturate-md: saturate(140%);
  --saturate-high: saturate(180%);

  /* ===== 柔和蓝灰阴影（白玻璃） ===== */
  --ink: 31, 52, 84;
  --shadow-xs: 0 1px 2px rgba(var(--ink), 0.06);
  --shadow-sm: 0 2px 6px rgba(var(--ink), 0.08);
  --shadow-md: 0 8px 20px rgba(var(--ink), 0.10);
  --shadow-lg: 0 16px 40px rgba(var(--ink), 0.14);
  --shadow-xl: 0 24px 60px rgba(var(--ink), 0.18);
  --shadow-2xl: 0 40px 96px rgba(var(--ink), 0.22);

  --shadow-glow-cyan: 0 0 24px rgba(8, 145, 178, 0.10), 0 0 48px rgba(8, 145, 178, 0.05);
  --shadow-glow-purple: 0 0 24px rgba(124, 58, 237, 0.10), 0 0 48px rgba(124, 58, 237, 0.05);
  --shadow-glow-pink: 0 0 24px rgba(219, 39, 119, 0.10), 0 0 48px rgba(219, 39, 119, 0.05);
  --shadow-glow-green: 0 0 24px rgba(21, 128, 61, 0.10), 0 0 48px rgba(21, 128, 61, 0.05);

  /* ===== Radius ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ===== Transitions ===== */
  --transition-fast: 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slower: 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ===== Spacing ===== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ===== Typography ===== */
  --font-sans: 'Geist', 'Segoe UI Variable', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'Cascadia Code', 'Consolas', monospace;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 38px;
  --text-5xl: 48px;

  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ===== Z-Index ===== */
  --z-bg: 0;
  --z-content: 1;
  --z-sticky: 100;
  --z-dropdown: 200;
  --z-modal: 1000;
  --z-toast: 1100;
  --z-tooltip: 1200;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--fg-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND SYSTEM
   ============================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  overflow: hidden;
}

.bg-base {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 80%, rgba(244, 114, 182, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(20, 184, 166, 0.03) 0%, transparent 70%),
    var(--bg-primary);
}

.bg-mesh {
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(244, 114, 182, 0.06) 0%, transparent 40%);
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-2%, 1%) scale(1.02); }
  50% { transform: translate(1%, -2%) scale(0.98); }
  75% { transform: translate(-1%, 2%) scale(1.01); }
  100% { transform: translate(0, 0) scale(1); }
}

.bg-aurora {
  background:
    conic-gradient(from 0deg at 50% 50%,
      transparent 0%,
      rgba(0, 212, 255, 0.03) 15%,
      transparent 30%,
      rgba(168, 85, 247, 0.03) 45%,
      transparent 60%,
      rgba(244, 114, 182, 0.03) 75%,
      transparent 90%,
      transparent 100%
    );
  animation: auroraRotate 30s linear infinite;
  opacity: 0.6;
}

@keyframes auroraRotate {
  from { transform: rotate(0deg) scale(1.2); }
  to { transform: rotate(360deg) scale(1.2); }
}

.bg-grid {
  background-image:
    linear-gradient(rgba(31,52,84,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,52,84,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  opacity: 0.35;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.bg-noise {
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: noiseShift 0.2s steps(10) infinite;
}

@keyframes noiseShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1%, 1%); }
  20% { transform: translate(1%, -1%); }
  30% { transform: translate(-1%, -1%); }
  40% { transform: translate(1%, 1%); }
  50% { transform: translate(-2%, 0); }
  60% { transform: translate(0, 2%); }
  70% { transform: translate(2%, -1%); }
  80% { transform: translate(-1%, 2%); }
  90% { transform: translate(1%, 0); }
}

.bg-particles {
  opacity: 0.5;
}

.bg-particles::before,
.bg-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow:
    120px 80px 0 var(--brand-purple),
    280px 200px 0 var(--brand-pink),
    400px 100px 0 var(--brand-green),
    520px 300px 0 var(--brand-orange),
    180px 350px 0 var(--brand-teal),
    450px 400px 0 var(--brand-blue),
    600px 200px 0 var(--brand-cyan),
    100px 420px 0 var(--brand-purple);
  animation: particleFloat 15s ease-in-out infinite;
}

.bg-particles::after {
  animation-delay: -7.5s;
  background: var(--brand-purple);
  box-shadow:
    200px 150px 0 var(--brand-pink),
    350px 50px 0 var(--brand-green),
    480px 250px 0 var(--brand-orange),
    300px 400px 0 var(--brand-teal),
    550px 150px 0 var(--brand-blue),
    150px 300px 0 var(--brand-cyan),
    400px 380px 0 var(--brand-purple),
    50px 200px 0 var(--brand-pink);
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(15px, -20px) scale(1.2); opacity: 0.8; }
  50% { transform: translate(-10px, 15px) scale(0.8); opacity: 0.5; }
  75% { transform: translate(20px, 10px) scale(1.1); opacity: 0.7; }
}

/* Ripple background */
.bg-ripple {
  position: relative;
}

.bg-ripple::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.03) 0%, transparent 50%);
  animation: rippleExpand 8s ease-out infinite;
}

@keyframes rippleExpand {
  0% { transform: scale(0.5); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================
   GLASS COMPONENTS
   ============================================ */
.glass {
  background: var(--glass-2);
  backdrop-filter: var(--blur-lg) var(--saturate-md);
  -webkit-backdrop-filter: var(--blur-lg) var(--saturate-md);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-lg);
}

.glass-strong {
  background: var(--glass-3);
  backdrop-filter: var(--blur-xl) var(--saturate-high);
  -webkit-backdrop-filter: var(--blur-xl) var(--saturate-high);
  border: 1px solid var(--glass-border-3);
  border-radius: var(--radius-xl);
}

.glass-subtle {
  background: var(--glass-1);
  backdrop-filter: var(--blur-md) var(--saturate-low);
  -webkit-backdrop-filter: var(--blur-md) var(--saturate-low);
  border: 1px solid var(--glass-border-1);
  border-radius: var(--radius-md);
}

.glass-panel {
  background:
    linear-gradient(135deg, var(--glass-2) 0%, var(--glass-1) 50%, var(--glass-2) 100%);
  backdrop-filter: var(--blur-xl) var(--saturate-md);
  -webkit-backdrop-filter: var(--blur-xl) var(--saturate-md);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 60%, rgba(255,255,255,0.15) 100%);
  pointer-events: none;
}

/* Interactive glass card */
.glass-card {
  background: var(--glass-2);
  backdrop-filter: var(--blur-lg) var(--saturate-md);
  -webkit-backdrop-filter: var(--blur-lg) var(--saturate-md);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-lg);
  transition:
    transform var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(255,255,255,0.01) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  background: var(--glass-3);
  border-color: var(--glass-border-3);
  box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
}

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

.glass-card:active {
  transform: translateY(-1px);
  transition-duration: 80ms;
}

/* Accent border cards */
.glass-card-accent {
  position: relative;
}

.glass-card-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color, var(--brand-cyan));
  opacity: 0.5;
  transition: opacity var(--transition-fast), height var(--transition-base);
}

.glass-card-accent:hover::after {
  opacity: 1;
  height: 3px;
}

/* Glass button */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--fg-primary);
  background: var(--glass-2);
  backdrop-filter: var(--blur-lg) var(--saturate-md);
  -webkit-backdrop-filter: var(--blur-lg) var(--saturate-md);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-glass:hover {
  background: var(--glass-3);
  border-color: var(--glass-border-3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-glass:hover::before {
  opacity: 1;
}

.btn-glass:active {
  transform: translateY(0) scale(0.98);
}

.btn-glass-primary {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-purple) 100%);
  border: none;
  color: var(--bg-primary);
  font-weight: var(--font-semibold);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-glass-primary:hover {
  box-shadow: var(--shadow-glow-cyan), var(--shadow-md);
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-purple) 100%);
  filter: brightness(1.1);
}

.btn-glass-ghost {
  background: transparent;
  border-color: var(--glass-border-1);
}

.btn-glass-ghost:hover {
  background: var(--glass-1);
  border-color: var(--glass-border-2);
}

/* Glass input */
.input-glass {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--fg-primary);
  background: var(--glass-1);
  backdrop-filter: var(--blur-md) var(--saturate-low);
  -webkit-backdrop-filter: var(--blur-md) var(--saturate-low);
  border: 1px solid var(--glass-border-1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.input-glass::placeholder {
  color: var(--fg-subtle);
}

.input-glass:hover {
  border-color: var(--glass-border-2);
  background: var(--glass-2);
}

.input-glass:focus {
  outline: none;
  border-color: var(--brand-cyan);
  background: var(--glass-2);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), var(--shadow-md);
}

/* Glass modal */
.modal-glass {
  background: var(--glass-3);
  backdrop-filter: var(--blur-2xl) var(--saturate-high);
  -webkit-backdrop-filter: var(--blur-2xl) var(--saturate-high);
  border: 1px solid var(--glass-border-3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl), var(--shadow-glow-cyan);
  animation: modalEnter var(--transition-slower);
}

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

.modal-overlay-glass {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Glass navigation bar */
.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  background: rgba(238, 242, 249, 0.62);
  backdrop-filter: var(--blur-xl) var(--saturate-high);
  -webkit-backdrop-filter: var(--blur-xl) var(--saturate-high);
  border-bottom: 1px solid var(--glass-border-1);
}

.nav-glass::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), var(--brand-purple), transparent);
  opacity: 0.3;
}

/* Glass tooltip */
.tooltip-glass {
  position: absolute;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--fg-primary);
  background: var(--glass-4);
  backdrop-filter: var(--blur-lg) var(--saturate-md);
  -webkit-backdrop-filter: var(--blur-lg) var(--saturate-md);
  border: 1px solid var(--glass-border-3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: var(--z-tooltip);
}

.tooltip-glass::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: inherit;
  border: inherit;
  border-top: none;
  border-left: none;
  rotate: 45deg;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-purple) 50%, var(--brand-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan { background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-purple { background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-warm { background: linear-gradient(135deg, var(--brand-orange), var(--brand-red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-green { background: linear-gradient(135deg, var(--brand-green), var(--brand-teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
  position: relative;
  z-index: var(--z-content);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.stack { display: flex; flex-direction: column; }
.stack-sm { gap: var(--space-2); }
.stack-md { gap: var(--space-4); }
.stack-lg { gap: var(--space-6); }
.stack-xl { gap: var(--space-8); }

.inline-flex { display: inline-flex; }
.inline-flex-center { display: inline-flex; align-items: center; justify-content: center; }

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-glow-cyan); }
  50% { box-shadow: var(--shadow-glow-cyan), 0 0 48px rgba(0, 212, 255, 0.2); }
}

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-up { animation: fadeUp var(--transition-slower) forwards; opacity: 0; }
.animate-fade-down { animation: fadeDown var(--transition-slower) forwards; opacity: 0; }
.animate-fade-in { animation: fadeIn var(--transition-slow) forwards; opacity: 0; }
.animate-scale-in { animation: scaleIn var(--transition-slow) forwards; opacity: 0; }
.animate-slide-right { animation: slideInRight var(--transition-slow) forwards; opacity: 0; }
.animate-slide-left { animation: slideInLeft var(--transition-slow) forwards; opacity: 0; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-rotate-slow { animation: rotate-slow 20s linear infinite; }

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }
.delay-6 { animation-delay: 600ms; }
.delay-7 { animation-delay: 700ms; }
.delay-8 { animation-delay: 800ms; }

/* Stagger children */
.stagger-children > * { opacity: 0; animation: fadeUp var(--transition-slower) forwards; }
.stagger-children > *:nth-child(1) { animation-delay: 50ms; }
.stagger-children > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children > *:nth-child(3) { animation-delay: 150ms; }
.stagger-children > *:nth-child(4) { animation-delay: 200ms; }
.stagger-children > *:nth-child(5) { animation-delay: 250ms; }
.stagger-children > *:nth-child(6) { animation-delay: 300ms; }
.stagger-children > *:nth-child(7) { animation-delay: 350ms; }
.stagger-children > *:nth-child(8) { animation-delay: 400ms; }

/* ============================================
   INTERACTIVE EFFECTS
   ============================================ */
/* Magnetic hover effect */
.magnetic {
  transition: transform var(--transition-base);
}

/* Ripple click effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  animation: rippleEffect 0.6s ease-out forwards;
}

@keyframes rippleEffect {
  to {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* Shimmer text */
.shimmer-text {
  background: linear-gradient(90deg, var(--fg-primary) 25%, var(--fg-secondary) 50%, var(--fg-primary) 75%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--glass-3);
  backdrop-filter: var(--blur-md);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glass-4);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--fg-primary);
}

/* ============================================
   FOCUS VISIBLE
   ============================================ */
:focus-visible {
  outline: none;
  ring: 2px solid var(--brand-cyan);
  ring-offset: 2px;
  ring-offset-color: var(--bg-primary);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --glass-1: rgba(255, 255, 255, 0.06);
    --glass-2: rgba(255, 255, 255, 0.13);
    --glass-3: rgba(255, 255, 255, 0.2);
    --glass-border-1: rgba(255, 255, 255, 0.3);
    --glass-border-2: rgba(255, 255, 255, 0.5);
    --glass-border-3: rgba(255, 255, 255, 0.7);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .bg-layer, .nav-glass, .btn-glass, .modal-overlay-glass {
    display: none !important;
  }
  body { background: white; color: black; }
  .glass, .glass-card, .glass-panel { background: white; border: 1px solid #ccc; box-shadow: none; }
}