/* ---------------------------------------------
   BELLAQUEO LAB -- Design Tokens
--------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #dc2626;
  --color-primary-light: #ef4444;
  --color-primary-dark: #b91c1c;
  --color-accent: #ff3333;

  --color-bg: #000000;
  --color-bg-alt: #0a0a0a;
  --color-bg-card: #111111;
  --color-text: #f5f5f5;
  --color-text-muted: #6b7280;
  --color-border: rgba(220, 38, 38, 0.2);

  /* Typography */
  --font-heading: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Space Grotesk', 'Inter', system-ui, sans-serif;

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

  /* Shadows */
  --shadow-red: 0 0 40px rgba(220, 38, 38, 0.4);
  --shadow-red-lg: 0 0 80px rgba(220, 38, 38, 0.3);

  /* Standard Tokens */
  --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);
}

/* ---------------------------------------------
   INTRO SCREEN
--------------------------------------------- */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.7, 0, 0.84, 0),
              transform 0.9s cubic-bezier(0.7, 0, 0.84, 0);
}

#intro-screen.exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

#intro-screen.gone {
  display: none;
}

.intro-logo {
  width: clamp(180px, 35vw, 320px);
  height: clamp(180px, 35vw, 320px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-logo.show {
  opacity: 1;
  transform: scale(1);
}

.intro-brand {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  margin-top: 1.5rem;
}

.intro-brand.show {
  opacity: 1;
  transform: translateY(0);
}

.intro-tagline {
  font-family: var(--font-body);
  color: #dc2626;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
  margin-top: 0.5rem;
}

.intro-tagline.show {
  opacity: 1;
}

.intro-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-particles::before,
.intro-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.intro-particles::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220,38,38,0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 2.5s ease-in-out infinite;
}

.intro-particles::after {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,50,50,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 2s ease-in-out infinite 0.5s;
}

/* ---------------------------------------------
   NAVIGATION
--------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 38, 38, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.97);
  box-shadow: 0 4px 30px rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-logo span {
  font-family: var(--font-heading);
  letter-spacing: 0.2em;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #dc2626;
  transition: width 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border: 1px solid #dc2626;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  background: #dc2626;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #ffffff;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------------------------------------------
   MOBILE MENU
--------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  line-height: 1;
}

.mobile-nav-link:hover {
  color: #dc2626;
}

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

.icon.hidden {
  display: none;
}

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

/* ---------------------------------------------
   TICKER / MARQUEE
--------------------------------------------- */
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 20s linear infinite;
}

.ticker-item {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  padding: 0 2rem;
}

/* ---------------------------------------------
   HERO BADGES -- liquid glass effect
--------------------------------------------- */
.hero-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(220, 38, 38, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.07),
    0 0 20px rgba(220,38,38,0.15);
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.1) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------------------------------------------
   CTA GLASS BUTTON
--------------------------------------------- */
.cta-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 38, 38, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-glass:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 20px rgba(220,38,38,0.2);
}

/* ---------------------------------------------
   CONTACT GLASS CARDS
--------------------------------------------- */
.contact-glass-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(220, 38, 38, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.04) 30%,
    rgba(255,255,255,0) 60%,
    rgba(220,38,38,0.12) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.contact-glass-card:hover {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.04);
  box-shadow: 0 0 30px rgba(220,38,38,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

.contact-card-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,38,38,0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.contact-glass-card:hover .contact-card-glow {
  opacity: 1;
}

/* Contact icon wrapper */
.contact-icon-wrap {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220,38,38,0.3);
  flex-shrink: 0;
  background: rgba(220,38,38,0.05);
}

/* ---------------------------------------------
   SCROLL REVEAL
--------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s 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: 120ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 360ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 480ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 600ms; }
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------
   KEYFRAMES
--------------------------------------------- */
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

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

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

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

@keyframes particleFade {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  50%       { opacity: 1; transform: translateY(-15px) scale(1.2); }
}

/* ---------------------------------------------
   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;
  }

  #intro-screen {
    display: none !important;
  }

  .ticker-track {
    animation: none !important;
  }
}

body { margin: 0; }
.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}
