:root {
  --color-gold: #fdcf39;
  --color-gold-hover: #ffb949;
  --color-bg-dark: #000000;
  --color-bg-card: #131314;
  --color-bg-secondary: #161617;
  --color-border: #29292d;
  --color-text-primary: #ffffff;
  --color-text-secondary: #959597;
  --font-primary: "Onest", "Outfit", system-ui, sans-serif;
  --font-display: "Outfit", "Onest", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.loading {
  overflow: hidden;
  height: 100vh;
}

.bg-glow-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(
    circle,
    rgba(253, 207, 57, 0.07) 0%,
    rgba(253, 207, 57, 0.02) 45%,
    rgba(0, 0, 0, 0) 75%
  );
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.bg-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 45vh;
  background: radial-gradient(ellipse at top, rgba(253, 207, 57, 0.04) 0%, rgba(0, 0, 0, 0) 80%);
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.main-container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 40px;
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-section {
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  flex-shrink: 0;
}

.logo-container {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: logoFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-logo {
  width: 450px;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

.content-section {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 40px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-subtext {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  text-align: center;
  user-select: none;
  max-width: 520px;
  line-height: 1.4;
  min-height: 2.8em;
  transition: opacity 0.25s ease;
}

.countdown-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.countdown-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  height: 68px;
  width: 68px;
  max-width: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body.is-up .countdown-box {
  border-color: rgba(253, 207, 57, 0.35);
  background: rgba(253, 207, 57, 0.06);
  box-shadow: 0 0 22px rgba(253, 207, 57, 0.12);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.8px;
  color: var(--color-gold);
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(253, 207, 57, 0.08);
  box-shadow: 0 4px 15px rgba(253, 207, 57, 0.15);
  transform: translateY(-4px);
}

.social-btn:active {
  transform: translateY(-1px) scale(0.96);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(50% + 20px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, 50%);
  }
}

.preloader-overlay {
  position: fixed;
  inset: 0;
  background-color: #202024;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.5s ease-in-out;
}

.preloader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  height: 48px;
  user-select: none;
  pointer-events: none;
}

.preloader-overlay.fade-out .preloader-logo-container {
  opacity: 0;
}

.preloader-logo-wrapper {
  display: inline-flex;
  align-items: baseline;
}

.preloader-letter {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  line-height: 0;
  animation: preloaderBounce 2.1s ease-in-out infinite;
  animation-delay: calc(var(--index) * 0.1s);
}

.preloader-letter img,
.preloader-letter svg {
  display: block;
  height: 36px;
  width: auto;
  vertical-align: baseline;
}

.preloader-o-letter img {
  height: 56px;
  margin-left: 4px;
  margin-right: -4px;
}

.preloader-dot-letter {
  margin-left: -2px;
}

.preloader-dot-letter svg {
  height: 7px;
  width: 9px;
}

.preloader-glow {
  position: absolute;
  top: 0;
  left: 0;
  filter: blur(4px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

@keyframes preloaderBounce {
  0%,
  28.57%,
  100% {
    transform: translateY(0) scale(1);
  }
  14.28% {
    transform: translateY(-20px) scale(1.1);
  }
}

@media (max-width: 480px) {
  .main-logo {
    width: 300px;
  }

  .content-section {
    padding-top: 38px;
    padding-bottom: 30px;
  }

  .logo-subtext {
    font-size: 12px;
    letter-spacing: 5px;
    margin-bottom: 24px;
  }

  .countdown-container {
    gap: 12px;
  }

  .countdown-box {
    height: 58px;
    width: 58px;
    max-width: 58px;
    padding: 6px 0;
    border-radius: 10px;
  }

  .countdown-value {
    font-size: 16px;
    line-height: 1.1;
  }

  .countdown-label {
    font-size: 8px;
  }

  .social-links {
    gap: 12px;
    margin-top: 32px;
  }
}
