/* =========================================================
   HOME PAGE STYLES
   Personality: Welcoming, clear, balanced purple
   ========================================================= */

.page-home {
  --accent: var(--purple-primary);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.page-home .hero {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  background: var(--bg-dark);
  background-image:
    radial-gradient(at 50% 0%, rgba(191, 0, 255, 0.25), transparent 60%),
    radial-gradient(at 100% 100%, rgba(191, 0, 255, 0.1), transparent 50%),
    radial-gradient(at 0% 80%, rgba(191, 0, 255, 0.08), transparent 40%);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Logo background */
.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 90vw);
  height: min(900px, 90vw);
  opacity: 0.12;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero-bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(191, 0, 255, 0.4));
}

html.light .hero-bg-logo {
  opacity: 0.08;
}

html.light .hero-bg-logo img {
  filter: invert(1) drop-shadow(0 0 60px rgba(122, 0, 204, 0.3));
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -48%) scale(1.02) rotate(1deg);
  }
}

/* Animated accent orbs */
.hero-accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.accent {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 0, 255, 0.4), transparent 70%);
  filter: blur(40px);
  animation: pulse 6s ease-in-out infinite;
}

.accent-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.accent-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.accent-3 {
  width: 250px;
  height: 250px;
  bottom: 5%;
  left: 30%;
  animation-delay: 4s;
}

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

/* Hero content */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(191, 0, 255, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .intro {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero .intro p {
  margin-bottom: 0;
}

/* =========================================================
   GUIDANCE SECTION
   ========================================================= */
.page-home .guidance {
  padding: 3rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.guidance-content {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.guidance-content p {
  margin-bottom: 1rem;
}

.guidance-content strong {
  color: var(--purple-primary);
}

.featured-dispatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: 50px;
  font-size: 0.95rem;
}

.featured-dispatch .label {
  color: var(--text-muted);
}

.featured-dispatch a {
  font-weight: 600;
}

/* =========================================================
   QUICK LINKS
   ========================================================= */
.page-home .quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem 4rem;
  flex-wrap: wrap;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--text-light);
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quick-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(191, 0, 255, 0.2);
  border-color: var(--purple-primary);
  text-decoration: none;
}

.quick-link .link-icon {
  font-size: 1.25rem;
  color: var(--purple-primary);
}

html.light .quick-link {
  border-color: rgba(0, 0, 0, 0.1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
  .page-home .hero {
    padding: 4rem 1rem 3rem;
  }

  .hero-bg-logo {
    width: 100vw;
    height: 100vw;
    max-width: 500px;
    max-height: 500px;
    opacity: 0.1;
  }

  .accent-1 { width: 150px; height: 150px; }
  .accent-2 { width: 100px; height: 100px; }
  .accent-3 { width: 120px; height: 120px; }

  .page-home .quick-links {
    flex-direction: column;
    align-items: center;
  }

  .quick-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
