:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --success: #16a34a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
}

.page,
.doc {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 58vh;
  display: grid;
  align-items: center;
  padding: 72px 0 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}

.logo {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

h1 {
  max-width: 820px;
  margin: 24px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 32px;
  font-size: 22px;
}

h3 {
  margin-top: 24px;
  font-size: 16px;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero p {
  max-width: 660px;
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: var(--panel);
  color: var(--accent);
  border: 1px solid var(--border);
}

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

article,
.doc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

article {
  padding: 22px;
}

article h2 {
  margin-top: 0;
}

.doc {
  margin-top: 36px;
  margin-bottom: 36px;
  padding: 34px;
}

.doc h1 {
  font-size: clamp(34px, 6vw, 54px);
}

.back {
  font-weight: 800;
  text-decoration: none;
}

.muted {
  color: #64748b;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

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

  .doc {
    padding: 24px;
  }
}
