:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0d1b2d;
  --surface-soft: #13243a;
  --text: #f2f7fb;
  --muted: #aec0d2;
  --border: #29415b;
  --accent: #6ee7cf;
  --accent-strong: #22c7a5;
  --focus: #f7c967;
  --shell: 72rem;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgb(34 199 165 / 12%), transparent 28rem), var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

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

a:hover {
  color: #a4f4e4;
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.45rem;
  background: var(--focus);
  color: #15120a;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(41 65 91 / 80%);
  background: rgb(7 17 31 / 92%);
  backdrop-filter: blur(1rem);
}

.header-inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid var(--accent-strong);
  border-radius: 0.75rem;
  background: rgb(34 199 165 / 12%);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 620;
  text-decoration: none;
}

.hero {
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  max-width: 28ch;
  color: var(--text);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
}

h2 {
  margin-top: 2.8rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.hero-summary {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #05241d;
}

.button.secondary {
  color: var(--text);
}

.content {
  max-width: 54rem;
  min-height: 60vh;
  padding-block: 3.5rem 5rem;
}

.content-home {
  max-width: var(--shell);
}

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

.page-heading {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.lede {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem 3rem;
}

.card {
  min-height: 12rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: linear-gradient(145deg, var(--surface-soft), var(--surface));
}

.card h3 {
  margin-top: 0;
}

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

code {
  padding: 0.12em 0.34em;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  background: var(--surface);
  color: #c8f8ee;
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #050c16;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

table {
  display: block;
  overflow-x: auto;
  width: max-content;
  max-width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
}

blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 0.2rem solid var(--accent);
  color: var(--muted);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-block: 2.5rem 4rem;
  color: var(--muted);
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-title {
  margin: 0;
  color: var(--text);
  font-weight: 720;
}

.footer-grid p {
  margin-block: 0 0.5rem;
}

@media (max-width: 46rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.85rem;
  }

  nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.2rem;
  }

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

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

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7fbfc;
    --surface: #edf5f5;
    --surface-soft: #f4f9f9;
    --text: #102236;
    --muted: #52677a;
    --border: #c6d6dc;
    --accent: #087c68;
    --accent-strong: #0a9b81;
    --focus: #9a6500;
  }

  body {
    background:
      radial-gradient(circle at 80% 0%, rgb(10 155 129 / 10%), transparent 28rem), var(--bg);
  }

  .site-header {
    background: rgb(247 251 252 / 92%);
  }

  .button.primary {
    color: white;
  }

  code {
    color: #075f51;
  }

  pre {
    background: #eaf3f3;
  }

  .site-footer {
    background: #edf5f5;
  }
}
