/* 첫 화면(히어로) 리디자인 — hero.js 가 .hero-v2 클래스를 붙인다 */

[data-yuni-space="yuniwork"] .hero.hero-v2 {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #ece3f6;
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 30%, #d9ccff 0, transparent 42%),
    radial-gradient(circle at 8% 100%, #ffe3cf 0, transparent 40%),
    linear-gradient(135deg, #fffdf9 0%, #fbf6ff 55%, #f3edff 100%);
  box-shadow: 0 30px 60px -40px #5b449a55;
}
/* 은은한 별 무늬 */
.hero.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(#5b449a 1px, transparent 1.4px),
    radial-gradient(#c55a48 .8px, transparent 1.2px);
  background-size: 46px 46px, 73px 73px;
  background-position: 0 0, 23px 31px;
  opacity: .12;
  mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 100%);
}

/* ── 왼쪽 ─────────────────────────────── */
.hero.hero-v2 .hero-copy { display: flex; flex-direction: column; align-items: flex-start; height: auto; }
.hero.hero-v2 .editable-heading > .eyebrow { display: none; }
.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px 14px 8px 10px;
  border: 1px solid #e6dcf5;
  border-radius: 99px;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  font-size: 13px;
  color: #565b70;
}
.hero-greeting b { color: #3e2a70; font-weight: 700; }
.hero-greeting-sep { color: #b7aed0; }
.hero-greeting-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34927c;
  box-shadow: 0 0 0 4px #34927c22;
  animation: hero-pulse 2.4s ease-in-out infinite;
}

[data-yuni-space="yuniwork"] .hero.hero-v2 h1 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 62px) !important;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.hero.hero-v2 .hero-description { margin: 18px 0 0; max-width: 30em; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; }
[data-yuni-space="yuniwork"] .hero.hero-v2 .hero-cta {
  margin: 0;
  padding: 6px 6px 6px 20px;
  gap: 14px;
  color: #fff;
  background: #5b449a;
  box-shadow: 0 10px 24px -12px #5b449a;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
[data-yuni-space="yuniwork"] .hero.hero-v2 .hero-cta > span { background: #fff; color: #5b449a; }
.hero.hero-v2 .hero-cta:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 14px 28px -12px #5b449a; }
.hero-ghost {
  font-size: 14px;
  font-weight: 600;
  color: #3e2a70;
  text-decoration: none;
  border-bottom: 1.5px solid #cdbdf0;
  padding-bottom: 2px;
  transition: border-color .2s;
}
.hero-ghost:is(:hover, :focus-visible) { border-color: #5b449a; }
.hero-ghost span { display: inline-block; transition: transform .2s; }
.hero-ghost:hover span { transform: translateX(3px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin: 34px 0 0;
}
.hero-stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #ece3f6;
  border-radius: 18px;
  background: #ffffffb3;
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: transform .2s, border-color .2s, background .2s;
}
.hero-stat:is(:hover, :focus-visible) { transform: translateY(-2px); border-color: #cdbdf0; background: #fff; }
.hero-stat dt { margin: 0; font-size: 12px; color: #6a6480; }
.hero-stat dd { margin: 0; font-family: Nunito, Jua, sans-serif; font-weight: 900; font-size: 28px; line-height: 1; color: #2b2740; }

/* ── 오른쪽: 캐릭터 카드 ─────────────────── */
[data-yuni-space="yuniwork"] .hero.hero-v2 .character-art {
  overflow: visible;
  aspect-ratio: 1 / 1.08;
  min-height: 0;
  height: auto;
  border: 0;
  border-radius: 30px;
  box-shadow: 0 40px 70px -30px #123cffaa, 0 0 0 10px #ffffff80;
  animation: hero-float 7s ease-in-out infinite;
}
.hero.hero-v2 .character-art > img { border-radius: inherit; }
.hero.hero-v2 .hero-floaters {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  margin: 0;
  pointer-events: none;
}
.hero.hero-v2 .hero-floaters > span { display: none !important; }
.hero.hero-v2 .hero-floaters > i {
  position: absolute;
  width: 58px !important;
  height: 58px !important;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 24px -10px #2b274055;
  animation: hero-bob 5s ease-in-out infinite;
}
.hero.hero-v2 .hero-floaters > i > svg { width: 100%; height: 100%; }
.hero.hero-v2 .hero-floaters > i:nth-of-type(1) { left: -26px; top: 22%; rotate: -8deg; }
.hero.hero-v2 .hero-floaters > i:nth-of-type(2) { left: -18px; bottom: 9%; rotate: 6deg; animation-delay: -1.2s; background: #ecffd1; }
.hero.hero-v2 .hero-floaters > i:nth-of-type(3) { right: -24px; bottom: 22%; rotate: 9deg; animation-delay: -2.5s; background: #e6ecff; }
.hero.hero-v2 .hero-floaters > i:nth-of-type(4) { right: 26%; bottom: -22px; rotate: -5deg; animation-delay: -3.6s; background: #f1e6ff; }

@keyframes hero-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hero-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes hero-pulse { 0%, 100% { box-shadow: 0 0 0 4px #34927c22; } 50% { box-shadow: 0 0 0 7px #34927c11; } }
@media (prefers-reduced-motion: reduce) {
  .hero.hero-v2 .character-art, .hero.hero-v2 .hero-floaters > i, .hero-greeting-dot { animation: none; }
}

/* ── 태블릿·모바일 ──────────────────────── */
@media (max-width: 850px) {
  [data-yuni-space="yuniwork"] .hero.hero-v2 { grid-template-columns: 1fr; }
  [data-yuni-space="yuniwork"] .hero.hero-v2 .character-art { width: min(100%, 420px); justify-self: center; margin: 12px 0 18px; }
}
@media (max-width: 640px) {
  [data-yuni-space="yuniwork"] .hero.hero-v2 { padding: 24px 18px 28px; border-radius: 26px; gap: 26px; }
  .hero-greeting { font-size: 12px; margin-bottom: 18px; }
  [data-yuni-space="yuniwork"] .hero.hero-v2 h1 { font-size: clamp(34px, 9.6vw, 44px) !important; }
  .hero-stats { gap: 8px; margin-top: 26px; }
  .hero-stat { padding: 12px; border-radius: 14px; }
  .hero-stat dd { font-size: 24px; }
  .hero.hero-v2 .hero-floaters > i { width: 46px !important; height: 46px !important; padding: 6px; border-radius: 12px; }
  .hero.hero-v2 .hero-floaters > i:nth-of-type(1) { left: -10px; }
  .hero.hero-v2 .hero-floaters > i:nth-of-type(2) { left: -6px; }
  .hero.hero-v2 .hero-floaters > i:nth-of-type(3) { right: -10px; }
}
