:root {
  color-scheme: dark;
  --background: #111822;
  --panel: #182331;
  --line: #33475b;
  --text: #f1f6ff;
  --muted: #bfd0e3;
  --accent: #82e6d4;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: 1.2rem; }
.container { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: fixed; inset: .75rem auto auto .75rem; z-index: 2; background: var(--background); padding: .6rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #131d2a; }
.header-inner, .site-footer .container { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { flex: 0 0 auto; }
.site-header nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.site-header nav > a { text-decoration: none; font-weight: 650; font-size: .9rem; }
.site-header nav > a:hover, .site-footer a:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1rem; border: 1px solid transparent; border-radius: .55rem; font-weight: 750; text-decoration: none; text-align: center; }
.primary { background: var(--accent); color: #10242a; }
.primary:hover { background: #a7f4e7; }
.secondary { border-color: var(--line); background: var(--panel); }
.text-link { font-size: .94rem; text-underline-offset: .25em; }
.text-link:hover { color: var(--accent); }
.hero { background: radial-gradient(ellipse at 77% 3%, #263f52 0%, transparent 66%); border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 31rem; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1.5rem, 5vw, 4.25rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.65rem, 5.8vw, 5.2rem); }
.hero h1 span { display: block; color: var(--accent); }
.hero h1 + p { max-width: 40ch; margin-top: 1.25rem; font-size: clamp(1.025rem, 1.5vw, 1.15rem); }
.actions { margin-top: 1.6rem; }
.demo-note, .gallery-note { font-size: .86rem; margin-top: .85rem; }
.preview { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; }
.hero-preview { box-shadow: 0 1rem 2.75rem #060c1780; }
.preview figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.preview figcaption span { font-weight: 500; font-size: .83rem; color: var(--muted); }
.preview a { display: block; }
.preview a:focus-visible { outline-offset: -4px; }
.preview img { width: 100%; }
.section { margin-block: clamp(2.6rem, 6vw, 4.5rem); }
.steps, .gallery-grid { display: grid; gap: 1rem; margin-top: 1.35rem; }
.steps { grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; padding: 1.25rem; border-top: 2px solid var(--line); background: var(--panel); border-radius: 0 0 .65rem .65rem; }
.steps h3::before { content: counter(steps); margin-right: .6rem; color: var(--accent); }
.steps p, .gallery-copy p { margin-top: .6rem; }
.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid article { display: grid; grid-template-rows: 1fr auto; }
.gallery-copy { padding: 1.25rem; }
.gallery-grid a { border-top: 1px solid var(--line); }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; }
.closing p { max-width: 64ch; margin-top: .6rem; }
.closing .button { flex: 0 0 auto; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer a { text-underline-offset: .25em; }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-preview { max-width: 44rem; }
  .steps { grid-template-columns: 1fr; }
  .closing { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 39rem) {
  .container { width: calc(100% - 1.5rem); }
  .header-inner { flex-wrap: wrap; padding-block: .7rem; gap: .6rem .75rem; }
  .site-header nav { gap: .65rem .8rem; }
  .site-header nav > a { font-size: .81rem; }
  .site-header .button { padding: .5rem .65rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
