/* ==========================================================================
   BASE — Reset moderno + tipografia + utilidades
   ========================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--text-base);
  background: var(--bg-base);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }

input:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--c-pink); color: var(--c-black); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--c-gray-100); }
::-webkit-scrollbar-thumb { background: var(--c-black); }
::-webkit-scrollbar-thumb:hover { background: var(--c-pink-dark); }

/* ---------- TYPOGRAPHY BASE ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: inherit;
}

p { line-height: var(--lh-base); }

strong, b { font-weight: var(--fw-bold); }

/* ---------- UTILITY: CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}
.container--narrow { max-width: var(--container-narrow); }
.container--tight { max-width: var(--container-tight); }

/* ---------- UTILITY: SECTIONS ---------- */
.section {
  padding-block: var(--section-py);
  padding-inline: var(--section-px);
}
.section--dark {
  background: var(--c-black);
  color: var(--c-white);
}
.section--dark .section-sub { color: var(--c-gray-400); }
.section--muted { background: var(--c-gray-100); }
.section--flush { padding-inline: 0; }

/* ---------- UTILITY: SECTION LABEL + TITLE ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--c-gray-400);
  margin-bottom: var(--s-4);
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--c-pink);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-5);
  max-width: 26ch;
}
.section-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
}

/* Highlight — gradient shimmer text (desktop only, pausa no mobile) */
.highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--c-pink) 0%, var(--c-pink-light) 40%, var(--c-pink-dark) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .highlight {
    animation: textShimmer 5s ease-in-out infinite alternate;
  }
}
@keyframes textShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- UTILITY: FADE-UP (reveal on scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }

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

/* ---------- UTILITY: SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  z-index: 999;
  padding: var(--s-3) var(--s-5);
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  border: 2px solid var(--c-pink);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible {
  top: var(--s-4);
  outline: none;
}

/* ---------- UTILITY: MARQUEE ---------- */
.marquee {
  overflow: hidden;
  background: var(--c-black);
  border-block: var(--border-2);
  padding-block: var(--s-6);
}
.marquee__track {
  display: flex;
  animation: marqueeSlide 35s linear infinite;
  width: max-content;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-inline: var(--s-10);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}
.marquee__item::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--c-pink);
  flex-shrink: 0;
}
@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- UTILITY: SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0%;
  background: var(--c-pink);
  z-index: var(--z-progress);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---------- UTILITY: PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--c-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  transition: opacity var(--dur-slow), visibility var(--dur-slow);
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: var(--fw-black);
  color: var(--c-white);
  letter-spacing: var(--ls-tight);
}
.preloader__logo span { color: var(--c-pink); }
.preloader__bar {
  width: 200px;
  height: 2px;
  background: var(--c-gray-600);
  overflow: hidden;
}
.preloader__bar::after {
  content: '';
  display: block;
  width: 0;
  height: 100%;
  background: var(--c-pink);
  animation: preloadFill 1.4s var(--ease-out) forwards;
  box-shadow: 0 0 8px var(--c-pink);
}
@keyframes preloadFill { to { width: 100%; } }
