:root {
  color-scheme: dark;
  --ink: #061b24;
  --deep: #0a3340;
  --sea: #147487;
  --mist: #eefcff;
  --paper: #f4f7f2;
  --paper-ink: #102d33;
  --muted: #a8c9ce;
  --acid: #d8ff54;
  --coral: #ff745f;
  --line: rgba(238, 252, 255, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--mist);
  font-family: "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--acid);
  color: var(--ink);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 27, 36, 0.94);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  min-height: 64px;
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--mist);
  font: 700 13px/1.2 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-dot {
  width: 13px;
  height: 13px;
  border: 3px solid var(--acid);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
footer a {
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.nav-links a:hover,
footer a:hover {
  color: var(--mist);
  text-decoration-color: currentcolor;
}

.hero,
.feature-band,
.open-source,
footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: 24px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 64px;
  align-items: center;
  min-height: min(760px, calc(100svh - 116px));
  padding-block: 42px 50px;
}

.hero::before {
  position: absolute;
  top: 72px;
  left: 24px;
  width: 52px;
  height: 4px;
  content: "";
  background: var(--coral);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--acid);
  font: 700 12px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-statement {
  margin: 24px 0 0;
  color: var(--acid);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.22;
}

.lede {
  max-width: 38rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 12px 19px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--muted);
  background: rgba(238, 252, 255, 0.08);
}

.product-shot {
  position: relative;
  margin: 0;
  justify-self: center;
}

.phone-frame {
  width: min(286px, 70vw);
  padding: 9px;
  border: 1px solid rgba(238, 252, 255, 0.32);
  border-radius: 32px;
  background: #0b1317;
  box-shadow: 32px 36px 0 rgba(20, 116, 135, 0.28), -12px 14px 0 rgba(216, 255, 84, 0.12);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

figcaption {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

figcaption span {
  color: var(--acid);
  font-family: ui-monospace, "Cascadia Mono", monospace;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  padding-block: 48px 96px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature-grid article {
  min-height: 250px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-grid span {
  color: var(--acid);
  font: 700 12px ui-monospace, "Cascadia Mono", monospace;
}

.feature-grid h3 {
  margin: 64px 0 12px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.feature-grid p,
.open-source p,
footer {
  color: var(--muted);
  line-height: 1.75;
}

.open-source {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  max-width: none;
  padding-block: 88px;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  background: var(--paper);
  color: var(--paper-ink);
}

.open-source .eyebrow,
.open-source .text-link {
  color: #0b6877;
}

.open-source p {
  color: #49676c;
}

.open-source img {
  display: block;
  width: 152px;
  height: 152px;
  border-radius: 28px;
  box-shadow: 18px 18px 0 #d8ff54;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  text-underline-offset: 5px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

.download-shell {
  width: min(100%, var(--max));
  min-height: calc(100svh - 64px);
  margin: 0 auto;
  padding: 76px 24px 96px;
}

.download-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.56fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 52px;
}

.download-heading h1 {
  font-size: clamp(3.8rem, 6vw, 6rem);
}

.download-heading > p:last-child {
  max-width: 32rem;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.release-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 32px;
  border-block: 1px solid var(--line);
  background: var(--deep);
}

.release-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.release-panel .release-label {
  margin: 0 0 8px;
  color: var(--acid);
  font: 700 12px ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.08em;
}

.release-panel strong {
  display: block;
  min-height: 1.2em;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

[data-download][aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.48;
}

.release-error {
  display: none;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--coral);
  background: rgba(255, 116, 95, 0.1);
  color: #ffc0b6;
}

[data-state="error"] .release-error {
  display: block;
}

[data-state="error"] .release-panel {
  border-color: rgba(255, 116, 95, 0.55);
}

.release-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.release-details section {
  min-width: 0;
  padding: 28px 28px 20px;
  border-right: 1px solid var(--line);
}

.release-details section:last-child {
  border-right: 0;
}

.release-details h2 {
  margin: 42px 0 22px;
  font-size: 1.35rem;
}

.release-details p,
.release-details li {
  color: var(--muted);
  line-height: 1.75;
}

.release-details ul {
  margin: 0;
  padding-left: 1.2rem;
}

.release-details a {
  color: var(--acid);
  text-underline-offset: 4px;
}

.detail-number {
  margin: 0;
  color: var(--acid) !important;
  font: 700 12px ui-monospace, "Cascadia Mono", monospace;
}

.release-details code {
  display: block;
  min-height: 4.5em;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  background: rgba(238, 252, 255, 0.05);
  color: var(--mist);
  font: 12px/1.6 ui-monospace, "Cascadia Mono", monospace;
}

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.64fr);
    gap: 30px;
  }

  .feature-band {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .download-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .release-details {
    grid-template-columns: 1fr;
  }

  .release-details section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 660px) {
  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .nav-links a:first-child {
    display: none;
  }

  .hero {
    display: block;
    grid-template-columns: 1fr;
    height: calc(100svh - 150px);
    min-height: 0;
    overflow: hidden;
    padding-block: 40px 64px;
  }

  .hero::before {
    top: 36px;
  }

  h1 {
    font-size: 3.65rem;
  }

  .product-shot {
    position: absolute;
    right: 28px;
    bottom: -130px;
    margin: 0;
  }

  .phone-frame {
    width: 156px;
    padding: 5px;
    border-radius: 18px;
    box-shadow: 16px 18px 0 rgba(20, 116, 135, 0.28), -7px 8px 0 rgba(216, 255, 84, 0.12);
  }

  .product-shot img {
    border-radius: 13px;
  }

  .product-shot figcaption {
    display: none;
  }

  .feature-band {
    padding-block: 34px 64px;
  }

  .open-source {
    padding-block: 64px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid h3 {
    margin-top: 38px;
  }

  .open-source {
    grid-template-columns: 1fr;
  }

  .open-source img {
    width: 118px;
    height: 118px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 12px;
  }

  .download-shell {
    padding-block: 48px 64px;
  }

  .download-heading {
    padding-bottom: 34px;
  }

  .download-heading h1 {
    font-size: 3.65rem;
  }

  .release-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }

  .release-panel .button {
    width: 100%;
  }

  .release-details {
    margin-top: 48px;
  }

  .release-details section {
    padding-inline: 4px;
    padding-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
