@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: #d4d4d8;
  background-color: var(--color-brand-dark);
  overflow-x: hidden; /* Prevent horizontal scroll issues with animations */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 400;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #3f3f46; }
::-webkit-scrollbar-thumb:hover { background: #D4AF37; }

.gold-gradient-text {
  background: linear-gradient(to right, #D4AF37, #F3E5AB, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* --- Global CAPTCHA Overlay --- */
#global-captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}

#global-captcha-overlay.gc-fade-out {
  opacity: 0;
  pointer-events: none;
}

.gc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gc-card {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: #111111;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 40px 32px 36px;
  text-align: center;
}

.gc-card::before,
.gc-card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #D4AF37;
  border-style: solid;
}
.gc-card::before {
  top: 0; left: 0;
  border-width: 1px 0 0 1px;
}
.gc-card::after {
  bottom: 0; right: 0;
  border-width: 0 1px 1px 0;
}

.gc-logo-row {
  margin-bottom: 20px;
}

.gc-icon {
  font-size: 36px;
  color: #D4AF37;
}

.gc-title {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.gc-subtitle {
  font-size: 13px;
  color: #71717a;
  margin: 0 0 28px;
  letter-spacing: 0.04em;
}

.gc-track {
  position: relative;
  width: 100%;
  height: 52px;
  background: #0a0a0a;
  border: 1px solid #3f3f46;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.gc-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
  transition: width 0.1s ease-out;
}

.gc-handle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  margin: 2px;
  background: linear-gradient(135deg, #D4AF37, #b8962e);
  border: 1px solid rgba(243, 229, 171, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: box-shadow 0.2s;
  z-index: 2;
  touch-action: none;
}

.gc-handle:active { cursor: grabbing; }

.gc-handle i {
  color: #050505;
  font-size: 14px;
  pointer-events: none;
}

.gc-track:not(.gc-complete) .gc-handle:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.gc-text,
.gc-success {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #71717a;
  pointer-events: none;
  z-index: 1;
}

.gc-success { color: #22c55e; }
.gc-success i { margin-right: 6px; }

.gc-hidden { display: none !important; }

.gc-complete {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}

.gc-complete .gc-handle {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(34, 197, 94, 0.6);
}

.gc-shake {
  animation: gc-shake 0.4s ease-in-out;
}

@keyframes gc-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

@keyframes gc-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0), var(--dy, 0)) scale(0);
  }
}
