/* ========================================
   MediBio — Global Stylesheet (v2 Renewed)
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Primary — Deep Forest Green */
  --primary:       #1B4332;
  --primary-light:  #2D6A4F;
  --primary-pale:   #D8F3DC;
  --primary-bg:     #F0F7F4;

  /* Accent — Gold */
  --gold:          #B8913A;
  --gold-l:        #D4AD5C;
  --gold-d:        #9A7828;

  /* Neutrals */
  --white:         #FFFFFF;
  --off:           #FAFBF9;
  --text:          #1A1A1A;
  --text-sec:      #2F3A35;
  --text-muted:    #55625C;
  --border:        #E2E8E4;
  --dark:          #0A0F0D;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', 'Noto Sans KR', sans-serif;
  --font-kr: 'Noto Sans KR', sans-serif;
  --font-stat: 'Space Grotesk', 'DM Sans', sans-serif;

  /* Layout */
  --nav-h: 72px;
  --nav-h-scroll: 60px;
  --max-w: 1200px;
  --max-w-narrow: 960px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-kr);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.container--narrow { width: 90%; max-width: var(--max-w-narrow); margin: 0 auto; }
.section { padding: 120px 0; }
.section--off { background: var(--primary-bg); }
.section--dark { background: var(--dark); color: var(--white); }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}

.heading-md {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

.heading-sm {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.body-text {
  font-family: var(--font-kr);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-sec);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--primary);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--white); border-color: var(--primary); }
.btn span { position: relative; z-index: 1; }

.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold::before { background: var(--gold); }
.btn--gold:hover { color: var(--white); border-color: var(--gold); }

.btn--primary { border-color: var(--primary); color: var(--white); background: var(--primary); }
.btn--primary::before { background: var(--primary-light); }
.btn--primary:hover { border-color: var(--primary-light); }

.btn--white { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn--white::before { background: var(--white); }
.btn--white:hover { color: var(--primary); }

/* reveal base */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- Loading Screen --- */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
}
.loading-screen__logo {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 300;
  color: var(--gold);
  opacity: 0;
  letter-spacing: 6px;
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  width: 20px; height: 20px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
.cursor.is-hover {
  width: 48px; height: 48px;
  background: rgba(27,67,50,0.1);
  border-color: var(--primary-light);
}
@media (hover: none) { .cursor { display: none; } }
.no-custom-cursor .cursor { display: none !important; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  transition: height 0.4s, background 0.4s, box-shadow 0.4s;
  display: flex;
  align-items: center;
}
.nav:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0) 100%);
}
.nav.is-scrolled {
  height: var(--nav-h-scroll);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text);
  transition: color 0.3s;
}
.nav:not(.is-scrolled) .nav__logo {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.nav__logo b {
  color: var(--primary);
  font-weight: 400;
}
.nav:not(.is-scrolled) .nav__logo b {
  color: #f2d79a;
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #2E3733;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav:not(.is-scrolled) .nav__link {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav:not(.is-scrolled) .nav__link::after {
  background: #f2d79a;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--primary);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1002;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.nav:not(.is-scrolled) .nav__hamburger span {
  background: rgba(255, 255, 255, 0.95);
}
.nav__hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero--short {
  min-height: 70vh;
}
.hero__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--white);
}
.hero__title .char {
  display: inline-block;
  opacity: 0;
}
.hero__sub {
  font-family: var(--font-kr);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn {
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 15, 13, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero .btn::before {
  background: rgba(255, 255, 255, 0.92);
}
.hero .btn:hover {
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.96);
}
.hero .btn--gold {
  color: #ffdf99;
  border-color: #ffdf99;
  background: rgba(184, 145, 58, 0.22);
}
.hero .btn--gold::before {
  background: #ffdf99;
}
.hero .btn--gold:hover {
  color: #213b2f;
}
.hero .eyebrow {
  color: #F2D79A;
}
.hero__title,
.hero__sub,
.hero .eyebrow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Floating circles background */
.floating-circles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

/* --- Product Image --- */
.product-img {
  width: 100%;
  max-width: 320px;
  height: 400px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.5s, box-shadow 0.5s;
}
.product-img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ointment image tone tuning for visual consistency */
.product-image--ointment {
  filter: brightness(1.08) contrast(1.06) saturate(1.12);
}
.product-detail__image .product-image--ointment {
  object-fit: contain;
  padding: 2%;
  filter: brightness(1.1) contrast(1.08) saturate(1.14) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

/* --- Stats Section --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
  padding: 80px 0;
  justify-items: center;
  align-items: start;
}
.stat__number {
  font-family: var(--font-stat);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__suffix {
  font-size: 0.6em;
  font-weight: 500;
}
.stat__label {
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-sec);
  letter-spacing: 0.5px;
}

/* --- Product Cards --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  padding: 80px 0;
}
.product-card {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  overflow: hidden;
  background: var(--white);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(27,67,50,0.1);
  border-color: var(--primary-light);
}
.product-card__type {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.product-card__name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.product-card__name-kr {
  font-family: var(--font-kr);
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 24px;
}
.product-card__desc {
  font-size: 14px;
  color: var(--text-sec);
  font-weight: 400;
  line-height: 1.8;
}

/* --- Lab Image --- */
.lab-image {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.lab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Placeholder Clinic --- */
.placeholder-clinic {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  transition: transform 0.4s, box-shadow 0.4s;
  overflow: hidden;
  background: var(--off);
}
.placeholder-clinic:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.placeholder-clinic__number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--white);
  opacity: 0.9;
}
.placeholder-clinic__text {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.placeholder-clinic__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Partner Cards --- */
.placeholder-partner {
  width: 200px;
  height: 80px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.placeholder-partner:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(27,67,50,0.08);
}
.placeholder-partner__name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-sec);
  line-height: 1.5;
}

/* --- Map --- */
.placeholder-map {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 2/1;
  position: relative;
}
.placeholder-map svg { width: 100%; height: 100%; }

.placeholder-roadmap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

/* --- Mechanism / Icon Cards --- */
.mechanism-icon {
  width: 72px; height: 72px;
  margin-bottom: 24px;
}
.mechanism-icon svg {
  width: 100%; height: 100%;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Pin Section (Expertise) --- */
.pin-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  min-height: auto;
  align-items: start;
}
.pin-section__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: sticky;
  top: 110px;
  align-self: start;
  padding-top: 8px;
}
.pin-section__right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 0 0;
}
.pin-card {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pin-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(27, 67, 50, 0.08);
}
.pin-card__number {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.pin-card__title {
  font-family: var(--font-kr);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}
.pin-card__desc {
  font-size: 14px;
  color: var(--text-sec);
  font-weight: 400;
  line-height: 1.8;
}

/* --- Mechanism Pin Section (Products Page) --- */
.mechanism-section {
  position: relative;
  min-height: 100vh;
}
.mechanism-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  min-height: 100vh;
  align-items: center;
}
.mechanism__number {
  font-family: var(--font-serif);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 300;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}
.mechanism__title {
  font-family: var(--font-kr);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text);
}
.mechanism__desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.85;
  margin-bottom: 20px;
}
.mechanism__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mechanism__tag {
  font-size: 12px;
  color: var(--primary-light);
  padding: 4px 12px;
  border: 1px solid rgba(27,67,50,0.25);
  border-radius: 20px;
  font-weight: 500;
}

/* --- Benefits Carousel (horizontal scroll) --- */
.benefits-carousel {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}
.benefits-carousel::before,
.benefits-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.benefits-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--primary-bg), transparent);
}
.benefits-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--primary-bg), transparent);
}
.benefits-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: benefits-scroll 15s linear infinite;
}
.benefits-track:hover {
  animation-play-state: paused;
}
.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  text-align: center;
  flex-shrink: 0;
}
.benefit-item__circle {
  width: 52px; height: 52px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: var(--white);
}
.benefit-item:hover .benefit-item__circle {
  background: var(--primary);
}
.benefit-item__circle span {
  font-family: var(--font-kr);
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.3s;
}
.benefit-item:hover .benefit-item__circle span {
  color: var(--white);
}
.benefit-item__label {
  font-family: var(--font-kr);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  white-space: nowrap;
}

@keyframes benefits-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Horizontal Scroll Section --- */
.h-scroll-section {
  overflow: hidden;
}
.h-scroll__track {
  display: flex;
  gap: 32px;
  padding: 0 5vw;
  will-change: transform;
}
.h-scroll__card {
  flex: 0 0 360px;
  height: 420px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.h-scroll__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}
.h-scroll__card-country {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.h-scroll__card-status {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.h-scroll__card-status--active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,145,58,0.15);
}

/* --- Clinic Grid --- */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Partners Row --- */
.partners-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 60px 0;
}

/* --- Contact Layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 60vh;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item__label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  font-weight: 500;
}
.contact-item__value {
  font-family: var(--font-kr);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s;
}
.contact-item__value:hover {
  color: var(--primary);
}

/* --- Text Reveal --- */
.text-reveal {
  overflow: hidden;
}
.text-reveal__inner {
  transform: translateY(100%);
}

/* --- Roadmap --- */
.roadmap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.roadmap__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 32px 16px;
}
.roadmap__step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.5s;
}
.roadmap__step.is-active .roadmap__step-num {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(27,67,50,0.08);
}
.roadmap__step-title {
  font-family: var(--font-kr);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}
.roadmap__step-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.roadmap__line {
  width: 80px; height: 2px;
  background: var(--border);
  position: relative;
}
.roadmap__line-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--primary);
  width: 0;
}

/* --- CTA Band --- */
.cta-band {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}
.cta-band__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-band__sub {
  font-family: var(--font-kr);
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.82);
  padding-top: 3px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding: 64px 0 48px;
}
.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__brand-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__brand-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}
.footer__heading {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__link {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.footer__link:hover {
  color: var(--gold);
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
}
.footer__bottom-links {
  display: flex;
  gap: 24px;
}
.footer__bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  transition: color 0.3s;
}
.footer__bottom-links a:hover {
  color: var(--gold);
}

.cta-band__more-link {
  margin-top: 18px;
  display: block;
  width: fit-content;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band__more-link:hover {
  color: #ffffff;
}

/* --- Science Background Section --- */
.science-bg {
  background: var(--primary-bg);
  position: relative;
  overflow: hidden;
}
.science-bg::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,67,50,0.04), transparent 70%);
}

/* --- Map Marker --- */
.map-marker {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.map-marker::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px;
  width: 20px; height: 20px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  animation: marker-pulse 2s infinite;
}
.map-marker--pending {
  background: transparent;
  border: 2px dashed var(--primary-light);
}
.map-marker--pending::after { border-style: dashed; }
.map-marker__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  white-space: nowrap;
  color: var(--text-sec);
  font-weight: 500;
}

@keyframes marker-pulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}

/* --- Flag Band Slider --- */
.flag-band {
  background: var(--primary-bg);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.flag-band::before,
.flag-band::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.flag-band::before { left: 0; background: linear-gradient(to right, var(--primary-bg), transparent); }
.flag-band::after { right: 0; background: linear-gradient(to left, var(--primary-bg), transparent); }
.flag-band__track {
  display: flex;
  gap: 48px;
  animation: flag-scroll 20s linear infinite;
}
.flag-band__track:hover { animation-play-state: paused; }
.flag-band__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.flag-band__flag {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.flag-band__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.flag-band__country {
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.flag-band__status {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.flag-band__status--active { color: var(--primary); }
.flag-band__status--pending { color: var(--gold); }

@keyframes flag-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Partner Logo Cards --- */
.partner-card {
  width: 240px;
  height: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px;
  gap: 8px;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(27,67,50,0.1);
  border-color: var(--primary-light);
}
.partner-card__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-card__emblem {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--white);
  flex-shrink: 0;
}
.partner-card__emblem--khu { background: #C8102E; }
.partner-card__emblem--korea { background: #8B0029; }
.partner-card__emblem--ktr { background: #0054A6; }
.partner-card__emblem--kcl { background: #00875A; }
.partner-card__text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.partner-card__sub {
  font-family: var(--font-kr);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- Mechanism Image --- */
.mechanism-img {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-top: 24px;
}
.mechanism-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mechanism-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.15), rgba(10,15,13,0.05));
  pointer-events: none;
}

/* --- Mission Grid (About page) --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* --- Product Detail Page --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-detail__image {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail__image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .pin-section { grid-template-columns: 1fr; gap: 40px; }
  .pin-section__left { text-align: center; padding: 0; position: static; top: auto; }
  .mechanism-section__inner { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .mission-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --nav-h-scroll: 56px;
  }
  .section { padding: 80px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero__title { font-size: clamp(32px, 10vw, 48px); }
  .hero__content { padding: 0 16px; }
  .hero__sub { font-size: 14px; margin-bottom: 28px; }
  .hero__buttons { width: 100%; gap: 10px; }
  .hero__buttons .btn {
    width: min(280px, 100%);
    justify-content: center;
    padding: 12px 20px;
  }
  .nav__logo { font-size: 20px; letter-spacing: 1px; }
  .mobile-menu__link { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat__number { font-size: 40px; }
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-card { padding: 32px 22px; }
  .product-img { height: 300px; margin-bottom: 22px; }
  .clinic-grid { grid-template-columns: repeat(2, 1fr); }
  .home-mechanism-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
    margin-top: 36px !important;
  }
  .detail-feature-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .detail-ingredient-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .detail-usage-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .cta-band__more-link { display: inline-flex; width: 100%; justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .h-scroll__card { flex: 0 0 280px; height: 360px; }
  .partners-row { gap: 16px; }
  .partner-card { width: 180px; height: 100px; }
  .lab-image { height: 300px; }
  .mechanism-img { height: 200px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .heading-md { font-size: clamp(24px, 8vw, 32px); }
  .body-text { font-size: 14px; line-height: 1.75; }
  .stats { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .home-mechanism-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .clinic-grid { grid-template-columns: 1fr; }
  .roadmap { flex-direction: column; }
  .roadmap__line { width: 2px; height: 40px; }
}
