:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --paper: #ffffff;
  --ink: #101828;
  --muted: #5b6678;
  --line: #dfe5ef;
  --primary: #5f35f5;
  --primary-dark: #3f21b8;
  --accent: #14b88a;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #ede7ff 0, transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-weight: 650;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

nav a[aria-current="page"] {
  color: var(--primary-dark);
}

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

.hero {
  min-height: 440px;
  display: grid;
  align-content: center;
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  margin: 34px 0 12px;
  font-size: 1.35rem;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 600;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
}

.button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.button.secondary {
  background: white;
  color: var(--primary-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card,
.document {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.06);
}

.card {
  padding: 28px;
}

.card h2 {
  margin-top: 0;
}

.card p,
.document p,
.document li {
  color: var(--muted);
  font-size: 1.02rem;
}

.document {
  max-width: 880px;
  padding: 48px;
}

.document h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

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

pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f3f6fb;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .document {
    padding: 28px;
    border-radius: 24px;
  }

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