/* ============================================================
   comp-hero.css (Lego Block)
   Hero Section with Neon Glow & Subtle Watermark
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 0 80px; /* 마키가 들어왔으므로 하단 여백 축소 */
  min-height: 850px; /* 충분한 최소 높이 보장 */
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background-color: #170440;
}

.hero .container { position: relative; z-index: 10; width: 100%; }

/* ── Hero Split Layout ─────────────────────────────────── */
.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 10;
}
.hero-content { 
  width: 100%; 
  pointer-events: auto; 
  position: relative; 
  z-index: 10; 
}
.hero-visual { 
  width: 100%; 
  position: relative; 
  min-height: 500px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  pointer-events: none; 
}

/* ── 3D Canvas Background & Fallback Layers ──────────────── */
.hero-canvas-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-fallback-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: url('../og-image.png') center/cover no-repeat;
  opacity: 0.2;
  display: none;
}

@media (min-width: 768px) {
  .hero { text-align: left; }
  .hero-split {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
  }
  .hero-visual {
    flex: 1;
    max-width: 50%;
  }
  .hero-cta {
    justify-content: flex-start !important;
  }
  .hero-sub { margin-left: 0 !important; margin-right: 0 !important; }
}

.eyebrow {
  color: var(--accent-neon); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 64px); line-height: 1.1;
  font-weight: 800; letter-spacing: -1px; margin-bottom: 24px;
  color: var(--text-inverse);
}
.hero h1 em { font-style: normal; color: var(--accent-neon); text-shadow: 0 0 20px var(--accent-glow); }

.hero-sub {
  font-size: 18px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 32px; max-width: 600px;
}
.hero-sub b { color: var(--text-primary); font-weight: 600; }

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }

/* ── Hero Mockup (Premium 3D UI) ───────────────────────── */
.hero-mockup-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 500px;
  perspective: 1000px;
}

.hero-mockup.glass-panel {
  background: rgba(22, 27, 34, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(157, 111, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  transform: rotateX(5deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-mockup.glass-panel:hover {
  transform: rotateX(0deg) translateY(-5px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(157, 111, 255, 0.3);
}

.hero-mockup .fake-kbox {
  background: var(--bg-tertiary);
  border-radius: 8px; padding: 16px; margin-top: 16px;
  font-size: 14px; color: var(--text-secondary);
}

/* ── Floating Icons ────────────────────────────────────── */
.floating-icon {
  position: absolute;
  font-size: 32px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
  animation: floatIcon 6s ease-in-out infinite alternate;
  z-index: 20;
}
.floating-icon.icon-1 { top: -20px; left: -30px; animation-delay: 0s; }
.floating-icon.icon-2 { bottom: 40px; right: -40px; animation-delay: -2s; font-size: 40px; }
.floating-icon.icon-3 { top: 40px; right: -20px; animation-delay: -4s; font-size: 24px; }

@keyframes floatIcon {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(10deg); }
}
.hero-note { font-size: 13px; color: var(--text-secondary); }

/* Small floating glyph badge that cycles 한/정/눈치/흥 over the hero visual
   (js/page-home.js drives the cycle; respects prefers-reduced-motion). */
.hero-glyph {
  position: absolute; top: 8px; right: 8px; z-index: 15;
  font-family: var(--serif); font-weight: 900; font-size: 15px;
  color: var(--text-primary); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  padding: 6px 16px; opacity: .85; transition: opacity .4s ease;
}

/* ── Hero Glow Line (GitHub Style) ─────────────────────── */
.home-campaign-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.home-campaign-glow-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  will-change: opacity;
}
.home-campaign-glow-line path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawPath 4s ease-in-out infinite alternate;
}
@keyframes drawPath {
  0% { stroke-dashoffset: 2000; opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* ── 3D Globe Section ──────────────────────────────────── */
.section-globe {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(13,17,23,0) 0%, var(--bg-primary) 80%);
}
.globe-overlay-text {
  position: absolute;
  z-index: 10;
  text-align: center;
  pointer-events: none;
  top: 10%;
}
.globe-overlay-text h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-inverse);
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.globe-overlay-text p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

#globeFallback {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: url('../og-image.png') center/cover no-repeat;
  opacity: 0.2;
  display: none;
}
