/* ==========================================================================
   SMART CSD DIGITAL INAUGURATION SYSTEM - STYLES
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --color-maroon-dark: #120002;
  --color-maroon-deep: #2A0005;
  --color-maroon-medium: #4A000A;
  --color-maroon-light: #6E0D1B;
  
  --color-gold-bright: #FFE9A3;
  --color-gold-primary: #D4AF37;
  --color-gold-dark: #A37C15;
  --color-gold-deep: #5E4300;
  
  --color-cream-pure: #FFFDF9;
  --color-cream-soft: #F4EFE6;
  --color-cream-dim: #C4BEB3;
  
  --gold-gradient: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold-primary) 50%, var(--color-gold-dark) 100%);
  --maroon-gradient: radial-gradient(circle at center, var(--color-maroon-medium) 0%, var(--color-maroon-deep) 60%, var(--color-maroon-dark) 100%);
  --card-gradient: linear-gradient(145deg, rgba(74, 0, 10, 0.4) 0%, rgba(42, 0, 5, 0.6) 100%);
  
  --font-display: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  
  --glow-gold-subtle: 0 0 15px rgba(212, 175, 55, 0.25);
  --glow-gold-medium: 0 0 25px rgba(212, 175, 55, 0.45);
  --glow-gold-strong: 0 0 45px rgba(212, 175, 55, 0.7);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--maroon-gradient);
  font-family: var(--font-body);
  color: var(--color-cream-soft);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

/* Master Stage System */
.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  background: transparent;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.02);
}

/* Specific Solid Backgrounds for Cinematic Stages */
#stage-countdown, #stage-reveal {
  background: var(--color-maroon-dark);
}

/* Background Watermarks Container & Logos */
#bg-watermarks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  box-sizing: border-box;
}

.watermark-logo {
  pointer-events: none;
  user-select: none;
  animation: watermark-breath 10s ease-in-out infinite alternate;
}

.watermark-left {
  width: 25vw;
  max-width: 320px;
  opacity: 0.08;
  /* Invert black to white, apply gold-amber sepia tint, boost saturation/brightness */
  filter: invert(1) sepia(1) saturate(5) brightness(1.2) hue-rotate(5deg) drop-shadow(0 0 20px rgba(212, 175, 55, 0.45));
  mix-blend-mode: screen;
}

.watermark-right {
  width: 22vw;
  max-width: 280px;
  opacity: 0.08;
  /* Invert black to white, apply gold-amber sepia tint, boost saturation/brightness */
  filter: invert(1) sepia(1) saturate(5) brightness(1.2) hue-rotate(5deg) drop-shadow(0 0 20px rgba(212, 175, 55, 0.45));
  mix-blend-mode: screen;
}

.watermark-center {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36vw;
  max-width: 480px;
  opacity: 0.05;
  /* Invert blue/gold to show as golden hologram, blending white background to transparent */
  filter: invert(1) sepia(0.8) saturate(2.5) brightness(1.1) drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
  mix-blend-mode: screen;
  animation: watermark-breath-center 14s ease-in-out infinite alternate;
}

@keyframes watermark-breath {
  0% { transform: translateY(0) scale(1); opacity: 0.26; }
  100% { transform: translateY(-20px) scale(1.05); opacity: 0.38; }
}

@keyframes watermark-breath-center {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.16; }
  100% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.26; }
}


.stage.active-stage {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 20;
}

.stage-container {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.central-layout {
  align-items: center;
  justify-content: space-around;
  text-align: center;
}

/* Custom Particle Canvas overlay */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Global Typography Elements */
.glow-gold {
  color: transparent;
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ==========================================================================
   STAGE 0: FULLSCREEN PROMPT
   ========================================================================== */
#stage-fullscreen {
  background: radial-gradient(circle at center, #1b0003 0%, var(--color-maroon-dark) 100%);
}

.fullscreen-prompt-box {
  background: var(--card-gradient);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 15px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(212, 175, 55, 0.05);
  border-radius: 12px;
  padding: 50px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.logo-accent {
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  margin: 0 auto 25px;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  box-shadow: var(--glow-gold-subtle);
  animation: logo-spin 6s linear infinite;
}

.prompt-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--color-cream-pure);
  margin-bottom: 5px;
}

.prompt-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 4px;
  color: var(--color-gold-primary);
  margin-bottom: 25px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(212, 175, 55, 0.3) 50%, transparent 90%);
  margin-bottom: 25px;
}

.prompt-instruction {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-cream-dim);
  margin-bottom: 35px;
}

/* Premium Buttons */
.action-btn {
  background: transparent;
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 14px 35px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.action-btn:hover {
  color: var(--color-maroon-dark);
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: var(--glow-gold-medium);
  transform: translateY(-2px);
}

.action-btn:active {
  transform: translateY(1px);
}

/* ==========================================================================
   STAGE 1: WAITING / READY STATE
   ========================================================================== */
.brand-group {
  margin-top: 5vh;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.5rem;
  letter-spacing: 12px;
  margin-bottom: 10px;
}

.brand-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 8px;
  color: var(--color-cream-soft);
  margin-bottom: 15px;
}

.brand-description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--color-cream-dim);
  letter-spacing: 1px;
}

.ready-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 6px;
  color: var(--color-gold-dark);
  margin-bottom: 30px;
}

/* The Grand Inauguration Button */
.inaugurate-btn {
  background: linear-gradient(135deg, #3A0007 0%, #5E000B 50%, #3A0007 100%);
  border: 2px solid var(--color-gold-primary);
  border-radius: 50px;
  padding: 24px 60px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--color-cream-pure);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: breathing-glow 4s ease-in-out infinite;
  outline: none;
}

.inaugurate-btn .btn-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.inaugurate-btn .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 233, 163, 0.25), transparent);
  transform: skewX(-25deg);
  z-index: 1;
}

.inaugurate-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.45), inset 0 0 20px rgba(255, 233, 163, 0.3);
  border-color: var(--color-gold-bright);
}

.inaugurate-btn:hover .btn-shine {
  animation: shine-sweep 1.5s ease-out;
}

.inaugurate-btn:active {
  transform: scale(0.98) translateY(1px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.click-instruction {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-cream-dim);
  letter-spacing: 2px;
  margin-top: 25px;
}

.bg-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border: 1px dashed rgba(212, 175, 55, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.bg-ornament::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border: 1.5px solid rgba(212, 175, 55, 0.04);
  border-radius: 50%;
}

/* Visual Click Ripple */
.click-ripple {
  position: fixed;
  border: 2px solid var(--color-gold-primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: click-ripple-expand 1.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  z-index: 100;
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.4), 0 0 30px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   STAGE 2: INITIATING
   ========================================================================== */
.initiating-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 8px;
  font-weight: 600;
}

.loader-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 40px auto;
}

.loader-ring {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(212, 175, 55, 0.15);
  border-top: 3px solid var(--color-gold-primary);
  border-radius: 50%;
  animation: loader-spin 1.8s linear infinite;
  box-shadow: var(--glow-gold-subtle);
}

.loader-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--gold-gradient);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--glow-gold-medium);
  animation: loader-pulse 2s ease-in-out infinite;
}

.initiating-status {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-cream-dim);
  letter-spacing: 1.5px;
}

/* ==========================================================================
   STAGE 3: COUNTDOWN
   ========================================================================== */
.countdown-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18rem;
  line-height: 1;
  color: transparent;
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.5));
  transform: scale(0.6);
  opacity: 0;
  animation: none; /* Controlled via JS */
}

/* Countdown Keyframe trigger classes */
.countdown-pulse-anim {
  animation: count-pulse-effect 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   STAGE 4: LOGO REVEAL
   ========================================================================== */
.reveal-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-active .reveal-content {
  opacity: 1;
  transform: translateY(0);
}

.reveal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 7rem;
  letter-spacing: 16px;
  margin-bottom: 20px;
}

.reveal-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 10px;
  color: var(--color-cream-soft);
}

/* ==========================================================================
   STAGE 5: FEATURE SHOWCASE
   ========================================================================== */
.features-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-gradient);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 45px 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.card-show {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), var(--glow-gold-subtle);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 30px;
  color: var(--color-gold-primary);
  background: rgba(212, 175, 55, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1.5px solid rgba(212, 175, 55, 0.2);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  color: var(--color-gold-bright);
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  transform: scale(1.08);
}

.feature-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-cream-pure);
  margin-bottom: 15px;
}

.feature-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-cream-dim);
}

.features-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 4px;
  color: var(--color-gold-primary);
  margin-top: 5vh;
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s ease 1s;
}

.stage.active-stage .features-caption {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   STAGE 6: THE BIG MOMENT (LIVE)
   ========================================================================== */
.live-content {
  opacity: 0;
  transform: scale(0.9);
  transition: all 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage.active-stage .live-content {
  opacity: 1;
  transform: scale(1);
}

.live-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6.2rem;
  letter-spacing: 12px;
  margin-bottom: 25px;
  animation: live-text-glow 3s ease-in-out infinite alternate;
}

.live-subheadline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.2rem;
  letter-spacing: 10px;
  color: var(--color-cream-soft);
}

/* ==========================================================================
   STAGE 7: TRANSITION & WELCOME
   ========================================================================== */
.phone-frame-wrapper {
  perspective: 1200px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.stage.active-stage .phone-frame-wrapper {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.phone-frame {
  width: 320px;
  height: 580px;
  background: #0d0d0f;
  border: 12px solid #232328;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 40px rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #2e0007 0%, #100002 100%);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-header {
  height: 35px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  z-index: 10;
}

.phone-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #232328;
  border-radius: 9px;
}

.phone-status-icons {
  display: flex;
  gap: 8px;
  font-size: 0.65rem;
  color: var(--color-cream-dim);
  font-weight: 500;
}

.phone-app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--color-maroon-dark);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
  margin-bottom: 25px;
  animation: logo-float 4s ease-in-out infinite;
}

.app-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--color-cream-pure);
  margin-bottom: 5px;
}

.app-divider {
  width: 40px;
  height: 2px;
  background: var(--color-gold-primary);
  margin: 15px auto;
}

.welcome-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 5px;
  color: var(--color-gold-primary);
  margin-bottom: 10px;
}

.welcome-sub {
  font-size: 0.8rem;
  color: var(--color-cream-dim);
  text-align: center;
  line-height: 1.5;
  max-width: 200px;
}

.app-loading-dots {
  display: flex;
  gap: 8px;
  margin-top: 35px;
}

.app-loading-dots .dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold-primary);
  border-radius: 50%;
  animation: loading-dot-pulse 1.2s infinite ease-in-out;
}

.app-loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.app-loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.transition-hint {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--color-gold-primary);
  opacity: 0;
  animation: element-fade-in 1s ease forwards 1s;
}

/* ==========================================================================
   TEST MODE OVERLAY
   ========================================================================== */
.test-overlay {
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(18, 0, 2, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  padding: 8px 15px;
  z-index: 1000;
  font-size: 0.72rem;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  color: var(--color-cream-soft);
  pointer-events: none;
}

.test-overlay.hidden {
  display: none !important;
}

.test-badge {
  background: var(--color-gold-dark);
  color: var(--color-maroon-dark);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 700;
}

.test-controls strong {
  color: var(--color-gold-bright);
}

/* ==========================================================================
   KEYFRAMES & ANIMATIONS
   ========================================================================== */

/* Circular/Loader spins */
@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Breathing Glow effect for main inauguration button */
@keyframes breathing-glow {
  0%, 100% {
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.55), 0 0 15px rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold-primary);
  }
  50% {
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(212, 175, 55, 0.55);
    border-color: var(--color-gold-bright);
  }
}

/* Sweep effect across button */
@keyframes shine-sweep {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* Digital ripple on inauguration click */
@keyframes click-ripple-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 250vmax;
    height: 250vmax;
    opacity: 0;
    border-width: 8px;
  }
}

/* Countdown heavy scale-up pulse */
@keyframes count-pulse-effect {
  0% {
    transform: scale(0.3);
    opacity: 0;
    filter: blur(10px) drop-shadow(0 0 10px rgba(212, 175, 55, 0.1));
  }
  20% {
    transform: scale(1.1);
    opacity: 1;
    filter: blur(0px) drop-shadow(0 0 40px rgba(212, 175, 55, 0.6));
  }
  80% {
    transform: scale(1.0);
    opacity: 0.85;
    filter: blur(0px) drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
    filter: blur(15px) drop-shadow(0 0 10px rgba(212, 175, 55, 0.1));
  }
}

/* Floating animation for app logo */
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Pulsing loader dots in app mockup */
@keyframes loading-dot-pulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Live Text Pulsing */
@keyframes live-text-glow {
  0% {
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.35));
  }
  100% {
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.7));
  }
}

/* Simple fade-in */
@keyframes element-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness support for smaller viewport presentation */
@media (max-width: 1400px) {
  .brand-title {
    font-size: 4.2rem;
  }
  .reveal-title {
    font-size: 5.5rem;
  }
  .live-headline {
    font-size: 4.8rem;
  }
  .features-wrapper {
    gap: 20px;
    max-width: 960px;
  }
  .feature-card {
    padding: 30px 15px;
  }
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    padding: 14px;
  }
  .feature-name {
    font-size: 1.15rem;
  }
}

@media (max-width: 1024px) {
  .features-wrapper {
    grid-template-columns: repeat(2, 1fr);
    max-width: 650px;
  }
  .brand-title {
    font-size: 3.2rem;
    letter-spacing: 8px;
  }
  .reveal-title {
    font-size: 4rem;
  }
  .live-headline {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   CEREMONIAL STAGE: CURTAINS & PLAQUE STYLING
   ========================================================================== */

#stage-ceremony {
  background: radial-gradient(circle at center, #1b0003 0%, var(--color-maroon-dark) 100%);
  perspective: 1000px;
  overflow: hidden;
}

/* Spotlight Effect */
.spotlight-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(255, 233, 163, 0.18) 0%, rgba(0, 0, 0, 0.95) 75%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 3s ease;
}

#stage-ceremony.curtains-opened #ceremony-spotlight {
  opacity: 1;
}

/* Ceremonial Curtains Container */
#curtains-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  pointer-events: none;
}

.curtain {
  position: absolute;
  top: 0;
  width: 50vw;
  height: 100vh;
  /* Deep velvet look with vertical fold gradients */
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.6) 100%),
    repeating-linear-gradient(
      to right,
      #5c0612 0px,
      #3d020a 30px,
      #1a0003 60px,
      #3d020a 90px,
      #5c0612 120px
    );
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.9);
  transition: transform 3.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

.curtain-left {
  left: 0;
  transform-origin: left center;
}

.curtain-right {
  right: 0;
  transform-origin: right center;
}

/* Gold fringe details at bottom of curtains */
.curtain::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: repeating-linear-gradient(
    90deg,
    #d4af37 0px,
    #aa7c11 4px,
    #ffe9a3 8px,
    #aa7c11 12px,
    #d4af37 16px
  );
  box-shadow: 0 -3px 8px rgba(0,0,0,0.5);
}

/* Shadows that gather with curtains */
.curtain-shadow {
  position: absolute;
  top: 0;
  width: 50vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  filter: blur(40px);
  z-index: 99;
  transition: transform 3.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 3.5s ease;
  pointer-events: none;
}

.curtain-shadow-left {
  left: 0;
  transform-origin: left center;
}

.curtain-shadow-right {
  right: 0;
  transform-origin: right center;
}

/* Curtains Opened State - bunching up to the edges */
.curtains-opening .curtain-left,
.curtains-opened .curtain-left {
  transform: scaleX(0.06);
}

.curtains-opening .curtain-right,
.curtains-opened .curtain-right {
  transform: scaleX(0.06);
}

.curtains-opening .curtain-shadow-left,
.curtains-opened .curtain-shadow-left {
  transform: scaleX(0.06);
  opacity: 0;
}

.curtains-opening .curtain-shadow-right,
.curtains-opened .curtain-shadow-right {
  transform: scaleX(0.06);
  opacity: 0;
}

/* Ceremonial Stone Plaque */
.ceremonial-plaque {
  position: relative;
  background: radial-gradient(circle at 30% 30%, #303030 0%, #171717 75%, #080808 100%);
  border: 4px double var(--color-gold-primary);
  border-radius: 8px;
  box-shadow: 
    0 35px 75px rgba(0, 0, 0, 0.95), 
    inset 0 0 60px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(212, 175, 55, 0.15);
  padding: 50px 70px;
  max-width: 820px;
  width: 85%;
  text-align: center;
  z-index: 10;
  transform: scale(0.95) translateZ(-50px);
  opacity: 0;
  filter: blur(10px);
  transition: all 2.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}

#stage-ceremony.plaque-visible .ceremonial-plaque {
  opacity: 1;
  transform: scale(1) translateZ(0);
  filter: blur(0px);
}

/* Plaque Border Accent (Gold Bevel Outline) */
.plaque-border-accent {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  pointer-events: none;
  border-radius: 4px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

/* Weathered stone texture */
.plaque-stone-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12; /* Slightly increased opacity for richer texture */
  background-image: 
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 70%),
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(0, 0, 0, 0.4) 15px, rgba(0, 0, 0, 0.4) 30px);
  pointer-events: none;
  border-radius: inherit;
}

/* Plaque Content & Typography */
.plaque-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 2;
}

/* Deep chiseled/engraved text effect using multi-layered drop-shadow filters on gradient text */
.engraved-gold-text {
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 6px;
  text-shadow: none; /* Clear standard text-shadow to prevent covering gradient */
  filter: 
    drop-shadow(-1.5px -1.5px 0.5px rgba(0, 0, 0, 0.95)) 
    drop-shadow(1.5px 1.5px 0.5px rgba(255, 233, 163, 0.25))
    drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.9));
}

/* Deep engraved stone text effect using multi-layered text-shadows */
.engraved-text {
  color: var(--color-cream-soft);
  font-family: var(--font-display);
  letter-spacing: 4px;
  text-shadow: 
    -1.5px -1.5px 0.5px rgba(0, 0, 0, 0.95),
    -2px -2px 1px rgba(0, 0, 0, 0.65),
    1.5px 1.5px 0.5px rgba(255, 255, 255, 0.15),
    0px 3px 5px rgba(0, 0, 0, 0.85);
}

.plaque-title {
  font-size: 3.4rem;
  margin-bottom: 5px;
}

.plaque-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-cream-dim);
}

.plaque-name {
  font-size: 2.3rem;
  margin: 12px 0;
  letter-spacing: 5px;
}

.plaque-role {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-gold-primary);
  margin-bottom: 12px;
}

.plaque-date {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-cream-dim);
}

/* Press Continue Instruction Hint */
.press-continue-hint {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: rgba(212, 175, 55, 0.65);
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

#stage-ceremony.hint-visible .press-continue-hint {
  opacity: 1;
  animation: breathing-opacity 2.5s infinite ease-in-out;
}

@keyframes breathing-opacity {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.8; }
}

/* Plaque Outward Transition effect */
#stage-ceremony.plaque-transitioning .ceremonial-plaque {
  transform: scale(0.85) translateZ(-150px);
  opacity: 0;
  filter: blur(15px);
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

#stage-ceremony.plaque-transitioning .press-continue-hint {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#stage-ceremony.plaque-transitioning .spotlight-effect {
  opacity: 0;
  transition: opacity 1.2s ease;
}
