:root {
  color-scheme: dark;
  --background: #0d0f14;
  --surface: #171a22;
  --surface-raised: #1d212b;
  --border: #2c3240;
  --text: #f6f7fb;
  --muted: #a9afbf;
  --accent: #0878ef;
  --accent-soft: #102946;
  --warm: #ffb15c;
  --radius-large: 32px;
  --radius-medium: 22px;
  --max-width: 940px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 4%, rgb(8 120 239 / 16%), transparent 30rem),
    radial-gradient(circle at 10% 92%, rgb(255 177 92 / 8%), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #54a8ff;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8bc5ff;
}

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

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #1488ff, #0057bd);
  box-shadow: 0 10px 28px rgb(8 120 239 / 30%);
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

main {
  padding: 52px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8f97aa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

p {
  margin: 0 0 18px;
}

.lede {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.hero {
  padding: 40px 0 60px;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 12px 30px rgb(8 120 239 / 24%);
}

.button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

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

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, rgb(255 255 255 / 2%), transparent), var(--surface);
  box-shadow: 0 22px 70px rgb(0 0 0 / 18%);
}

a.card {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

a.card:hover {
  border-color: rgb(84 168 255 / 45%);
  color: var(--text);
  transform: translateY(-3px);
}

.card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 44px;
  place-items: center;
  border-radius: 17px;
  background: var(--accent-soft);
  color: #4aa3ff;
  font-size: 1.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.document-header {
  max-width: 760px;
  padding: 44px 0 42px;
}

.document-header h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.updated {
  margin-top: 24px;
  color: #858da0;
  font-size: 0.92rem;
  font-weight: 700;
}

.document {
  max-width: 760px;
  padding: 34px;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: var(--radius-large);
  background: var(--surface);
}

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

.document ul {
  padding-left: 1.3rem;
  margin: 12px 0 18px;
}

.document li + li {
  margin-top: 8px;
}

.notice {
  padding: 20px 22px;
  border: 1px solid rgb(84 168 255 / 28%);
  border-radius: var(--radius-medium);
  background: var(--accent-soft);
}

.notice p:last-child,
.document section > :last-child {
  margin-bottom: 0;
}

.support-list {
  display: grid;
  gap: 14px;
}

.support-item {
  padding: 22px;
  border-radius: var(--radius-medium);
  background: var(--surface-raised);
}

.support-item p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 30px 0 46px;
  border-top: 1px solid var(--border);
  color: #7f8799;
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

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

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: grid;
    gap: 4px;
    text-align: right;
  }

  main {
    padding-top: 28px;
  }

  .hero {
    padding-top: 20px;
  }

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

  .card {
    min-height: 0;
  }

  .card-icon {
    margin-bottom: 28px;
  }

  .document {
    padding: 24px;
    border-radius: 26px;
  }

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

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

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