:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #52617a;
  --paper: #eff3f8;
  --white: #fff;
  --line: #d5deeb;
  --link: #244fbd;
  --focus: #2b56c4;
  --soft-blue: #e8effb;
  --light-selection: #e1ebff;
  --hero: #11141b;
  --hero-panel: #1b212d;
  --hero-line: #384357;
  --hero-ink: #f3f5fa;
  --hero-muted: #b0bdd2;
  --hero-accent: #9bb8ff;
  --hero-accent-hover: #bdd0ff;
  --hero-selection: #293a59;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.56;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure, ol, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .21em; }
button { font: inherit; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { width: min(100% - clamp(32px, 9vw, 144px), 1184px); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 5; background: var(--white); padding: 10px 14px; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.top, .hero { background: var(--hero); color: var(--hero-ink); }
.top { border-bottom: 1px solid var(--hero-line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 26px; }
.header-row { min-height: 74px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 9px; color: inherit; font-weight: 740; text-decoration: none; }
.brand img { border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(16px, 3vw, 34px); font-size: .9375rem; }
nav a { color: inherit; font-weight: 630; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.repo-link { padding: 7px 14px; border: 1px solid #52647e; border-radius: 7px; }
.top :focus-visible, .hero :focus-visible { outline-color: var(--hero-accent); }

.hero { background-image: radial-gradient(ellipse at 82% 30%, #232e48 0%, transparent 59%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 6vw, 86px); }
.eyebrow { margin-bottom: 17px; color: var(--hero-accent); font-size: .875rem; letter-spacing: .085em; text-transform: uppercase; font-weight: 720; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(3.05rem, 6.4vw, 6.05rem); font-weight: 750; letter-spacing: -.075em; text-wrap: wrap; }
h1 span { display: block; color: var(--hero-accent); }
.lede { color: var(--hero-muted); margin-top: 23px; font-size: clamp(1.04rem, 1.65vw, 1.24rem); max-width: 38ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 21px; margin-top: 27px; }
.hero-link { color: var(--hero-ink); font-size: .9375rem; font-weight: 670; }
.hero-note { margin-top: 15px; color: var(--hero-muted); font-size: .875rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px; font-size: .9375rem; line-height: 1.25; font-weight: 720; text-decoration: none; }
.button-primary { background: var(--hero-accent); color: #142140; }
.button-primary:hover { background: var(--hero-accent-hover); }

.preview { border: 1px solid #425573; border-radius: 12px; overflow: hidden; background: var(--hero); box-shadow: 0 18px 55px #070e1970; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; padding: 7px 13px; background: var(--hero-panel); color: var(--hero-ink); border-bottom: 1px solid var(--hero-line); font-size: .875rem; font-weight: 650; }
.preview-controls { display: flex; align-items: center; gap: 3px; }
.preview-controls button { color: inherit; background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 3px 8px; cursor: pointer; }
.preview-controls button:hover { background: var(--hero-line); }
.preview-controls button[aria-pressed="true"] { border-color: var(--hero-accent); background: var(--hero-selection); }
.preview img { width: 100%; height: auto; }

.section { padding-block: clamp(43px, 6vw, 76px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 25px; margin-bottom: 24px; }
h2 { font-size: clamp(1.95rem, 3.8vw, 3.18rem); font-weight: 740; letter-spacing: -.052em; }
h3 { font-size: 1.25rem; font-weight: 740; letter-spacing: -.024em; }
.section h2 + p { margin-top: 12px; color: var(--muted); max-width: 55ch; }
.release-link { font-size: .9375rem; font-weight: 700; }
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.package { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: clamp(17px, 2.3vw, 26px); border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.package h3 { font-size: 1.42rem; }
.package p { color: var(--muted); margin-bottom: 5px; }
.package > .button, .package-buttons { margin-top: auto; }
.package-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.button-download { border-color: #8ca7cf; background: var(--soft-blue); color: var(--ink); }
.button-download:hover { background: var(--light-selection); }
.download-note { color: var(--muted); margin-top: 16px; font-size: .9375rem; }

.upgrade { padding-bottom: clamp(43px, 6vw, 76px); }
.upgrade-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: clamp(22px, 4vw, 54px); padding: clamp(21px, 4vw, 40px); border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.upgrade-panel h2 { font-size: clamp(1.85rem, 3.1vw, 2.6rem); }
.upgrade-panel p, .upgrade-panel dl { margin: 12px 0 0; color: var(--muted); }
.upgrade-panel dl > div + div { margin-top: 12px; }
.upgrade-panel dt { color: var(--ink); font-weight: 740; }
.upgrade-panel dd { margin: 1px 0 0; }

.workflow { background: var(--soft-blue); border-block: 1px solid var(--line); }
.workflow-layout, .safeguards { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(23px, 6vw, 80px); align-items: start; }
.workflow h2 { max-width: 15ch; text-wrap: wrap; }
.steps { list-style: none; padding: 0; }
.steps li { position: relative; border-bottom: 1px solid var(--line); padding: 15px 0 17px 46px; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-number { position: absolute; left: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--light-selection); color: var(--ink); font-size: .875rem; font-weight: 720; }
.steps p { margin-top: 5px; color: var(--muted); }
code { color: var(--ink); }
.safeguards a { display: inline-block; font-weight: 690; margin-top: 12px; }
.safeguards ul { list-style: none; padding: 0; }
.safeguards li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.safeguards li:first-child { padding-top: 0; }
.safeguards li:last-child { border-bottom: 0; }
.safeguards li span { display: block; color: var(--muted); }

footer { background: var(--soft-blue); border-top: 1px solid var(--line); }
.footer-row { min-height: 75px; padding-block: 14px; color: var(--muted); }
.footer-row p { font-size: .9375rem; }

@media (max-width: 900px) {
  .hero-layout { gap: 24px; }
  .packages { gap: 10px; }
}
@media (max-width: 730px) {
  .hero-layout, .workflow-layout, .safeguards, .upgrade-panel { grid-template-columns: 1fr; gap: 26px; }
  h1 { max-width: 11ch; }
  .hero-layout { padding-block: 35px; }
  .preview { max-width: 550px; }
  .packages { grid-template-columns: 1fr; }
  .workflow h2 { max-width: 20ch; }
  .footer-row { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .header-row { flex-wrap: wrap; gap: 9px; min-height: 0; padding-block: 10px; }
  .header-row nav { width: 100%; justify-content: space-between; gap: 7px 9px; }
  .repo-link { padding: 5px 11px; }
}
