:root {
  color-scheme: light;
  --ink: #141b22;
  --muted: #596570;
  --paper: #f4f4ef;
  --surface: #ffffff;
  --line: #d8dedf;
  --blue: #006edb;
  --blue-hover: #005fc4;
  --blue-dark: #075db9;
  --blue-pale: #e4f0ff;
  --green: #146d50;
  --warning-bg: #fff1cc;
  --warning-ink: #614600;
  --dark: #111820;
  --dark-muted: #b6c0c7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #111820;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}
@media (hover: hover) {
  a:hover { color: #034b9a; }
}
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .65rem 1rem; background: white; color: var(--ink); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 720; letter-spacing: -.025em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a, .language a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 570; }
@media (hover: hover) {
  .nav a:hover, .language a:hover { color: var(--ink); }
}
.language { display: flex; gap: .45rem; align-items: center; border-left: 1px solid var(--line); padding-left: 1rem; }
.language a[aria-current="page"] { color: var(--ink); font-weight: 760; }

.hero { color: #f6f8fa; background: var(--dark); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(4.5rem, 9vw, 7.25rem); }
.eyebrow { margin: 0 0 .85rem; color: #80b9ff; font-size: .78rem; line-height: 1.35; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.75rem, 5.6vw, 5.2rem); line-height: 1.02; letter-spacing: -.065em; font-weight: 740; }
.hero-copy { max-width: 600px; margin: 1.45rem 0 0; color: #d1d9df; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.hero-actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: 1.75rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 700; }
.button-primary { background: var(--blue); color: #fff; }
@media (hover: hover) {
  .button-primary:hover { background: var(--blue-hover); color: #fff; }
}
.button-secondary { border-color: #53606b; color: #f6f8fa; }
@media (hover: hover) {
  .button-secondary:hover { background: #202b35; color: #fff; }
}
.button-disabled { background: #34414c; border-color: #48545e; color: #e0e5e8; cursor: not-allowed; }
.status-note { margin: .9rem 0 0; color: #bdc8d0; font-size: .89rem; }
.status-line { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #42505c; border-radius: 999px; padding: .35rem .7rem; color: #e3e8eb; font-size: .82rem; }
.status-dot { width: .48rem; height: .48rem; background: #f1b742; border-radius: 50%; }

.preview { position: relative; min-width: 0; margin: 0; max-width: 500px; justify-self: end; width: 100%; padding: 1.15rem; border: 1px solid #3a4751; border-radius: 15px; background: #19232c; box-shadow: 0 22px 48px #0005; }
.preview-real { padding: .55rem; background: var(--dark); }
.preview-real img { display: block; width: 100%; height: auto; border-radius: 8px; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .15rem .1rem 1rem; color: #eef2f5; }
.preview-brand { display: flex; align-items: center; gap: .65rem; font-size: .92rem; font-weight: 700; }
.preview-brand img { width: 28px; height: 28px; border-radius: 7px; }
.preview-state { color: #a7b4be; font-size: .78rem; }
.preview-panel { padding: 1.15rem; border-radius: 10px; background: #f7f8f6; color: var(--ink); }
.preview-heading { margin: 0; color: #5a6671; font-size: .77rem; font-weight: 700; }
.preview-current { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .2rem; }
.preview-current strong { font-size: 1.55rem; letter-spacing: -.04em; }
.preview-check { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 999px; background: #ddf2e9; color: var(--green); font-size: .77rem; font-weight: 700; }
.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1rem; }
.mode-card { padding: .85rem; border: 1px solid #d8dfe2; border-radius: 8px; background: white; }
.mode-card.selected { border: 2px solid var(--blue); padding: calc(.85rem - 1px); }
.mode-name { display: block; font-weight: 750; }
.mode-detail { display: block; margin-top: .2rem; color: var(--muted); font-size: .82rem; }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #e0e5e6; color: #5d6972; font-size: .77rem; }
.preview-caption { margin: .85rem 0 0; color: #aab6be; font-size: .77rem; }
.app-screenshot { margin: 0; padding: .75rem; border: 1px solid #34414c; border-radius: 14px; background: var(--dark); }
.app-screenshot img { width: 100%; height: auto; border-radius: 8px; }
.app-screenshot figcaption { padding: .7rem .35rem .15rem; color: #c1ccd3; font-size: .86rem; }

.section { padding-block: clamp(3.8rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading .eyebrow { color: var(--blue-dark); }
.section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.055em; line-height: 1.08; }
.section-lead { max-width: 680px; margin: .85rem 0 0; color: var(--muted); font-size: 1.08rem; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mode-feature { min-height: 245px; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mode-feature .number { display: inline-grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue-dark); font-size: .87rem; font-weight: 800; }
.mode-feature h3 { margin: 1.25rem 0 .45rem; font-size: 1.35rem; letter-spacing: -.025em; }
.mode-feature p { max-width: 500px; margin: 0; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.detail { padding: 1.35rem; border-top: 3px solid var(--blue); background: var(--surface); }
.detail h3 { margin: 0 0 .45rem; font-size: 1.07rem; }
.detail p { margin: 0; color: var(--muted); font-size: .96rem; }
.warning { display: grid; grid-template-columns: auto 1fr; gap: .9rem; margin-top: 1.4rem; padding: 1.15rem 1.25rem; border: 1px solid #e6cb83; border-radius: 9px; background: var(--warning-bg); color: var(--warning-ink); }
.warning-mark { display: inline-grid; width: 1.6rem; height: 1.6rem; place-items: center; border: 1px solid #ae8321; border-radius: 50%; font-weight: 800; }
.warning p { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); counter-increment: step; }
.step::before { content: "0" counter(step); color: var(--blue-dark); font-size: .85rem; font-weight: 800; }
.step h3 { margin: .45rem 0 .4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }
.release-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 14px; background: var(--dark); color: #f7f9fa; }
.release-card h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.release-card p { max-width: 650px; margin: .8rem 0 0; color: #c1ccd3; }
.release-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.release-meta span { border: 1px solid #52606b; border-radius: 7px; padding: .35rem .6rem; color: #e1e6ea; font-size: .85rem; }
.release-card .button-disabled { white-space: nowrap; }
.release-actions { display: grid; justify-items: start; gap: .55rem; }
.brew-install { max-width: 27rem; margin-top: .9rem; }
.brew-install p { margin: 0 0 .35rem; color: #e1e6ea; font-size: .9rem; font-weight: 650; }
.brew-install pre { max-width: 100%; margin: 0 0 .35rem; padding: .65rem; overflow-wrap: anywhere; white-space: pre-wrap; border-radius: 7px; background: #202b35; color: #f7f9fa; font-size: .78rem; line-height: 1.5; }
.brew-install a { color: #c1dfff; font-size: .86rem; }
.checksum-link { color: #bdc8d0; font-size: .9rem; }
.info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.info-block { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.info-block h3 { margin: 0 0 .55rem; font-size: 1.13rem; }
.info-block p, .info-block li { color: var(--muted); }
.info-block p { margin: 0; }
.info-block ul { margin: .55rem 0 0; padding-left: 1.2rem; }
.info-block li + li { margin-top: .3rem; }
.footer { padding-block: 2rem; background: var(--dark); color: #dfe5e9; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer p { margin: .35rem 0 0; color: #aebbc4; font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #dce8f3; font-size: .9rem; }

@media (max-width: 850px) {
  .header-inner { align-items: flex-start; }
  .header-right { width: 100%; justify-content: space-between; }
  .nav { gap: .9rem; flex-wrap: wrap; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .preview { justify-self: start; max-width: 560px; }
  .detail-grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: auto; gap: .65rem; }
  .header-right { gap: .8rem; align-items: flex-start; flex-direction: column-reverse; }
  .language { border-left: 0; padding-left: 0; }
  .nav { gap: .9rem; }
  .nav a { font-size: .86rem; }
  .hero-inner { padding-block: 3.65rem; gap: 2.4rem; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .preview { padding: .75rem; }
  .mode-row { gap: .45rem; }
  .mode-card { padding: .7rem; }
  .mode-card.selected { padding: calc(.7rem - 1px); }
  .mode-detail { font-size: .76rem; }
  .mode-grid, .detail-grid, .steps, .info-columns { grid-template-columns: 1fr; }
  .release-card { grid-template-columns: 1fr; gap: 1.25rem; }
  .release-card .button { justify-self: start; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
