:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #586579;
  --line: #e0e6ef;
  --accent: #1f5fbf;
  --accent-soft: #e4edfb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151b;
    --surface: #182029;
    --text: #e9eef5;
    --muted: #9aa8bb;
    --line: #273241;
    --accent: #7eb1ff;
    --accent-soft: #1a2a42;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
nav { display: flex; align-items: center; gap: 16px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
.lang { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }

main { padding: 48px 0 64px; }
h1 { font-size: 34px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 40px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { color: var(--text); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.muted { color: var(--muted); font-size: 14px; }

.hero { text-align: center; padding: 32px 0 8px; }
.hero svg.logo { width: 88px; height: 88px; margin-bottom: 16px; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.btn { display: inline-block; background: var(--text); color: var(--bg); border-radius: 10px; padding: 12px 22px; text-decoration: none; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; display: block; overflow-x: auto; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

[data-lang] { display: none; }
html[lang="ko"] [data-lang="ko"], html[lang="en"] [data-lang="en"] { display: revert; }

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  nav { gap: 12px; font-size: 14px; }
}
