:root {
  color-scheme: light dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #101418;
  --panel: #171c21;
  --text: #e7ebee;
  --muted: #9aa5ad;
  --line: #293139;
  --accent: #76b6c4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

header,
main,
footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .18em;
}

nav {
  display: flex;
  gap: 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  font-size: 14px;
}

a:hover {
  text-decoration: underline;
}

.hero {
  padding: 92px 0 72px;
  max-width: 760px;
}

.label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

h1 {
  margin: 14px 0 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}

article h2 {
  margin-top: 0;
  font-size: 18px;
}

article p {
  color: var(--muted);
  line-height: 1.6;
  min-height: 76px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  nav {
    gap: 12px;
  }

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

  footer {
    gap: 12px;
    flex-direction: column;
  }
}
