/* ==========================================================
   H-LEAH — 정적 홈페이지 공용 스타일 (클린 미니멀)
   CI: Navy #16244a / Orange #e8702a / Yellow #f2d75c
   ========================================================== */

:root {
  --navy: #16244a;
  --navy-deep: #101b38;
  --orange: #e8702a;
  --yellow: #f2d75c;
  --ink: #1c2536;
  --ink-soft: #4e5a70;
  --ink-mute: #8590a3;
  --paper: #ffffff;
  --paper-alt: #f7f8fa;
  --line: #e6eaf0;
  --line-dark: #cfd6e0;
  --radius: 14px;
  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }

.container { width: min(1080px, 90%); margin: 0 auto; }

/* ---------- 로고 ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.logo svg { display: block; }
.logo-word {
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 1.22rem;
  line-height: 1;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav { display: flex; gap: 28px; font-size: 0.9rem; }
.site-nav a { color: var(--ink-soft); transition: color 0.15s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--navy); font-weight: 700; }

/* ---------- 허브 히어로 ---------- */
.hub-hero {
  text-align: center;
  padding: 96px 0 64px;
}
.hub-hero .eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.hub-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hub-hero h1 .accent { color: var(--orange); }
.hub-hero p {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- 바로가기 카드 ---------- */
.gateway { padding: 8px 0 96px; }
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gate-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px 30px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gate-card:hover {
  border-color: var(--line-dark);
  box-shadow: 0 6px 24px rgba(22, 36, 74, 0.07);
}
.gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.gate-icon { display: grid; place-items: center; }
.gate-icon svg { width: 30px; height: 30px; }
.gate-badge {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.gate-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.gate-badge.live::before { background: #2fa96c; }
.gate-badge.pilot::before { background: var(--orange); }
.gate-badge.prep {
  color: var(--orange);
  font-weight: 700;
  background: rgba(232, 112, 42, 0.08);
  border: 1px solid rgba(232, 112, 42, 0.3);
  border-radius: 999px;
  padding: 5px 13px;
}
.gate-badge.prep::before { background: var(--orange); }
.hero-chip.prep {
  color: var(--orange);
  font-weight: 700;
  background: rgba(232, 112, 42, 0.07);
  border-color: rgba(232, 112, 42, 0.3);
}
.gate-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.gate-card p { font-size: 0.91rem; color: var(--ink-soft); flex: 1; }
.gate-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: 4px;
}
.gate-go svg { transition: transform 0.2s ease; }
.gate-card:hover .gate-go svg { transform: translateX(3px); }

/* ---------- 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .corp { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer b { color: var(--ink-soft); font-weight: 600; }

/* ---------- 서브페이지 히어로 ---------- */
.sub-hero {
  border-bottom: 1px solid var(--line);
  padding: 78px 0 64px;
}
.sub-hero .eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.sub-hero h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 700px;
}
.sub-hero .lede {
  margin-top: 20px;
  max-width: 620px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.sub-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.hero-chip {
  font-size: 0.83rem;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 13px;
}

/* ---------- 공통 섹션 ---------- */
.section { padding: 80px 0; }
.section.tint { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.tint + .section.tint { border-top: 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--navy);
}
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 기능 카드 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.feature-card .f-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--paper-alt);
}
.feature-card .f-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.feature-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- 통계 스트립 ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  border-top: 2px solid var(--navy);
  padding-top: 18px;
}
.stat .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.stat .num em { font-style: normal; font-size: 1rem; font-weight: 600; color: var(--ink-mute); margin-left: 2px; }
.stat .lbl { margin-top: 8px; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- 입력 채널 카드 ---------- */
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card.dark { background: var(--navy); border-color: var(--navy); }
.feature-card.dark h3 { color: #fff; }
.feature-card.dark p { color: rgba(255, 255, 255, 0.72); }
.feature-card.dark .f-icon { background: rgba(255, 255, 255, 0.1); }

/* ---------- CGM 차트 패널 ---------- */
.cgm-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 18px;
  box-shadow: 0 12px 32px rgba(22, 36, 74, 0.06);
}
.cgm-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cgm-head b { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.cgm-head span { font-size: 0.78rem; color: var(--ink-mute); }
.cgm-panel svg { width: 100%; height: auto; display: block; }

/* ---------- 목업: 브라우저(관리자) ---------- */
.browser {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(22, 36, 74, 0.08);
  overflow: hidden;
  font-size: 11px;
  text-align: left;
}
.browser .b-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.browser .b-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-dark); }
.browser .b-url {
  margin-left: 10px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--ink-mute);
  font-size: 10px;
}
.browser .b-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.browser .b-side {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 16px 0;
  font-size: 10.5px;
}
.browser .b-side b { display: block; padding: 7px 20px; font-weight: 500; }
.browser .b-side b.on {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--orange);
}
.browser .b-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.b-chart { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 10px; }
.b-chart .k { font-size: 9px; color: var(--ink-mute); font-weight: 600; margin-bottom: 6px; }
.b-chart svg { width: 100%; height: auto; display: block; }
.b-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.b-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.b-card .k { font-size: 9px; color: var(--ink-mute); font-weight: 600; }
.b-card .v { font-size: 15px; font-weight: 800; color: var(--navy); }
.b-card .v em { font-style: normal; color: var(--orange); }
.b-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.b-table .tr {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 0.9fr;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--ink-soft);
  align-items: center;
}
.b-table .tr.head {
  border-top: 0;
  background: var(--paper-alt);
  font-weight: 700;
  color: var(--ink);
  font-size: 9.5px;
}
.pill { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 8.5px; font-weight: 700; }
.pill.ok { background: rgba(33, 138, 88, 0.09); color: #218a58; }
.pill.watch { background: rgba(232, 112, 42, 0.09); color: var(--orange); }

/* ---------- 리스트 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  list-style: none;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.checklist li b { color: var(--navy); font-weight: 700; }
.checklist .ck {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- 안내 배너 ---------- */
.notice {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 0.87rem;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice svg { flex-shrink: 0; margin-top: 3px; color: var(--ink-mute); }

/* ---------- CTA ---------- */
.cta-band {
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 46px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 700; line-height: 1.45; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 13px 24px;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn.primary { color: var(--navy); background: #fff; }
.btn.ghost { color: var(--navy); background: #fff; border: 1px solid var(--line); }

/* ---------- 준비중 페이지 ---------- */
.soon-hero { padding: 100px 0 76px; text-align: center; }
.soon-hero .orbit {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: var(--paper-alt);
  border: 1px solid var(--line);
}
.soon-hero .orbit svg { width: 46px; height: 46px; }

/* ---------- 정보 카드(영양) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card .tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 10px;
}
.info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.info-card p { font-size: 0.89rem; color: var(--ink-soft); }
.info-card ul { margin-top: 12px; padding-left: 18px; font-size: 0.86rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 5px; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .feature-grid, .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .browser .b-body { grid-template-columns: 1fr; }
  .browser .b-side { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px; }
  .browser .b-side b { padding: 5px 10px; border-radius: 8px; }
  .browser .b-side b.on { border-left: 0; }
}
@media (max-width: 640px) {
  .gateway-grid, .feature-grid, .feature-grid.cols-4, .info-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hub-hero { padding: 64px 0 44px; }
  .sub-hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 34px 26px; }
  .b-cards { grid-template-columns: repeat(2, 1fr); }
  .b-table .tr { grid-template-columns: 1.2fr 1fr 1fr; }
  .b-table .tr span:nth-child(4), .b-table .tr span:nth-child(5) { display: none; }
}
