:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #172033;
  --muted: #5f6b7f;
  --line: rgba(45, 66, 96, 0.14);
  --accent: #087dff;
  --accent-soft: rgba(8, 125, 255, 0.1);
  --success: #147d4d;
  --warning: #9a5c00;
  --shadow: 0 22px 60px rgba(35, 58, 92, 0.12);
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(50, 144, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 92% 3%, rgba(111, 92, 255, 0.12), transparent 28rem),
    var(--bg);
  line-height: 1.68;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
.language-link:focus-visible {
  outline: 3px solid rgba(8, 125, 255, 0.38);
  outline-offset: 3px;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(20, 42, 78, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link,
.language-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover,
.language-link:hover,
.language-link[aria-current="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}

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

main {
  padding: 72px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: center;
  padding-bottom: 64px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 11px;
  border: 1px solid rgba(8, 125, 255, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
}

.document-hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.6rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(8, 125, 255, 0.16), rgba(112, 85, 255, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  content: "";
  filter: blur(8px);
}

.hero-art::before {
  top: -80px;
  right: -50px;
  background: rgba(78, 153, 255, 0.25);
}

.hero-art::after {
  bottom: -95px;
  left: -45px;
  background: rgba(115, 84, 255, 0.18);
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: min(190px, 50%);
  height: auto;
  border-radius: 25%;
  filter: drop-shadow(0 28px 30px rgba(25, 45, 78, 0.25));
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(30, 55, 90, 0.08);
}

.button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.section {
  margin-bottom: 32px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section p:last-child,
.section ul:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.status-note,
.security-note {
  padding: 18px 20px;
  border-left: 4px solid var(--success);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(20, 125, 77, 0.08);
}

.security-note {
  border-left-color: var(--warning);
  background: rgba(154, 92, 0, 0.08);
}

.document-hero {
  max-width: 820px;
  padding-bottom: 42px;
}

.document-meta {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.document-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.document-content {
  min-width: 0;
}

.document-content .section {
  box-shadow: 0 14px 38px rgba(35, 58, 92, 0.08);
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 7px;
}

code {
  padding: 0.12em 0.38em;
  border-radius: 6px;
  color: var(--text);
  background: rgba(120, 135, 160, 0.14);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
}

.site-footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

[hidden] {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141d;
    --surface: rgba(29, 35, 48, 0.88);
    --surface-strong: #252c3a;
    --text: #f2f5fb;
    --muted: #aeb7c8;
    --line: rgba(196, 210, 236, 0.14);
    --accent: #3b9cff;
    --accent-soft: rgba(59, 156, 255, 0.14);
    --success: #53cf91;
    --warning: #f2ad4f;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  }

  .site-header {
    background: rgba(16, 20, 29, 0.82);
  }
}

@media (max-width: 820px) {
  .hero,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 260px;
  }

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

  .toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: min(100% - 22px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .nav-link {
    display: none;
  }

  main {
    padding-top: 48px;
  }

  .hero {
    gap: 24px;
    padding-bottom: 42px;
  }

  .section,
  .card {
    padding: 22px;
  }
}

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