/* ============================================
   PurpleLux Analytics —Shared Stylesheet
   Brand: Purple-600 (#7c3aed) + Gold-400 (#fbbf24)
   Dark Mode Default —Luxury/Premium Positioning
   ============================================ */

/* ----------------------------------------
   1. CSS Custom Properties / Design Tokens
   ---------------------------------------- */
:root {
  /* Primary Palette */
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-900: #4c1d95;
  --purple-950: #2e1065;

  /* Gold Accent */
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
  --gold-900: #78350f;

  /* Neutral / Dark Theme */
  --dark-50: #fafafa;
  --dark-100: #f4f4f5;
  --dark-200: #e4e4e7;
  --dark-300: #d4d4d8;
  --dark-400: #a1a1aa;
  --dark-500: #71717a;
  --dark-600: #52525b;
  --dark-700: #3f3f46;
  --dark-800: #27272a;
  --dark-850: #1f1f23;
  --dark-900: #18181b;
  --dark-920: #131316;
  --dark-950: #0a0a0b;

  /* Semantic Colors */
  --color-bg: var(--dark-950);
  --color-bg-secondary: var(--dark-920);
  --color-bg-card: var(--dark-900);
  --color-bg-elevated: var(--dark-850);
  --color-text-primary: #f5f5f6;
  --color-text-secondary: #c4c4cc;
  --color-text-muted: var(--dark-400);
  --color-border: var(--dark-700);
  --color-border-light: var(--dark-600);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  --gradient-cta: linear-gradient(135deg, var(--purple-600), #6366f1);
  --gradient-gold: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  --gradient-gold-soft: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(217, 119, 6, 0.15));
  --gradient-dark: linear-gradient(180deg, var(--dark-950), var(--dark-920));
  --gradient-hero: linear-gradient(160deg, var(--dark-950) 0%, var(--purple-950) 50%, var(--dark-950) 100%);

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Noto Serif SC', 'Georgia', serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(251, 191, 36, 0.15);
  --shadow-purple: 0 4px 20px rgba(124, 58, 237, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 900px;
  --navbar-height: 72px;
}

/* ----------------------------------------
   2. Reset & Normalize
   ---------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background-color: var(--purple-600);
  color: #fff;
}

::-moz-selection {
  background-color: var(--purple-600);
  color: #fff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-950);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-600);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--dark-500);
}

/* ----------------------------------------
   3. Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.text-gold {
  color: var(--gold-400);
}

.text-gold-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-purple {
  color: var(--purple-400);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-center { text-align: center; }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ----------------------------------------
   4. Layout Utilities
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header .subtitle {
  font-size: 1.125rem;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: var(--space-lg) auto 0;
  border-radius: var(--radius-full);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----------------------------------------
   5. Navbar
   ---------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background-color: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 11, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(124, 58, 237, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  z-index: 1001;
}

.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: var(--shadow-purple);
}

.navbar-logo .logo-accent {
  color: var(--purple-400);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-400);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.5rem;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-purple);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-4xl) var(--space-xl);
    background-color: var(--dark-900);
    border-left: 1px solid var(--dark-700);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.125rem;
  }

  .nav-cta {
    margin-top: var(--space-md);
  }
}

/* ----------------------------------------
   6. Hero Section
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--navbar-height);
}

/* Geometric Shape Overlay */
.hero-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-geo-triangle-1 {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-bottom: 260px solid rgba(124, 58, 237, 0.06);
  animation: floatGeo 8s ease-in-out infinite;
}

.hero-geo-triangle-2 {
  position: absolute;
  bottom: 15%;
  right: -5%;
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 210px solid rgba(251, 191, 36, 0.05);
  animation: floatGeo 10s ease-in-out infinite reverse;
}

.hero-geo-circle-1 {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.1);
  animation: pulseGeo 6s ease-in-out infinite;
}

.hero-geo-circle-2 {
  position: absolute;
  bottom: 25%;
  left: 8%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.08);
  animation: pulseGeo 7s ease-in-out infinite 1s;
}

.hero-geo-circle-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.04);
  transform: translate(-50%, -50%);
  animation: pulseGeo 9s ease-in-out infinite 2s;
}

.hero-geo-dot-grid {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(251, 191, 36, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: fadeInOut 5s ease-in-out infinite;
}

.hero-geo-line-1 {
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.08), transparent);
}

.hero-geo-line-2 {
  position: absolute;
  bottom: 35%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.06), transparent);
}

@keyframes floatGeo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes pulseGeo {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--purple-300);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
  animation: sparkle 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title .gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--dark-950);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.45);
}

/* Gold Sparkle Animation on CTA */
.btn-gold::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
  animation: sparkleSweep 3s ease-in-out infinite;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

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

@keyframes sparkleSweep {
  0%, 100% { transform: translate(-10%, -10%) rotate(0deg); opacity: 0; }
  25% { opacity: 0.8; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0; }
  75% { opacity: 0.4; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-outline {
  border: 2px solid var(--gold-400);
  color: var(--gold-400);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(251, 191, 36, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Hero Image */
.hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
    position: absolute;
    right: 5%;
    bottom: 10%;
    z-index: 1;
    width: 320px;
    height: 320px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    opacity: 0.3;
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: var(--shadow-purple);
  }

  .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(1.2);
  }
}

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

/* ----------------------------------------
   7. Features Section
   ---------------------------------------- */
.features {
  background-color: var(--color-bg-secondary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.15), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

/* Gold Border Gradient via pseudo-element */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.05), rgba(124, 58, 237, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--purple-400);
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-purple);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ----------------------------------------
   8. Stats Section
   ---------------------------------------- */
.stats {
  background-color: var(--dark-950);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.15), transparent);
}

.stat-item:last-child::after {
  display: none;
}

@media (max-width: 1024px) {
  .stat-item:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .stat-item::after {
    display: none;
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: var(--space-sm);
  display: block;
}

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

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(251, 191, 36, 0.1);
  margin-bottom: var(--space-md);
  color: var(--gold-400);
  font-size: 1.25rem;
}

/* ----------------------------------------
   9. Testimonials Section
   ---------------------------------------- */
.testimonials {
  background-color: var(--color-bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-md);
  color: var(--gold-400);
  font-size: 1.125rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-style: italic;
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial-text::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 2.5rem;
  color: var(--purple-600);
  font-family: var(--font-heading);
  line-height: 1;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold-400);
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ----------------------------------------
   10. FAQ Section
   ---------------------------------------- */
.faq {
  background-color: var(--dark-950);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.2);
}

.faq-item.active {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-purple);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-item.active .faq-question {
  color: var(--gold-400);
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold-400);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* ----------------------------------------
   11. CTA Section
   ---------------------------------------- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--purple-900) 0%, #4338ca 50%, var(--purple-800) 100%);
  overflow: hidden;
  text-align: center;
  padding: var(--space-5xl) 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-geo-1 {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.1);
  animation: pulseGeo 5s ease-in-out infinite;
}

.cta-geo-2 {
  position: absolute;
  bottom: -30px;
  left: 10%;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transform: rotate(45deg);
  animation: floatGeo 7s ease-in-out infinite;
}

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

.cta-content h2 {
  color: #fff;
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.cta-content .btn-gold {
  background: var(--gradient-gold);
  color: var(--dark-950);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.35);
}

.cta-content .btn-gold:hover {
  box-shadow: 0 8px 36px rgba(251, 191, 36, 0.5);
  transform: translateY(-3px);
}

/* ----------------------------------------
   12. Footer
   ---------------------------------------- */
.footer {
  background-color: var(--dark-950);
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer-brand .logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.footer-brand .logo span {
  color: var(--purple-400);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 0;
}

.footer-column a:hover {
  color: var(--gold-400);
  padding-left: 4px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--dark-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  font-size: 1.125rem;
}

.social-icon:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  background: rgba(251, 191, 36, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.footer-bottom {
  border-top: 1px solid var(--dark-800);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-bottom-links a:hover {
  color: var(--gold-400);
}

/* ----------------------------------------
   13. About Page —Story Timeline
   ---------------------------------------- */
.page-header {
  padding: calc(var(--navbar-height) + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent,
    rgba(124, 58, 237, 0.3) 10%,
    rgba(251, 191, 36, 0.2) 50%,
    rgba(124, 58, 237, 0.3) 90%,
    transparent);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 24px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-3xl);
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: var(--space-3xl);
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: var(--space-3xl);
  text-align: left;
}

@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding-left: 64px;
    padding-right: 0;
    text-align: left;
  }
}

.timeline-dot {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 3px solid var(--dark-950);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

@media (max-width: 768px) {
  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 16px;
    right: auto;
  }
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: var(--space-xs);
}

.timeline-content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.timeline-content:hover {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: var(--shadow-gold);
}

.timeline-content h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.timeline-content p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ----------------------------------------
   14. About Page —Team Section
   ---------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(124, 58, 237, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold-400);
  margin: 0 auto var(--space-lg);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.team-card h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--purple-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.team-bio {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--purple-400);
  transition: all var(--transition-fast);
}

.team-social a:hover {
  background: var(--purple-600);
  color: #fff;
}

/* Mission / Vision */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .mission-vision {
    grid-template-columns: 1fr;
  }
}

.mv-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.mv-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.mv-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(251, 191, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.75rem;
  color: var(--gold-400);
}

.mv-card h3 {
  margin-bottom: var(--space-md);
}

.mv-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-purple);
}

.value-card .value-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--purple-500);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ----------------------------------------
   15. Contact Page
   ---------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Contact Form */
.contact-form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  position: relative;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(124, 58, 237, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contact-form-card h2 {
  margin-bottom: var(--space-sm);
}

.contact-form-card > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group label .required {
  color: var(--gold-400);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-920);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-control::placeholder {
  color: var(--dark-500);
}

.form-control.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.success {
  border-color: #22c55e;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-purple);
  position: relative;
  overflow: hidden;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success-message {
  display: none;
  text-align: center;
  padding: var(--space-xl);
  color: #22c55e;
  font-weight: 600;
}

.form-success-message.visible {
  display: block;
}

/* Contact Info Sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(124, 58, 237, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contact-info-card:hover {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: var(--shadow-gold);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(251, 191, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  display: block;
  line-height: 1.7;
}

.contact-info-card a:hover {
  color: var(--gold-400);
}

/* Map Placeholder */
.contact-map {
  background: var(--dark-900);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-map-placeholder {
  text-align: center;
  color: var(--color-text-muted);
}

.contact-map-placeholder .map-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--purple-500);
}

.contact-map-placeholder p {
  font-size: 0.875rem;
}

/* Contact CTA Block */
.contact-cta-block {
  background: linear-gradient(135deg, var(--purple-900), #4338ca);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
}

.contact-cta-block h3 {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.contact-cta-block p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

/* ----------------------------------------
   16. Scroll to Top Button
   ---------------------------------------- */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-purple);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
  cursor: pointer;
  border: none;
}

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

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

/* ----------------------------------------
   17. Scroll Reveal Animation
   ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

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

/* ----------------------------------------
   18. Additional Animations
   ---------------------------------------- */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(251, 191, 36, 0.1); }
  50% { border-color: rgba(251, 191, 36, 0.4); }
}

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

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* Notification toast */
.toast {
  position: fixed;
  top: 100px;
  right: 32px;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 500;
  font-size: 0.9375rem;
  transform: translateX(120%);
  transition: transform var(--transition-spring);
  box-shadow: var(--shadow-xl);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #dc2626;
}

/* ----------------------------------------
   19. Page-specific Utilities
   ---------------------------------------- */
.bg-dark {
  background-color: var(--color-bg);
}

.bg-dark-secondary {
  background-color: var(--color-bg-secondary);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
  border: none;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

.breadcrumb a {
  color: var(--purple-400);
}

.breadcrumb a:hover {
  color: var(--gold-400);
}

.breadcrumb .separator {
  color: var(--dark-500);
}

/* ----------------------------------------
   20. Responsive Helpers
   ---------------------------------------- */
@media (max-width: 1200px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-4xl) 0;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .hero {
    min-height: 90vh;
  }

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

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

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-card {
    padding: var(--space-xl);
  }
}

/* ----------------------------------------
   21. Print Styles
   ---------------------------------------- */
@media print {
  .navbar,
  .scroll-to-top,
  .hero-geometry,
  .footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 2rem 0;
  }
}
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?66486df8906d1585b228aae20f1074ed";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>

