/* ============================================
   BILIJI - Modern Mysterious Social Aesthetic
   ============================================ */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Color Palette - Dark & Neon */
  --bg-primary: #0a0a0b;
  --bg-secondary: #121214;
  --bg-card: rgba(20, 20, 25, 0.8);
  
  /* Neon Accent Colors */
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  /* Glow Effects */
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
  --glow-pink: 0 0 20px rgba(236, 72, 153, 0.4), 0 0 40px rgba(236, 72, 153, 0.2);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Glow Effect */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Noise Texture Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.08;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
}

/* Selection Styles */
::selection {
  background: var(--accent-purple);
  color: var(--text-primary);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

/* ============================================
   HEADER
   ============================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
  animation: fadeInDown 0.8s ease-out;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent-purple);
}

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

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  animation: fadeIn 1s ease-out 0.3s backwards;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 1;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.subtitle::after {
  content: '●';
  display: inline-block;
  margin-left: 0.5rem;
  animation: blink 1.5s ease-in-out infinite;
  color: var(--accent-cyan);
}

h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 .highlight {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent-purple);
  line-height: 1.8;
}

.description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.description .accent {
  color: var(--accent-cyan);
  font-weight: 500;
}

.description .danger {
  color: var(--accent-pink);
  font-weight: 500;
}

/* Level Cards */
.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin: 2rem 0;
}

.level-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

/* Card 1 - Soft/Pale Violet (Lightweight) */
.level-card:nth-child(1) {
  border: 1px solid rgba(196, 181, 253, 0.15);
  background: rgba(196, 181, 253, 0.03);
  opacity: 0.8;
}

.level-card:nth-child(1):hover {
  border-color: rgba(196, 181, 253, 0.4);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(196, 181, 253, 0.2);
}

/* Card 2 - Vibrant Electric Purple (Energetic) */
.level-card:nth-child(2) {
  border: 2px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
}

.level-card:nth-child(2):hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

/* Card 3 - Bright Neon Cyan/Turquoise (HERO - Trust & Connection) */
.level-card:nth-child(3) {
  border: 3px solid rgba(6, 182, 212, 0.6);
  background: rgba(6, 182, 212, 0.12);
  animation: cardPulsate 3s ease-in-out infinite;
}

.level-card:nth-child(3):hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.6), 0 0 60px rgba(6, 182, 212, 0.3);
}

.level-card:nth-child(3) .level-time {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.level-card:nth-child(3) .level-label {
  color: var(--accent-cyan);
  font-weight: 700;
}

.level-time {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.level-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Card Pulsate Animation */
@keyframes cardPulsate {
  0%, 100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 60px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.8);
  }
}

/* Waitlist Card */
.waitlist-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.waitlist-card:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.waitlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.waitlist-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.beta-badge {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.waitlist-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.waitlist-card p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.waitlist-card p .reward {
  color: var(--accent-pink);
  font-weight: 600;
  font-style: italic;
}

/* Form Styles */
.waitlist-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 250px;
  background: rgba(10, 10, 11, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1), var(--glow-purple);
}

.submit-btn {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--glow-purple);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Status */
.form-status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-status.hidden {
  display: none;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-status.error {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: var(--accent-pink);
}

/* Queue Counter */
.queue-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.queue-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.queue-count {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9375rem;
}

.queue-count.animating {
  filter: blur(2px);
  color: var(--accent-purple);
  text-shadow: 0 0 8px var(--accent-purple);
  transition: all 0.1s ease;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  animation: fadeIn 1s ease-out 0.6s backwards;
}

footer p {
  margin-bottom: 0.5rem;
}

footer .location {
  opacity: 0.6;
  font-style: italic;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1.25rem;
  }
  
  header {
    margin-bottom: 3rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  main {
    gap: 2rem;
  }
  
  .levels {
    gap: 0.75rem;
  }
  
  .level-card {
    padding: 1rem 0.75rem;
  }
  
  .level-time {
    font-size: 1.25rem;
  }
  
  .level-label {
    font-size: 0.6875rem;
  }
  
  .waitlist-card {
    padding: 1.5rem;
  }
  
  .waitlist-form {
    flex-direction: column;
  }
  
  .email-input,
  .submit-btn {
    width: 100%;
  }
  
  footer {
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .levels {
    grid-template-columns: 1fr;
    max-width: 200px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .description {
    font-size: 1rem;
  }
}
