:root {
  color-scheme: dark;
  --bg: #121010;
  --panel: #1a1616;
  --text: #f5efea;
  --muted: #b9ada8;
  --line: #423333;
  --red: #ff6860;
  --hot: #ff5d54;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --wrap: 1280px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 2px solid #fff4e8; outline-offset: 5px; }
section[id], #mac-downloads { scroll-margin-top: 28px; }
::selection { color: #180d0b; background: #ff8b79; }
.symbols { position: absolute; width: 0; height: 0; }
svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--wrap), calc(100% - 112px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .7rem; line-height: 1.45; letter-spacing: .09em; }
.skip { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 12px 16px; color: #191010; background: var(--red); transform: translateY(-150%); }
.skip:focus { transform: none; }

.top { position: relative; z-index: 1; border-bottom: 1px solid #382727; background: #151111; }
.top-inner, .footer-main { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; font-size: .89rem; line-height: 1.05; letter-spacing: .025em; flex-shrink: 0; }
.brand small { display: block; margin-top: 4px; color: var(--red); font: 600 .62rem/1 var(--mono); letter-spacing: .15em; }
.nav-links, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 3.1vw, 44px); }
.nav-links a, .footer nav a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .86rem; }
.nav-links a:hover, .footer nav a:hover, .inline-link:hover, .quiet:hover { color: var(--red); }
.nav-download { min-height: 40px; border: 1px solid #63403d; padding: 0 13px; }
.nav-download svg { color: var(--red); }

.hero { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 18%, #52221d 0%, #291817 42%, #161212 76%); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero::before {
  background-image: linear-gradient(#f2837020 1px, transparent 1px), linear-gradient(90deg, #f2837020 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(118deg, transparent 20%, #000 78%, transparent 110%);
}
.hero::after { background: linear-gradient(132deg, transparent 61%, #ff857a26 61.08%, transparent 61.17%, transparent 68%, #ff857a30 68.09%, transparent 68.18%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); align-items: center; min-height: 648px; padding-top: 72px; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 0 0 22px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: #efb7aa; font-weight: 600; }
.hero-kicker i, .frame-top i { width: 7px; height: 7px; background: var(--red); display: inline-block; box-shadow: 0 0 17px #ff675c8a; }
h1 { font-size: clamp(3.1rem, 5.95vw, 6.7rem); font-weight: 950; letter-spacing: -.055em; line-height: .91; }
h1 span { display: block; margin-top: 13px; color: var(--red); font: 650 .29em/1 var(--mono); letter-spacing: .27em; }
.hero-line { margin-top: 33px; font-size: clamp(1.23rem, 2.25vw, 1.9rem); letter-spacing: -.044em; font-weight: 760; }
.hero-description, .section-intro { margin-top: 12px; max-width: 39ch; color: var(--muted); line-height: 1.65; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; background: var(--hot); color: #1f0e0d; font-weight: 820; font-size: .92rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.button:hover { background: #ff877a; }
.button:focus-visible { outline-offset: -4px; }
.quiet, .inline-link { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; font-size: .88rem; font-weight: 700; }
.quiet svg, .inline-link svg { color: var(--red); }
.hero-note { margin-top: 11px; min-height: 1.4em; color: #c8a9a1; font-size: .74rem; }
.hero-screen { position: relative; isolation: isolate; width: 109%; margin-left: -1%; align-self: center; padding: 8px; background: #1c1616; border: 1px solid #a4554c; border-radius: 4px; box-shadow: 16px 24px 80px #090404aa, 0 0 48px #e342292b; transform: perspective(1500px) rotateY(-8deg) rotateX(5deg); }
.hero-screen::after { content: ""; position: absolute; z-index: -1; inset: -19px 18px 16px -17px; border-left: 1px solid #a4594d70; border-top: 1px solid #a4594d70; pointer-events: none; }
.hero-screen img { width: 100%; border: 1px solid #4d3838; border-radius: 2px; }
.frame-top, .frame-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 5px 10px; color: #ecd0c7; }
.frame-top span:first-child, .frame-bottom span:last-child { display: flex; align-items: center; gap: 7px; }
.frame-bottom { padding: 10px 5px 4px; color: #d39f92; }
.hero-index { grid-column: 1 / -1; display: flex; justify-content: space-between; align-self: end; gap: 8px; padding: 17px 0; border-top: 1px solid #9a5a4b55; color: #cfaba3; }

.controls { padding-block: 88px 96px; }
.index { margin-bottom: 16px; color: #d1b7af; font-weight: 700; }
.index span { color: var(--red); }
h2 { max-width: 15ch; font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 850; letter-spacing: -.055em; line-height: .99; text-wrap: balance; }
.section-title h2 { max-width: none; }
.controls-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-block: 1px solid var(--line); }
.controls-grid article { padding: 30px 26px 32px; }
.controls-grid article:first-child { padding-left: 0; }
.controls-grid article + article { border-left: 1px solid var(--line); }
.controls-grid svg { width: 28px; height: 28px; color: var(--red); margin-bottom: 16px; }
.controls-grid h3 { font-size: clamp(1.08rem, 1.7vw, 1.45rem); letter-spacing: -.045em; }
.controls-grid p { max-width: 37ch; margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.compatibility { padding: 76px 0; background: #1b1515; border-block: 1px solid var(--line); }
.compatibility-grid, .download-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 92px); }
.compatibility .section-intro, .download .section-intro { margin-top: 19px; }
.compatibility .inline-link, .setup .inline-link { margin-top: 13px; border-bottom: 1px solid #6a4139; }
.hardware-table { border: 1px solid #59403c; }
.hardware-head, .hardware-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; }
.hardware-head { color: #ddbab1; background: #281d1b; }
.hardware-row { min-height: 64px; border-top: 1px solid var(--line); }
.hardware-row strong, .hardware-row small { display: block; }
.hardware-row small { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.pill { border: 1px solid #70514b; color: #e3b8a9; padding: 5px 7px; font: 600 .67rem/1.3 var(--mono); text-align: center; }
.tested { color: #eec9ba; background: #3b2823; }

.setup { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(34px, 6vw, 86px); padding-block: 96px; }
.device-screen { padding: 8px; background: #1d1717; border: 1px solid #5e423d; }
.device-screen figcaption { padding: 10px 4px 2px; color: #d4a89e; }
.setup ol { padding-left: 1.4rem; margin: 19px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.62; }
.setup li { padding-left: 5px; margin: 8px 0; }
.setup li::marker { color: var(--red); font: 700 .83rem var(--mono); }
.setup strong { color: var(--text); font-weight: 670; }

.download { padding: 80px 0; background: radial-gradient(ellipse at left top, #3c201b, #1b1414 60%); border-block: 1px solid #593933; }
.download-grid { align-items: start; }
.release-meta { display: grid; justify-items: start; gap: 5px; margin-top: 22px; }
#release-version { color: var(--red); font-weight: 750; }
.download-list { border-top: 1px solid #6e4843; }
.platform { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 22px; align-items: center; gap: 12px; padding: 12px 14px; min-height: 67px; border-bottom: 1px solid #6e4843; transition: background .2s; }
.platform:hover, .platform:focus-visible { background: #402724; }
.platform[aria-current="true"] { background: #342220; }
.platform > svg { color: var(--red); }
.os-code { display: grid; place-items: center; min-height: 32px; border: 1px solid #78534b; color: #f4a998; }
.platform-name strong, .platform-name small { display: block; }
.platform-name small { margin-top: 3px; color: var(--muted); font-size: .77rem; }
.asset-size, .download-note { color: #c9a59d; }
.download-note { margin-top: 13px; font-size: .8rem; line-height: 1.55; }

.footer { padding: 16px 0 22px; }
.footer nav { gap: 19px; }
.footer nav a { color: #d3c0b8; font-size: .8rem; }
.footer-note { padding-top: 13px; border-top: 1px solid var(--line); color: #ae9d98; font-size: .75rem; line-height: 1.5; }

@media (max-width: 1120px) {
  .wrap { width: calc(100% - 72px); }
  .hero-inner { min-height: 590px; }
  .hero-screen { width: 104%; margin-left: 1%; }
}

@media (max-width: 880px) {
  .hero-inner { display: block; min-height: auto; padding-top: 56px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(3rem, 10.5vw, 6rem); }
  .hero-screen { width: 100%; max-width: 720px; margin: 38px 0 24px; transform: none; }
  .hero-screen::after { display: none; }
  .hero { background: radial-gradient(ellipse at 100% 20%, #48211d, #221615 54%, #161212 90%); }
  .controls, .setup { padding-block: 64px; }
  .compatibility, .download { padding-block: 58px; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .top-inner { min-height: 62px; gap: 8px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .76rem; }
  .nav-links .nav-hardware { display: none; }
  .nav-download { padding-inline: 8px; min-height: 34px; }
  .hero-inner { padding-top: 40px; }
  .hero-kicker { margin-bottom: 17px; font-size: .63rem; }
  .hero-line { margin-top: 24px; }
  .hero-actions { margin-top: 22px; }
  .hero-index { padding-block: 13px; font-size: .59rem; letter-spacing: .035em; }
  .hero-index span:nth-child(2) { display: none; }
  .controls-grid, .compatibility-grid, .setup, .download-grid { grid-template-columns: 1fr; }
  .controls-grid { margin-top: 26px; }
  .controls-grid article { padding: 20px 0 22px; }
  .controls-grid article + article { border-left: none; border-top: 1px solid var(--line); }
  .controls-grid svg { width: 23px; height: 23px; margin-bottom: 9px; }
  .setup-copy { grid-row: 1; }
  .hardware-head, .hardware-row { padding-inline: 11px; }
  .hardware-row strong { font-size: .91rem; }
  .platform { grid-template-columns: 38px minmax(0, 1fr) auto 18px; gap: 8px; padding-inline: 6px; }
  .footer-main { flex-wrap: wrap; padding-bottom: 16px; gap: 16px; }
}

@media (max-width: 370px) {
  h1 { font-size: clamp(2.55rem, 12vw, 3.1rem); }
  .frame-top, .frame-bottom { font-size: .59rem; }
  .nav-links { gap: 8px; }
  .nav-links a svg { display: none; }
  .hero-actions { column-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .platform { transition: none; }
}
