/* ===============================================================
   JUST VIBE IT -- Design Tokens & Custom Effects
   All component styling uses Tailwind utility classes in HTML.
   This file: tokens + keyframes + scroll reveal only.
=============================================================== */

:root {
  /* -- Colors -- */
  --color-primary: hsl(263, 70%, 60%);
  --color-primary-light: hsl(263, 70%, 75%);
  --color-primary-dark: hsl(263, 70%, 45%);
  --color-accent: hsl(187, 80%, 55%);
  --color-accent-light: hsl(187, 80%, 70%);

  --color-void: hsl(240, 20%, 4%);
  --color-surface: hsl(240, 15%, 7%);
  --color-surface-raised: hsl(240, 12%, 10%);
  --color-border: hsl(240, 10%, 14%);
  --color-border-bright: hsl(240, 10%, 20%);

  --color-text: hsl(220, 20%, 95%);
  --color-text-muted: hsl(220, 10%, 55%);
  --color-text-subtle: hsl(220, 8%, 35%);

  /* -- Typography -- */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* -- Layout -- */
  --max-width: 1200px;

  /* -- Glow effects -- */
  --glow-violet: 0 0 30px hsl(263, 70%, 60% / 0.4);
  --glow-violet-sm: 0 0 15px hsl(263, 70%, 60% / 0.3);
  --glow-cyan: 0 0 30px hsl(187, 80%, 55% / 0.4);

  /* ── Standard Tokens (auto-injected) ── */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --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;
  --radius-default: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* -- Base -- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-void);
  color: var(--color-text);
  line-height: 1.6;
}

/* -- Tailwind color extensions -- */
.bg-void { background-color: var(--color-void); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-raised { background-color: var(--color-surface-raised); }
.text-muted { color: var(--color-text-muted); }
.border-dim { border-color: var(--color-border); }

/* -- Typography -- */
.font-display { font-family: var(--font-display); }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

/* -- Nav -- */
.site-header {
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.h-18 { height: 4.5rem; }

/* -- Glow effects -- */
.shadow-glow {
  box-shadow: 0 0 30px hsl(263deg 70% 60% / 0.5), 0 0 60px hsl(187deg 80% 55% / 0.2);
}
.shadow-glow-sm {
  box-shadow: 0 0 15px hsl(263deg 70% 60% / 0.35), 0 0 30px hsl(187deg 80% 55% / 0.15);
}
.shadow-glow-cyan {
  box-shadow: 0 0 25px hsl(187deg 80% 55% / 0.45);
}

/* -- Text glow -- */
.text-glow {
  text-shadow: 0 0 40px hsl(263deg 70% 60% / 0.6), 0 0 80px hsl(187deg 80% 55% / 0.3);
}
.text-glow-sm {
  text-shadow: 0 0 20px hsl(263deg 70% 60% / 0.4);
}

/* -- Gradient text -- */
.gradient-text {
  background: linear-gradient(135deg, hsl(263, 70%, 75%), hsl(187, 80%, 65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, hsl(263, 70%, 75%) 0%, hsl(187, 80%, 65%) 50%, hsl(200, 90%, 70%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -- Glass cards -- */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px hsl(263deg 70% 60% / 0.15);
}

/* -- Scroll Reveal -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 500ms; }
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* -- Mobile menu -- */
#mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.is-open .mobile-link {
  opacity: 1;
  transform: translateX(0);
}

/* -- Keyframes -- */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(-6px) rotate(-1deg); }
}

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

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

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

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

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

.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float-slow 8s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }
.spin-slow { animation: spin-slow 20s linear infinite; }

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

/* -- Gradient orbs (decorative) -- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-violet {
  background: radial-gradient(circle, hsl(263, 70%, 55% / 0.35) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.orb-cyan {
  background: radial-gradient(circle, hsl(187, 80%, 50% / 0.25) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite 2s;
}

/* -- Icon base -- */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

/* -- Stat counter number -- */
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, hsl(263, 70%, 80%), hsl(187, 80%, 70%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -- Divider line -- */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(263, 70%, 60% / 0.4), hsl(187, 80%, 55% / 0.3), transparent);
}

/* -- Input focus -- */
.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
  border-color: hsl(263, 70%, 60% / 0.5);
  box-shadow: 0 0 0 3px hsl(263, 70%, 60% / 0.12), 0 0 20px hsl(263, 70%, 60% / 0.08);
}

/* -- Noise texture overlay -- */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='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)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* -- 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;
  }
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}body { margin: 0; }
