@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-noir: #080C0A;
  --ivory: #F9F6EE;
  --ivory-muted: #B8B5AB;
  --gold-primary: #C5A880;
  --gold-bright: #E5C392;
  --gold-glow: rgba(229, 195, 146, 0.4);
  --border-glass: rgba(255, 255, 255, 0.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: var(--bg-noir);
  color: var(--ivory);
  font-family: var(--font-sans);
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-noir);
  color: var(--ivory);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* =============================================================================
   SEÇÕES COM SNAP MAGNÉTICO OBRIGATÓRIO (PADRÃO AWWWARDS / APPLE)
   ============================================================================= */
.snap-scene {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  pointer-events: none;
}

.snap-section-full {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  position: relative;
}

/* =============================================================================
   CANVAS FULLSCREEN BACKGROUND FIXO (60 FPS LERP)
   ============================================================================= */
#story-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* Vinheta Cinemática Suave */
.cinematic-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(8, 12, 10, 0.1) 20%,
    rgba(8, 12, 10, 0.5) 70%,
    rgba(8, 12, 10, 0.9) 100%
  );
}

.cinematic-top-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(8, 12, 10, 0.85) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.cinematic-bottom-gradient {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, rgba(8, 12, 10, 0.9) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* =============================================================================
   TIPOGRAFIA PURA FLUTUANTE (ZERO CARDS SOBRE O VÍDEO)
   ============================================================================= */
.floating-story-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 10;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.story-text-moment {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: env(safe-area-inset-top, 24px) 1.5rem env(safe-area-inset-bottom, 24px) 1.5rem;
  opacity: 0;
  visibility: hidden;
  filter: blur(14px);
  transform: translate3d(0, 35px, -50px) scale(0.92);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.65s;
  pointer-events: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.story-text-moment.active {
  opacity: 1;
  visibility: visible;
  filter: blur(0px);
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

/* Gradientes e Brilhos de Luxo */
.gold-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5E6D3 35%, #E5C392 70%, #C5A880 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-glow-text {
  text-shadow: 0 0 35px rgba(229, 195, 146, 0.4), 0 6px 28px rgba(0, 0, 0, 0.95);
}

.linen-pill {
  background: rgba(15, 23, 20, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.linen-glass-card {
  background: rgba(12, 18, 15, 0.75);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(229, 195, 146, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.linen-glass-card:hover {
  border-color: rgba(229, 195, 146, 0.45);
  transform: translateY(-3px);
}

/* Linha decorativa de ouro */
.gold-divider {
  width: 54px;
  height: 1px;
  background: linear-gradient(to right, transparent, #E5C392, transparent);
  margin: 1.25rem auto;
}

/* Animação de Varredura de Brilho Dourado no Botão */
@keyframes shimmerSweep {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(200%) rotate(25deg);
  }
}

.btn-shimmer-effect {
  position: relative;
  overflow: hidden;
}

.btn-shimmer-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: shimmerSweep 3.5s infinite;
  pointer-events: none;
}

/* Marquee Contínuo */
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marqueeScroll 25s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #080C0A;
}

::-webkit-scrollbar-thumb {
  background: rgba(229, 195, 146, 0.35);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 195, 146, 0.7);
}

/* Redução de movimento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
