:root {
  color-scheme: light dark;
  --background: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #102a3a;
  --muted: #667c8c;
  --border: #d5e1e8;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --mint: #18cfa7;
  --shadow: 0 18px 48px rgba(16, 42, 58, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(24, 207, 167, 0.14), transparent 32rem),
    radial-gradient(circle at 100% 8%, rgba(59, 130, 246, 0.16), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--surface-solid);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(213, 225, 232, 0.75);
  background: rgba(246, 248, 251, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue), var(--mint));
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.26);
  color: white;
  font-weight: 850;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

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

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 7.5rem 0 6rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(24, 207, 167, 0.13);
}

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

h1 {
  max-width: 850px;
  margin-right: auto;
  margin-bottom: 1.25rem;
  margin-left: auto;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(16, 42, 58, 0.07);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 6rem;
}

.card {
  border: 1px solid rgba(213, 225, 232, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.65rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-dark);
  font-size: 1.25rem;
  font-weight: 800;
}

.card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

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

.document {
  max-width: 820px;
  padding: 5rem 0 6rem;
}

.document-header {
  margin-bottom: 2.3rem;
}

.document h1 {
  margin-left: 0;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.document-body {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

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

.document-body h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.document-body p,
.document-body li {
  color: var(--muted);
}

.document-body p:last-child {
  margin-bottom: 0;
}

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

.callout {
  border: 1px solid rgba(24, 207, 167, 0.32);
  border-radius: 18px;
  background: rgba(24, 207, 167, 0.08);
  padding: 1.2rem;
}

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

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .nav-links {
    width: 100%;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .grid {
    grid-template-columns: 1fr;
    padding-bottom: 4rem;
  }

  .document {
    padding: 3.5rem 0 4rem;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --background: #061e2e;
    --surface: rgba(23, 52, 73, 0.88);
    --surface-solid: #173449;
    --text: #f7fafc;
    --muted: #afc0cb;
    --border: #315369;
    --blue: #36a9e8;
    --blue-dark: #61b9ea;
    --mint: #25d9b0;
    --shadow: 0 20px 52px rgba(2, 10, 16, 0.3);
  }

  .site-header {
    border-color: rgba(49, 83, 105, 0.75);
    background: rgba(6, 30, 46, 0.82);
  }

  .button.primary {
    color: #061e2e;
  }
}

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