:root {
  --ink: #10111a;
  --muted: #60616f;
  --line: rgba(26, 20, 42, 0.1);
  --purple: #7540e8;
  --purple-deep: #5424c7;
  --lilac: #b65bdc;
  --paper: #f8f7fb;
  --surface: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 70px rgba(45, 24, 85, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(182, 91, 220, 0.13), transparent 27rem),
    radial-gradient(circle at 92% 16%, rgba(117, 64, 232, 0.12), transparent 25rem),
    var(--paper);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--purple-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple);
}

:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(117, 64, 232, 0.3);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 9px 13px;
  border-radius: 9px;
  color: #fff;
  background: var(--purple-deep);
  transform: translateY(-160%);
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar,
.footer-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.topbar-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: 88px 0 62px;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-deep), var(--lilac));
  content: "";
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero p {
  max-width: 740px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.updated {
  min-width: 190px;
  padding: 18px 20px;
  border: 1px solid rgba(117, 64, 232, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 40px rgba(45, 24, 85, 0.06);
}

.updated span,
.updated strong {
  display: block;
}

.updated span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.updated strong {
  margin-top: 4px;
  font-size: 15px;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding-bottom: 100px;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.document {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.summary,
.section {
  padding: 36px 42px;
}

.summary {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(117, 64, 232, 0.09), rgba(182, 91, 220, 0.04)),
    rgba(255, 255, 255, 0.72);
}

.summary strong {
  display: block;
  margin-bottom: 7px;
  color: var(--purple-deep);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.section {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 22px;
}

.section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

li {
  margin: 8px 0;
  padding-left: 4px;
}

li::marker {
  color: var(--purple);
}

.callout {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(117, 64, 232, 0.16);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(117, 64, 232, 0.09), rgba(182, 91, 220, 0.05));
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.64);
}

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

th {
  color: var(--purple-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--lilac));
  box-shadow: 0 12px 28px rgba(117, 64, 232, 0.24);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.button:hover {
  color: #fff;
}

footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

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

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

  .hero {
    gap: 28px;
    padding-top: 70px;
  }

  .updated {
    width: fit-content;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 76px;
  }

  .topbar-label {
    display: none;
  }

  .hero {
    padding: 56px 0 42px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 60px);
  }

  .summary,
  .section {
    padding: 28px 23px;
  }

  .document {
    border-radius: 24px;
  }

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

  .button {
    width: 100%;
  }
}

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