/* ============================================
   CELL HERO — Living Cell Canvas Styles
   ============================================ */

/* ─── HERO NEW ─────────────────────────────── */
.hero-new {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: #0F0810;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── CANVAS WRAP ───────────────────────────── */
.cell-canvas-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCellCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* canvas size set via JS */
}

/* ─── ORGANELLE LABELS ──────────────────────── */
.cell-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: labelPulse 3s ease-in-out infinite;
}

.cell-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,69,122,0.8));
}

.cell-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,175,197,0.88);
  text-transform: uppercase;
  white-space: nowrap;
}

.cell-label span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(212,160,184,0.62);
  letter-spacing: 0.08em;
  text-transform: none;
}

@keyframes labelPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* ─── THEME SWITCHER ────────────────────────── */
.cell-theme-bar {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(15, 5, 12, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232,69,122,0.25);
  border-radius: 40px;
  padding: 6px 8px;
  z-index: 20;
}

.cell-theme-btn {
  background: transparent;
  border: none;
  color: rgba(148,163,184,0.7);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 0.02em;
}

.cell-theme-btn:hover {
  color: #fff;
  background: rgba(139,92,246,0.15);
}

.cell-theme-btn.active {
  background: linear-gradient(135deg, rgba(232,69,122,0.92), rgba(200,75,143,0.75));
  color: #fff;
  box-shadow: 0 2px 16px rgba(232,69,122,0.45);
}

/* ─── HERO OVERLAY ──────────────────────────── */
.hero-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  pointer-events: none; /* let canvas breathe — buttons re-enable below */
}

.hero-content-new {
  max-width: 560px;
  pointer-events: all;
}

/* Re-use existing hero styles for content */
.hero-content-new .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,69,122,0.15);
  border: 1px solid rgba(232,69,122,0.45);
  color: #FF8FAB;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.hero-content-new .hero-title {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}

.hero-content-new .hero-subtitle {
  font-size: 1.1rem;
  color: rgba(200,200,230,0.85);
  line-height: 1.85;
  margin-bottom: 36px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.6);
}

.hero-content-new .hero-subtitle strong {
  color: #C4B5FD;
}

.hero-content-new .hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  background: rgba(15,5,12,0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(232,69,122,0.22);
  border-radius: 16px;
  padding: 18px 24px;
}

.hero-content-new .hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── SCROLL INDICATOR ──────────────────────── */
.hero-new .scroll-indicator {
  position: absolute;
  bottom: 32px;
  right: 48px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(148,163,184,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-new .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(232,69,122,0.8), transparent);
  animation: scrollAnim 1.5s ease-in-out infinite;
}

/* ─── STRESSED / AGED THEME OVERLAYS ────────── */
.hero-new.theme-stressed {
  background: #150508;
}

.hero-new.theme-aged {
  background: #0e0609;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .hero-overlay {
    padding: 0 20px;
    justify-content: center;
    text-align: center;
  }

  .hero-content-new {
    max-width: 100%;
  }

  .hero-content-new .hero-stats {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .hero-content-new .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-content-new .hero-cta {
    justify-content: center;
  }

  .cell-label {
    display: none;
  }

  .hero-new .scroll-indicator {
    right: 50%;
    transform: translateX(50%);
    bottom: 100px;
  }

  .cell-theme-bar {
    bottom: 20px;
  }

  .cell-theme-btn {
    font-size: 0.65rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .cell-theme-bar {
    flex-direction: row;
    gap: 4px;
    padding: 4px;
  }
}
