:root {
  color-scheme: dark;
  --bg: #05070a;
  --surface: rgba(15, 19, 25, 0.82);
  --surface-strong: rgba(22, 27, 35, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --subtle: #747782;
  --blue: #58a6ff;
  --green: #42d392;
  --amber: #f2cc60;
  --sdn-stack-footer-height: 40px;
  --sdn-stack-header-height: 52px;
  --sdn-stack-header-brand-size: 15px;
  --sdn-stack-header-link-size: 14px;
  --sdn-stack-header-action-size: 13px;
  --sdn-stack-header-mobile-link-size: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(88, 166, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 20%, rgba(66, 211, 146, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 20rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sdn-stack-header-height, 52px);
  padding: 0 max(16px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(18px);
}

.site-brand {
  color: var(--text);
  font-size: var(--sdn-stack-header-brand-size, 15px);
  font-weight: 800;
}

.stack-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(88, 166, 255, 0.42);
  border-radius: 8px;
  background: rgba(88, 166, 255, 0.16);
  color: var(--text);
  font-size: var(--sdn-stack-header-link-size, 14px);
  font-weight: 800;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 88px 0 calc(var(--sdn-stack-footer-height, 40px) + 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 128px);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.button.primary {
  border-color: rgba(88, 166, 255, 0.46);
  background: rgba(88, 166, 255, 0.2);
}

.architecture {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.architecture img {
  display: block;
  width: 100%;
  height: auto;
  background: #0d1117;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 72px;
}

.quick-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.quick-grid h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.quick-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.docs-list,
.stack-list {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.stack-list {
  margin-top: 72px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 18px;
}

.link-list a:hover {
  border-color: rgba(88, 166, 255, 0.52);
}

.link-list a.active {
  border-color: rgba(88, 166, 255, 0.52);
  background: rgba(88, 166, 255, 0.14);
}

.link-list span {
  color: var(--text);
  font-weight: 760;
}

.link-list small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  main {
    width: min(100vw - 24px, 1180px);
    padding-top: 72px;
  }

  .hero,
  .docs-list,
  .stack-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
