:root {
  --ink: #1a2332;
  --muted: #5a6b7d;
  --brand: #1f5fbf;
  --brand-deep: #163f84;
  --accent: #d97706;
  --wash: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.84);
  --line: rgba(26, 35, 50, 0.12);
  --shadow: 0 20px 55px rgba(26, 35, 50, 0.12);
  --radius: 22px;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 6% -10%, #d5e4ff 0%, transparent 55%),
    radial-gradient(900px 480px at 100% 0%, #ffe7c4 0%, transparent 48%),
    linear-gradient(180deg, #f8fafc 0%, var(--wash) 45%, #eef2f7 100%);
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { max-width: var(--max); margin: 0 auto; padding: 20px 20px 80px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px;
  flex-wrap: wrap;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.brand-link img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(26, 35, 50, 0.16);
}
.brand-link .mark {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand-link .sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover { color: var(--brand-deep); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.75);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
}
.lang-switch button.active {
  background: var(--ink);
  color: #fff;
}

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

.hero {
  padding: 28px 0 10px;
  display: grid;
  gap: 16px;
  min-height: min(62vh, 560px);
  align-content: center;
}
.hero h1 {
  margin: 0;
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero .lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 750;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 95, 191, 0.28);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary {
  background: rgba(255,255,255,0.8);
  color: var(--ink);
  border-color: var(--line);
}
.fine { color: var(--muted); font-size: 0.95rem; }

.section { padding: 42px 0 8px; }
.section h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
}
.section .lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 40rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.card p { margin: 0; color: var(--muted); }

.banner {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 95, 191, 0.12), rgba(217, 119, 6, 0.12)),
    rgba(255,255,255,0.7);
  border: 1px solid var(--line);
}
.banner h2 { margin: 0 0 8px; font-family: "Fraunces", "Noto Serif SC", serif; }
.banner p { margin: 0 0 16px; color: var(--muted); }

.doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.doc h2 { margin-top: 1.35em; }
.doc h2:first-child { margin-top: 0; }

.footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .hero { min-height: auto; }
}
