:root {
  color-scheme: light;
  --paper: #f7f8ef;
  --paper-deep: #edf0e3;
  --ink: #14251d;
  --muted: #4f6055;
  --line: #cdd6c7;
  --green: #153428;
  --deep: #0c231b;
  --accent: #d0f488;
  --white: #f6faee;
  --wrap: 1240px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid #237b56; outline-offset: 4px; }
.hero a:focus-visible { outline-color: var(--accent); }
h1, h2, h3, p, dl, dd, pre { margin: 0; }

.wrap {
  width: min(calc(100% - 4rem), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.4rem;
  background: var(--white);
}

.skip-link:focus { transform: none; }

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 86px;
}

.wordmark {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.32rem;
  font-size: 2rem;
  font-weight: 740;
  line-height: 1;
  letter-spacing: -0.085em;
  text-decoration: none;
}

.brand-dot { color: #387748; }

.site-header nav, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.85rem, 2.9vw, 2.35rem);
}

.site-header nav a, .site-footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 590;
  text-decoration: none;
}

.site-header nav a:hover, .site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.56rem 1.28rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button-outline { border-color: #aebfad; }
.button-outline:hover { background: #e9f0df; }
.button-inverse { border-color: #79958a; color: var(--white); }
.button-inverse:hover { background: #305446; }
.button-primary { background: var(--accent); color: var(--deep); }
.button-primary:hover { background: #e0faad; }
.button-dark { background: var(--deep); color: var(--white); }
.button-dark:hover { background: #254336; }
.header-download { justify-self: end; min-height: 42px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid #254539;
  border-radius: 1.4rem;
  color: var(--white);
  background: linear-gradient(110deg, #0d241b 26%, var(--green) 100%);
}

.hero-body { z-index: 1; padding: clamp(2.4rem, 5.5vw, 4.75rem) 0 clamp(2.65rem, 5.5vw, 4.75rem) clamp(2.4rem, 5.5vw, 4.75rem); }

.eyebrow {
  color: #456951;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.105em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-label { color: var(--accent); }

.hero h1 {
  margin-block: 1.15rem 1.25rem;
  font-size: clamp(2.95rem, 6.2vw, 5.75rem);
  font-weight: 680;
  letter-spacing: -0.056em;
  word-spacing: 0.04em;
  line-height: 0.98;
}

.hero h1 span { display: block; color: #d2efbd; }
.hero-copy { max-width: 32rem; color: #d5e4d9; font-size: clamp(1rem, 1.55vw, 1.2rem); }

.hero-actions, .release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.65rem;
}

.download-options-link {
  align-self: center;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.21em;
}
.hero-download-options { display: inline-block; margin-top: 0.62rem; color: #d5e4d9; }
.hero-download-options:hover { color: var(--white); }
.download-options-link[hidden] { display: none; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.hero-art::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 51% 49%, #537f65 0%, #3a6350 22%, transparent 62%),
    repeating-linear-gradient(0deg, #94c6aa17 0 1px, transparent 1px 27px),
    repeating-linear-gradient(90deg, #94c6aa17 0 1px, transparent 1px 27px);
  mask-image: linear-gradient(90deg, transparent 1%, #000 43%);
  content: "";
}

.art-orbit {
  position: absolute;
  width: min(92%, 440px);
  aspect-ratio: 1;
  border: 1px solid #b4eab64a;
  border-radius: 50%;
  box-shadow: 0 0 0 17px #c4eea80a, 0 0 0 42px #c4eea809, 0 0 0 64px #c4eea804;
}

.art-orbit::before {
  position: absolute;
  inset: 15%;
  border: 1px solid #b4eab652;
  border-radius: 50%;
  content: "";
}

.hero-art img {
  position: relative;
  width: clamp(13rem, 27vw, 22rem);
  transform: rotate(-9deg);
  filter: drop-shadow(0 26px 24px #051a13a6);
}

.release-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.release-strip div { padding: 1.15rem clamp(0.55rem, 2.5vw, 1.9rem); }
.release-strip div + div { border-left: 1px solid var(--line); }
.release-strip dt { color: var(--muted); font-size: 0.9rem; }
.release-strip dd { margin-top: 0.05rem; font-weight: 700; }
.release-strip a, .platform-note a { text-underline-offset: 0.2em; }

.section { padding-block: clamp(3.25rem, 7.5vw, 6.6rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6.2vw, 6.5rem);
}

.section-intro h2 {
  max-width: 13ch;
  margin-block: 0.85rem 1rem;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 660;
  letter-spacing: -0.051em;
  word-spacing: 0.045em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.section-intro > p:not(.eyebrow) {
  max-width: 33rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-intro a:not(.button), .verification a { font-weight: 650; text-underline-offset: 0.2em; }
.capability-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.capability-list li { padding-block: 1.02rem 1.11rem; border-bottom: 1px solid var(--line); }
.capability-list h3, .verification h3 { font-size: 1.22rem; font-weight: 680; letter-spacing: -0.025em; }
.capability-list p, .verification > p { margin-top: 0.24rem; color: var(--muted); }

.demo-section { border-bottom: 1px solid var(--line); }
.section-intro p.demo-note { margin-top: 1rem; font-size: 0.95rem; }

.demo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c6d5c4;
  border-radius: 1rem;
  background: #fcfdf8;
  box-shadow: 0 14px 36px #1534280c;
}

.demo-card[hidden], .demo-card [hidden] { display: none; }

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem clamp(1rem, 3vw, 1.55rem);
  border-bottom: 1px solid var(--line);
  background: #e9f0e2;
}

.demo-machine { font-weight: 720; line-height: 1.3; }
.demo-platform { margin-top: 0.12rem; color: var(--muted); font-size: 0.9rem; }

.demo-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.demo-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 660;
}

.demo-steps li + li { border-left: 1px solid var(--line); }
.demo-steps li[data-state="current"] { color: #173e2a; background: #eff5e8; }

.demo-steps li > span {
  display: inline-grid;
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #879b8d;
  border-radius: 50%;
}

.demo-steps li[data-state="current"] > span { border: 3px solid #3d7957; }
.demo-steps li[data-state="complete"] > span { border-color: #2b6447; background: #2b6447; }
.demo-steps li[data-state="complete"] > span::after {
  width: 0.23rem;
  height: 0.43rem;
  transform: translateY(-0.04rem) rotate(43deg);
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
}

.demo-readout {
  min-height: 13rem;
  padding: 1.2rem clamp(1rem, 3vw, 1.55rem) 0.7rem;
}

.demo-status {
  display: inline-block;
  padding: 0.16rem 0.58rem;
  border-radius: 1rem;
  color: #365244;
  background: #e9f0e6;
  font-size: 0.88rem;
  font-weight: 710;
}

.demo-card[data-stage="found"] .demo-status,
.demo-card[data-stage="fixing"] .demo-status { color: #734515; background: #f8edcf; }
.demo-card[data-stage="verified"] .demo-status { color: #175338; background: #deefd9; }

.demo-readout h3 { margin: 0.58rem 0 0.22rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.demo-detail { max-width: 38ch; color: var(--muted); }

.demo-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.demo-evidence > div {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #d3ded0;
  border-radius: 0.35rem;
  background: #f2f6ec;
}

.demo-evidence dt { color: var(--muted); font-size: 0.85rem; }
.demo-evidence code { font-size: 0.96rem; font-weight: 700; }
.demo-card[data-stage="verified"] [data-demo-mode] { color: #216041; }

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.35rem clamp(1rem, 3vw, 1.55rem) 1.35rem;
}
.demo-actions button { font-family: inherit; cursor: pointer; }
.demo-download-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.85rem; }
.demo-actions button:focus-visible { outline: 2px solid #237b56; outline-offset: 3px; }
.demo-actions button[aria-disabled="true"] { cursor: wait; }
.demo-card[data-stage="found"] .demo-actions button { border-color: #b0cd73; color: var(--deep); background: var(--accent); }
.demo-card[data-stage="found"] .demo-actions button:hover { background: #e0faad; }
.demo-card[data-stage="verified"] .demo-actions button {
  border-color: #aebfad;
  color: var(--ink);
  background: transparent;
}
.demo-card[data-stage="verified"] .demo-actions button:hover { background: #e9f0df; }

.demo-fallback { display: grid; gap: 0.7rem; margin: 0; padding-left: 1.5rem; }

.install-band { border-block: 1px solid #dce3d6; background: var(--paper-deep); }
.section-intro [data-native-install-guide] { margin-bottom: 0.7rem; }
.section-intro p.platform-note { margin-top: 1.3rem; font-size: 0.96rem; }
.platform-note strong { color: var(--ink); }
.install-steps { display: grid; gap: 0.8rem; min-width: 0; }
.install-steps > p { color: var(--muted); font-size: 0.96rem; }

.terminal {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #355347;
  border-radius: 0.65rem;
  color: var(--white);
  background: var(--deep);
}

.terminal-label {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #39574b;
  color: #d2e6d9;
  font-size: 0.88rem;
  font-weight: 650;
}

.terminal pre { padding: 0.95rem 1rem 1.1rem; overflow-x: auto; font-size: 0.94rem; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.terminal code { color: #d4f495; }

.native-downloads { margin-top: 1.35rem; }
.native-downloads h3 { font-size: 1.08rem; font-weight: 690; }
.native-download-list { display: grid; gap: 0.45rem; margin: 0.55rem 0 0; padding: 0; list-style: none; }
.native-download-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.48rem;
  background: #fafaf4;
}
.native-download-list > li:target { border-color: #4e795b; background: #e7f0dd; }
.native-platform-label { font-weight: 700; }
.native-download-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: 0.92rem; }

.verification {
  padding: clamp(1.3rem, 3.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fafaf4;
}

.verification-details, .signature-details {
  margin-top: 1.05rem;
  padding-top: 0.82rem;
  border-top: 1px solid var(--line);
}

.verification-details summary { width: fit-content; cursor: pointer; font-weight: 670; }
.verification-details summary::marker { color: #3f6d4a; }
.command-list { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.command-list dt { color: var(--muted); font-size: 0.9rem; }
.command-list code, .signature-details code { color: var(--green); overflow-wrap: anywhere; font-size: 0.9rem; }
.signature-details pre { overflow-x: auto; }
.verification p.metadata-link { margin-top: 0.95rem; }

.coming {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding: 1.2rem clamp(1rem, 3.5vw, 2rem);
  border: 1px solid #c6d7b9;
  border-radius: 0.75rem;
  background: #e7f0dd;
}

.coming h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.coming p { color: #3a5443; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  min-height: 95px;
  padding-block: 1.25rem;
}

.footer-name { color: var(--ink); font-weight: 680; }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 2.75rem); }
  .hero { min-height: 430px; }
  .hero-body { padding-left: 2.35rem; }
  .hero h1 { font-size: clamp(2.65rem, 6.1vw, 4.4rem); }
  .split { gap: 1.85rem; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 1.9rem); }
  .site-header { grid-template-columns: 1fr auto; gap: 0.55rem 1rem; padding-block: 0.8rem; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; }
  .site-header nav a { display: block; padding-block: 0.28rem; }
  .header-download { min-height: 38px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 1rem; }
  .hero-body { padding: 2.05rem clamp(1.16rem, 5.5vw, 2rem) 0; }
  .hero h1 { margin-block: 0.85rem 1rem; font-size: clamp(2.65rem, 9.1vw, 4.35rem); }
  .hero-actions { margin-top: 1.2rem; }
  .hero-art { min-height: 233px; }
  .art-orbit { width: min(75%, 235px); opacity: 0.76; }
  .hero-art::before { mask-image: linear-gradient(180deg, transparent, #000 45%); }
  .hero-art img { width: min(58%, 188px); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .section-intro h2 { max-width: 18ch; }
  .terminal pre { overflow-wrap: anywhere; white-space: pre-wrap; }
  .release-strip div { padding-inline: 0.55rem; }
  .release-strip dt { font-size: 0.88rem; }
  .release-strip dd { font-size: 0.93rem; }
}

@media (max-width: 360px) {
  .hero-actions .button, .release-actions .button { width: 100%; }
  .hero h1 { font-size: 2.45rem; }
}
