:root {
  color-scheme: light;
  --ink: #151922;
  --ink-2: #283140;
  --muted: #647082;
  --muted-2: #8994a5;
  --paper: #ffffff;
  --paper-2: #f3f6fa;
  --paper-3: #e7edf4;
  --line: #d6dde7;
  --line-strong: #b8c4d2;
  --navy: #151923;
  --navy-2: #20262f;
  --navy-3: #2b3340;
  --blue: #1f5f9f;
  --blue-2: #4d86c6;
  --cyan: #1e9db5;
  --yellow: #f1c84c;
  --green: #2d8f63;
  --red: #d76e6a;
  --max: 1180px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 14px 34px rgba(18, 24, 34, .12);
  --shadow-strong: 0 22px 58px rgba(11, 15, 23, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: .18em;
}

a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(30, 157, 181, .42);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .94em;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: .68rem .9rem;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--navy);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.brand img { width: 214px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .22rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .48rem .65rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: .91rem;
  font-weight: 760;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  background: #edf4fb;
  text-decoration: none;
}

.site-nav .nav-pill {
  color: #fff;
  background: var(--blue);
}

.site-nav .nav-pill:hover,
.site-nav .nav-pill:focus-visible {
  color: #fff;
  background: #174a7f;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ink);
}

.hero {
  padding: 3.75rem 0 3rem;
  color: #eaf1fb;
  background: var(--navy);
  border-bottom: 1px solid #303946;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .45fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero-copy {
  min-width: 0;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: .65rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 1.35rem;
  color: #cbd8e8;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .72rem;
  align-items: center;
}

.button {
  display: inline-grid;
  align-content: center;
  min-height: 48px;
  padding: .65rem .95rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-kicker {
  display: block;
  margin-bottom: .18rem;
  color: inherit;
  opacity: .72;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.button-primary {
  color: #06111c;
  background: var(--yellow);
  border-color: rgba(241, 200, 76, .28);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #06111c;
  background: #ffd966;
}

.button-secondary {
  color: #eaf1fb;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(215, 224, 236, .28);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #fff;
  background: rgba(77, 134, 198, .22);
  border-color: rgba(116, 166, 220, .58);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  min-height: 72px;
  padding: .75rem;
  border: 1px solid rgba(215, 224, 236, .18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .045);
}

.hero-facts strong {
  display: block;
  color: #8fb7df;
  font-size: .72rem;
  text-transform: uppercase;
}

.hero-facts span {
  display: block;
  margin-top: .12rem;
  color: #fff;
  font-weight: 780;
}

.release-panel,
.repo-card,
.summary-grid article,
.notes-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.release-panel {
  padding: 1rem;
  color: #dbe6f4;
  background: #1d242e;
  border-color: #3a4655;
  box-shadow: none;
}

.release-panel h2 {
  margin-bottom: .85rem;
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.release-panel dl,
.repo-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.release-panel dl > div,
.repo-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: .75rem;
  padding: .72rem 0;
  border-top: 1px solid var(--line);
}

.release-panel dl > div {
  border-color: #333d4a;
}

.release-panel dl > div:first-child,
.repo-list div:first-child { border-top: 0; padding-top: 0; }

.release-panel dl > div:last-child,
.repo-list div:last-child { padding-bottom: 0; }

.release-panel dt,
.repo-list dt {
  color: var(--muted-2);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.release-panel dd,
.repo-list dd {
  margin: 0;
  color: var(--ink-2);
  font-weight: 680;
}

.release-panel dd { color: #eef4fb; }
.release-panel a { color: #9fd8ff; }

.panel-note {
  margin: 1rem 0 0;
  padding: .82rem;
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  color: #cbd8e8;
  background: rgba(255, 255, 255, .045);
  font-size: .94rem;
}

.hero-shot-wrap { margin-top: 2.2rem; }

.hero-frame,
.screenshot-stage {
  margin: 0;
  overflow: hidden;
  border: 1px solid #3a4655;
  border-radius: var(--radius);
  background: #11161f;
  box-shadow: var(--shadow-strong);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: 0 .85rem;
  color: #cbd8e8;
  background: #151923;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.window-bar span {
  width: .66rem;
  height: .66rem;
  border-radius: 999px;
  background: #657184;
}

.window-bar span:first-child { background: var(--red); }
.window-bar span:nth-child(2) { background: var(--yellow); }
.window-bar span:nth-child(3) { background: var(--green); }

.window-bar strong {
  margin-left: .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 650;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 1414 / 565;
  object-fit: cover;
  object-position: center;
}

.hero-frame figcaption,
.screenshot-stage figcaption {
  padding: .78rem 1rem;
  color: #dbe6f4;
  background: #151923;
  font-size: .9rem;
}

.section { padding: 4.1rem 0; }

.summary-section {
  padding: 1.15rem 0 0;
  background: var(--paper-2);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.summary-grid article {
  position: relative;
  min-height: 150px;
  padding: 1.1rem;
  box-shadow: none;
}

.summary-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue);
}

.summary-label {
  display: inline-flex;
  margin-bottom: .55rem;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 850;
}

.summary-grid h2 {
  margin-bottom: .45rem;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.summary-grid p,
.section-heading > p,
.project-grid > div > p,
.notes-list p,
.screenshot-stage figcaption span,
.data-note,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.compact-heading h2 { margin-bottom: .45rem; }

.screenshot-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .28fr);
  gap: 1rem;
  align-items: start;
}

.screenshot-stage a {
  display: block;
  background: #11161f;
}

.screenshot-stage img {
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  object-position: top center;
  background: #11161f;
}

.screenshot-stage figcaption strong {
  display: block;
  margin-bottom: .16rem;
  color: #fff;
}

.screenshot-stage figcaption span { color: #cbd8e8; }

.screenshot-tabs {
  display: grid;
  gap: .65rem;
}

.shot-tab {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: .48rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.shot-tab:hover,
.shot-tab:focus-visible {
  border-color: var(--blue-2);
}

.shot-tab.is-active {
  color: #fff;
  background: var(--navy-2);
  border-color: var(--blue-2);
}

.shot-tab img {
  width: 92px;
  height: 54px;
  object-fit: cover;
  object-position: top left;
  border-radius: var(--radius-sm);
  background: #11161f;
}

.shot-tab span {
  min-width: 0;
  font-size: .9rem;
  font-weight: 820;
  line-height: 1.2;
}

.notes-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.release-notes-grid {
  display: grid;
  grid-template-columns: minmax(280px, .48fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 96px;
  margin-bottom: 0;
}

.notes-list {
  display: grid;
  gap: .65rem;
}

.notes-list article {
  position: relative;
  padding: .92rem 1rem .92rem 1.15rem;
  box-shadow: none;
}

.notes-list h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.notes-list h3::before {
  content: "";
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(241, 200, 76, .18);
}

.project-section {
  background: var(--paper-2);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .68fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.project-grid > div { max-width: 700px; }
.compact-actions { margin-top: 1.25rem; }
.project-section .button-secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.project-section .button-secondary:hover,
.project-section .button-secondary:focus-visible { color: var(--blue); background: #edf4fb; }

.repo-card {
  padding: 1.1rem;
  box-shadow: none;
}

.repo-card h3 { margin-bottom: 1rem; }

.repo-list div {
  grid-template-columns: 96px 1fr;
  padding: .78rem 0;
}

.repo-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}

.repo-stat-grid div {
  padding: .72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.repo-stat-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.1;
}

.repo-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
}

.data-note {
  margin-top: .9rem;
  font-size: .9rem;
}

.site-footer {
  padding: 2.6rem 0 1.2rem;
  color: #dbe6f4;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.09);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(160px, .5fr) minmax(220px, .7fr);
  gap: 2rem;
}

.footer-logo {
  width: 210px;
  margin-bottom: 1rem;
  padding: .35rem;
  border-radius: var(--radius-sm);
  background: #fff;
}

.site-footer p { max-width: 520px; color: #b6c3d4; }
.site-footer h2 { margin-bottom: .7rem; color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer nav { display: grid; align-content: start; gap: .35rem; }
.site-footer a { color: #d5efff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #b6c3d4;
  font-size: .92rem;
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .55rem);
    justify-content: flex-start;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }

  .hero-grid,
  .summary-grid,
  .screenshot-console,
  .release-notes-grid,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { max-width: 820px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-heading { position: static; }
  .screenshot-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 1rem), var(--max)); }
  .nav-row { min-height: 66px; }
  .brand img { width: 188px; }
  .hero { padding: 3rem 0 2.5rem; }
  h1 { font-size: clamp(2.25rem, 11vw, 3rem); line-height: 1; }
  h2 { font-size: clamp(1.55rem, 8vw, 2.2rem); }
  .lead { font-size: 1.02rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .release-panel dl > div,
  .repo-list div { grid-template-columns: 1fr; gap: .12rem; }
  .summary-section { padding-top: 1rem; }
  .section { padding: 3.15rem 0; }
  .hero-frame img { object-fit: contain; }
  .screenshot-stage img { max-height: none; }
  .screenshot-tabs { grid-template-columns: 1fr; }
  .repo-stat-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 440px) {
  .brand img { width: 170px; }
  .site-nav a { width: 100%; }
  .site-nav .nav-pill { justify-content: center; }
  .window-bar strong { font-size: .72rem; }
  .hero-frame figcaption,
  .screenshot-stage figcaption { font-size: .86rem; }
  .shot-tab { grid-template-columns: 78px minmax(0, 1fr); }
  .shot-tab img { width: 78px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
