:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #10100f;
  --ink: #f2efe8;
  --muted: #aaa194;
  --line: #2b2925;
  --orange: #ff6a00;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 6px;
}
::selection {
  background: var(--orange);
  color: var(--bg);
}
.page-shell {
  max-width: 1320px;
  margin: auto;
  padding: 0 64px;
}
.header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 700;
}
.brand img {
  display: block;
}
.brand-dot {
  color: var(--orange);
}
nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 13px;
}
nav a {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #c3bdb3;
}
nav a:hover {
  color: var(--orange);
}
nav .nav-download {
  border: 1px solid #4a3b2e;
  padding: 11px 16px;
  color: var(--ink);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: center;
  min-height: 650px;
  padding: 20px 0 32px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 27px;
}
.signal {
  display: inline-block;
  height: 6px;
  width: 6px;
  background: var(--orange);
  margin: 0 9px 1px 0;
}
h1 {
  margin: 0 0 38px;
  font-size: clamp(56px, 6.5vw, 92px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -7px;
}
h1 > span {
  color: var(--orange);
}
.orange {
  color: var(--orange);
}
.primary-button {
  display: inline-flex;
  min-width: 185px;
  justify-content: space-between;
  align-items: center;
  background: var(--orange);
  color: #0a0a0a;
  padding: 17px 20px;
  font-size: 14px;
  font-weight: 650;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary-button:hover {
  background: #ff8b38;
  transform: translateY(-2px);
}
.primary-button > span {
  font-size: 22px;
  line-height: 1;
}
.platform-note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  margin: 17px 0 0;
  color: var(--muted);
}
.platform-note span {
  color: #514c44;
  margin: 0 9px;
}
.ascii-panel {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ascii-stage {
  position: relative;
  aspect-ratio: 1.06;
  width: 100%;
  overflow: hidden;
  background-image: radial-gradient(#30251c 0.7px, transparent 0.7px);
  background-size: 16px 16px;
  isolation: isolate;
}
.ascii-fallback {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ascii-stage.ready .ascii-fallback {
  opacity: 0;
}
.cross {
  position: absolute;
  font-family: var(--mono);
  font-size: 15px;
  color: #655140;
  pointer-events: none;
}
.cross-tl {
  top: 10px;
  left: 4px;
}
.cross-tr {
  top: 10px;
  right: 4px;
}
.cross-bl {
  bottom: 10px;
  left: 4px;
}
.cross-br {
  bottom: 10px;
  right: 4px;
}
/* Keep a keyboard-accessible pause control without visible instructional UI. */
.motion-control:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 0;
  border: 0;
}
.motion-control:focus-visible {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  background: var(--bg);
  color: var(--orange);
  border: 1px solid var(--line);
  cursor: pointer;
}
.section {
  border-top: 1px solid var(--line);
  padding: 43px 0 49px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-label {
  font-size: 9px;
  margin-bottom: 12px;
  color: var(--orange);
}
h2 {
  font-size: 30px;
  letter-spacing: -0.7px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
}
.section-aside {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 4px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.download-card {
  border: 1px solid var(--line);
  padding: 23px 25px 0;
  background: var(--panel);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.download-card.available:hover {
  border-color: #815028;
  background: #17130f;
}
.platform-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.platform-top svg {
  width: 23px;
  height: 23px;
  fill: var(--ink);
}
.platform-top .terminal-icon {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.platform-code {
  font: 10px var(--mono);
  color: #81786a;
}
.download-card h3 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.download-detail {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 22px;
}
.download-action {
  border-top: 1px solid var(--line);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}
.download-action > span:last-child {
  font-size: 19px;
  color: var(--orange);
}
.unavailable {
  color: var(--muted);
}
.download-action a {
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 53px;
}
.download-action a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.download-note {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0 0;
}
.guide {
  padding-bottom: 50px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 70px 1fr 32px;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 27px 0;
  align-items: start;
}
.step-number {
  font: 13px var(--mono);
  color: var(--orange);
  padding-top: 5px;
}
.steps h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
}
.steps p {
  max-width: 710px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.step-symbol {
  font: 26px var(--mono);
  color: #6a5e50;
  align-self: center;
}
.usage-note {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  gap: 17px;
  color: var(--muted);
  align-items: baseline;
}
.usage-note > span {
  color: var(--orange);
  font-family: var(--mono);
}
.usage-note p {
  font-size: 11px;
  line-height: 1.9;
  margin: 0;
  max-width: 850px;
}
.install-help {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.install-help summary {
  cursor: pointer;
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 15px 18px;
}
.install-help summary::-webkit-details-marker {
  display: none;
}
.install-help summary span {
  color: var(--orange);
  font: 18px var(--mono);
}
.install-help[open] summary span {
  transform: rotate(45deg);
}
.install-help > div {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 10px 18px;
  line-height: 1.9;
}
.install-help strong {
  color: var(--ink);
  font-weight: 500;
}
footer {
  border-top: 1px solid var(--line);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
footer > a:last-child:hover {
  color: var(--orange);
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--orange);
  color: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  top: 16px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 710px;
  }
}
@media (max-width: 1000px) {
  .page-shell {
    padding: 0 36px;
  }
  .hero {
    gap: 20px;
    min-height: 580px;
  }
  .eyebrow {
    letter-spacing: 0.8px;
    font-size: 9px;
  }
  h1 {
    letter-spacing: -5px;
  }
  .download-card {
    padding: 20px 18px 0;
  }
  .platform-top {
    margin-bottom: 25px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 18px;
  }
  .page-shell {
    padding: 0 24px;
  }
  .header {
    height: 84px;
  }
  .brand {
    font-size: 21px;
    gap: 7px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  nav {
    gap: 18px;
    font-size: 11px;
  }
  nav a {
    gap: 6px;
  }
  nav .nav-download {
    border: 0;
    padding: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 43px 0 38px;
    gap: 35px;
  }
  .hero-copy {
    position: relative;
  }
  h1 {
    font-size: 82px;
    letter-spacing: -6px;
    margin-bottom: 18px;
  }
  .eyebrow {
    margin-bottom: 22px;
  }
  .primary-button {
    min-width: 180px;
    padding: 15px 18px;
  }
  .ascii-panel {
    width: calc(100% + 32px);
    margin-inline: -16px;
    max-width: none;
    justify-self: center;
  }
  .ascii-stage {
    aspect-ratio: 1.12;
  }
  .section {
    padding: 32px 0 35px;
  }
  .section-heading {
    align-items: center;
    margin-bottom: 24px;
  }
  .section-label {
    font-size: 8px;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 25px;
  }
  .section-aside {
    font-size: 10px;
  }
  .download-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .download-card {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    column-gap: 13px;
    align-items: center;
    padding: 19px 18px;
  }
  .platform-top {
    grid-row: 1/3;
    margin: 0;
  }
  .platform-code {
    display: none;
  }
  .download-card h3 {
    font-size: 18px;
    margin: 0 0 7px;
  }
  .download-detail {
    grid-column: 2;
    font-size: 10px;
    margin: 0;
  }
  .download-action {
    grid-column: 3;
    grid-row: 1/3;
    border: 0;
    min-height: 42px;
    font-size: 11px;
    gap: 10px;
  }
  .download-action a {
    min-height: 42px;
  }
  .download-action > span:last-child {
    font-size: 15px;
  }
  .steps li {
    grid-template-columns: 30px 1fr 18px;
    gap: 12px;
    padding: 23px 0;
  }
  .steps h3 {
    font-size: 15px;
  }
  .steps p {
    font-size: 12px;
  }
  .step-number {
    font-size: 11px;
  }
  .step-symbol {
    font-size: 20px;
  }
  .usage-note {
    gap: 12px;
  }
  .install-help {
    font-size: 11px;
  }
  footer {
    min-height: 90px;
    gap: 12px;
  }
  footer > span {
    display: none;
  }
}
@media (max-width: 370px) {
  .page-shell {
    padding: 0 17px;
  }
  nav {
    gap: 12px;
  }
  h1 {
    font-size: 74px;
  }
  .download-card {
    padding: 18px 12px;
    column-gap: 8px;
  }
  .section-aside {
    max-width: 100px;
    text-align: right;
  }
  .download-action {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .primary-button:hover {
    transform: none;
  }
}
