:root {
  --bg: #070b15;
  --bg-2: #0b1324;
  --panel: #101827;
  --line: #26364f;
  --text: #edf3ff;
  --muted: #a6b4cc;
  --blue: #70a7ff;
  --blue-strong: #347fff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg), var(--bg-2));
  line-height: 1.65;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(59, 126, 255, 0.13), transparent 68%);
  filter: blur(6px);
  z-index: -1;
  animation: drift 26s ease-in-out infinite alternate;
}

body::before {
  top: -16rem;
  left: -12rem;
}

body::after {
  right: -16rem;
  bottom: -18rem;
  animation-delay: -9s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(2.5rem, 1.5rem, 0) scale(1.08);
  }
}

a {
  color: inherit;
}

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.home-page {
  min-height: 100vh;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.links a:hover {
  color: var(--text);
}

.simple-hero {
  max-width: 720px;
  padding: 8vh 0 7vh;
}

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 12px;
}

h1,
h2 {
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.05rem, 5.4vw, 4rem);
  max-width: 700px;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
  margin: 0 0 28px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.035);
}

.button:hover {
  border-color: #4d7cc7;
}

.button.primary {
  border-color: #5b95ff;
  background: #2f71df;
}

.plain-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.plain-list h2 {
  font-size: 1.03rem;
  margin: 0 0 6px;
  color: var(--text);
}

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

.document-page .nav {
  margin-bottom: 28px;
}

.document {
  background: rgba(16, 24, 39, 0.84);
  border: 1px solid var(--line);
  padding: 32px;
}

.document h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 10px;
}

.document h2 {
  margin: 32px 0 8px;
  font-size: 1.16rem;
  color: var(--blue);
}

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

.document strong {
  color: var(--text);
}

.document a {
  color: var(--blue);
}

.document code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 2px 5px;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 920px);
    padding-top: 24px;
  }

  .nav {
    margin-bottom: 28px;
  }

  .simple-hero {
    padding-top: 4vh;
  }

  .plain-list {
    grid-template-columns: 1fr;
  }

  .document {
    padding: 24px;
  }
}
