/* ============================================
   인사메디AI 진료과별 성공사례 - 공통 스타일
   실제 medi.insaweb.co.kr 톤앤매너 반영
   - Pretendard (본문) + Montserrat (영문/숫자) + Noto Sans KR (fallback)
   - mainColor: #b90821, subColor: #EA0A2A
   - #333 텍스트, #F8F8FC/#f5f5f5 뉴트럴 배경
   - 대담한 헤드라인 + 넉넉한 여백 + 미니멀 구성
   ============================================ */

:root {
  /* Brand */
  --mainColor: #b90821;
  --mainColor-dark: #8a0518;
  --subColor: #EA0A2A;
  --mainColor-tint: #f9ecee;

  /* Neutrals — 실제 사이트에서 사용하는 값들 */
  --bg-white: #ffffff;
  --bg-tint:  #F8F8FC;
  --bg-gray:  #f5f5f5;
  --line:     #e5e5e5;
  --line-strong: #d0d0d0;

  /* Text — #333 기반 */
  --text:      #333333;
  --text-strong: #111111;
  --text-mute: #777777;
  --text-light: #999999;

  --max-w: 1240px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 8px 24px rgba(0,0,0,.05), 0 2px 6px rgba(0,0,0,.03);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);

  --font-kr: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-en: 'Montserrat', 'Pretendard', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-kr);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

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

/* ============================================
   Top Nav — 실제 사이트처럼 심플 + 두꺼운 로고
   ============================================ */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  height: 72px;
  display: flex; align-items: center;
}
.topnav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  display: flex; align-items: center; gap: 10px;
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--mainColor);
}
.brand em { font-style: normal; color: var(--mainColor); }

.nav-links { display: flex; gap: 40px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--mainColor); }
.nav-cta {
  background: var(--mainColor);
  color: #fff;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--mainColor-dark); }

/* ============================================
   Breadcrumb + Section Anchor
   ============================================ */
.crumb {
  max-width: var(--max-w); margin: 0 auto; padding: 32px 40px 0;
  font-size: 13px; color: var(--text-mute);
  font-family: var(--font-en); letter-spacing: 0.04em;
  font-weight: 500;
}
.crumb a:hover { color: var(--mainColor); }
.crumb .sep { margin: 0 10px; color: var(--line-strong); }

.section-anchor{max-width:var(--max-w); margin:0 auto; padding:0 40px; display:flex; gap:4px; align-items:center; border-bottom:1px solid var(--line); overflow-x:auto; position:sticky; top:100px; z-index:90; background:rgba(255,255,255,0.97); backdrop-filter:blur(10px); -webkit-mask-image:linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image:linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);}
.section-anchor a {
  padding: 18px 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mute);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  font-family: var(--font-kr);
}
.section-anchor a:hover { color: var(--text-strong); }
.section-anchor a.active {
  color: var(--mainColor);
  border-bottom-color: var(--mainColor);
  font-weight: 600;
}
.section-anchor a .en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 6px;
  color: var(--text-light);
}
.section-anchor a.active .en { color: var(--mainColor); }

/* ============================================
   Hero — 실제 사이트처럼 대담한 헤드라인
   "병원마케팅이 심플해집니다" 스타일
   ============================================ */
.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: 100px 40px 80px;
  position: relative;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mainColor);
}
.hero .eyebrow::before {
  content: ''; width: 32px; height: 2px; background: var(--mainColor);
}
.hero-title {
  margin-top: 28px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  max-width: 960px;
  word-break: keep-all;
}
.hero-title .accent { color: var(--mainColor); }
.hero-title .strike {
  position: relative; display: inline-block;
  color: var(--text-light);
}
.hero-title .strike::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 55%;
  height: 3px; background: var(--mainColor); transform: rotate(-3deg);
}
.hero-sub {
  margin-top: 32px;
  max-width: 780px;
  font-size: 18px;
  color: var(--text);
  line-height: 1.75;
}
.hero-meta {
  display: flex; gap: 40px; margin-top: 56px;
  font-size: 13px; color: var(--text-mute);
  padding-top: 32px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta div {
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 12px;
}
.hero-meta div span {
  color: var(--text-strong);
  font-weight: 700;
  margin-left: 10px;
  font-family: var(--font-kr);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 14px;
}

/* KPI Badges (Hero) — 실제 사이트의 카드형 정갈함 */
.kpi-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.kpi-badge {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.kpi-badge::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--mainColor);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s ease;
}
.kpi-badge.visible::before { transform: scaleX(1); }
.kpi-badge:hover {
  border-color: var(--mainColor);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.kpi-badge .label {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.kpi-badge .value {
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.04em;
  line-height: 1;
}
.kpi-badge .value .unit {
  font-size: 26px;
  color: var(--mainColor);
  font-weight: 700;
  margin-left: 2px;
}
.kpi-badge .value .arrow {
  color: var(--mainColor);
  font-size: 32px;
  margin-left: 6px;
}
.kpi-badge .desc {
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================================
   Section base
   ============================================ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 40px;
  scroll-margin-top: 80px;
}
.section.tinted {
  background: var(--bg-tint);
  max-width: 100%;
}
.section.tinted > .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--mainColor);
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
}
.section-num::after {
  content: '';
  height: 1px;
  width: 56px;
  background: var(--mainColor);
}
.section-title {
  margin-top: 20px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  line-height: 1.25;
  max-width: 900px;
  word-break: keep-all;
}
.section-title .accent { color: var(--mainColor); }
.section-lead {
  margin-top: 24px;
  font-size: 17px;
  color: var(--text);
  max-width: 760px;
  line-height: 1.75;
}
.section-header { margin-bottom: 72px; }

/* ============================================
   Challenge – Problem cards
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: all .3s ease;
  position: relative;
}
.problem-card:hover {
  border-color: var(--text-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.problem-card .idx {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.14em;
}
.problem-card .title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  margin-top: 12px;
  letter-spacing: -0.02em;
}
.problem-card .desc {
  margin-top: 16px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

/* ============================================
   Diagnosis – Chart panels
   ============================================ */
.chart-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.chart-panel {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.chart-panel .h {
  font-size: 12px;
  font-weight: 700;
  color: var(--mainColor);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.chart-panel .t {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
  margin-top: 12px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.chart-panel .s {
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 10px;
  line-height: 1.6;
}
.chart-box { margin-top: 28px; position: relative; height: 320px; }
.chart-box.lg { height: 380px; }

.insight-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.insight-list li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text);
  list-style: none;
  line-height: 1.65;
  border-left: 3px solid var(--mainColor);
}
.insight-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mainColor);
  margin-top: 8px;
  flex-shrink: 0;
}
.insight-list li b {
  color: var(--mainColor);
  font-weight: 700;
}

/* ============================================
   Strategy – Steps
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  transition: all .3s ease;
}
.step:hover {
  border-color: var(--mainColor);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.step .idx {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--mainColor);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step .num {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
  margin-top: 14px;
  letter-spacing: -0.05em;
}
.step .title {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.step .desc {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.7;
}
.step .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.step .tag {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
  padding: 5px 12px;
  background: var(--bg-gray);
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* ============================================
   Results – KPI dashboard + Before/After
   ============================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.result-kpi {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.result-kpi .label {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
}
.result-kpi .value {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-strong);
  margin-top: 12px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.result-kpi .value .arrow.up { color: var(--mainColor); }
.result-kpi .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--mainColor);
  font-weight: 700;
  margin-top: 12px;
  padding: 4px 10px;
  background: var(--mainColor-tint);
  border-radius: 4px;
}

.results-chart {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
}

/* Before/After Slider — 실제 사이트의 정갈한 카드 스타일 */
.ba-slider {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.ba-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.ba-header .h {
  font-size: 12px;
  font-weight: 700;
  color: var(--mainColor);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.ba-header .t {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.ba-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mainColor);
  font-family: var(--font-kr);
  font-weight: 600;
  padding: 8px 14px;
  background: var(--mainColor-tint);
  border-radius: 999px;
  white-space: nowrap;
}
.ba-tip .ba-tip-arrow {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: baPulse 1.8s ease-in-out infinite;
}
@keyframes baPulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%      { transform: translateX(3px); opacity: 1; }
}

.ba-viewer {
  position: relative;
  height: 280px;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

/* Instruction overlay inside the viewer */
.ba-instruction {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  transition: opacity .3s;
}
.ba-instruction .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mainColor);
  animation: baPulse 1.4s ease-in-out infinite;
}
.ba-viewer.dragged .ba-instruction {
  opacity: 0;
}

.ba-side {
  position: absolute;
  inset: 0;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ba-side.after {
  clip-path: inset(0 0 0 50%);
  background: linear-gradient(135deg, var(--mainColor) 0%, var(--mainColor-dark) 100%);
  color: #fff;
  /* Push AFTER content to the RIGHT so it's visible even when handle is far left */
  align-items: flex-end;
  text-align: right;
}
.ba-side.before {
  background: var(--bg-gray);
  color: var(--text-strong);
  /* BEFORE content stays LEFT-aligned */
  align-items: flex-start;
  text-align: left;
}
.ba-side .label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.75;
}
.ba-side .content-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ba-side.after .content-block {
  align-items: flex-end;
}
.ba-side.before .content-block {
  align-items: flex-start;
}
.ba-side .metric {
  font-family: var(--font-en);
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.ba-side .metric .unit { font-size: 32px; margin-left: 4px; }
.ba-side .caption {
  font-size: 14px;
  opacity: 0.9;
  max-width: 280px;
  line-height: 1.5;
}

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
  pointer-events: none;
  z-index: 4;
}
.ba-handle::after {
  content: '↔';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--mainColor);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.ba-viewer:not(.dragged) .ba-handle::after {
  animation: baHandleWiggle 2.2s ease-in-out infinite;
}
@keyframes baHandleWiggle {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 6px rgba(185,8,33,0.12), var(--shadow); }
}

/* ============================================
   Key Insight – Blockquote
   실제 사이트의 대담한 헤드라인 스타일
   ============================================ */
.insight-block {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 40px 96px;
  text-align: center;
}
.insight-block .quote-mark {
  font-family: var(--font-en);
  font-size: 120px;
  font-weight: 800;
  color: var(--mainColor);
  line-height: 0.5;
  margin-bottom: 32px;
}
.insight-block .quote {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  line-height: 1.4;
  word-break: keep-all;
}
.insight-block .quote em {
  font-style: normal;
  color: var(--mainColor);
  background: linear-gradient(180deg, transparent 60%, var(--mainColor-tint) 60%);
  padding: 0 4px;
}
.insight-block .attribution {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-en);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================
   Related Cases + CTA
   ============================================ */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.related-card:hover {
  border-color: var(--mainColor);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.related-card .tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--mainColor);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.related-card .title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.related-card .kpi {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}
.related-card .kpi .accent { color: var(--mainColor); }
.related-card .go {
  margin-top: auto;
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.related-card:hover .go { color: var(--mainColor); }

.cta {
  margin-top: 120px;
  background: var(--text-strong);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--mainColor);
  opacity: 0.18;
}
.cta::after {
  content: '';
  position: absolute;
  right: 40px; bottom: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--mainColor);
  opacity: 0.10;
}
.cta h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  word-break: keep-all;
  position: relative; z-index: 1;
}
.cta p {
  margin-top: 20px;
  color: rgba(255,255,255,0.75);
  font-size: 15.5px;
  line-height: 1.7;
  position: relative; z-index: 1;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: var(--mainColor);
  color: #fff;
  padding: 20px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s;
}
.btn-primary:hover {
  background: var(--mainColor-dark);
  transform: translateY(-2px);
}
.btn-primary .arr { font-family: var(--font-en); font-size: 16px; }
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 20px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* ============================================
   Footer
   ============================================ */
.footer {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding: 48px 40px;
  font-size: 13px;
  color: var(--text-mute);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .en {
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

/* ============================================
   Scroll fade-in animation (AOS-style slide-up)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1),
              transform .9s cubic-bezier(.22,.61,.36,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.d1 { transition-delay: .08s; }
.fade-in.d2 { transition-delay: .16s; }
.fade-in.d3 { transition-delay: .24s; }
.fade-in.d4 { transition-delay: .32s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  body { font-size: 15px; }
  .nav-links { display: none; }
  .hero { padding: 60px 24px 48px; }
  .section { padding: 72px 24px; }
  .kpi-badges,
  .problem-grid,
  .steps,
  .related { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .cta {
    grid-template-columns: 1fr;
    padding: 48px 32px;
  }
  .ba-side .metric { font-size: 52px; }
  .ba-side { padding: 28px; }
  .crumb, .section-anchor, .topnav-inner, .footer { padding-left: 24px; padding-right: 24px; }
  .section-anchor { top: 13.4vw; }
  .chart-panel, .results-chart, .ba-slider { padding: 28px 24px; }
  .problem-card, .step { padding: 32px 24px; }
}
