:root {
  color-scheme: dark;
  --page: #0b1112;
  --text: #f2f6f4;
  --muted: #acb9b5;
  --mint: #94f1ce;
  --line: #293732;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: var(--sans);
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(1256px, calc(100% - clamp(48px, 11.2vw, 180px))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: -5rem; background: var(--mint); color: #10271e; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.masthead { position: sticky; top: 0; z-index: 5; background: #0a1112; border-bottom: 1px solid #23302d; }
.masthead-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.28rem; letter-spacing: .05em; white-space: nowrap; }
.brand img { border-radius: 10px; }
nav { display: flex; align-items: stretch; gap: 33px; height: 100%; }
nav a { position: relative; display: grid; align-items: center; color: #b5c1bd; font-size: .92rem; font-weight: 520; }
nav a:hover, nav a[aria-current] { color: var(--mint); }
nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 11px; width: 17px; height: 2px; background: var(--mint); transform: translateX(-50%); }
.header-download { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 0 16px; color: #cfeddf; font-size: .89rem; font-weight: 600; border: 1px solid #3b534a; border-radius: 7px; background: #12201c; }
.header-download:hover { background: #1b3028; border-color: #6eaa92; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #06120e; border-bottom: 1px solid #32453c; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("./assets/terrain.webp") center 56% / cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #04110ed9 0%, #04110ea8 24%, #04110e12 56%, transparent 75%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(455px, 36.6vw, 565px); padding-block: 47px 52px; }
.hero-copy { max-width: 660px; }
.release { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #345247; border-radius: 30px; background: #13281fd4; padding: 5px 10px; color: #c9dfd4; font-size: .8rem; font-weight: 550; line-height: 1.3; }
.release-light { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
h1 { margin-top: 19px; font-size: clamp(3rem, 4.8vw, 4.65rem); line-height: 1.18; letter-spacing: -.052em; font-weight: 735; }
h1 em { font-style: normal; color: var(--mint); }
.hero-copy > p { margin-top: 20px; color: #c2d0c9; font-size: clamp(1rem, 1.19vw, 1.12rem); line-height: 1.8; }
.hero-actions, .release-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-actions { margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 47px; padding: 0 20px; border: 1px solid transparent; border-radius: 7px; font-size: .99rem; font-weight: 650; line-height: 1.25; transition: background-color .18s, border-color .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--mint); color: #0b241a; border-color: #a1f3d4; }
.button-primary:hover { background: #b3ffdf; }
.button-outline { background: #0d1b17d9; border-color: #45564e; color: #edf4ed; }
.button-outline:hover { background: #1b2d25; border-color: #789889; }
.file-note { color: #a6b8ae; font: .8rem/1.55 var(--mono); }

.icon { display: inline-block; flex: 0 0 auto; width: 17px; height: 17px; position: relative; color: inherit; }
.icon-download { background: linear-gradient(currentColor,currentColor) center 1px / 1.7px 9px no-repeat; }
.icon-download::before { content: ""; position: absolute; width: 7px; height: 7px; left: 5px; top: 4px; border: solid currentColor; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.icon-download::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 5px; border: 1.7px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; }
.icon-grid { width: 15px; height: 15px; }
.icon-grid::before { content: ""; display: block; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 1.5px; box-shadow: 9px 0 currentColor, 0 9px currentColor, 9px 9px currentColor; }

.clients { padding-block: clamp(45px, 4.35vw, 68px) clamp(48px, 5.4vw, 82px); }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 24px; }
h2 { font-size: clamp(1.9rem, 2.8vw, 2.8rem); letter-spacing: -.05em; line-height: 1.25; font-weight: 710; }
.section-heading > p { color: var(--muted); font-size: .92rem; }
.gallery { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 16px; }
.platform { min-width: 0; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); background: #111a19; display: flex; flex-direction: column; }
.platform-copy { padding: 23px 23px 18px; }
.platform-heading { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
.platform-heading h3 { font-size: clamp(1.42rem, 1.85vw, 1.86rem); font-weight: 660; line-height: 1.2; letter-spacing: -.046em; }
.slash { color: #81978d; font-weight: 400; }
.system-version { font: .78rem/1.25 var(--mono); color: #c5d6ce; padding: 3px 7px; border: 1px solid #35443e; border-radius: 4px; }
.platform-copy p { margin-top: 10px; font-size: .94rem; line-height: 1.68; color: var(--muted); }
.screen-link { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; height: clamp(230px, 21vw, 318px); margin-top: auto; padding: 12px 18px 18px; overflow: hidden; cursor: zoom-in; background: radial-gradient(ellipse at 50% 90%, #28423688, transparent 74%); }
.screen-link::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(#9cb3ad25 .75px, transparent .9px); background-size: 10px 10px; mask-image: linear-gradient(to bottom, transparent, black 26%); }
.screen-link img { height: auto; max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 9px 13px #040c0999); transition: transform .22s; }
.screen-link:hover img { transform: translateY(-3px); }
.screen-link:focus-visible { outline-offset: -4px; }
.phone-screen img { border-radius: 15px; border: 1px solid #526059; }
.zoom { display: grid; place-items: center; position: absolute; right: 11px; bottom: 11px; width: 30px; height: 30px; background: #0a1512e6; border: 1px solid #44544c; border-radius: 6px; color: #c5d8cd; }
.icon-expand { width: 12px; height: 12px; background: linear-gradient(currentColor,currentColor) left top / 5px 1.5px, linear-gradient(currentColor,currentColor) left top / 1.5px 5px, linear-gradient(currentColor,currentColor) right bottom / 5px 1.5px, linear-gradient(currentColor,currentColor) right bottom / 1.5px 5px; background-repeat: no-repeat; }
.screen-link:hover .zoom { color: var(--mint); border-color: var(--mint); }

.downloads { border-block: 1px solid var(--line); background: #0e1615; padding-block: clamp(45px, 4.4vw, 70px); }
.download-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #33443e; background: #141e1a; border-radius: 13px; }
.release-info { display: grid; grid-row: span 4; grid-template-rows: subgrid; min-width: 0; padding: clamp(22px, 2vw, 34px); }
.release-info + .release-info { border-left: 1px solid #34443c; }
.release-info > p { color: #bdcbc2; font-size: 1rem; line-height: 1.7; margin-top: 12px; }
.build { color: var(--mint); font: .83rem/1.5 var(--mono); }
.release-actions { margin-top: 23px; gap: 9px 16px; }
.top-link { padding-block: 5px; }
.top-link:hover { color: var(--mint); }
.instructions { border-top: 1px solid #34443c; margin-top: 24px; padding-top: 21px; }
.instructions h4 { font-size: 1.05rem; }
.instructions ol { margin-top: 16px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.instructions li { counter-increment: step; position: relative; padding-left: 31px; color: #cad3ce; font-size: .94rem; line-height: 1.65; }
.instructions li::before { content: counter(step); position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 21px; height: 21px; font: .76rem var(--mono); border: 1px solid #486054; border-radius: 50%; color: #a3d1b6; }
.availability { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 22px; padding: 0; list-style: none; }
.availability li { display: flex; gap: 9px; align-items: baseline; color: var(--muted); font-size: .88rem; }
.availability strong { color: #d5ded8; font-weight: 600; }
.footer { padding-block: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-size: .98rem; gap: 7px; }
.top-link { color: var(--muted); font-size: .88rem; }

dialog { border: 1px solid #44544c; border-radius: 12px; padding: 0; background: #101a17; color: var(--text); max-width: min(94vw, 1120px); max-height: 92vh; max-height: 92dvh; }
dialog::backdrop { background: #020806da; }
.dialog-bar { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-bar strong { font-size: .94rem; }
.close-button { cursor: pointer; border: 1px solid #526057; background: #1b2922; color: #e4eee7; padding: 5px 12px; border-radius: 5px; }
.close-button:hover { border-color: var(--mint); }
.dialog-image { padding: 0 8px 8px; }
.dialog-image img { width: auto; max-width: 100%; max-height: calc(90vh - 62px); max-height: calc(90dvh - 62px); margin: auto; border-radius: 5px; object-fit: contain; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .gallery { grid-template-columns: 1.23fr 1fr 1fr; gap: 12px; }
  .platform-copy { padding: 18px 16px 12px; }
  .platform-heading { gap: 7px; }
  .screen-link { padding-inline: 12px; }
  .download-panel { grid-template-columns: 1fr; }
  .release-info { display: block; grid-row: auto; }
  .release-info + .release-info { border-left: 0; border-top: 1px solid #34443c; }
}
@media (min-width: 1001px) {
  .gallery { grid-template-columns: 1fr 1.12fr; }
  .platform-mac { grid-row: span 2; }
  .platform-ios, .platform-android { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; }
  .platform-copy { padding-block: 22px; }
  .phone-screen { height: 100%; min-height: 155px; margin: 0; padding: 20px 22px 24px 4px; }
  .phone-screen img { max-height: 177px; }
}
@media (max-width: 740px) {
  :root { scroll-padding-top: 74px; }
  .wrap { width: calc(100% - 38px); }
  .masthead-inner { height: 61px; gap: 12px; }
  .brand { font-size: 1.08rem; gap: 6px; }
  .brand img { width: 34px; height: 34px; }
  nav { display: none; }
  .header-download { min-height: 36px; font-size: .83rem; padding-inline: 12px; }
  .hero-inner { padding-block: 36px 108px; min-height: 425px; }
  .hero::before { background-size: auto 78%; background-position: 70% bottom; }
  .hero::after { background: linear-gradient(to bottom, #06120e 0%, #06120ec9 27%, #06120e29 65%, transparent), linear-gradient(90deg, #04110ec7, #04110e66 60%, transparent); }
  h1 { font-size: clamp(2.65rem, 8.8vw, 3.5rem); margin-top: 17px; }
  .hero-copy > p { margin-top: 15px; }
  .hero-actions { margin-top: 22px; }
  .section-heading { flex-wrap: wrap; align-items: start; gap: 7px; margin-bottom: 18px; }
  .section-heading > p { font-size: .87rem; align-self: flex-end; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .platform-mac { grid-column: 1 / -1; }
  .platform-copy { padding: 18px 18px 12px; }
  .screen-link { height: 245px; }
  .mac-screen { height: auto; padding: 6px 18px 18px; }
  .mac-screen img { max-height: 290px; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; gap: 15px; }
  .screen-link { height: auto; padding: 10px 18px 20px; }
  .phone-screen img { max-height: 220px; }
  .mac-screen { height: auto; }
  .hero::before { background-size: auto 68%; background-position: 68% bottom; }
  .button { min-height: 44px; padding-inline: 14px; gap: 8px; font-size: .91rem; }
  .hero-actions { gap: 8px; }
  .section-heading { display: grid; }
  .availability { display: grid; gap: 12px; }
  .wide-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
