:root {
  color-scheme: light;
  --ink: #17223b;
  --muted: #5e687a;
  --paper: #fffdf8;
  --soft: #f4f7f6;
  --line: #dce5e3;
  --navy: #101c36;
  --teal: #087d74;
  --mint: #6ce5d2;
  --mango: #ffb458;
  --coral: #ff7d73;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(16, 28, 54, 0.1);
  --radius: 24px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 12% -5%,
      rgba(108, 229, 210, 0.2),
      transparent 30rem
    ),
    radial-gradient(
      circle at 95% 8%,
      rgba(255, 180, 88, 0.18),
      transparent 26rem
    ),
    var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #045f58;
}

code {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-all;
}

:focus-visible {
  outline: 3px solid var(--mango);
  outline-offset: 4px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 229, 227, 0.85);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(16px);
}

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

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(108, 229, 210, 0.22);
}

.language-switcher {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  color: var(--muted);
  border: 0;
  background: transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
}

.page-shell {
  padding-block: 58px 88px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 7vw, 72px);
  color: var(--white);
  background:
    linear-gradient(130deg, rgba(16, 28, 54, 0.98), rgba(20, 59, 77, 0.96)),
    var(--navy);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

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

.hero::before {
  top: -135px;
  right: -65px;
  background: rgba(108, 229, 210, 0.22);
}

.hero::after {
  bottom: -165px;
  left: 22%;
  background: rgba(255, 180, 88, 0.18);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--mint);
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
}

.hero h1 {
  color: var(--white);
}

h2 {
  margin: 2.7em 0 0.7em;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.15rem;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2.3vw, 1.24rem);
}

.meta-row,
.badge-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.actions-spaced {
  margin-top: 28px;
}

.legal-copy-spaced {
  margin-top: 54px;
}

.meta-row {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

.meta-row span,
.badge {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.badge {
  color: var(--teal);
  border-color: rgba(8, 125, 116, 0.2);
  background: rgba(108, 229, 210, 0.13);
  font-size: 0.8rem;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(36px, 7vw, 82px);
  align-items: start;
  margin-top: 54px;
}

.legal-copy {
  min-width: 0;
}

.legal-copy > :first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  max-width: 75ch;
}

.legal-copy li + li {
  margin-top: 0.48em;
}

.legal-copy strong {
  color: var(--navy);
}

.toc {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 28, 54, 0.05);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

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

.notice,
.info-box {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--mango);
  background: #fff6e7;
  border-radius: 5px 18px 18px 5px;
}

.info-box {
  border-left-color: var(--mint);
  background: #ecfaf7;
}

.notice > :first-child,
.info-box > :first-child {
  margin-top: 0;
}

.notice > :last-child,
.info-box > :last-child {
  margin-bottom: 0;
}

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

.card {
  display: flex;
  min-height: 240px;
  padding: 26px;
  flex-direction: column;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(16, 28, 54, 0.06);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.card:hover {
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card .icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--navy);
  background: var(--mint);
  border-radius: 14px;
  font-weight: 900;
}

.card:nth-child(2) .icon {
  background: var(--mango);
}

.card:nth-child(3) .icon {
  background: var(--coral);
}

.card h2,
.card h3 {
  margin: 22px 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card .arrow {
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal);
  font-weight: 850;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 17px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 0;
  background: var(--navy);
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: var(--white);
  background: #1c3158;
}

.button.secondary {
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--white);
}

.button.secondary:hover {
  background: var(--soft);
}

.table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.91rem;
}

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

th {
  color: var(--navy);
  background: var(--soft);
}

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

.app-card {
  margin-top: 28px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.app-card h2 {
  margin-top: 0;
}

.app-id {
  display: inline-block;
  padding: 4px 9px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.site-footer {
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding-block: 38px;
}

.footer-inner strong {
  color: var(--white);
}

.footer-inner p {
  margin: 4px 0 0;
  font-size: 0.83rem;
}

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

.footer-links a {
  color: var(--mint);
  font-size: 0.84rem;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

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

  .toc {
    position: static;
    grid-row: 1;
  }

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

  .card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .footer-inner,
  .page-shell {
    width: min(calc(100% - 24px), var(--max));
  }

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

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .page-shell {
    padding-block: 28px 60px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .language-switcher,
  .actions {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero {
    padding: 0 0 24px;
    color: #000;
    background: none;
    box-shadow: none;
  }

  .hero h1,
  .hero .eyebrow,
  .hero .lead,
  .meta-row {
    color: #000;
  }

  .content-grid {
    display: block;
    margin-top: 0;
  }
}
