/* dotday 웹사이트 — 검증/소개용 정적 페이지 */
:root {
  --bg: #0f1115;
  --surface: #171a21;
  --band: #171a21;
  --card: #1e222b;
  --text: #e8eaf0;
  --muted: #9aa0ad;
  --line: #262a33;
  --accent: #6c5ce7;
  --accent2: #4aa3ff;
  --link: #4aa3ff;
  --text-soft: #cfd3dc;
  --radius: 14px;
  --maxw: 1080px;
}

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

/* 한국어 줄바꿈: 글자 단위가 아닌 어절 단위로 끊어 자연스럽게 */
.hero p, .section-title, .section-sub, .card p, .step p, .step h3, .faq summary, .faq details p { word-break: keep-all; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", -apple-system, "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 교차 배경 밴드: 섹션 영역 구분 */
.band { background: var(--band); }

/* ── 헤더 ── */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: rgba(15,17,21,.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 28px; height: 28px; display: block; }
.nav { display: flex; align-items: center; }
.nav a { color: var(--muted); margin-left: 20px; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.btn-nav {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 8px 18px; border-radius: 999px;
}
.nav a.btn-nav:hover { color: #fff; opacity: .92; box-shadow: 0 6px 18px rgba(108,92,231,.3); }
@media (max-width: 560px) {
  .nav a:not(.btn-nav) { display: none; }
}

/* ── 히어로 ── */
.hero { text-align: center; padding-block: 64px 60px; }
.hero-logo {
  width: 96px; height: 96px; display: block; margin: 0 auto 16px;
  filter: drop-shadow(0 10px 30px rgba(108,92,231,.35));
}
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); font-size: clamp(16px, 2.5vw, 20px); margin: 18px auto 32px; max-width: 520px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(108,92,231,.35); text-decoration: none; }

/* ── 기능 ── */
.features { padding: 24px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .ic { font-size: 24px; margin-bottom: 12px; display: block; }

/* ── 섹션 공통 ── */
.section-title { text-align: center; font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ── 시작하기 ── */
.steps { padding-block: 24px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; font-weight: 700; font-size: 15px;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ── FAQ ── */
.faq { padding: 48px 0 40px; }

/* ── 마무리 CTA ── */
.cta-wrap { padding-block: 40px 88px; }
.cta {
  text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 28px;
}
.cta .section-sub { margin: 10px 0 28px; }
.faq .section-title { margin-bottom: 28px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 2px 18px; margin: 12px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15px; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 14px; padding: 0 0 16px; margin: 0; }

/* ── 문서(개인정보처리방침) ── */
.doc { max-width: 760px; padding: 48px 24px 80px; }
.doc h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; padding-top: 8px; }
.doc p, .doc li { color: var(--text-soft); font-size: 15px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 6px 0; }
.doc .callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 16px 18px; margin: 16px 0; font-size: 14px;
}
.doc .en { color: var(--muted); font-style: italic; font-size: 13.5px; }

/* ── 푸터 ── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .dot { opacity: 0.4; margin: 0 8px; }

/* ── 라이트 모드 (OS 설정에 따라 자동 전환) ── */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --surface: #eceef3;
    --band: #eceef3;
    --card: #ffffff;
    --text: #1a1d24;
    --text-soft: #41464f;
    --muted: #62687a;
    --line: #e2e6ee;
    --link: #1f6fe0;
  }
  .site-header { background: rgba(255,255,255,.85); }
  .hero h1 { background-image: linear-gradient(135deg, #1a1d24 25%, var(--accent)); }
  .card, .step, .cta, .faq details { box-shadow: 0 1px 3px rgba(16,24,40,.06); }
}
