:root {
  color-scheme: light dark;
  --ink: #21324a;
  --muted: #667085;
  --paper: #fffdf9;
  --surface: #ffffff;
  --line: #e8e2d8;
  --mint: #c9f1dc;
  --yellow: #ffe49a;
  --blue: #235fa4;
  --shadow: 0 18px 50px rgba(50, 65, 85, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(201, 241, 220, 0.55), transparent 30rem),
    radial-gradient(circle at 95% 12%, rgba(255, 228, 154, 0.46), transparent 28rem),
    #f7f4fb;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Noto Sans CJK SC", "Noto Sans KR", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--blue);
}

.shell {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(35, 95, 164, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--mint), var(--yellow));
  box-shadow: 0 8px 20px rgba(35, 95, 164, 0.12);
  font-size: 20px;
}

.language-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.language-picker button {
  min-width: 42px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.language-picker button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.hero,
.card {
  border: 1px solid rgba(232, 226, 216, 0.92);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(24px, 6vw, 48px);
  border-radius: 28px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  padding: clamp(20px, 4vw, 30px);
  border-radius: 22px;
  margin-bottom: 14px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p,
.card li {
  color: #42526a;
}

.card p {
  margin: 8px 0;
}

.card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.card li + li {
  margin-top: 8px;
}

.summary {
  border-color: rgba(35, 95, 164, 0.16);
  background: linear-gradient(145deg, rgba(201, 241, 220, 0.83), rgba(255, 255, 255, 0.96));
}

.faq-item + .faq-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact {
  background: linear-gradient(145deg, #21324a, #235fa4);
  color: #ffffff;
}

.contact h2,
.contact p {
  color: #ffffff;
}

.contact p {
  opacity: 0.88;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #17365f;
  font-weight: 800;
  text-decoration: none;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  text-decoration: none;
}

.related-links a::after {
  content: "→";
}

.footer {
  padding: 16px 4px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

[data-lang] {
  display: none;
}

[data-lang].is-active {
  display: block;
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 820px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-picker {
    justify-content: flex-start;
  }

  .related-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf3fb;
    --muted: #a9b5c5;
    --paper: #111923;
    --surface: #172231;
    --line: #334156;
    --blue: #83b9ff;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(circle at 8% 0%, rgba(52, 113, 84, 0.32), transparent 30rem),
      radial-gradient(circle at 95% 12%, rgba(126, 92, 23, 0.3), transparent 28rem),
      #0b1119;
  }

  .hero,
  .card {
    border-color: rgba(51, 65, 86, 0.88);
    background: rgba(17, 25, 35, 0.94);
  }

  .language-picker button,
  .related-links a {
    background: rgba(23, 34, 49, 0.9);
  }

  .card p,
  .card li {
    color: #c9d3df;
  }

  .summary {
    background: linear-gradient(145deg, rgba(38, 91, 68, 0.64), rgba(17, 25, 35, 0.95));
  }
}

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