:root {
  color-scheme: light;
  --ink: #13161c;
  --muted: #5c6675;
  --line: #d8dee8;
  --panel: #f6f7f9;
  --accent: #2f6fec;
  --accent-strong: #173f99;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  padding: 22px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  font-size: 18px;
}

.brand span {
  color: var(--accent);
}

.status {
  color: var(--muted);
  font-size: 14px;
}

.main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) 0;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 750;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
  margin: 0;
  max-width: 900px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
  max-width: 760px;
  margin: 28px 0 0;
}

.grid {
  margin-top: clamp(48px, 7vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.section {
  background: var(--paper);
  padding: 30px;
  min-height: 260px;
}

.section h2 {
  font-size: 22px;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  margin: 0;
}

.next {
  margin-top: 1px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.next p {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}

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

.footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 20px clamp(20px, 5vw, 72px);
  font-size: 13px;
}

.not-found {
  max-width: 720px;
}

.not-found h1 {
  font-size: clamp(38px, 6vw, 68px);
}

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

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

  .section {
    min-height: auto;
  }
}
