:root {
  --bg: #19181c;
  --fg: #f5f5f5;
  --pink: #ff3d77;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
}

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== HERO (mobile first) ===== */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column;
  text-align: center; overflow: hidden;
}

/* soft glow that gently breathes */
.hero::before {
  content: ""; position: absolute; top: -8%; left: 50%;
  width: 130vw; max-width: 720px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 61, 119, 0.22), transparent 62%);
  filter: blur(20px); z-index: -1;
  transform: translateX(-50%) scale(1);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.85; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.hero-inner {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px;
}

.hero-logo { display: flex; flex-direction: column; align-items: center; }

/* logo carousel (crossfade) */
.logo-stack {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 1 / 1;
  margin-bottom: 6px;
}
.logo-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.logo-slide.is-active { opacity: 1; transform: scale(1); }

.hero-word {
  color: #fff;
  font-size: clamp(34px, 11vw, 60px);
  letter-spacing: 2px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

/* ===== Entrada escalonada (reveal on load) ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.logo-stack, .hero-word { opacity: 0; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.logo-stack  { animation-delay: 0.25s; }
.hero-word   { animation-delay: 0.45s; }
.hero-marquee { opacity: 0; animation: fade-in 1.2s ease 0.75s both; }
.hero::before { animation: breathe 7s ease-in-out infinite, fade-in 1.6s ease both; }

/* ===== MARQUEE ===== */
.hero-marquee {
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: marquee 22s linear infinite; will-change: transform; }
.marquee-track span {
  font-family: "Anton", sans-serif;
  font-size: clamp(18px, 6vw, 32px);
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.14);
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ===== Larger screens scale up ===== */
@media (min-width: 600px) {
  .logo-stack { width: min(60vw, 460px); }
  .hero-word { font-size: clamp(56px, 8vw, 84px); letter-spacing: 3px; }
}

@media (min-width: 1024px) {
  .logo-stack { width: 460px; }
  .hero-word { font-size: 96px; }
  .marquee-track span { font-size: 40px; padding: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-slide { transition: none; }
}
