@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;700&family=Outfit:wght@300;400;600;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --bg-base: #0b090f;
  --bg-surface: rgba(20, 16, 30, 0.65);
  --border-color: rgba(168, 85, 247, 0.25);
  --border-hover: rgba(234, 179, 8, 0.45);
  
  --primary: #a855f7;        /* Mystic Purple */
  --primary-glow: rgba(168, 85, 247, 0.5);
  --secondary: #eab308;      /* Warm Gold */
  --secondary-glow: rgba(234, 179, 8, 0.4);
  
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --text-gold: #fef08a;

  --font-display: 'Cinzel Decorative', serif;
  --font-header: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;

  --glass-blur: blur(12px);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-gold: 0 0 15px var(--secondary-glow);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 100%;
}

body {
  overflow: hidden;
  height: 100%;
  width: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-header);
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION (Fullscreen video)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 2rem;
  text-align: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(11, 9, 15, 0.45) 0%, rgba(11, 9, 15, 0.95) 90%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.8s ease-out forwards;
}

.hero-logo {
  max-width: 260px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.45));
  animation: logo-float 4s ease-in-out infinite;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 10px rgba(234, 179, 8, 0.3);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   CARDS & CONTAINERS (GLASSMORPHISM)
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(234, 179, 8, 0.08), 0 0 15px rgba(168, 85, 247, 0.15);
}

/* ==========================================================================
   FORM CONTROLS & BUTTONS
   ========================================================================== */
.form-group {
  width: 100%;
}

.form-select {
  width: 100%;
  background: rgba(11, 9, 15, 0.75);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 4px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-select:focus {
  border-color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #7e22ce);
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b55fe6, var(--primary));
  box-shadow: var(--shadow-glow);
}

.btn-primary:disabled {
  background: #3b2f54;
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   SUCCESS MESSAGE STYLES
   ========================================================================== */
.success-message {
  background: var(--bg-surface);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  padding: 2rem;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-align: center;
  box-shadow: var(--shadow-gold);
  animation: fadeIn 0.5s ease-out;
}

.success-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: var(--shadow-gold);
}

.success-message h3 {
  font-family: var(--font-header);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.success-message p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   SCROLL DOWN / STATUS INDICATOR
   ========================================================================== */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: var(--shadow-gold);
  animation: pulse-dot 1.8s infinite;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 10px 4px rgba(234, 179, 8, 0.2); }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
}

/* ==========================================================================
   DELAYED SIGNUP ANIMATIONS & CARD LAYOUT
   ========================================================================== */
.signup-delayed-container {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100vh);
  transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.signup-delayed-container.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.signup-card-slimmer {
  max-width: 360px; /* Slimmer card */
  width: 100%;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-title {
  font-family: var(--font-header);
  font-size: 1.05rem;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 0.2rem;
}

.signup-card-slimmer .form-select {
  text-align: center;
  padding: 0.8rem 1rem;
}

.signup-card-slimmer .btn {
  width: 100%;
  padding: 0.8rem 1rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 600px) {
  .hero-content {
    padding: 1.5rem;
  }
  .hero-tagline {
    font-size: 1.75rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .card {
    padding: 1.5rem !important;
  }
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
