:root {
  --bg: #0a0a0c;
  --bg-elev: #131316;
  --brand: #00e080;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.container-x {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* UTILITIES */
.font-wordmark { font-family: 'Michroma', sans-serif; }
.font-display { font-family: 'Sora', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.bg-bg { background-color: var(--bg); }
.bg-bg-elev { background-color: var(--bg-elev); }
.text-text { color: var(--text); }
.text-text-muted { color: var(--text-muted); }
.text-text-faint { color: var(--text-faint); }
.text-brand { color: var(--brand); }
.border-line { border-color: var(--line); }

/* CINEMATIC FILM GRAIN FILTER */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
  opacity: 0.04;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* GLASSMORPHISM */
.glass-strong {
  background: rgba(19, 19, 22, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  transition: all 0.5s ease;
}
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}
.glass:hover {
  background: rgba(19, 19, 22, 0.6);
  border-color: rgba(0, 224, 128, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 224, 128, 0.15);
  z-index: 10;
}

/* GRADIENT TEXT ANIMATION */
@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.animate-gradient-x {
  animation: gradient-x 4s ease infinite;
  background-size: 200% auto;
}

/* ANIMATED GRID BACKGROUND */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
  animation: pan-grid 60s linear infinite;
}
@keyframes pan-grid {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

/* NAV LINKS */
.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* BUTTONS */
.btn-brand, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-brand {
  background-color: var(--text);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 224, 128, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.3);
}
.btn-brand:hover {
  background-color: var(--brand);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 224, 128, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.5);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* HERO ANIMATIONS & STICKY SCROLL */
.hero-scroll-container { height: 170vh; min-height: 900px; }
.hero-frame { will-change: transform, opacity; }
.radial-overlay { background: radial-gradient(70% 60% at 50% 50%, rgba(10,10,12,0), rgba(10,10,12,0.6)); }
.bg-gradient-to-t { background: linear-gradient(to top, var(--bg), transparent); }
.hero-emblem { width: 4rem; height: 4rem; margin-bottom: 1rem; border-radius: 50%; object-fit: cover; }

.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUpChar 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 0.05s);
}
.hero-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpChar 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.5s + (var(--i) * 0.1s));
}
@keyframes fadeUpChar {
  to { opacity: 1; transform: translateY(0); }
}

/* SCROLL INDICATOR (Creativos Style) */
.scroll-down-wrapper {
  position: absolute;
  bottom: 12vh;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.scroll-wheel {
  width: 3px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseScroll 1.5s infinite;
}
@keyframes mouseScroll {
  0% { top: 6px; opacity: 1; height: 6px; }
  50% { top: 15px; opacity: 0.5; height: 10px; }
  100% { top: 6px; opacity: 0; height: 6px; }
}

/* REVEAL ON SCROLL */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TABS (COMO JUGAR) */
.tab-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  text-align: left;
  transition: all 0.3s ease;
  width: 100%;
}
.tab-btn:hover { border-color: var(--line-strong); background: var(--bg-elev); }
.tab-btn.active { background: rgba(0,224,128,0.1); border-color: rgba(0,224,128,0.3); }
.tab-num { font-family: var(--font-wordmark); font-size: 0.75rem; color: var(--text-faint); transition: color 0.3s; }
.tab-name { font-family: var(--font-display); font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s; }
.tab-btn.active .tab-num { color: var(--brand); }
.tab-btn.active .tab-name { color: var(--text); }

.stage-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
.stage-pane.active { opacity: 1; visibility: visible; z-index: 2; }

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.store-pill:hover { border-color: #fff; background: rgba(0,0,0,0.5); }

/* MARQUEE */
.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* CLIP CARDS */
.clip-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 320px;
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.clip-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand);
  box-shadow: 0 15px 30px rgba(0, 224, 128, 0.15);
}
.clip-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.clip-card:hover .clip-bg {
  transform: scale(1.08);
}
.clip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.2) 60%, rgba(10,10,12,0) 100%);
  z-index: 1;
}
.clip-content {
  position: relative;
  z-index: 2;
}
.clip-tag {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ORBS ANIMATION */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}
.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}
