/* ==========================================================================
   당직대로 베타 홈페이지 스타일
   - 앱 톤과 맞춤: 흰 배경 + 당직대로 파랑(#2E6DB4), 절제된 색, 명확한 위계
   - 외부 자원(폰트/CDN) 없음 → 인터넷 없이도 그대로 열림
   ========================================================================== */

:root {
  --brand: #2E6DB4;         /* 당직대로 파랑 (스플래시와 동일 계열) */
  --brand-dark: #245a97;
  --brand-soft: #eaf1fa;    /* 파랑 아주 옅은 배경 */
  --navy: #1e2a3a;          /* 제목용 짙은 남색 */
  --text: #2b333f;          /* 본문 */
  --muted: #6b7482;         /* 보조 텍스트 */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;       /* 섹션 교차 배경 */
  --border: #e4e8ee;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic",
    "맑은 고딕", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
code {
  font-family: "Consolas", "D2Coding", ui-monospace, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .92em;
}

/* ---------- 상단 바 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; }
.brand-name { font-weight: 800; font-size: 1.16rem; letter-spacing: -.01em; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--text); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: 1rem;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: #cdd9ea; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-small { padding: 8px 14px; font-size: .9rem; background: #fff; color: var(--brand); border-color: #cdd9ea; }
.btn-small:hover { background: var(--brand-soft); }

/* '곧 제공' 상태 버튼 */
.btn.is-soon { background: #aeb7c4; color: #fff; box-shadow: none; cursor: default; pointer-events: none; }
.soon-tag {
  display: inline-block; margin-left: 10px;
  font-size: .78rem; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-soft); border: 1px solid #cdd9ea;
  border-radius: 999px; padding: 2px 10px; vertical-align: middle;
}

/* ---------- 히어로 ---------- */
.hero { padding: 64px 0 48px; background:
  radial-gradient(1200px 400px at 80% -10%, var(--brand-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.badge {
  display: inline-block; font-size: .84rem; font-weight: 700;
  color: var(--brand-dark); background: var(--brand-soft);
  border: 1px solid #cdd9ea; border-radius: 999px; padding: 5px 13px; margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: 2.5rem; line-height: 1.22; margin: 0 0 16px;
  color: var(--navy); font-weight: 800; letter-spacing: -.02em;
}
.hero-sub { font-size: 1.08rem; color: #48515f; margin: 0 0 26px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* ---------- 스크린샷 자리 ---------- */
.shot { margin: 0; }
.shot-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  aspect-ratio: 16 / 10; width: 100%;
  color: #9aa4b2;
  background:
    repeating-linear-gradient(45deg, #f3f5f9, #f3f5f9 12px, #eef1f6 12px, #eef1f6 24px);
  border: 1.5px dashed #c6cfdb; border-radius: var(--radius);
}
.shot-ph span { font-weight: 700; color: #7a8494; font-size: 1rem; }
.shot-ph small { font-size: .82rem; color: #a4adba; }
.shot-hero .shot-ph { aspect-ratio: 16 / 11; box-shadow: var(--shadow); }
.shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); display: block;
  cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.shot img:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,40,80,.18); }
.shot figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); text-align: center; }

/* ---------- 스크린샷 확대(라이트박스) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 3vh 3vw;
  background: rgba(12, 18, 28, .9); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox .lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  color: #d7dee8; font-size: .95rem; padding: 0 20px; pointer-events: none; }
.lightbox .lb-close { position: absolute; top: 14px; right: 22px; width: 44px; height: 44px;
  font-size: 2rem; line-height: 1; color: #fff; background: rgba(255,255,255,.12);
  border: none; border-radius: 999px; cursor: pointer; }
.lightbox .lb-close:hover { background: rgba(255,255,255,.24); }

/* ---------- 베타 안내 띠 ---------- */
.beta-band { background: var(--navy); color: #eaf0f8; }
.beta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; flex-wrap: wrap; }
.beta-band strong { color: #fff; }
.beta-band .btn-small { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.beta-band .btn-small:hover { background: rgba(255,255,255,.12); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 66px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 1.7rem; color: var(--navy); font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 1.03rem; margin: 0 0 30px; max-width: 46em; }

/* ---------- 기능 카드 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.card-ico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--navy); }
.card p { margin: 0; color: #4a5361; font-size: .96rem; }

/* ---------- 화면 미리보기 ---------- */
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- 다운로드 ---------- */
.download-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.download-info {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.download-info h3 { margin: 0 0 14px; color: var(--navy); font-size: 1.25rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; color: #414b59; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.download-file { margin: 14px 0 0; font-size: .92rem; color: #414b59; }
.notice {
  background: #fff8ee; border: 1px solid #f2e2c4; border-radius: var(--radius);
  padding: 22px 24px;
}
.notice h4 { margin: 0 0 8px; color: #8a5a12; font-size: 1.02rem; }
.notice p { margin: 0; color: #6d5836; font-size: .95rem; }

/* ---------- 단계 리스트 ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); }
.section-soft .steps > li { background: #fff; }
.step-n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.steps h3 { margin: 2px 0 4px; font-size: 1.05rem; color: var(--navy); }
.steps p { margin: 0; color: #4a5361; }
.steps-compact > li { box-shadow: none; }

/* ---------- 라이선스 ---------- */
.license-flow { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; }
.license-cta {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); text-align: center;
}
.license-cta .muted { margin: 14px 0 0; font-size: .9rem; }

/* ---------- 피드백 ---------- */
.feedback-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.feedback-inner .section-lead { margin-bottom: 0; }
.feedback-cta { white-space: nowrap; }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-brand .brand-name { color: var(--navy); }
.footer-meta { display: flex; gap: 18px; font-size: .9rem; flex-wrap: wrap; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy h1 { font-size: 2.1rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid { grid-template-columns: 1fr; }
  .download-box { grid-template-columns: 1fr; }
  .license-flow { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-nav { display: none; }               /* 좁은 화면에선 상단 메뉴 숨김 */
  .hero { padding: 44px 0 34px; }
  .hero-copy h1 { font-size: 1.8rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
