:root {
  color-scheme: light;
  --ink: #12213a;
  --muted: #66758c;
  --brand: #2f6df6;
  --brand-strong: #1f58dd;
  --brand-soft: #edf3ff;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --page: #eef3f8;
  --line: #dfe6ef;
  --line-strong: #cfd9e6;
  --shadow: 0 24px 70px rgb(15 23 42 / 10%);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgb(47 109 246 / 10%), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgb(93 170 255 / 8%), transparent 22rem),
    var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -0.008em;
}

main {
  width: min(960px, calc(100% - 36px));
  margin: clamp(24px, 5vw, 64px) auto;
  padding: clamp(28px, 5.4vw, 62px);
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: var(--radius-xl);
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #58a1ff, var(--brand));
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f6fa;
}

.language-switch button {
  min-width: 44px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

.language-switch button:hover {
  color: var(--ink);
}

.language-switch button.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 3px 10px rgb(15 23 42 / 18%);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 40px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  font-size: .9rem;
}

nav a {
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
  background: #fff;
}

article {
  max-width: 800px;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(2.15rem, 6vw, 3.7rem);
  font-weight: 850;
}

h2 {
  position: relative;
  margin: 2.45em 0 .8em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 820;
}

h3 {
  margin: 1.7em 0 .55em;
  font-size: 1.08rem;
  font-weight: 800;
}

p {
  margin: .75em 0 1.1em;
  color: #34445d;
}

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

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

.lede {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2.3vw, 1.2rem);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 13px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  padding: 14px 0 10px;
}

.hero h1 {
  margin-bottom: 16px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 6px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(180deg, #3979ff, #2f6df6);
  box-shadow: 0 8px 20px rgb(47 109 246 / 20%);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover {
  color: #fff;
  background: linear-gradient(180deg, #2f6df6, #245edc);
  box-shadow: 0 10px 24px rgb(47 109 246 / 26%);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 4px 14px rgb(15 23 42 / 5%);
}

.button.secondary:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #f9fbfd;
  box-shadow: 0 6px 18px rgb(15 23 42 / 7%);
}

.card {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

ul, ol {
  padding-left: 1.35em;
  color: #34445d;
}

li + li { margin-top: .55em; }

strong {
  color: #13243f;
  font-weight: 800;
}

table {
  display: block;
  width: 100%;
  margin: 1.55em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow-wrap: anywhere;
  font-size: .93rem;
}

th, td {
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { border-right: 0; }

th {
  color: var(--ink);
  background: var(--surface-soft);
  font-weight: 800;
}

footer {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

footer a { color: var(--muted); }

[data-lang][hidden] { display: none !important; }

@media (max-width: 700px) {
  body {
    background: #fff;
  }

  main {
    width: 100%;
    margin: 0;
    padding: 22px 18px 36px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  header.site-header {
    margin-bottom: 28px;
  }

  nav {
    gap: 5px 6px;
    margin-bottom: 30px;
    padding: 8px;
    border-radius: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

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

  nav a {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: .86rem;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  h2 {
    margin-top: 2em;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  table {
    margin-left: -2px;
    width: calc(100% + 4px);
  }

  th, td {
    min-width: 150px;
    padding: 11px 12px;
  }
}

@media (max-width: 390px) {
  main {
    padding-inline: 16px;
  }

  .brand {
    font-size: .98rem;
  }

  .language-switch button {
    min-width: 40px;
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .button,
  .language-switch button {
    transition: none;
  }
}
