:root {
  --color-primary: #1d0f42;
  --color-primary-light: #6c5ce7;
  --color-primary-dark: #0a0418;
  
  --color-accent: #ffcc00;
  --color-accent-hover: #ffd633;
  --color-accent-glow: rgba(255, 204, 0, 0.4);
  
  --color-secondary: #00d2ff;
  
  --color-background: #0a0418;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  
  --color-text: #f0eef5;
  --color-text-muted: #9b95b0;
  --color-text-bright: #ffffff;
  
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 24px 64px rgba(10, 4, 24, 0.7);
  --shadow-glow: 0 0 40px rgba(255, 204, 0, 0.15);
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  --font-outfit: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-outfit);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.7;
}

/* Premium Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-background); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-accent));
  border-radius: 4px;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

* { box-sizing: border-box; padding: 0; margin: 0; }

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  color: var(--color-text-bright);
}

img { max-width: 100%; height: auto; }

/* ====== UTILITIES ====== */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ====== GLASSMORPHISM ====== */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dark {
  background: rgba(10, 4, 24, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-glow {
  position: relative;
}

.glass-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,204,0,0.4), transparent 50%, rgba(108,92,231,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #ff9900);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
  filter: brightness(1.1);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-outline {
  background-color: transparent;
  color: var(--color-text-bright);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(255, 204, 0, 0.05);
}

.btn-white {
  background: white;
  color: var(--color-primary-dark);
}

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

/* ====== SECTIONS ====== */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #ffffff 0%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 5rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* ====== PAGE HERO (shared) ====== */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem 0;
  text-align: center;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-hero-bg img, .page-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,4,24,0.85) 0%, rgba(10,4,24,0.95) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ====== ANIMATED MESH BG ====== */
.mesh-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -10;
  background-color: var(--color-background);
  overflow: hidden;
  pointer-events: none;
}

.mesh-bg::before,
.mesh-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: meshFloat 25s infinite ease-in-out;
}

.mesh-bg::before {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(108,92,231,0.6) 0%, transparent 70%);
  top: -20%; left: -15%;
}

.mesh-bg::after {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(255,204,0,0.12) 0%, transparent 70%);
  bottom: -15%; right: -10%;
  animation-delay: -12s;
}

@keyframes meshFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, 4%) scale(1.05); }
  66% { transform: translate(-4%, 2%) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ====== MARQUEE ====== */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  gap: 4rem;
}

.marquee-track span {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 4px;
}

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

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }
  .page-hero { padding: 8rem 0 4rem 0; min-height: 40vh; }
}

/* ====== ANIMATION UTILITIES FOR VANILLA JS ====== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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