/* HSK Loop 랜딩 — 앱의 디자인 토큰(native/HSKApp/Sources/Theme.swift)을 그대로 옮겼다.
   값을 바꿀 때는 Theme.swift 의 Palette 와 함께 볼 것. */

:root {
  --bg: #fbfbfa;          /* neutral/10 — 앱 전 화면 단일 배경 */
  --surface: #ffffff;
  --ink: #2e2d2c;         /* text/text-base */
  --muted: #878787;       /* text/text-light */
  --faint: #9f9f9f;       /* neutral/60 */
  --line: #f1f1f1;        /* border/border-base */
  --border: #e3e3e3;      /* gray-30 */
  --brand: #ee5353;       /* red/65 — 주 버튼 */
  --brand-deep: #e43232;  /* red/70 */
  --brand-soft: #ffe3e3;  /* red/20 */
  --glow: 238 83 83;
  --focus: #ee5353;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191817;
    --surface: #232120;
    --ink: #f3f1ef;
    --muted: #a3a09d;
    --faint: #807d7a;
    --line: #2c2a29;
    --border: #3a3836;
    --brand: #f4685f;
    --brand-deep: #ff7d75;
    --brand-soft: #3a2422;
    --glow: 244 104 95;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── 히어로 ─────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 88px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 아이콘 뒤로 번지는 옅은 붉은 빛 — 평평한 흰 배경보다 따뜻하다 */
.hero::before {
  content: "";
  position: absolute;
  top: -12%;
  left: 50%;
  width: min(760px, 130%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgb(var(--glow) / 0.13) 0%,
    rgb(var(--glow) / 0.05) 42%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgb(var(--glow) / 0.18),
    0 14px 34px -8px rgb(var(--glow) / 0.42);
}

h1 {
  margin: 28px 0 0;
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

.tagline {
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  color: var(--muted);
}

/* 급수·단어 수·오프라인 — 미니멀을 깨지 않는 선의 사실 한 줄 */
.facts {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.875rem;
  color: var(--faint);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 18px;
}

.facts li:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.cta {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgb(var(--glow) / 0.7);
  transition: background-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cta:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgb(var(--glow) / 0.8);
}

.cta:active { transform: translateY(0); }

.cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-top: -2px;
}

/* ── 푸터 ───────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  font-size: 0.875rem;
}

footer nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer nav a:hover { color: var(--brand); }

.copyright {
  margin: 16px 0 0;
  font-size: 0.75rem;
  color: var(--faint);
}

/* ── 문서 페이지 (개인정보처리방침·지원) ──────────────────── */

.doc-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.doc-header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.doc-header img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.doc {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.doc h1 {
  margin: 0;
  font-size: clamp(1.875rem, 5vw, 2.25rem);
}

.updated {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--faint);
}

.lede {
  margin: 28px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}

.lede p { margin: 0; }

.doc h2 {
  margin: 44px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 30px 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.doc p,
.doc ul { margin: 14px 0 0; color: var(--muted); }

.doc ul { padding-left: 1.15rem; }

.doc li { margin-top: 7px; }

.doc strong { color: var(--ink); font-weight: 600; }

.doc a {
  color: var(--brand);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.doc a:hover { color: var(--brand-deep); }

.doc hr {
  margin: 48px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .hero { padding: 64px 20px 56px; }
  .doc { padding: 40px 20px 64px; }
}
