/* ==========================================================================
   HealthInsu Global — base.css (v=20260525-04, 2026-05-24)
   White-base, mediwhale-clean, cinematic hero, transparent-on-hero top nav,
   scroll indicator, floating dock, scroll-reveal helpers.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --bg:           #ffffff;
  --bg-soft:      #f7f8fa;
  --bg-dim:       #eef0f4;
  --bg-dark:      #0a1838;
  --bg-darker:    #050d22;

  --text:         #14181e;
  --text-muted:   #545d6b;
  --text-dim:     #8590a0;
  --text-on-dark: #f2f4f8;

  --border:       #e6e9ee;
  --border-soft:  #d6dae0;

  --accent:       #0a1838;
  --accent-hover: #142a5c;
  --accent-tint:  rgba(10, 24, 56, 0.08);
  --gold:         #b9925a;
  --gold-soft:    #d4b07c;
  --highlight:    #fbbf24;  /* yellow for scroll indicator / micro accent */
  --mustard:      #d4b07c;  /* soft gold for CTA buttons */
  --mustard-hover:#b9925a;  /* slightly darker gold for hover */

  --danger:       #b94545;
  --success:      #2e8a5d;

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius:       4px;
  --radius-lg:    8px;
  --radius-xl:    16px;
  --shadow-soft:  0 1px 2px rgba(20,24,30,.04), 0 24px 60px -28px rgba(20,24,30,.18);
  --shadow-dock:  0 4px 12px rgba(20,24,30,.10), 0 16px 32px rgba(20,24,30,.08);

  --container:        1200px;
  --container-narrow: 760px;
  --container-wide:   1440px;
  --nav-h:            84px;
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  font-feature-settings: 'cv02', 'cv11', 'ss01';
}
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
button { font: inherit; cursor: pointer; }
b, strong { font-weight: 600; color: inherit; }
hr { border: none; border-top: 1px solid var(--border); margin: 64px 0; }

/* ---------- Typography -------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 4.5vw + 1rem, 4.8rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 2.2vw + 1rem, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; color: var(--text-muted); }
p.lead { font-size: 1.2rem; color: var(--text); line-height: 1.55; max-width: 60ch; font-weight: 400; }
.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.4rem;
}
.eyebrow--gold { color: var(--gold); }
.hero-full__copy .eyebrow { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.2em; }
.eyebrow--xl { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.2em; }

/* ---------- Layout ------------------------------------------------------ */
.container        { width: 100%; max-width: var(--container);        padding: 0 24px; margin: 0 auto; }
.container--narrow{ width: 100%; max-width: var(--container-narrow); padding: 0 24px; margin: 0 auto; }
.container--wide  { width: 100%; max-width: var(--container-wide);   padding: 0 24px; margin: 0 auto; }

.section          { padding: clamp(80px, 9vw, 140px) 0; }
.section--tight   { padding: clamp(56px, 7vw, 100px) 0; }
.section--first   { padding-top: 0; }
.section--soft    { background: var(--bg-soft); }
.section--dark    { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark .eyebrow { color: var(--gold); }
.section--dark p  { color: rgba(242, 244, 248, 0.74); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-on-dark); }
.section--dark a  { color: var(--gold-soft); }
.section--dark a:hover { color: #fff; }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Top Nav (transparent on hero, white on scroll) ------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, height .2s ease, transform .25s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  font-weight: 700; letter-spacing: -0.01em;
  color: #ffffff; font-size: 1.75rem;
  transition: color .25s ease;
  line-height: 1;
}
.nav__brand b { color: var(--highlight); font-weight: 700; }
.nav.is-scrolled .nav__brand { color: var(--accent); }
.nav.is-scrolled .nav__brand b { color: var(--gold); }

.nav__links {
  display: flex; gap: 32px; align-items: center;
  font-size: 1.15rem;
}
.nav__links > a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  transition: color .15s ease;
  padding: 8px 0;
  white-space: nowrap; /* prevent CJK characters from breaking mid-label under flex shrink */
}
.nav__links > a:hover, .nav__links > a[aria-current="page"] {
  color: #fff;
}
.nav.is-scrolled .nav__links > a {
  color: var(--text-muted);
}
.nav.is-scrolled .nav__links > a:hover,
.nav.is-scrolled .nav__links > a[aria-current="page"] {
  color: var(--accent);
}
.nav__right {
  display: flex; align-items: center; gap: 16px;
}
.nav__lang-wrap { position: relative; }
.nav__lang {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.88);
  padding: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .15s ease;
}
.nav__lang svg { width: 22px; height: 22px; display: block; }
.nav__lang:hover { color: #fff; }
.nav.is-scrolled .nav__lang { color: var(--text-muted); }
.nav.is-scrolled .nav__lang:hover { color: var(--accent); }

/* Language dropdown menu */
.nav__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 60;
}
.nav__lang-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__lang-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .12s ease, color .12s ease;
}
.nav__lang-menu-item:hover { background: var(--accent-tint); color: var(--accent); }
.nav__lang-menu-item.is-active {
  background: var(--accent);
  color: #fff;
}
.nav__lang-menu-item.is-active:hover { background: var(--accent-hover); color: #fff; }
.nav__lang-menu-item[aria-disabled="true"] {
  color: var(--text-muted);
  cursor: not-allowed;
}
.nav__lang-menu-item[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--text-muted);
}
.nav__lang-soon {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--bg-soft);
  border-radius: 999px;
}

.nav__cta {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  padding: 10px 22px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  border-radius: var(--radius);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav__cta:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}
.nav.is-scrolled .nav__cta {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.nav.is-scrolled .nav__cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.nav__toggle {
  display: none;
  background: none; border: 0;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav__toggle svg { width: 26px; height: 26px; display: block; }
.nav__toggle:hover { background: rgba(255,255,255,0.1); }
.nav.is-scrolled .nav__toggle { color: var(--accent); }
.nav.is-scrolled .nav__toggle:hover { background: var(--accent-tint); }
@media (max-width: 980px) {
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 0; display: none;
    box-shadow: var(--shadow-soft);
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a { padding: 14px 24px; width: 100%; color: var(--text-muted) !important; }
  .nav__toggle { display: inline-flex; }
}

/* Mobile: tap-to-hide behaviour — toggled by nav.js on body taps */
@media (max-width: 720px) {
  .nav.is-collapsed { transform: translateY(-100%); }
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 500; font-size: 0.95rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn--primary       { background: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost         { background: transparent; color: var(--accent); border-color: var(--border-soft); }
.btn--ghost:hover   { border-color: var(--accent); color: var(--accent); }
.btn--on-dark         { background: var(--bg); color: var(--accent); }
.btn--on-dark:hover   { background: #f0f2f5; color: var(--accent); }
.btn--mustard {
  background: var(--mustard) !important;
  color: #ffffff !important;
  border-color: var(--mustard) !important;
  font-weight: 600;
}
.btn--mustard:hover {
  background: var(--mustard-hover) !important;
  border-color: var(--mustard-hover) !important;
  color: #ffffff !important;
}
.btn--on-dark-ghost   { background: transparent; color: var(--text-on-dark); border-color: rgba(255,255,255,0.32); }
.btn--on-dark-ghost:hover { border-color: rgba(255,255,255,0.72); color: #fff; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Hero full (video bg) --------------------------------------- */
.hero-full {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-darker);
  color: #fff;
}
.hero-full__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-full__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,13,34,0.20) 0%, rgba(5,13,34,0.22) 50%, rgba(5,13,34,0.62) 100%),
    linear-gradient(90deg, rgba(5,13,34,0.40) 0%, rgba(5,13,34,0.10) 60%);
  z-index: 1;
}
.hero-full__copy {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-full__copy .eyebrow { color: var(--gold-soft); margin-bottom: 1.4rem; }
.hero-full__copy h1 {
  color: #fff;
  max-width: 18ch;
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 4.5vw + 1rem, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero-full__copy p {
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.2rem);
  margin: 0;
}
.hero-full__actions {
  display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center;
}

/* ---------- Scroll Indicator (soomae-style, yellow highlight) ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 3.8rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  z-index: 3;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.scroll-indicator.is-hidden { opacity: 0; pointer-events: none; }
.scroll-indicator .mouse {
  box-sizing: border-box;
  width: 25px; height: 39px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 13px;
  display: flex; justify-content: center;
  padding-top: 7px;
}
.scroll-indicator .mouse::before {
  content: "";
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--highlight);
  animation: scrollDot 1.7s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-3px); }
  35%  { opacity: 1; }
  75%  { opacity: 0; transform: translateY(9px); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator .mouse::before { animation: none; opacity: 1; }
}

/* ---------- Sticky Section Nav (scroll-spy, in-page) ------------------- */
.section-nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 0.86rem;
  transform: translateY(-100%);
  transition: transform .25s ease, opacity .2s ease;
  opacity: 0;
  pointer-events: none;
}
.section-nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.section-nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.section-nav ul {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.section-nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.section-nav__link:hover { color: var(--accent); }
.section-nav__link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.section-nav__cta { padding: 8px 16px !important; font-size: 0.86rem !important; }
@media (max-width: 720px) {
  .section-nav { font-size: 0.78rem; padding: 10px 0; }
  .section-nav__inner { gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
  .section-nav ul { gap: 14px; flex-wrap: wrap; }
  .section-nav__cta { display: none; }
}

/* ---------- Section hero (full-bleed image background) ----------------- */
.section-hero {
  position: relative;
  min-height: clamp(560px, 80vh, 760px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  display: flex; align-items: center;
  overflow: hidden;
  scroll-margin-top: 64px;
}
.section-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,13,34,0.34) 0%, rgba(5,13,34,0.68) 100%);
}
.section-hero__copy {
  position: relative; z-index: 1;
  max-width: 940px;
  text-align: left;
}
.section-hero__copy .eyebrow {
  color: var(--gold-soft);
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 1.6rem;
}
.section-hero__copy h2 {
  color: #fff;
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.6rem);
  letter-spacing: -0.025em;
  max-width: 26ch;
  margin: 0 0 0.5em;
  line-height: 1.1;
}
.section-hero__copy p {
  color: rgba(255,255,255,0.88);
  font-size: 1.2rem;
  max-width: 72ch;
}
.section-hero__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Home: short snippet inside section-hero (with Learn more) */
.section-hero__copy .btn { margin-top: 24px; }

/* ---------- Floating dock (right side, vertical) ----------------------- */
.dock {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 8px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-dock);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  opacity: 0;
  transform: translateY(-50%) translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.dock.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.dock__btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.dock__btn:hover { background: var(--accent-tint); color: var(--accent); }
.dock__btn.is-active { color: var(--accent); }
.dock__btn .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: 0.45;
  transition: opacity .15s ease, transform .15s ease;
}
.dock__btn:hover .dot, .dock__btn.is-active .dot { opacity: 1; transform: scale(1.2); }
.dock__btn svg { width: 18px; height: 18px; }
.dock__divider {
  height: 1px; background: var(--border);
  margin: 4px 6px;
}
.dock__btn--cta {
  background: var(--accent);
  color: #fff;
  margin-top: 4px;
}
.dock__btn--cta:hover { background: var(--accent-hover); color: #fff; }
.dock__btn[aria-label]::after {
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.dock__btn:hover::after { opacity: 1; }
@media (max-width: 720px) {
  .dock { right: 12px; padding: 8px 6px; }
  .dock__btn { width: 32px; height: 32px; }
  .dock__btn[aria-label]::after { display: none; }
  /* Hide dock while user scrolls down (set by dock.js) */
  .dock.is-collapsed {
    opacity: 0;
    transform: translateY(-50%) translateX(80px);
    pointer-events: none;
  }
}

/* ---------- Showcase card --------------------------------------------- */
.showcase {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.showcase:hover {
  transform: translateY(-2px);
  border-color: var(--border-soft);
  box-shadow: 0 1px 2px rgba(20,24,30,.04), 0 16px 40px -24px rgba(20,24,30,.16);
  color: inherit;
}
.showcase__visual { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.showcase__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.showcase:hover .showcase__visual img { transform: scale(1.04); }
.showcase__copy { padding: 24px 26px 28px; }
.showcase__copy h3 { margin: 6px 0 10px; }
.showcase__copy p { margin: 0; color: var(--text-muted); }
.showcase__arrow {
  display: inline-block;
  margin-top: 18px;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.95rem;
}
.showcase:hover .showcase__arrow { color: var(--accent-hover); }

/* ---------- Feature row (no-box minimal) ------------------------------- */
.features { display: grid; gap: 0; border-top: 1px solid var(--border); }
.feature {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; gap: 8px; }
}
.feature__meta {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  padding-top: 6px;
}
.feature h3 { font-size: 1.5rem; }
.feature h3 { margin: 0 0 10px; }
.feature p  { margin: 0; max-width: 64ch; }

/* ---------- Stats ------------------------------------------------------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-bar > .stat { background: var(--bg); text-align: center; padding: 32px 18px; }
@media (max-width: 720px) { .stat-bar { grid-template-columns: repeat(2, 1fr); } }
.stat__num {
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat__lbl { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-muted); }
.section--dark .stat-bar { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.08); }
.section--dark .stat-bar > .stat { background: transparent; }
.section--dark .stat__num { color: var(--gold); }
.section--dark .stat__lbl { color: rgba(242,244,248,0.65); }

/* ---------- Video embed ------------------------------------------------ */
.video-embed {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Form ------------------------------------------------------- */
.form { display: grid; gap: 24px; }
.form__row { display: grid; gap: 8px; }
.form__row label { font-size: 0.95rem; color: var(--text); font-weight: 600; }
.form__row input, .form__row select, .form__row textarea {
  width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 1.02rem;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.form__legend {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 22px;
  display: block;
}
.form__legend strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: none;
  font-weight: 600;
  margin-top: 4px;
}
.form__row input:focus, .form__row select:focus, .form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.form__row textarea { resize: vertical; min-height: 140px; }
.form__hint { font-size: 0.82rem; color: var(--text-dim); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 0.92rem; min-height: 1.4em; }
.form__status.is-ok  { color: var(--success); }
.form__status.is-err { color: var(--danger); }

/* ---------- FAQ -------------------------------------------------------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 500; color: var(--text);
  padding-right: 32px; position: relative;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: -4px;
  color: var(--accent);
  font-weight: 300; font-size: 1.6em; line-height: 1;
  transition: transform .2s ease;
}
.faq[open] summary::after { content: '−'; }
.faq p { margin: 16px 0 0; color: var(--text-muted); }

/* ---------- Pull / callout -------------------------------------------- */
.pull {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  font-size: 1.2rem;
  color: var(--text);
  max-width: 60ch;
  line-height: 1.5;
}
.section--dark .pull { border-left-color: var(--gold); color: var(--text-on-dark); }
.callout {
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer (NICE BizINFO-style: compact + brand prominent) -------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 36px 0 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer .container { display: block; }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* Brand — Jowin Inc. heavier weight, uniform gap to sitemap-block below */
.footer__brand-name {
  font-size: 1.51rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;            /* matches sitemap→biz gap below */
}
.footer__brand-sub {
  font-size: 1.16rem;
  font-weight: 700;            /* Bold — one step heavier (from Semi-Bold 600) */
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;                   /* touching sitemap directly */
}
.footer__brand-sub b { color: var(--gold); font-weight: 700; }
.footer__brand-sub sup { font-size: 0.55em; vertical-align: super; color: var(--gold); margin-left: 1px; }

/* Sitemap — horizontal nav, Medium weight, light separators */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 500;
}
.footer__nav a {
  color: var(--text-muted);
  padding: 3px 14px;
  transition: color .12s ease;
}
.footer__nav a:first-of-type { padding-left: 0; }
.footer__nav a:hover { color: var(--accent); }
.footer__nav a[aria-current="page"] { color: var(--accent); }
.footer__nav .biz-sep { color: var(--border-soft); user-select: none; font-weight: 400; }

/* Biz info — single-column flow, inline " | " separators for multi-item lines */
.footer__biz { margin-bottom: 14px; max-width: 92ch; }   /* uniform 14px gap */
.biz-info { display: none; }
html[lang="en"] .biz-info--en,
html[lang="ko"] .biz-info--ko,
html[lang="ja"] .biz-info--ja { display: block; }
.biz-info p {
  margin: 0;
  line-height: 1.5;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 300;            /* Light (down from Regular 400) */
}
.biz-info b {
  font-weight: 500;            /* Medium */
  color: var(--text-muted);    /* same as sitemap / value / copyright — unified */
  margin-right: 6px;
}
.biz-info .biz-sep {
  color: var(--border-soft);   /* same as sitemap separator (was --text-mute) */
  margin: 0 10px;
  user-select: none;
  font-weight: 400;
}
.biz-info a { color: var(--text-muted); font-weight: 400; }
.biz-info a:hover { color: var(--accent); }
.biz-emph { font-weight: 600; color: var(--text); }    /* Semi-Bold (down from Bold 700) */

/* Bottom — copyright (matched to biz-info body size + uniform 14px gap above) */
.footer__bottom {
  font-size: 0.92rem;
  color: var(--text-muted);    /* same as sitemap / biz-info — unified */
  padding-top: 0;
  margin-top: 0;               /* relies on .footer__biz margin-bottom for uniform gap */
}

@media (max-width: 560px) {
  .footer { padding: 30px 0 24px; }
  .footer__brand-name { font-size: 1.31rem; margin-bottom: 10px; }
  .footer__brand-sub  { font-size: 1.06rem; margin-bottom: 0; }
  .footer__nav { font-size: 0.92rem; margin-bottom: 10px; }
  .footer__nav a { padding: 2px 10px; }
  .footer__biz { margin-bottom: 10px; }
  .biz-info p { font-size: 0.86rem; line-height: 1.45; }
  .biz-info .biz-sep { margin: 0 7px; }
  .footer__bottom { font-size: 0.86rem; margin-top: 0; }
}

/* ---------- Big Section (large alternating split, marketing tone) ----- */
.big-section {
  padding: clamp(100px, 13vw, 200px) 0;
}
.big-section--soft { background: var(--bg-soft); }
.big-section--dark { background: var(--bg-darker); color: var(--text-on-dark); }

.big-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.big-section__inner--reverse .big-section__copy { order: 2; }
@media (max-width: 900px) {
  .big-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .big-section__inner--reverse .big-section__copy { order: 1; }
}

.big-section__tag {
  font-size: 1.05rem;
  color: var(--mustard);
  font-weight: 700;
  margin: 0 0 1.4rem;
  letter-spacing: 0;
  text-transform: none;
}
.big-section--dark .big-section__tag { color: var(--gold); }

.big-section__title {
  font-size: clamp(2.2rem, 3.2vw + 1rem, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin: 0 0 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.big-section--dark .big-section__title { color: var(--text-on-dark); }

.big-section__sub {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.62;
  margin: 0;
}
.big-section--dark .big-section__sub { color: rgba(255,255,255,0.72); }

.big-section__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.big-section__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}
.big-section__visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.big-section__visual:hover img { transform: scale(1.04); }

/* Full-bleed background variant — image fills the section, content overlays */
.big-section--bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(520px, 60vh, 720px);
  display: flex;
  align-items: center;
}
.big-section--bg .big-section__bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(5,13,34,0.88) 0%, rgba(5,13,34,0.62) 55%, rgba(5,13,34,0.38) 100%);
  z-index: -1;
}
.big-section--bg .container { position: relative; z-index: 1; }
.big-section--bg .big-section__copy--bg { max-width: 640px; }
.big-section--bg .big-section__tag    { color: var(--gold-soft); }
.big-section--bg .big-section__title  { color: #fff; }
.big-section--bg .big-section__sub    { color: rgba(255,255,255,0.86); max-width: 56ch; }
@media (max-width: 720px) {
  .big-section--bg { min-height: clamp(440px, 70vh, 600px); }
  .big-section--bg .big-section__copy--bg { max-width: 100%; }
}

/* Dark 4-grid (sub-pages launcher) */
.big-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 72px;
  text-align: left;
}
@media (max-width: 900px) { .big-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .big-grid { grid-template-columns: 1fr; } }
.big-grid__item {
  padding: 28px 24px;
  border-top: 2px solid rgba(255,255,255,0.16);
}
.big-grid__item h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 12px;
}
.big-grid__item p {
  color: rgba(255,255,255,0.72);
  margin: 0 0 22px;
  font-size: 0.96rem;
  min-height: 4.6em;
}

/* ---------- Process (horizontal step flow with arrow connectors) ------- */
.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
/* 4-step variant for home/license process (overrides base 6-col) */
.process--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .process,  .process--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .process,  .process--4 { grid-template-columns: repeat(2, 1fr); } }
.process__step {
  position: relative;
  padding: 28px 22px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 18px; height: 18px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  background: var(--bg);
  z-index: 1;
}
@media (max-width: 1100px) {
  .process__step:not(:last-child)::after { display: none; }
}
.process__num {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.process__step h3 { font-size: 1.1rem; margin: 0 0 8px; }
.process__step p  { font-size: 0.95rem; margin: 0; }

.section--dark .process,
.section--dark .process__step { border-color: rgba(255,255,255,0.12); }
.section--dark .process__step { background: transparent; }
.section--dark .process__step:not(:last-child)::after {
  background: var(--bg-dark);
  border-color: var(--gold);
}

/* ---------- Timeline (vertical stage with node) ----------------------- */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 56px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--border);
}
.section--dark .timeline::before { background: rgba(255,255,255,0.15); }
.timeline__stage {
  position: relative;
  padding: 0 0 36px;
}
.timeline__stage:last-child { padding-bottom: 0; }
.timeline__stage::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
}
.section--dark .timeline__stage::before { box-shadow: 0 0 0 4px var(--bg-dark), 0 0 0 5px rgba(255,255,255,0.18); }
.timeline__num {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.timeline__stage h3 { font-size: 1.5rem; margin: 0 0 10px; }
.timeline__stage p { margin: 0; max-width: 60ch; }

/* ---------- Icon grid (asset / revenue layers with icon) -------------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 880px) { .icon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .icon-grid { grid-template-columns: 1fr; } }
.icon-grid__item {
  padding: 36px 30px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.icon-grid__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}
.icon-grid__icon svg { width: 26px; height: 26px; }
.icon-grid__meta {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.icon-grid__item h3 { font-size: 1.2rem; margin: 0 0 10px; }
.icon-grid__item p  { margin: 0; font-size: 0.96rem; }
.section--dark .icon-grid,
.section--dark .icon-grid__item { border-color: rgba(255,255,255,0.12); }
.section--dark .icon-grid__item { background: transparent; }
.section--dark .icon-grid__icon { background: rgba(185,146,90,0.15); color: var(--gold); }

/* ---------- Scroll reveal (Intersection Observer hook) ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities -------------------------------------------------- */
.muted  { color: var(--text-muted); }
.dim    { color: var(--text-dim); }
.accent { color: var(--accent); }
.gold   { color: var(--gold); }
.highlight { color: var(--highlight); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- Stat-quad (2x2 stat tile inside big-section visual) -------- */
.stat-quad-wrap { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 40px; }
.stat-quad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 420px; width: 100%; }
.stat-quad__cell { padding: 24px; background: var(--bg-soft); border-radius: var(--radius-lg); text-align: center; }
.stat-quad__cell--accent { background: var(--accent-tint); }
.stat-quad__num { font-size: clamp(1.3rem, 1.2vw + 0.9rem, 2rem); font-weight: 600; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.stat-quad__cell--accent .stat-quad__num { color: var(--mustard); }
.stat-quad__lbl { margin-top: 8px; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-muted); }
@media (max-width: 480px) {
  .stat-quad-wrap { padding: 20px; }
  .stat-quad      { gap: 10px; }
  .stat-quad__cell { padding: 16px 10px; }
  .stat-quad__num { font-size: 1.15rem; }
  .stat-quad__lbl { font-size: 0.72rem; }
}

/* ---------- Mobile optimizations -------------------------------------- */
/* `<br class="br-md">` collapses below tablet — desktop stanza-style line
   breaks become natural wrapping on phones. */
@media (max-width: 720px) {
  .br-md { display: none; }

  /* Trim vertical breathing room — desktop clamps still leave a lot of
     space on a 375px screen. */
  .section        { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .big-section    { padding: 72px 0; }

  /* Tighter hero copy padding so 18ch headline can breathe */
  .hero-full__copy h1 { max-width: 22ch; }
  .hero-full__copy p  { max-width: 38ch; }

  /* Section-hero on inner pages: scale headline + relax max-width */
  .section-hero               { min-height: clamp(420px, 70vh, 560px); }
  .section-hero__copy h2      { font-size: clamp(1.9rem, 7vw + 0.4rem, 2.4rem); max-width: 22ch; }
  .section-hero__copy p       { font-size: 1.05rem; max-width: 100%; }
  .section-hero__copy .eyebrow{ margin-bottom: 1.1rem; }

  /* Big-section title: pull min font down slightly so 3-word stanzas fit */
  .big-section__title { font-size: clamp(1.95rem, 7vw + 0.4rem, 2.6rem); line-height: 1.18; }
  .big-section__sub   { font-size: 1.05rem; }
  .big-section__cta   { margin-top: 24px; }

  /* Stat tiles padding tighter so long labels don't break weirdly */
  .stat-bar > .stat   { padding: 22px 12px; }
  .stat__num          { font-size: clamp(1.7rem, 7vw, 2.3rem); word-break: break-word; }

  /* Footer top wrap handled in dedicated mobile block above */

  /* Nav — compact for mobile so toggle + brand + CTA all fit;
     nav height stays var(--nav-h) so we just upsize content inside it */
  .nav__inner    { gap: 10px; }
  .nav__brand    { font-size: 1.7rem; }            /* up from 1.4rem */
  .nav__lang     { padding: 6px; }                 /* show on mobile — functional dropdown */
  .nav__lang svg { width: 22px; height: 22px; }
  .nav__lang-menu { min-width: 180px; right: -4px; }
  .nav__cta      { padding: 9px 18px !important; font-size: 0.98rem !important; }
  .nav__right    { gap: 8px; }
  .nav__toggle   { padding: 6px; }
  .nav__toggle svg { width: 28px; height: 28px; }  /* bigger tap target icon */
  .container, .container--narrow, .container--wide { padding: 0 16px; }
}

/* Very narrow phones — process steps stack 1-col, drop arrow connectors */
@media (max-width: 480px) {
  .process            { grid-template-columns: 1fr; }
  .process__step::after { display: none !important; }

  /* Hero CTA stack vertically full-width */
  .hero-full__actions .btn,
  .section-hero__actions .btn,
  .big-section__cta .btn { width: 100%; text-align: center; }
}

/* ---------- A11y ------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
