/* ==========================================================================
   ROAS CLUB — Fast-Paced Photo Montage / Image Remix Intro Engine
   (No neon light effects — Raw, editorial high-fashion photographic cut)
   ========================================================================== */

/* Full-Screen Remix Curtain */
#roas-intro-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  z-index: 999999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  pointer-events: all;
  opacity: 1;
}

/* Fullscreen Fast Image Remix Layer */
#roas-remix-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #000000;
}

.roas-remix-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  filter: contrast(1.12) brightness(0.78);
  will-change: opacity, transform;
}

.roas-remix-photo.active {
  opacity: 1;
}

/* Gritty Film Grain / Scanline Texture for Editorial Vibe */
.roas-remix-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: 
    radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 3px);
}

/* Top Telemetry / Timecode Bar */
.roas-intro-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

.roas-rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #ef4444;
}

.roas-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  animation: roasRecBlink 0.8s infinite alternate ease-in-out;
}

@keyframes roasRecBlink {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

/* Centerpiece Hub with Difference Blend Mode */
.roas-intro-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 0;
  mix-blend-mode: difference;
}

/* Center ROAS Logo flashing against the rapid photo remix */
.roas-intro-logo-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.roas-intro-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.2);
  transform: translateZ(0);
}

.roas-intro-tagline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Clean Minimalist Progress Line */
.roas-intro-progress-wrap {
  width: 260px;
  max-width: 80vw;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.roas-intro-progress-bar {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.roas-intro-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #ffffff;
  transition: width 0.05s linear;
}

.roas-intro-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #ffffff;
}

/* Bottom Bar */
.roas-intro-bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

.roas-intro-skip-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roas-intro-skip-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* Shutter Exit Animation (Clean Flash Cut) */
.roas-shutter-opening {
  animation: roasFlashCutOut 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes roasFlashCutOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    filter: brightness(1.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
    visibility: hidden;
  }
}

/* ==========================================================================
   Progressive Construction System (Clean & Crisp)
   ========================================================================== */

/* Header Construction Drop-Down */
.roas-header-construct {
  animation: roasHeaderConstruct 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both !important;
}

@keyframes roasHeaderConstruct {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Model Construction Pop-In */
.roas-3d-construct {
  animation: roas3DConstruct 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both !important;
}

@keyframes roas3DConstruct {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Background Atmosphere Zoom Out */
.roas-bg-construct {
  animation: roasBgConstruct 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes roasBgConstruct {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Product Card Progressive Construction with Pixel Materialization */
.roas-card-initial {
  opacity: 0 !important;
  transform: translateY(35px) scale(0.94) !important;
  pointer-events: none !important;
}

.roas-card-building {
  animation: roasBuildCard 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes roasBuildCard {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }
}

/* Replay Remix Trigger in corner */
.roas-replay-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d4d4d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  opacity: 0.7;
}

.roas-replay-trigger:hover {
  opacity: 1;
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
