:root {
  color-scheme: dark;
  --page: #050b16;
  --surface: rgba(10, 24, 42, 0.94);
  --surface-raised: rgba(14, 34, 57, 0.96);
  --line: rgba(101, 220, 255, 0.24);
  --line-strong: rgba(101, 220, 255, 0.55);
  --text: #eef7ff;
  --muted: #a8bdd0;
  --cyan: #65dcff;
  --mint: #45efbf;
  --violet: #a98cff;
  --warning: #ffd36a;
  --danger: #ff7f93;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(46, 112, 191, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(69, 239, 191, 0.09), transparent 28rem),
    linear-gradient(180deg, #07111f 0%, var(--page) 44%, #030811 100%);
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(101, 220, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 220, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

a:hover,
a:focus-visible {
  color: #b5f1ff;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 22, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.page,
.site-footer {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #03111d;
  background: linear-gradient(145deg, var(--cyan), var(--mint));
  border: 1px solid rgba(255, 255, 255, 0.56);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  box-shadow: 0 0 30px rgba(101, 220, 255, 0.25);
  font-size: 0.78rem;
  letter-spacing: -0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.language-switch button {
  min-width: 46px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: #05101d;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 750;
}

.page {
  padding-block: 64px 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(140deg, rgba(17, 43, 72, 0.96), rgba(8, 21, 38, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -130px;
  top: -145px;
  content: "";
  border: 1px solid rgba(101, 220, 255, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(101, 220, 255, 0.035),
    0 0 0 70px rgba(69, 239, 191, 0.025);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.22;
}

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 6vw, 4.7rem);
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8e9f7;
  background: rgba(4, 12, 23, 0.42);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.document {
  min-width: 0;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document section {
  padding-block: 28px;
  border-bottom: 1px solid rgba(101, 220, 255, 0.13);
}

.document section:first-child {
  padding-top: 0;
}

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

.document h2 {
  margin-bottom: 13px;
  color: #f7fbff;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}

.document h3 {
  margin: 24px 0 8px;
  color: #dff8ff;
  font-size: 1.08rem;
}

.document p,
.document li {
  color: #c9d9e7;
}

.document strong {
  color: #f7fbff;
}

.document ul,
.document ol {
  padding-left: 1.3rem;
}

.document li + li {
  margin-top: 0.5rem;
}

.toc {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 22, 38, 0.9);
}

.toc h2 {
  margin-bottom: 13px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.toc a:hover,
.toc a:focus-visible {
  color: var(--cyan);
}

.notice,
.danger-notice,
.success-notice {
  margin: 18px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  background: rgba(101, 220, 255, 0.075);
}

.danger-notice {
  border-left-color: var(--danger);
  background: rgba(255, 127, 147, 0.08);
}

.success-notice {
  border-left-color: var(--mint);
  background: rgba(69, 239, 191, 0.08);
}

.data-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text);
  background: rgba(101, 220, 255, 0.075);
}

.data-table td {
  color: #c9d9e7;
}

.action-card {
  margin: 24px 0;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 10%, rgba(69, 239, 191, 0.1), transparent 18rem),
    var(--surface-raised);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 13px;
  color: #02111c;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 10px 30px rgba(69, 239, 191, 0.14);
  text-decoration: none;
  font-weight: 850;
}

.button:hover,
.button:focus-visible {
  color: #02111c;
  filter: brightness(1.08);
}

.secondary-link {
  display: inline-flex;
  margin-left: 12px;
  color: var(--text);
  font-weight: 750;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-block: 26px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(101, 220, 255, 0.7);
  outline-offset: 3px;
}

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

  .toc {
    position: static;
    order: -1;
  }

  .toc a {
    display: inline-block;
    margin-right: 14px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-name,
  .home-link {
    display: none;
  }

  .page {
    padding-block: 30px 54px;
  }

  .hero,
  .document {
    border-radius: 17px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }

  .data-table th,
  .data-table td {
    border: 0;
  }

  .secondary-link {
    display: flex;
    margin: 14px 0 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
