:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #172033;
  --muted: #5f6b7a;
  --border: #d8dee7;
  --accent: #2563eb;
  --accent-soft: #eaf2ff;
  --green: #147d4b;
  --green-soft: #eaf8f0;
  --amber: #a65c00;
  --amber-soft: #fff7e6;
  --code: #111827;
  --code-text: #e5e7eb;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101214;
  --surface: #1a1d21;
  --surface-muted: #202429;
  --text: #f3f4f6;
  --muted: #aeb4bc;
  --border: #343a40;
  --accent: #7db4f4;
  --accent-soft: #17263a;
  --green: #86efac;
  --green-soft: #13281c;
  --amber: #f8c56b;
  --amber-soft: #302318;
  --code: #0c0f12;
  --code-text: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 9px 22px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.site-brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.site-brand span {
  display: grid;
  gap: 1px;
}

.site-brand strong {
  font-size: 15px;
}

.site-brand small {
  color: var(--muted);
  font-size: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  border-radius: 6px;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0;
  background: var(--surface-muted);
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--text);
}

.icon-button svg,
.inline-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-sun-icon {
  display: none;
}

:root[data-theme="dark"] .theme-moon-icon {
  display: none;
}

:root[data-theme="dark"] .theme-sun-icon {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  min-height: 430px;
  margin: 0 auto;
  padding: 58px 26px 48px;
}

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

.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: 28px;
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.2);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 45px;
  line-height: 1.05;
}

h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.25;
}

h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

p,
li,
td,
th {
  font-size: 13px;
  line-height: 1.62;
}

p {
  color: var(--muted);
}

.hero-lead {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 16px;
}

.action-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.button-link {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 13px;
  background: var(--surface);
}

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

:root[data-theme="dark"] .button-link.primary {
  color: #101214;
}

.page-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-band.muted {
  background: var(--surface-muted);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 46px 26px;
}

.section-intro {
  max-width: 720px;
  margin: 0 0 24px;
}

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

.feature-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  background: var(--surface);
}

.feature-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.feature-card p {
  margin: 6px 0 0;
  font-size: 12px;
}

.trust-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trust-block,
.contact-person {
  border-left: 3px solid var(--green);
  padding: 12px 14px;
  background: var(--green-soft);
}

.contact-person {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.contact-person p {
  margin: 6px 0 0;
}

.document-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  justify-content: center;
  gap: 28px;
  padding: 32px 24px 72px;
}

.document-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 4px;
}

.document-nav a {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.document-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

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

.document-title {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.document-title h1 {
  font-size: 34px;
}

.document-section {
  scroll-margin-top: 90px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.document-section h2 {
  font-size: 21px;
}

.document-section h3 {
  margin-top: 20px;
}

.document-section ul,
.document-section ol {
  padding-left: 22px;
  color: var(--muted);
}

.notice {
  border-left: 3px solid var(--accent);
  padding: 11px 13px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.notice.warning {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.spaced-notice {
  margin-top: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  background: var(--surface);
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  color: var(--text);
  font-size: 10px;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  border-radius: 4px;
  padding: 2px 4px;
  background: var(--surface-muted);
}

pre {
  overflow: auto;
  border-radius: 7px;
  padding: 13px;
  background: var(--code);
  color: var(--code-text);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 26px;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-logo {
    grid-row: 1;
    width: 96px;
    height: 96px;
    border-radius: 19px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-shell {
    grid-template-columns: 1fr;
  }

  .document-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
  }
}

@media (max-width: 580px) {
  h1 {
    font-size: 34px;
  }

  .feature-grid,
  .trust-grid,
  .contact-grid,
  .document-nav {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    flex-direction: column;
  }
}
