/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --gold-primary: #D4A843;
  --gold-light: #F0D78C;
  --gold-dark: #A07D2E;
  --gold-glow: rgba(212, 168, 67, 0.3);
  --bg-dark: #0a0a12;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-white: #f5f5f7;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-subtle: rgba(255, 255, 255, 0.35);
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-gold: 0 0 60px rgba(212, 168, 67, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-gradient-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-primary), transparent 70%);
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.bg-gradient-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(120, 80, 200, 0.5), transparent 70%);
  bottom: -20%;
  right: -10%;
  animation-delay: -7s;
  animation-duration: 25s;
}

.bg-gradient-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.3), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  animation-duration: 18s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.05); }
}

/* Particle canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Grid pattern overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 0;
}

/* ===== LOGO ===== */
.logo-wrapper {
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.logo-wrapper img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.3));
  transition: var(--transition-smooth);
}

.logo-wrapper img:hover {
  filter: drop-shadow(0 0 50px rgba(212, 168, 67, 0.5));
  transform: scale(1.05);
}

/* ===== HERO TEXT ===== */
.hero-text {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-section {
  animation: fadeInUp 1s ease-out 0.6s both;
  margin-bottom: 50px;
}

.countdown-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countdown-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 14px 16px;
  min-width: 100px;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.countdown-card:hover::before {
  opacity: 1;
}

.countdown-card:hover {
  border-color: rgba(212, 168, 67, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.countdown-card--seconds {
  border-color: rgba(212, 168, 67, 0.15);
}

.countdown-card--seconds .countdown-value {
  color: var(--gold-primary);
}

.countdown-value {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.countdown-value.flip {
  animation: flipDigit 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes flipDigit {
  0% { transform: translateY(-10px); opacity: 0.3; }
  50% { transform: translateY(3px); }
  100% { transform: translateY(0); opacity: 1; }
}

.countdown-unit {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.countdown-separator {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold-primary);
  opacity: 0.5;
  padding-bottom: 16px;
  animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.15; }
}

/* Seconds ring animation */
.seconds-ring {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 100px;
  overflow: hidden;
}

.seconds-ring-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  border-radius: 100px;
  width: 0%;
  transition: width 1s linear;
}

/* ===== DOMAIN BADGE ===== */
.domain-badge {
  animation: fadeInUp 1s ease-out 0.8s both;
  margin-bottom: 40px;
}

.domain-badge a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.12), rgba(212, 168, 67, 0.04));
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 100px;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.domain-badge a:hover {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.08));
  border-color: rgba(212, 168, 67, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.15);
}

.domain-badge a svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 1s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  color: var(--gold-primary);
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.12);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== FOOTER ===== */
.footer-section {
  position: static !important;
  width: 100% !important;
  max-width: 500px;
  margin-top: 30px !important;
  margin-bottom: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  clear: both !important;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.footer-divider {
  width: 220px !important;
  max-width: 80% !important;
  height: 1px !important;
  margin: 0 auto 16px auto !important;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent) !important;
  opacity: 0.6 !important;
}

.footer-text {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.6px !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

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

/* Loading screen */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(212, 168, 67, 0.1);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .countdown-grid {
    gap: 8px;
  }

  .countdown-card {
    min-width: 72px;
    padding: 16px 8px 14px;
  }

  .countdown-separator {
    font-size: 1.8rem;
  }

  .logo-wrapper img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 30px 16px;
  }

  .countdown-card {
    min-width: 62px;
    padding: 14px 6px 12px;
  }

  .countdown-value {
    font-size: 1.8rem;
  }

  .countdown-separator {
    font-size: 1.4rem;
    padding-bottom: 12px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 16px;
  }
}

@media (max-width: 360px) {
  .countdown-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .countdown-separator {
    display: none;
  }

  .countdown-card {
    min-width: 70px;
  }
}
