/* === PREMIUM PAGE (index.html) SPECIFIC STYLES === */

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

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* Landing Page */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 40px;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 2; /* Above glass overlay */
}

.landing.visible {
  opacity: 1;
}

/* Landing page uses glass overlay */
.landing.glass-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 141, 64, 0.02) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(230, 103, 54, 0.01) 0%,
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.008) 0%,
      transparent 20%,
      transparent 80%,
      rgba(255, 255, 255, 0.004) 100%
    );
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  opacity: 0.6;
}

.landing-content {
  max-width: 800px;
  text-align: center;
  z-index: 3;
  position: relative;
}

/* Headline styles - premium page specific */
.landing-headline {
  font-weight: 900;
  font-style: italic;
  font-size: clamp(52px, 6vw, 72px);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffb366;
  text-shadow:
    0 0 30px rgba(255, 179, 102, 0.3),
    0 0 60px rgba(255, 179, 102, 0.1);

  /* Add the sunrise animation */
  animation:
    fadeInUp 0.8s var(--smooth-easing) forwards,
    sunriseGlow 2.5s 0.3s ease-out forwards; /* 0.3s delay for fadeIn to start first */

  /* Ensure the final state persists after animation */
  animation-fill-mode: forwards;
}

.landing-subheadline {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-dim);
  margin-bottom: 60px;
  margin-top: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.3s ease;
}

/* Premium button grid with stagger effect */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 800px;
  width: 100%;
  margin-top: 40px;
  perspective: 1000px;
}

/* === RESPONSIVE DESIGN - PREMIUM PAGE === */

@media (max-width: 768px) {
  .main-logo {
    height: 140px;
  }

  .brand-text {
    font-size: 28px;
  }

  .logo-container {
    margin: 0 auto 20px;
    gap: 6px;
  }

  .landing-headline {
    margin-bottom: 6px;
  }

  .landing-subheadline {
    margin-top: 10px;
    margin-bottom: 40px;
  }

  .landing {
    padding: 24px 20px 40px;
  }

  .button-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    perspective: none;
  }

  .path-button {
    padding: 40px 24px;
  }

  .button-title {
    font-size: 24px;
  }

  .logo-container:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 8px;
    border-radius: 12px;
  }
}

/* === ACCESSIBILITY - PREMIUM PAGE === */

@media (prefers-reduced-motion: reduce) {
  .path-button:hover {
    transform: none;
  }

  .landing-headline {
    animation: fadeInUp 0.8s var(--smooth-easing) forwards;
    /* Skip the sunrise glow for reduced motion */
    color: #ffb366; /* Jump to final state */
    text-shadow:
      0 0 30px rgba(255, 179, 102, 0.3),
      0 0 60px rgba(255, 179, 102, 0.1);
  }

  .landing-headline::after {
    display: none;
  }
}