/* ==========================================================================
   Lolool — Hero "giải phẫu phát sáng" (nền tối, ấn tượng).
   Chỉ ở khối đầu trang chủ; phần dưới giữ sáng dễ đọc.
   ========================================================================== */

.hero-anat {
  /* Token bảng màu hero tối (bespoke) — tách khỏi palette sáng chính. */
  --ha-bg-1: #0C3326; --ha-bg-2: #082A20; --ha-bg-3: #05211A;
  --ha-ink: 6, 35, 28;
  --ha-mint: #8DEFC0; --ha-green: #3FB865; --ha-cyan: #6FE0D0; --ha-gold: #D8B978; --ha-dot: #D6FBEA;
  --ha-fg: #FFFFFF; --ha-sub-fg: #CFE6DA; --ha-cta-ink: #05231A; --ha-cta-hi: #7AE6A6;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 28px);
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 64px 56px;
  margin-bottom: 8px;
  background:
    radial-gradient(60% 90% at 82% 20%, rgba(30, 122, 85, .5), transparent 60%),
    radial-gradient(55% 80% at 16% 90%, rgba(44, 110, 82, .4), transparent 60%),
    linear-gradient(135deg, var(--ha-bg-1) 0%, var(--ha-bg-2) 55%, var(--ha-bg-3) 100%);
  box-shadow: 0 24px 60px rgba(6, 33, 26, .38);
  gap: 36px;
  isolation: isolate;
}

/* Lớp phủ tối bên trái → chữ sạch, không bị motif làm rối */
.hero-anat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(95deg, rgba(var(--ha-ink), .92) 0%, rgba(var(--ha-ink), .62) 40%, rgba(var(--ha-ink), .12) 66%, rgba(var(--ha-ink), 0) 82%);
}

/* Lớp hạt + motif nằm dưới nội dung */
.hero-anat .ha-particles,
.hero-anat .ha-motifs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* Tiết chế nhiễu nền hero cho cảm giác tĩnh lặng, cao cấp (bar Apple #12) */
.hero-anat .ha-particles { opacity: .5; }
.hero-anat .ha-svg { width: 100%; height: 100%; display: block; }

/* --- Glow từng motif --- */
.ha-dna { filter: drop-shadow(0 0 6px rgba(141, 239, 192, .7)); opacity: .85; }
.ha-dna > path { fill: none; stroke: var(--ha-mint); stroke-width: 2.4; stroke-linecap: round; }
.ha-dna-rungs line { stroke: var(--ha-green); stroke-width: 2; opacity: .6; }

.ha-ecg { fill: none; stroke: var(--ha-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(63, 184, 101, .85)); opacity: .5; }
.ha-ecg-dot { fill: var(--ha-dot); filter: drop-shadow(0 0 9px rgba(141, 239, 192, 1)); }

.ha-sono { filter: drop-shadow(0 0 5px rgba(111, 224, 208, .55)); }
.ha-sono .ha-arc { fill: none; stroke: var(--ha-cyan); stroke-width: 2; stroke-linecap: round; opacity: .4; }

.ha-spiral { fill: none; stroke: var(--ha-gold); stroke-width: 2.4; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(216, 185, 120, .6)); opacity: .32; }

.ha-cell { filter: drop-shadow(0 0 5px rgba(141, 239, 192, .5)); }
.ha-cell-o { fill: none; stroke: var(--ha-mint); stroke-width: 1.6; opacity: .55; }
.ha-cell-n { fill: var(--ha-mint); fill-opacity: .5; }

/* --- Animation (fill-box để khỏi tính toạ độ) --- */
.ha-dna    { transform-box: fill-box; transform-origin: center; animation: ha-sway 9s ease-in-out infinite; }
.ha-spiral { transform-box: fill-box; transform-origin: center; animation: ha-spin 64s linear infinite; }
.ha-arc    { transform-box: fill-box; transform-origin: center; animation: ha-arc-pulse 4s ease-in-out infinite; }
.ha-cell   { transform-box: fill-box; transform-origin: center; animation: ha-cell-pulse 5.5s ease-in-out infinite; }
.ha-ecg-dot{ animation: ha-dot-glow 4.2s ease-in-out infinite; }

@keyframes ha-sway { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes ha-spin { to { transform: rotate(360deg); } }
@keyframes ha-arc-pulse { 0%, 100% { transform: scale(.82); opacity: .16; } 50% { transform: scale(1.06); opacity: .5; } }
@keyframes ha-cell-pulse { 0%, 100% { transform: scale(.9); opacity: .32; } 50% { transform: scale(1.12); opacity: .62; } }
@keyframes ha-dot-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* --- Ảnh mẹ bầu & thai nhi phát sáng (cột phải) --- */
.ha-visual {
  position: relative; z-index: 3;
  flex: 0 0 40%;
  display: flex; align-items: center; justify-content: center;
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform .35s ease-out;
}
.ha-orb {
  position: relative; width: 100%; max-width: 430px;
  animation: ha-float 7s ease-in-out infinite, ha-fig-glow 5.5s ease-in-out infinite;
  /* Ảnh đã tách nền (trong suốt) → hoà thẳng vào nền xanh; chân váy tan mềm vào hero */
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 99%);
}
.ha-orb img { width: 100%; height: auto; display: block; }
@keyframes ha-float { 0%, 100% { transform: translateY(-9px); } 50% { transform: translateY(9px); } }
@keyframes ha-fig-glow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(63, 184, 101, .3)); }
  50% { filter: drop-shadow(0 0 32px rgba(141, 239, 192, .5)); }
}

/* --- Nội dung --- */
.hero-anat .ha-content { position: relative; z-index: 3; flex: 1 1 55%; max-width: 600px; }
.ha-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ha-sub-fg); opacity: .82; margin-bottom: 18px;
}
.ha-badge::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--ha-sub-fg); opacity: .6; }
.ha-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  font-weight: 800; line-height: 1.1; color: var(--ha-fg); margin: 0 0 18px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .3);
}
.ha-title .ha-hl { color: var(--ha-fg); }
/* Slogan thương hiệu — dòng phụ ngay dưới tiêu đề hero. Kéo lên sát tiêu đề
   (margin-top âm) để không đẩy nút CTA xuống, giữ nguyên chiều cao hero. */
.ha-slogan {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-style: italic; font-weight: 500;
  font-size: clamp(1.02rem, 2.1vw, 1.24rem); line-height: 1.4;
  color: var(--ha-sub-fg); opacity: .82;
  margin: -10px 0 14px;
}
.ha-sub {
  font-size: clamp(1rem, 2.3vw, 1.18rem); line-height: 1.62; color: var(--ha-sub-fg);
  max-width: 500px; margin: 0 0 26px;
}
.ha-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading, 'Outfit', sans-serif); font-weight: 700; font-size: 1.05rem;
  color: var(--ha-cta-ink); text-decoration: none;
  background: linear-gradient(155deg, var(--ha-cta-hi), var(--ha-green));
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(63, 184, 101, .4), 0 0 0 1px rgba(141, 239, 192, .4) inset;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ha-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(63, 184, 101, .55), 0 0 0 1px rgba(141, 239, 192, .6) inset; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .hero-anat { flex-direction: column; gap: 22px; }
  .hero-anat::after { background: linear-gradient(180deg, rgba(var(--ha-ink), .45), rgba(var(--ha-ink), .72)); }
  .ha-content { flex: 1 1 auto; max-width: 100%; }
  .ha-visual { flex: 1 1 auto; order: -1; }
  .ha-orb { max-width: 230px; }
}
@media (max-width: 760px) {
  .hero-anat { padding: 44px 26px; min-height: 400px; border-radius: var(--radius-lg, 20px); }
  .ha-sub { max-width: 100%; }
}
@media (max-width: 460px) {
  .hero-anat { padding: 36px 20px; min-height: 360px; }
  .ha-orb { max-width: 190px; }
}

/* --- Giảm chuyển động --- */
.hero-anat.ha-reduce .ha-dna,
.hero-anat.ha-reduce .ha-spiral,
.hero-anat.ha-reduce .ha-arc,
.hero-anat.ha-reduce .ha-cell,
.hero-anat.ha-reduce .ha-ecg-dot { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .ha-dna, .ha-spiral, .ha-arc, .ha-cell, .ha-ecg-dot { animation: none !important; }
}

/* --- Entrance hero: nội dung mờ→hiện + trượt lên nhẹ khi tải (stagger, kiểu Apple) --- */
.hero-anat .ha-content > * { opacity: 0; transform: translateY(16px); animation: ha-enter .8s cubic-bezier(.2, .75, .2, 1) both; }
.hero-anat .ha-content > .ha-badge  { animation-delay: .06s; }
.hero-anat .ha-content > .ha-title  { animation-delay: .15s; }
.hero-anat .ha-content > .ha-slogan { animation-delay: .26s; }
.hero-anat .ha-content > .ha-sub    { animation-delay: .35s; }
.hero-anat .ha-content > .ha-cta    { animation-delay: .46s; }
@keyframes ha-enter { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-anat .ha-content > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}
