:root {
  color-scheme: dark;
  --bg: #0b1116;
  --panel: #111a22;
  --line: #22303c;
  --ink: #e9f0f4;
  --muted: #9aabba;
  --accent: #7fd8c8;
  --accent-strong: #b5f0e4;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(127, 216, 200, 0.10), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(127, 216, 200, 0.05), transparent 60%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(127, 216, 200, 0.55);
  border-radius: 9px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
  background: rgba(127, 216, 200, 0.08);
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.nav a,
.footer a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.footer a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  padding: clamp(56px, 12vw, 128px) 0 56px;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 620;
}

.lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #06201b;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

.text-link {
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 216, 200, 0.35);
  padding-bottom: 1px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 0 28px;
}

.card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), var(--panel);
}

.number {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.card h2 {
  margin: 34px 0 10px;
  font-size: 19px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note {
  margin: 26px 0 72px;
  padding: 22px 24px;
  border-left: 2px solid var(--accent);
  background: rgba(127, 216, 200, 0.04);
  color: var(--muted);
  font-size: 14px;
}

.note p {
  margin: 0;
}

.prose {
  max-width: 760px;
  padding: 56px 0 96px;
}

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

.prose h2 {
  margin: 42px 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.prose p {
  margin: 18px 0;
  color: var(--muted);
}

.prose h1 + p {
  margin-top: 26px;
}

.prose .back {
  margin-top: 48px;
}

.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.dot {
  color: var(--line);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 1040px);
  }

  .header {
    padding: 20px 0;
  }

  .nav {
    gap: 14px;
  }

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

  .card {
    min-height: 0;
  }

  .card h2 {
    margin-top: 20px;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
