:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --surface-raised: rgba(255, 255, 255, 0.92);
  --text: #1d1d1f;
  --muted: #5f6368;
  --subtle: #86868b;
  --border: rgba(29, 29, 31, 0.12);
  --border-strong: rgba(29, 29, 31, 0.18);
  --accent: #0071e3;
  --accent-strong: #005bb5;
  --success-bg: #eef8f3;
  --success-text: #0f6b45;
  --warning-bg: #fff8e8;
  --warning-text: #8a5a00;
  --danger-bg: #fff1f1;
  --danger-text: #a21d1d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(0, 113, 227, 0.08), transparent 34rem),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 58%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f2f2f4);
  color: var(--text);
  font-weight: 720;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 520;
}

.nav a:hover {
  color: var(--text);
  background: rgba(29, 29, 31, 0.06);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.lang-switch a {
  min-width: 38px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(29, 29, 31, 0.06);
}

.lang-switch a[aria-current="true"] {
  color: #ffffff;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 32px;
  align-items: stretch;
  padding: 64px 0 72px;
}

.hero-copy {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7.6vw, 6.25rem);
  font-weight: 760;
}

.doc-panel h1 {
  max-width: 840px;
  font-size: clamp(2.2rem, 5.8vw, 4.55rem);
}

h2 {
  margin-top: 46px;
  padding-top: 6px;
  font-size: clamp(1.38rem, 2.6vw, 2rem);
  font-weight: 720;
}

h3 {
  margin-top: 28px;
  font-size: 1.08rem;
  font-weight: 680;
}

p {
  margin: 14px 0 0;
}

.lead {
  max-width: 720px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.62;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
  box-shadow: var(--shadow-sm);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
}

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

.button-primary:hover {
  color: #ffffff;
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
}

.button-secondary:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: #ffffff;
  transform: translateY(-1px);
}

.hero-panel,
.doc-panel {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
}

.hero-panel {
  align-self: center;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.hero-panel h2 {
  margin-top: 4px;
  padding-top: 0;
  font-size: 1.35rem;
}

.link-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.link-card {
  display: block;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.link-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.link-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.link-card:hover {
  border-color: rgba(0, 113, 227, 0.34);
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.11);
  transform: translateY(-2px);
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px 0 72px;
}

.sidebar {
  position: sticky;
  top: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}

.sidebar a {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 520;
}

.sidebar a:hover {
  color: var(--text);
  background: rgba(29, 29, 31, 0.06);
}

.doc-panel {
  overflow: hidden;
  padding: clamp(28px, 5.2vw, 64px);
  border-radius: var(--radius-lg);
}

.doc-panel section {
  scroll-margin-top: 18px;
}

.doc-panel p,
.doc-panel li {
  max-width: 830px;
}

.meta {
  margin-top: 18px;
  color: var(--subtle);
  font-size: 0.98rem;
}

.notice {
  max-width: 880px;
  margin-top: 28px;
  padding: 17px 18px;
  border: 1px solid rgba(15, 107, 69, 0.16);
  border-radius: var(--radius-md);
  background: var(--success-bg);
  color: var(--success-text);
}

.warning {
  border-color: rgba(138, 90, 0, 0.18);
  background: var(--warning-bg);
  color: var(--warning-text);
}

.danger {
  border-color: rgba(162, 29, 29, 0.18);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.section-list {
  max-width: 880px;
  margin: 14px 0 0;
  padding-left: 1.15rem;
}

.section-list li {
  margin-top: 9px;
  padding-left: 0.25rem;
}

.section-list strong {
  color: var(--text);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    border-radius: var(--radius-md);
  }

  .hero,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-copy {
    min-height: auto;
    padding: 10px 0 0;
  }

  .sidebar {
    position: static;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
  }

  .sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, var(--container));
  }

  .topbar {
    padding-top: 16px;
  }

  .nav a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.88rem;
  }

  .hero {
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }

  .doc-panel h1 {
    font-size: clamp(2.05rem, 13vw, 3.2rem);
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .footer-links {
    justify-content: center;
  }

  .hero-panel,
  .doc-panel {
    border-radius: 18px;
  }
}
