/* Moart 홈페이지 움직이는 GIF 스튜디오 3-Tab · 18종 타이포/모션그래피 쇼케이스 */
.hmg-sec {
  padding: 96px 24px;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.16), transparent 55%), #090D16;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.hmg-in { max-width: 1140px; margin: 0 auto; text-align: center; }
.hmg-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.24), rgba(236, 72, 153, 0.22));
  border: 1px solid rgba(192, 132, 252, 0.45); color: #F5D0FE; margin-bottom: 14px;
}
.hmg-h {
  margin: 0 0 12px; font-size: clamp(28px, 3.8vw, 42px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.2; color: #FFFFFF;
}
.hmg-h span {
  background: linear-gradient(120deg, #38BDF8 0%, #818CF8 48%, #F472B6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hmg-sub {
  margin: 0 auto 30px; max-width: 720px; font-size: 15px; line-height: 1.65; color: #94A3B8;
}
.hmg-sub strong { color: #E2E8F0; }

/* 3-Tab Switcher */
.hmg-tabs {
  display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 6px; border-radius: 16px; max-width: 760px; width: 100%; margin: 0 auto 32px;
  background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(148, 163, 184, 0.22);
}
.hmg-tab {
  border: 0; border-radius: 12px; padding: 12px 14px; cursor: pointer;
  background: transparent; color: #94A3B8; font: inherit; font-size: 13.5px; font-weight: 800;
  transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.hmg-tab:hover { color: #FFFFFF; background: rgba(148, 163, 184, 0.1); }
.hmg-tab.is-active {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #EC4899 100%);
  color: #FFFFFF; box-shadow: 0 8px 24px rgba(124, 58, 237, 0.38);
}

/* 6-Card Grid */
.hmg-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left;
}
.hmg-card {
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.hmg-card:hover {
  transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
}
.hmg-stage {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: #0B1120; display: grid; place-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.hmg-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.hmg-body-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hmg-card h3 { margin: 0; font-size: 15.5px; font-weight: 800; color: #FFFFFF; }
.hmg-tag {
  font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: rgba(99, 102, 241, 0.2); color: #C7D2FE; white-space: nowrap;
}
.hmg-card p { margin: 0; font-size: 12.5px; line-height: 1.52; color: #94A3B8; }

/* ---- Motion Graphic Primitives (60fps GPU-friendly) ---- */
.hmg-bottle {
  width: 54px; height: 92px; border-radius: 14px 14px 10px 10px; position: relative;
  background: linear-gradient(155deg, #FDE68A 0%, #D97706 55%, #92400E 100%);
  box-shadow: inset -6px 0 12px rgba(255, 255, 255, 0.35), 0 12px 24px rgba(0, 0, 0, 0.35);
}
.hmg-bottle::before {
  content: ''; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 20px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(90deg, #F8FAFC, #CBD5E1);
}
.hmg-bottle::after {
  content: 'SERUM'; position: absolute; inset: 32px 6px auto 6px; text-align: center;
  font-size: 8px; font-weight: 900; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.35); border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 0;
}

/* 1. Before / After Wipe */
.hmg-ba { position: relative; width: 100%; height: 100%; }
.hmg-ba__after, .hmg-ba__before {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.hmg-ba__after { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 55%, #F59E0B 100%); }
.hmg-ba__before {
  background: linear-gradient(135deg, #334155 0%, #1E293B 100%);
  clip-path: inset(0 50% 0 0); animation: hmgWipe 3.4s ease-in-out infinite;
}
.hmg-ba__before .hmg-bottle { filter: grayscale(0.85) brightness(0.75); }
.hmg-ba__line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2.5px; background: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); animation: hmgWipeLine 3.4s ease-in-out infinite;
}
.hmg-ba__line::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 999px; background: #FFFFFF; color: #4F46E5;
  font-size: 11px; font-weight: 900; display: grid; place-items: center;
}
.hmg-ba__lbl {
  position: absolute; top: 10px; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 900; color: #FFFFFF; z-index: 2;
}
.hmg-ba__lbl--l { left: 10px; background: rgba(15, 23, 42, 0.78); }
.hmg-ba__lbl--r { right: 10px; background: #4F46E5; }
@keyframes hmgWipe {
  0%, 100% { clip-path: inset(0 78% 0 0); }
  50% { clip-path: inset(0 22% 0 0); }
}
@keyframes hmgWipeLine {
  0%, 100% { left: 22%; }
  50% { left: 78%; }
}

/* 2. Color Option Fade */
.hmg-col { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #1E293B, #0F172A); }
.hmg-col__prod {
  width: 66px; height: 90px; border-radius: 16px; position: relative;
  animation: hmgColorMorph 4.2s ease-in-out infinite;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}
.hmg-col__dots { position: absolute; bottom: 12px; display: flex; gap: 6px; }
.hmg-col__dots i { width: 10px; height: 10px; border-radius: 999px; display: block; border: 1.5px solid #FFFFFF; }
@keyframes hmgColorMorph {
  0%, 100% { background: linear-gradient(145deg, #E7D5BE, #C2A88A); transform: scale(1); }
  33% { background: linear-gradient(145deg, #334155, #0F172A); transform: scale(1.05); }
  66% { background: linear-gradient(145deg, #6366F1, #4338CA); transform: scale(1); }
}

/* 3. Ken Burns Zoom */
.hmg-kb {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #312E81, #0F172A);
  animation: hmgKbZoom 4.2s ease-in-out infinite;
}
.hmg-kb__frame {
  position: absolute; inset: 14px; border: 1.5px solid rgba(56, 189, 248, 0.45); border-radius: 10px;
  pointer-events: none;
}
.hmg-kb__rec {
  position: absolute; top: 10px; left: 12px; font-size: 10px; font-weight: 800; color: #38BDF8;
}
@keyframes hmgKbZoom {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.16) translate(-6px, -4px); }
}

/* 4. Shimmer Sweep */
.hmg-shim {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, #1E1B4B, #090D16);
}
.hmg-shim::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; width: 42%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  transform: skewX(-20deg); animation: hmgShimmer 2.6s ease-in-out infinite;
}
@keyframes hmgShimmer {
  0% { left: -60%; }
  100% { left: 130%; }
}

/* 5. Lookbook Slide Cuts */
.hmg-lb { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hmg-lb__track {
  display: flex; width: 300%; height: 100%; animation: hmgLookbook 4.5s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
.hmg-lb__slide {
  width: 33.333%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.hmg-lb__slide span { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: #FFFFFF; padding: 3px 9px; border-radius: 999px; background: rgba(15, 23, 42, 0.65); }
@keyframes hmgLookbook {
  0%, 26% { transform: translateX(0%); }
  33%, 59% { transform: translateX(-33.333%); }
  66%, 92% { transform: translateX(-66.666%); }
  100% { transform: translateX(0%); }
}

/* 6. Detail Magnifier */
.hmg-mag {
  width: 100%; height: 100%; position: relative;
  background-image: radial-gradient(rgba(148, 163, 184, 0.26) 1.5px, transparent 1.5px);
  background-size: 14px 14px; background-color: #111827; display: grid; place-items: center;
}
.hmg-mag__lens {
  width: 78px; height: 78px; border-radius: 999px; border: 3px solid #38BDF8;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), rgba(79, 70, 229, 0.35));
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45); display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #FFFFFF; animation: hmgLoupe 3.2s ease-in-out infinite;
}
@keyframes hmgLoupe {
  0%, 100% { transform: translate(-24px, -10px) scale(0.92); }
  50% { transform: translate(22px, 8px) scale(1.12); }
}

/* ---- Tab 2: Kinetic Typography (6) ---- */
.hmg-typo-stage {
  width: 100%; height: 100%; padding: 18px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.hmg-hl-wrap { position: relative; display: inline-block; padding: 0 6px; }
.hmg-hl-bar {
  position: absolute; left: 0; bottom: 2px; height: 11px; border-radius: 4px;
  background: #FACC15; width: 0%; animation: hmgHlSweep 2.8s ease-out infinite; z-index: 0;
}
.hmg-hl-text { position: relative; z-index: 1; font-size: 22px; font-weight: 900; color: #FFFFFF; letter-spacing: -0.02em; }
@keyframes hmgHlSweep {
  0% { width: 0%; }
  45%, 85% { width: 100%; }
  100% { width: 0%; }
}

.hmg-price-orig { position: relative; font-size: 15px; font-weight: 700; color: #94A3B8; display: inline-block; }
.hmg-price-orig::after {
  content: ''; position: absolute; left: -4px; top: 50%; height: 3px; background: #EF4444;
  width: 0%; animation: hmgStrike 3s ease-out infinite;
}
.hmg-price-sale {
  font-size: 28px; font-weight: 900; color: #F43F5E; letter-spacing: -0.03em;
  animation: hmgPricePop 3s ease-out infinite;
}
@keyframes hmgStrike {
  0%, 10% { width: 0%; }
  35%, 90% { width: calc(100% + 8px); }
  100% { width: 0%; }
}
@keyframes hmgPricePop {
  0%, 30% { transform: scale(0.75); opacity: 0.35; }
  50% { transform: scale(1.1); opacity: 1; }
  62%, 90% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.75); opacity: 0.35; }
}

.hmg-count-num {
  font-size: 40px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #34D399, #38BDF8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hmg-type-line {
  font-size: 18px; font-weight: 900; color: #FFFFFF; white-space: nowrap; overflow: hidden;
  border-right: 2.5px solid #38BDF8; width: 0ch;
  animation: hmgTyping 3.6s steps(13, end) infinite, hmgBlink 0.7s step-end infinite;
}
@keyframes hmgTyping {
  0% { width: 0ch; }
  55%, 85% { width: 13.5ch; }
  100% { width: 0ch; }
}
@keyframes hmgBlink { 50% { border-color: transparent; } }

.hmg-chk-list { display: grid; gap: 7px; width: 86%; }
.hmg-chk-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 700; color: #F8FAFC;
  opacity: 0; transform: translateY(8px); animation: hmgChkIn 3.6s ease-out infinite;
}
.hmg-chk-row:nth-child(2) { animation-delay: 0.45s; }
.hmg-chk-row:nth-child(3) { animation-delay: 0.9s; }
.hmg-chk-dot {
  width: 17px; height: 17px; border-radius: 999px; background: #10B981; color: #FFFFFF;
  font-size: 10px; font-weight: 900; display: grid; place-items: center; flex: none;
}
@keyframes hmgChkIn {
  0% { opacity: 0; transform: translateY(8px); }
  20%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

.hmg-mq-band {
  width: 100%; padding: 12px 0; overflow: hidden;
  background: linear-gradient(90deg, #4F46E5, #EC4899);
}
.hmg-mq-track {
  display: flex; width: max-content; gap: 28px; font-size: 14px; font-weight: 900; color: #FFFFFF;
  animation: hmgMarquee 6s linear infinite;
}
@keyframes hmgMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Tab 3: Image + Text Combo (6) ---- */
.hmg-float-bottle { animation: hmgFloat 2.8s ease-in-out infinite; }
@keyframes hmgFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}
.hmg-pulse-pill {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #F43F5E, #EC4899); color: #FFFFFF;
  font-size: 10.5px; font-weight: 900; animation: hmgPulse 1.6s ease-in-out infinite;
}
@keyframes hmgPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.hmg-glass-chip {
  position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 10px;
  background: rgba(15, 23, 42, 0.82); border: 1px solid rgba(148, 163, 184, 0.35);
  color: #FDE047; font-size: 12px; font-weight: 900; backdrop-filter: blur(6px);
}
.hmg-opt-chips { position: absolute; bottom: 10px; display: flex; gap: 6px; z-index: 3; }
.hmg-opt-chip {
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  color: #FFFFFF; background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(255, 255, 255, 0.25);
  animation: hmgOptCycle 4.2s infinite;
}
.hmg-opt-chip:nth-child(2) { animation-delay: 1.4s; }
.hmg-opt-chip:nth-child(3) { animation-delay: 2.8s; }
@keyframes hmgOptCycle {
  0%, 30% { background: #4F46E5; border-color: #A5B4FC; transform: scale(1.06); }
  34%, 100% { background: rgba(15, 23, 42, 0.72); border-color: rgba(255, 255, 255, 0.2); transform: scale(1); }
}
.hmg-callout-tag {
  position: absolute; bottom: 12px; right: 12px; padding: 7px 11px; border-radius: 10px;
  background: rgba(15, 23, 42, 0.9); border: 1px solid #38BDF8; text-align: left;
  animation: hmgChkIn 3.2s ease-out infinite;
}
.hmg-callout-tag strong { display: block; font-size: 11.5px; color: #FFFFFF; }
.hmg-callout-tag span { font-size: 10px; color: #94A3B8; }

/* Bottom Paid Plan CTA Strip */
.hmg-cta-bar {
  margin-top: 32px; padding: 22px 26px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(236, 72, 153, 0.16) 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
}
.hmg-cta-bar strong { display: block; font-size: 16.5px; font-weight: 900; color: #FFFFFF; }
.hmg-cta-bar p { margin: 4px 0 0; font-size: 13px; color: #CBD5E1; }
.hmg-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 960px) { .hmg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .hmg-grid, .hmg-tabs { grid-template-columns: 1fr; }
  .hmg-sec { padding: 64px 16px; }
}
