:root {
  color-scheme: light;
  --ink: #111a2b;
  --muted: #44536a;
  --paper: #f5f8fd;
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; height: auto; }

.top, .foot { max-width: 1168px; margin: auto; padding: 22px 24px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; }
.brand img { border-radius: 11px; }
nav { display: flex; gap: clamp(14px, 3vw, 35px); flex-wrap: wrap; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  justify-items: start;
  gap: clamp(30px, 5vw, 64px);
  max-width: 1120px;
  margin: 8px auto 0;
  padding: clamp(36px, 7vw, 88px);
  border-radius: 32px;
  color: #fff;
  background: radial-gradient(ellipse at 84% 16%, #244982, transparent 65%), #0d172a;
}
h1 { margin: 0; font-size: clamp(2.75rem, 6.2vw, 5.65rem); line-height: 1.04; letter-spacing: -.055em; }
.lead { color: #e0e8f6; max-width: 32rem; font-size: clamp(1.15rem, 2.05vw, 1.45rem); margin: 24px 0 0; }
.hero-preview { width: min(100%, 286px); justify-self: end; border: 1px solid #7891b7; border-radius: 32px; box-shadow: 0 24px 64px #070c17a0; }
.foot { color: var(--muted); font-size: 1rem; }

.page { max-width: 820px; margin: 32px auto 72px; padding: 0 24px; font-size: 1.08rem; }
.page h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.5em; margin-bottom: .3em; line-height: 1.25; }
.page p { color: var(--muted); margin: .6em 0; }
.page a { color: #1640c6; }

@media (max-width: 1168px) { .hero { margin-inline: 24px; } }
@media (max-width: 720px) {
  .hero { margin-inline: 14px; padding: 34px 26px; border-radius: 24px; grid-template-columns: 1fr; }
  .hero-preview { justify-self: center; width: min(100%, 258px); }
  .top, .foot { padding: 18px 17px; }
  .top { align-items: flex-start; }
  .brand { line-height: 1.2; }
  nav { padding-top: 7px; }
}
