@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #091011;
  --surface: #111b1c;
  --line: #273838;
  --text: #f1f7f4;
  --sub: #a7b9b5;
  --accent: #96f1cc;
  --ink: #102721;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip { position: fixed; z-index: 5; left: 1rem; top: 1rem; padding: .65rem 1rem; background: var(--accent); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - 4rem, 1160px); margin-inline: auto; }
#main, #downloads, #firmware, #install { scroll-margin-top: 1rem; }

.topbar { border-bottom: 1px solid #223032; }
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.19rem; font-weight: 760; letter-spacing: -.045em; }
.mark { position: relative; display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; margin-inline: 4px; border: 1.5px solid #93e8c9; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, #152c26, #245c49); }
.mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid #a3f5d4; border-radius: 2px; }
nav { display: flex; gap: 2.2rem; color: var(--sub); font-size: .94rem; }
nav .current, nav a:hover { color: var(--text); }

.hero { min-height: 514px; display: grid; grid-template-columns: 51% 49%; align-items: center; position: relative; overflow: hidden; isolation: isolate; margin-top: 1.2rem; border-bottom: 1px solid var(--line); }
.hero-copy { z-index: 1; padding: 2.2rem 0 3rem; }
.label { margin: 0 0 1.1rem; color: var(--accent); font-size: .82rem; font-weight: 680; letter-spacing: .16em; display: flex; align-items: center; gap: .6rem; }
.label-rule { width: 19px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.35rem; font-size: clamp(3.5rem, 5.9vw, 5.45rem); font-weight: 775; line-height: .99; letter-spacing: -.08em; }
h1 span { color: var(--accent); white-space: nowrap; font-size: .86em; letter-spacing: -.055em; }
.hero-description { max-width: 25rem; margin-bottom: 1.8rem; color: var(--sub); font-size: 1.05rem; line-height: 1.75; }
.primary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .7rem 1.15rem; border-radius: 7px; background: var(--accent); color: var(--ink); font-size: .95rem; font-weight: 740; }
.primary:hover { background: #b4f9df; }
.hero-art { position: absolute; z-index: -1; inset: -9% -1% -5% 43%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 52% 55%, #133b31 0%, #0c1c1a 42%, var(--bg) 73%); }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: contain; mask-image: radial-gradient(ellipse at center, black 48%, transparent 74%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 26%, transparent 87%, var(--bg)); pointer-events: none; }

.section { padding-top: 2.9rem; padding-bottom: .65rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.3rem; margin-bottom: 1.22rem; }
.section-title h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.035em; }
.section-title p { margin: 0; color: var(--sub); font-size: .91rem; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.platform { min-width: 0; padding: 1.2rem 1.3rem 1.12rem; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, #172223, var(--surface) 65%); }
.platform h3 { margin-bottom: .35rem; font-size: 1.33rem; letter-spacing: -.025em; }
.platform-subtitle { font-size: .89rem; color: var(--sub); margin-bottom: 1rem; }
.platform-icon { display: inline-block; position: relative; width: 24px; height: 24px; margin-bottom: 1rem; color: var(--accent); }
.mac::before { content: ""; position: absolute; inset: 3px 1px 6px; border: 1.5px solid currentColor; border-radius: 3px; }
.mac::after { content: ""; position: absolute; inset: auto 0 3px; height: 1.5px; border-radius: 99px; background: currentColor; }
.win::before { content: ""; position: absolute; inset: 3px 2px; background: conic-gradient(from 90deg at 50% 50%, currentColor 0 25%, currentColor 25% 50%, currentColor 50% 75%, currentColor 75%); border-radius: 2px; }
.win::after { content: ""; position: absolute; inset: 3px 2px; background: linear-gradient(90deg, transparent 46%, #172223 46% 54%, transparent 54%), linear-gradient(transparent 45%, #172223 45% 55%, transparent 55%); }
.phone::before { content: ""; position: absolute; inset: 0 5px; border: 1.5px solid currentColor; border-radius: 4px; }
.phone::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 1px; left: 10px; background: currentColor; }

.release { min-height: 1.9rem; }
.pending { display: inline-flex; align-items: center; border-radius: 5px; padding: .28rem .52rem; color: #bfceca; background: #202e2d; font-size: .82rem; font-weight: 650; }
.release-link { display: block; padding: .35rem 0; color: var(--accent); font-size: .92rem; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
.release-link:hover { text-decoration: underline; }
.release-version { color: var(--sub); font-size: .86rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }

.firmware { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.45rem 1.35rem; margin-top: 1.7rem; background: #111c1b; border: 1px solid var(--line); border-radius: 10px; }
.firmware h2 { margin: 0 0 .45rem; font-size: 1.3rem; }
.firmware p { margin: 0; color: var(--sub); font-size: .91rem; line-height: 1.65; }
.secondary { display: inline-flex; border: 1px solid #36594d; border-radius: 6px; padding: .6rem .8rem; color: var(--accent); font-weight: 670; font-size: .9rem; white-space: nowrap; }
.secondary:hover { background: #20382f; }

.install { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; margin: 1.2rem 0 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.answers { min-width: 0; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 0; color: var(--text); font-weight: 630; line-height: 1.5; }
summary::marker { color: var(--accent); }
details p { margin: 0 0 1.12rem; padding-left: 1.06rem; color: var(--sub); line-height: 1.75; font-size: .95rem; }
.footer { display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-top: 1px solid var(--line); color: var(--sub); font-size: .86rem; }
.footer .wordmark { color: var(--text); font-size: 1rem; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 2.5rem, 1160px); }
  .hero { min-height: 418px; }
  .hero-art { inset: 0 -13% 0 38%; }
  .hero-description { max-width: 16rem; }
  .platform { padding: 1rem; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 2rem); }
  .topbar-inner { min-height: 58px; }
  nav { gap: 1.12rem; font-size: .9rem; }
  .hero { min-height: 0; margin-top: .4rem; display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { order: 0; padding: 2rem 0 0; }
  .hero-art { order: 1; position: relative; inset: auto; min-height: 222px; height: clamp(222px, 62vw, 330px); }
  .hero-art::after { background: linear-gradient(90deg, var(--bg), transparent 18%, transparent 82%, var(--bg)); }
  h1 { font-size: clamp(2.65rem, 10vw, 4rem); margin-bottom: .95rem; }
  .hero-break { display: initial; }
  .hero-description { max-width: 18rem; margin-bottom: 1.1rem; }
  .section { padding-top: 1.85rem; }
  .platforms { grid-template-columns: 1fr; gap: .65rem; }
  .platform { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: .2rem .55rem; }
  .platform-icon { margin: 0; grid-column: 1; grid-row: 1 / 3; }
  .platform h3, .platform-subtitle { grid-column: 2; margin: 0; }
  .platform h3 { font-size: 1.12rem; }
  .platform-subtitle { font-size: .82rem; }
  .release { grid-column: 2 / -1; grid-row: 3; min-height: 0; margin-top: .45rem; }
  .install { grid-template-columns: 1fr; gap: 0; margin-bottom: 1.8rem; }
  .install .section-title { margin-bottom: .25rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
