/* KSVF 2026 — Hero section
 * 좌: 행사명 + 메타 + CTA + 카운트다운
 * 우: 행성/데코/스파클 floating scene
 */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* ============================================================
   Background layers
   ============================================================ */
.bg { position: absolute; inset: 0; pointer-events: none; }
.bg.gridbg {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
}
.bg.gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,58,140,.5), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(157,123,255,.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(62,224,216,.12), transparent 60%);
}
.bg.stars { z-index: 0; }
.bg.stars span {
  position: absolute;
  width: 2px; height: 2px;
  background: white; border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50%      { opacity: .9; transform: scale(1); }
}

/* ============================================================
   Hero layout
   ============================================================ */
.hero-wrap {
  position: relative; z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px 60px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  min-height: calc(100vh - 80px);
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }

.hero-title {
  width: 100%;
  max-width: 620px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(125,240,160,.12));
}

.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta  { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   Hero scene — 행성 floating
   ============================================================ */
.hero-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1200px;
}
.hero-scene img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -14px); }
}

.hero-scene .scene-main {
  width: 70%;
  top: 18%; left: 16%;
  z-index: 5;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  animation: float 9s ease-in-out infinite;
}
.hero-scene .planet-env {
  width: 36%;
  top: 0%; right: -4%;
  z-index: 6;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.4));
  animation: float 11s ease-in-out infinite;
}
.hero-scene .planet-people {
  width: 32%;
  top: -2%; left: -2%;
  z-index: 6;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.4));
  animation: float 13s ease-in-out infinite;
  animation-delay: -2s;
}
.hero-scene .planet-purple {
  width: 16%;
  bottom: 14%; left: 4%;
  z-index: 4;
  filter: drop-shadow(0 14px 28px rgba(157,123,255,.4));
  animation: float 9s ease-in-out infinite;
  animation-delay: -4s;
}
.hero-scene .decor-saturn {
  width: 22%;
  bottom: 4%; right: -2%;
  z-index: 7;
  filter: drop-shadow(0 14px 28px rgba(125,240,160,.3));
  animation: float 14s ease-in-out infinite;
  animation-delay: -6s;
}
.hero-scene .decor-astronaut {
  width: 14%;
  top: 6%; left: 42%;
  z-index: 8;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
  animation: float 7s ease-in-out infinite;
  animation-delay: -1s;
}
.hero-scene .decor-small-purple {
  width: 10%;
  top: 38%; left: -3%;
  z-index: 4;
  filter: drop-shadow(0 8px 16px rgba(157,123,255,.4));
  animation: float 10s ease-in-out infinite;
  animation-delay: -3s;
}
.hero-scene .spark-big {
  width: 7%;
  top: 22%; right: 10%;
  z-index: 9;
  opacity: .9;
  animation: float 6s ease-in-out infinite, twinkle 3s ease-in-out infinite;
}
.hero-scene .spark-mid {
  width: 5%;
  bottom: 32%; left: 28%;
  z-index: 9;
  opacity: .8;
  animation: float 5s ease-in-out infinite, twinkle 2.5s ease-in-out infinite;
  animation-delay: -1s;
}
.hero-scene .spark-pink-dot {
  width: 2.5%;
  top: 8%; right: 28%;
  z-index: 9;
  animation: twinkle 2s ease-in-out infinite;
}
.hero-scene .spark-yellow-dot {
  width: 2%;
  bottom: 22%; right: 32%;
  z-index: 9;
  animation: twinkle 2.4s ease-in-out infinite;
  animation-delay: -.8s;
}

@media (max-width: 960px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: 16px 20px 40px;
  }
  .hero-title { max-width: 90%; }
  .hero-scene { aspect-ratio: 1.1 / 1; }
}
