/* ============================================================
   MAIN PAGE — css/main.css
   HealingBio Premium Landing Page
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR',
               -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 72px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  gap: 0;
}

/* -- Logo -- */

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-right: auto;
}

.header-logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* -- Center Navigation -- */

.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav-link {
  text-align: center;
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.70);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.is-active {
  color: #ffffff;
  font-weight: 500;
}

.nav-link.is-active::after {
  width: 100%;
}

/* -- Right Area -- */

.header-right {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-contact {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.header-contact:hover {
  color: #ffffff;
}

.header-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 15px;
  user-select: none;
}

.header-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-lang:hover {
  color: #ffffff;
}

.header-lang svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* -- Mobile Hamburger -- */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   MOBILE NAVIGATION DROPDOWN
   ============================================================ */

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.mobile-nav.is-open {
  max-height: 400px;
}

.mobile-nav-list {
  padding: 12px 0 16px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 40px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

/* ============================================================
   SLIDE CONTAINER
   ============================================================ */

.slide-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ============================================================
   SLIDE — Individual Section
   ============================================================ */

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: translateX(100%);
}

.slide.is-active {
  transform: translateX(0);
}

/* -- Background Image -- */

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fallback colors per section */
.slide:nth-child(1) .slide-bg { background-color: #10141e; }
.slide:nth-child(2) .slide-bg { background-color: #0e1820; }
.slide:nth-child(3) .slide-bg { background-color: #141418; }
.slide:nth-child(4) .slide-bg { background-color: #0f1a14; }
.slide:nth-child(5) .slide-bg { background-color: #1a1510; }
.slide:nth-child(6) .slide-bg { background-color: #101923; }
.slide:nth-child(7) .slide-bg { background-color: #121218; }

/* -- Dark Overlay — localized left-to-right gradient -- */

.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.55) 38%,
      rgba(0, 0, 0, 0.18) 68%,
      rgba(0, 0, 0, 0.04) 100%
    ),
    linear-gradient(
      to left,
      rgba(0, 0, 0, 0.34) 0%,
      rgba(0, 0, 0, 0.14) 16%,
      rgba(0, 0, 0, 0) 30%
    );
}

/* -- Content Block -- */

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 72px min(2%, 200px) 0;     /* 72px = header offset */
  width: 1440px;
  margin: 0 auto;
}

.content-inner {
  max-width: 680px;
}

/* -- Headline -- */

.slide-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease both;
}

html:is([lang="zh-CN"], [lang="zh-TW"]) .slide-headline .cjk-company-en {
  display: inline;
  font-size: 0.56em;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

/* -- Description -- */

.slide-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 44px;
  animation: fadeUp 0.5s ease 0.10s both;
}

/* -- CTA Button -- */

.slide-cta {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
  animation: fadeUp 0.5s ease 0.20s both;
}

.slide-cta:hover {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  font-weight: 600;
}

.slide-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.slide-cta-shop {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  font-weight: 600;
}

.slide-cta-shop:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.88);
}

.slide-catalogue-menu {
  position: relative;
  z-index: 5;
}

.slide-catalogue-menu__toggle {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid rgba(255, 255, 255, .65);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .08em;
}

.slide-catalogue-menu__list {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 228px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(10, 16, 26, .96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

.slide-catalogue-menu:hover .slide-catalogue-menu__list,
.slide-catalogue-menu:focus-within .slide-catalogue-menu__list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.slide-catalogue-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.slide-catalogue-menu__list a:hover,
.slide-catalogue-menu__list a:focus {
  background: rgba(215, 172, 74, .18);
  color: #fff;
  outline: 0;
}

/* ============================================================
   SLIDE STATS — Two key metrics per slide
   ============================================================ */

.slide-stats {
  display: flex;
  gap: 80px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  animation: fadeUp 0.5s ease 0.35s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.40);
  flex-shrink: 0;
  margin-bottom: 14px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   SECTION NAV — Right-side in-page section navigation
   ============================================================ */

.section-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 16px;
  border-radius: 12px;
}

.section-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 9px 0;
  min-width: 148px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.section-nav-label {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: right;
  transition: color 0.22s ease;
}

.section-nav-bar {
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.22s ease;
}

.section-nav-item:hover {
  transform: translateX(-3px);
}

.section-nav-item:hover .section-nav-label {
  color: rgba(255, 255, 255, 0.7);
}

.section-nav-item:hover .section-nav-bar {
  background: rgba(255, 255, 255, 0.5);
}

.section-nav-item.is-active .section-nav-label {
  color: #ffffff;
  font-weight: 500;
}

.section-nav-item.is-active .section-nav-bar {
  width: 36px;
  background: #ffffff;
}

/* ============================================================
   SECTION COUNTER  (bottom-right)
   ============================================================ */

.slide-counter {
  position: fixed;
  right: 48px;
  bottom: 36px;
  z-index: 150;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 17px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  padding: 6px 14px;
  border-radius: 10px;
}

.slide-counter-current {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.2); }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */

@media (max-width: 1100px) {
  .header-inner {
    padding: 0 32px;
  }

  .nav-list {
    gap: 24px;
  }

  /* Tablet type scale: 52 / 32 / 22 / 16 / 14 */
  .nav-link          { font-size: 16px; }
  .header-contact,
  .header-lang       { font-size: 14px; }
  .slide-headline    { font-size: 52px; }
  .slide-desc        { font-size: 16px; }
  .slide-cta         { font-size: 14px; }
  .slide-counter,
  .slide-counter-current { font-size: 15px; }

  /* Tablet stats */
  .slide-stats  { gap: 60px; margin-top: 40px; }
  .stat-number  { font-size: 40px; }
}

/* ============================================================
   RESPONSIVE — Nav switch (949px)
   ============================================================ */

@media (max-width: 949px) {
  /* Hide desktop nav & right area, show hamburger */
  .header-nav,
  .header-right {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (768px)
   ============================================================ */

@media (max-width: 768px) {

  /* Allow vertical scroll on mobile */
  body {
    overflow: auto;
    height: auto;
  }

  /* Revert slide container to natural flow */
  .slide-container {
    position: relative;
    height: auto;
    overflow: visible;
  }

  /* Sections stack vertically */
  .slide {
    position: relative;
    height: 100svh;
    transform: none !important;
    transition: none !important;
  }

  .slide-content {
    padding: 80px 6% 40px;
    align-items: flex-end;
    width: 100%;
    max-width: none;
  }

  /* Mobile type scale: 40 / 28 / 20 / 16 / 14 */
  .slide-headline    { font-size: 40px; margin-bottom: 20px; }
  .slide-desc        { font-size: 16px; margin-bottom: 32px; }
  .slide-cta         { font-size: 14px; }
  .mobile-nav-link   { font-size: 17px; }

  /* Hide section nav and counter on mobile */
  .section-nav,
  .slide-counter {
    display: none;
  }

  /* Disable hover/zoom-like effects on mobile */
  .mobile-nav-link,
  .slide-cta,
  .slide-cta-shop {
    transition: none;
  }

  .mobile-nav-link:hover {
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
  }

  .slide-bg,
  .slide-headline,
  .slide-desc,
  .slide-cta,
  .slide-stats {
    animation: none !important;
    transform: none !important;
  }

  /* Mobile stats sizing */
  .slide-stats  { margin-top: 32px; padding-top: 20px; gap: 48px; }
  .stat-number  { font-size: 32px; margin-bottom: 6px; }
  .stat-label   { font-size: 11px; }
}

/* Header dropdown navigation */
.nav-item {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 176px;
  padding: 10px;
  background: rgba(5, 12, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-submenu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-submenu-link:hover,
.nav-submenu-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}
