/* =========================================================
   오프보이스 (OffVoice) — 사이트 스타일
   톤: 깊은 검정 + 정제된 빨강 단색 + 헤어라인.
   앱(AppColors) 토큰과 1:1 일치 — 같은 브랜드로 인지되도록.
   ========================================================= */

:root {
  /* ---- 앱 AppColors 와 동일 ---- */
  --bg: #0D0D0F;
  --surface: #161619;
  --surface-elevated: #1A1A1E;
  --surface-button: #252528;
  --border: #2A2A2A;
  --border-strong: #3A3A42;

  --accent: #E24B4A;        /* 앱 CTA 빨강 */
  --accent-soft: #FF8B89;   /* 옅은 빨강 */
  --success: #48BB78;
  --warning: #E2A23A;

  --text: #E8E8EC;          /* 본문 */
  --text-strong: #FFFFFF;   /* 강조 */
  --text-muted: #BBBBBB;    /* 보조 */
  --text-tertiary: #888888; /* 메타 */
  --text-hint: #777780;

  /* ---- 사이트 토큰 ---- */
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.10);
  --max: 960px;          /* 컨테이너 폭 — 더 좁혀 정제감 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --space-section: clamp(72px, 9vw, 120px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR",
    "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

::selection {
  background: rgba(226, 75, 74, 0.32);
  color: var(--text-strong);
}

/* 키보드 접근성 — 모든 인터랙티브 요소 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   Header — sticky, 정적·정밀, 앱 상단 바와 비슷한 느낌
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-strong);
}

/* =========================================================
   Hero — 정제된 단일 헤드라인, 여백감
   ========================================================= */

.hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 7vw, 80px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 24px;
  max-width: 14ch;
}

.hero p {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   Buttons — 평면, 헤어라인, 단색 빨강
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: #C73E3D;
}

.button.primary:active {
  transform: translateY(1px);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.button.secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

/* =========================================================
   Sections / Grids — 더 넉넉한 vertical rhythm
   ========================================================= */

.section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--hairline);
}

.section + .section {
  /* hairline 중첩 방지 */
  border-top: 1px solid var(--hairline);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 56ch;
}

.section-title h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two   { grid-template-columns: repeat(2, 1fr); }

/* =========================================================
   Cards — 헤어라인 1px, 16px radius, 평면 (그림자 거의 없음)
   ========================================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--hairline-strong);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.35;
}

.card p,
.card li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.card p { margin: 0; }

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Notice 카드 — 빨강 좌측 액센트 (앱 컬러와 일치) */
.notice {
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.notice .kicker {
  color: var(--accent);
}

/* 리스트 — 표준 dot 대신 헤어라인 dash 분위기 */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}

.list li:last-child { border-bottom: none; }

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 8px;
  height: 1px;
  background: var(--text-tertiary);
}

/* =========================================================
   페이지 (privacy / terms / contact) — 본문 가독성
   ========================================================= */

.page {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
}

.page h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 12px;
}

.page .lead {
  color: var(--text-tertiary);
  font-size: 14px;
  letter-spacing: -0.005em;
  margin: 0 0 40px;
  font-feature-settings: "tnum";
}

.content {
  max-width: 72ch;
}

.content h2 {
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.4;
}

.content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content h3 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.content p,
.content li {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.content p { margin: 0 0 14px; }

.content ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}

.content ul li {
  margin: 4px 0;
}

.content a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.content a:hover {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* contact 페이지 — 카드 grid 안의 list 가 .list 인 경우 회복 */
.page .grid.two {
  margin-top: 24px;
}

/* =========================================================
   Footer — 미니멀
   ========================================================= */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

/* =========================================================
   Responsive — 모바일 ≤ 720px
   ========================================================= */

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav {
    height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    /* 스크롤바 숨김 */
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 40px;
  }

  .hero h1 {
    max-width: none;
  }

  .section {
    padding: 64px 0;
  }

  .card {
    padding: 22px 20px;
  }
}

/* =========================================================
   Reduced motion 사용자 — 트랜지션 최소화
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
