:root {
  --bg: #05091c;
  --text: #f8faff;
  --muted: #a7b0d6;
  --cyan: #1be7ff;
  --pink: #f64dad;
  --green: #43e16f;
  --blue: #4a78ff;
  --border: rgba(255, 255, 255, 0.14);
  --card: rgba(19, 26, 62, 0.76);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(138, 69, 255, 0.32), transparent 26rem),
    radial-gradient(circle at 88% 24%, rgba(27, 231, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #070b21 0%, #0a1640 42%, #20105a 78%, #071025 100%);
}

a {
  color: inherit;
}

.page {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px;
}

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

.brand,
.links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff665c, #ef42b5, #7b4dff);
  box-shadow: 0 18px 36px rgba(239, 66, 181, 0.24);
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.hero-content {
  max-width: 760px;
  padding: 36px 0 56px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 650;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(135deg, #ff665c, #ef42b5, #7b4dff);
}

.button.ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cards article,
.doc-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.cards article {
  padding: 22px;
}

.dot {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 22px;
}

.green {
  background: linear-gradient(135deg, #75e56b, #30b75e);
}

.blue {
  background: linear-gradient(135deg, #47d8ff, #3378ff);
}

.pink {
  background: linear-gradient(135deg, #ff6bba, #8b52ff);
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

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

.doc-card {
  width: min(840px, 100%);
  padding: clamp(24px, 5vw, 52px);
}

.doc-card h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 6vw, 58px);
}

.doc-card h2 {
  margin-top: 28px;
}

.doc-card a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 760px) {
  .page {
    padding: 20px;
  }

  .nav {
    margin-bottom: 42px;
  }

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

  .links {
    gap: 10px;
  }
}
