:root {
  color-scheme: dark;
  --background: #0d1117;
  --surface: #151b23;
  --surface-hover: #1b2430;
  --text: #f3f5f7;
  --muted: #9ca7b5;
  --line: #293241;
  --accent: #78e6bf;
  --accent-dark: #092d24;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
nav {
  display: flex;
  gap: 26px;
}
nav a,
footer a {
  color: var(--muted);
}
nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}
.hero {
  max-width: 900px;
  padding: 128px 0 138px;
}

.not-found {
  max-width: 820px;
  padding: 140px 0;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 28px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.intro {
  max-width: 720px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 22px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 650;
}
.button:hover,
.button:focus-visible {
  border-color: var(--accent);
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-dark);
}
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 38px;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}
.card:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.card h3 {
  margin: 62px 0 12px;
  font-size: 22px;
}
.card p,
.closing > p {
  color: var(--muted);
}
.closing {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: end;
  gap: 52px;
}
.closing > p {
  margin-bottom: 0;
}
.text-link {
  color: var(--accent);
  font-weight: 650;
  white-space: nowrap;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer div {
  display: flex;
  gap: 22px;
}

@media (max-width: 800px) {
  .hero {
    padding: 88px 0 96px;
  }
  .grid,
  .closing {
    grid-template-columns: 1fr;
  }
  .closing {
    align-items: start;
    gap: 26px;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
  }
  nav {
    gap: 18px;
    font-size: 14px;
  }
  h1 {
    font-size: 46px;
  }
  .section {
    padding: 64px 0;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
