:root {
  color-scheme: light;
  --ink: #0b1220;
  --muted: #526174;
  --line: #cbd5e1;
  --paper: #ffffff;
  --wash: #f8fafc;
  --night: #07111f;
  --blue: #0369a1;
  --cyan: #0891b2;
  --green: #047857;
  --amber: #b45309;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--night);
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.92), rgba(7, 17, 31, 0.64) 46%, rgba(7, 17, 31, 0.2));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.nav.simple {
  color: var(--ink);
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
}

.nav div {
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  align-self: center;
  padding: 56px 0 96px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.95;
}

.lede {
  max-width: 680px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: #38bdf8;
  background: #0284c7;
}

.notice,
.band,
.screenshot-band,
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.notice {
  margin-top: -42px;
  position: relative;
  z-index: 2;
  border-left: 5px solid var(--amber);
  background: #fffbeb;
  padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.band,
.screenshot-band,
.page {
  padding: 80px 0;
}

.section-head {
  max-width: 760px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

p {
  line-height: 1.7;
}

.section-head p,
.split p,
.screenshot-band p,
.page p {
  color: var(--muted);
}

.metrics,
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.metric,
.rule-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.metric span {
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 1.45rem;
}

.screenshot-band {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 36px;
  align-items: center;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  border: 1px solid #1e293b;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.page {
  max-width: 820px;
}

.page h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.page h2 {
  margin-top: 36px;
  font-size: 1.4rem;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 2px 6px;
}

.not-found {
  min-height: 80vh;
  display: grid;
  align-content: center;
}

.not-found .button {
  color: white;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
  }

  .nav div {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .metrics,
  .rule-grid,
  .screenshot-band,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }

  footer {
    flex-direction: column;
  }
}

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