/* Bookiewise - Award-Winning Design System */
/* Light/Dark Theme with CSS Custom Properties */

:root {
  /* Brand Colors */
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #3388FF;
  --secondary: #00D4FF;
  --accent: #FFB800;
  --accent-warm: #FF8C00;

  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Layout */
  --nav-height: 80px;
  --container: 1320px;

  /* Easings */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Light Theme (Default) */
  --bg: #FAFBFF;
  --bg-alt: #F0F2F8;
  --bg-card: #FFFFFF;
  --bg-nav: rgba(250, 251, 255, 0.85);
  --bg-footer: #0F1029;
  --text: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-muted: #7A7A9A;
  --heading: #0F0F23;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 102, 255, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --glow-opacity: 0.08;
  --grid-opacity: 0.03;
  --marquee-bg: #F0F2F8;
  --stat-glow: rgba(0, 102, 255, 0.08);
}

[data-theme="dark"] {
  --bg: #0A0A1A;
  --bg-alt: #12122A;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-nav: rgba(10, 10, 26, 0.85);
  --bg-footer: #08081A;
  --text: #E8E8F0;
  --text-secondary: #B0B0CC;
  --text-muted: #8888AA;
  --heading: #FFFFFF;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 102, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.4);
  --glow-opacity: 0.15;
  --grid-opacity: 0.02;
  --marquee-bg: #12122A;
  --stat-glow: rgba(0, 102, 255, 0.15);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection {
  background: var(--primary);
  color: #FFFFFF;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--heading);
  transition: color 0.4s ease;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  transition: color 0.4s ease;
}

a { color: inherit; text-decoration: none; }

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--card-shadow);
  transition: all 0.4s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.15);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease);
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-moon { opacity: 1; }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }

[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }

/* ========== GLASSMORPHISM NAV ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: all 0.4s var(--ease);
}

header.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] header.scrolled {
  box-shadow: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 1001;
}

.logo svg, .logo img {
  height: 36px;
  width: auto;
  transition: transform 0.4s var(--ease);
}

.logo:hover svg, .logo:hover img {
  transform: scale(1.08) rotate(-3deg);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--heading);
  letter-spacing: -0.02em;
  transition: color 0.4s ease;
}

.logo-text span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.3s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--heading);
  background: rgba(0, 102, 255, 0.06);
}

.nav-cta { margin-left: 8px; }

.nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #FFFFFF !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s var(--ease);
}

.nav-cta a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.3);
}

.lang-selector select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%238888AA' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

.lang-selector select:hover { border-color: var(--primary); color: var(--heading); }
.lang-selector select:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(0, 102, 255, 0.06);
  transform: translateY(-3px);
}

.btn-white {
  background: #FFFFFF;
  color: #0F0F23;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero > .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  margin-bottom: 28px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-title .line { display: block; overflow: hidden; }

.hero-title .gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: var(--text-secondary);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 4;
}

/* ========== HERO CANVAS (Full-Screen Background) ========== */
.hero-canvas-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Orbit rings */
.scene-orbit {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spin-slow 30s linear infinite;
}

.scene-orbit-1 { width: 420px; height: 420px; }
.scene-orbit-2 { width: 620px; height: 620px; animation-direction: reverse; animation-duration: 45s; }
.scene-orbit-3 { width: 820px; height: 820px; animation-duration: 60s; opacity: 0.5; }

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

/* Particle Morph Canvas */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

/* Hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--glow-opacity);
  transition: opacity 0.4s ease;
}

.hero-bg .glow-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.hero-bg .glow-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -100px; left: -100px; }
.hero-bg .glow-3 { width: 300px; height: 300px; background: var(--accent); top: 50%; left: 40%; opacity: calc(var(--glow-opacity) * 0.5); }

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,var(--grid-opacity)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,var(--grid-opacity)) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

[data-theme="dark"] .grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
}

/* ========== MARQUEE ========== */
.marquee-section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--marquee-bg);
  transition: background 0.4s ease;
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== SECTIONS ========== */
section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.section-title { margin-bottom: 20px; }

.section-desc {
  max-width: 600px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
}

.section-header { margin-bottom: clamp(40px, 6vw, 80px); }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin-left: auto; margin-right: auto; }

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.04), transparent, rgba(0, 212, 255, 0.03));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(0, 102, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  position: relative;
  z-index: 1;
}

.card p {
  position: relative;
  z-index: 1;
  line-height: 1.7;
  margin: 0;
}

.card-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  z-index: 0;
  opacity: 0.5;
}

/* ========== GRID LAYOUTS ========== */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========== STATS SECTION ========== */
.stats-section {
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--stat-glow) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 48px 24px 40px;
  position: relative;
  transition: all 0.5s var(--ease);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

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

.stat-item:hover .stat-icon {
  transform: scale(1.1);
  border-color: var(--primary);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  transition: all 0.4s var(--ease);
}

.stat-content {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
  transition: color 0.4s ease;
}

.stat-suffix,
.stat-prefix {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  transition: color 0.4s ease;
}

.stat-bar {
  width: 60%;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 1.5s var(--ease);
}

.stat-item.visible .stat-bar-fill {
  width: var(--bar-width);
}

/* ========== CTA SECTION ========== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), #0044DD);
  border-radius: 32px;
  padding: clamp(48px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-box h2 { margin-bottom: 16px; position: relative; color: #FFFFFF; }
.cta-box p { color: rgba(255, 255, 255, 0.8); max-width: 500px; margin: 0 auto 32px; position: relative; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 32px;
}

footer h4,
footer .logo-text {
  color: #FFFFFF;
}

footer p,
footer .footer-col a {
  color: #8888AA;
}

footer .footer-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

footer .footer-bottom p {
  color: #8888AA;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 14px; }

.footer-col a {
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 13px; margin: 0; }

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--heading);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========== SUBPAGE HERO ========== */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }

/* ========== SECTION ALT BG ========== */
.section-alt {
  background: var(--bg-alt);
  transition: background 0.4s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .scene-orbit-1 { width: 300px; height: 300px; }
  .scene-orbit-2 { width: 450px; height: 450px; }
  .scene-orbit-3 { width: 600px; height: 600px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(odd):not(:last-child)::after { display: block; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
  }

  .nav-menu.active { opacity: 1; visibility: visible; }
  .nav-menu a { font-size: 18px; padding: 16px 32px; }
  .nav-cta { margin-left: 0; margin-top: 16px; }
  .mobile-menu-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stat-item { padding: 32px 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-box { border-radius: 20px; padding: 40px 24px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .theme-toggle { bottom: 90px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after { display: none !important; }
  .stat-number { font-size: 2rem; }
}

/* ========== 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;
    transform: none;
  }
}
