:root {
  color-scheme: dark;
  --bg: #080b09;
  --bg-raised: #0e120f;
  --bg-soft: #131813;
  --line: #303727;
  --line-soft: #22281e;
  --text: #f4f6ef;
  --muted: #a3aa9d;
  --yellow: #e5bb00;
  --yellow-bright: #ffd51c;
  --green: #42e99a;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 11, 9, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.brand-accent {
  color: var(--yellow-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--text);
}

.header-download,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--yellow);
  border-radius: 6px;
  color: #111305;
  background: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-download:hover,
.primary-action:hover {
  transform: translateY(-1px);
  border-color: var(--yellow-bright);
  background: var(--yellow-bright);
}

.header-download svg,
.primary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero {
  display: flex;
  min-height: 650px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  background-color: #090c0a;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 64px;
  align-items: center;
  padding: 62px 0 72px;
}

.hero-copy {
  min-width: 0;
}

.release-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.release-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(66, 233, 154, 0.7);
}

.release-label b {
  color: var(--text);
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.hero-lead {
  margin: 18px 0 0;
  color: var(--yellow-bright);
  font-size: 26px;
  font-weight: 750;
}

.hero-description {
  max-width: 500px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action {
  min-height: 50px;
  padding: 0 22px;
}

.secondary-action {
  min-height: 50px;
  border-color: var(--line);
  color: var(--text);
  background: var(--bg-soft);
}

.secondary-action:hover {
  border-color: #5b6549;
  background: #181e17;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
  color: #7f887a;
  font-size: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
}

.hero-meta span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: var(--line);
}

.product-stage {
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #4a5138;
  border-radius: 8px;
  background: #0b0e0b;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.window-bar {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #101410;
  font-size: 12px;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.window-brand img {
  width: 21px;
  height: 21px;
  border-radius: 5px;
}

.window-version {
  margin-left: 8px;
  color: #798075;
}

.window-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.window-actions i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #444a40;
}

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.app-toolbar strong {
  padding-bottom: 17px;
  border-bottom: 2px solid var(--yellow);
  color: var(--yellow-bright);
  font-size: 13px;
}

.app-toolbar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.app-toolbar span b {
  color: var(--green);
}

.app-toolbar button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--yellow);
  border-radius: 5px;
  color: #121405;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 800;
}

.app-toolbar .muted-button {
  border-color: var(--line);
  color: #8b9286;
  background: var(--bg-soft);
}

.usage-line {
  display: flex;
  justify-content: space-between;
  padding: 18px 18px 16px;
  color: var(--muted);
  font-size: 12px;
}

.usage-line b {
  margin-left: 6px;
  color: var(--yellow-bright);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.account-item {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #0e120e;
}

.account-item.active {
  border-color: var(--yellow);
}

.account-item small,
.account-item strong,
.account-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-item small {
  color: #8f7840;
  font-size: 10px;
}

.account-item strong {
  margin-top: 17px;
  font-size: 12px;
}

.account-item span {
  margin-top: 8px;
  color: var(--green);
  font-size: 10px;
}

.progress {
  position: absolute;
  right: 13px;
  bottom: 14px;
  left: 13px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #2b3028;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.feature-band,
.download-band,
.install-band,
.support-band {
  border-bottom: 1px solid var(--line-soft);
}

.feature-band {
  background: #0d110e;
}

.section-inner {
  padding: 82px 0;
}

.section-heading p,
.section-kicker {
  margin: 0 0 9px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
}

.section-heading h2,
.download-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article {
  min-width: 0;
  padding: 34px 32px;
}

.feature-grid article:not(:last-child) {
  border-right: 1px solid var(--line);
}

.feature-number {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.feature-grid h3 {
  margin: 18px 0 10px;
  font-size: 20px;
}

.feature-grid p,
.download-copy p,
.install-steps span,
.install-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.download-band {
  background: #090c0a;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.1fr);
  gap: 58px;
  align-items: start;
}

.download-copy p:last-child {
  max-width: 500px;
  margin-top: 16px;
}

.release-table {
  border-top: 1px solid var(--line);
}

.release-table > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line-soft);
}

.release-table span {
  color: var(--muted);
  font-size: 13px;
}

.release-table strong {
  font-size: 14px;
}

.release-table .hash-row {
  grid-template-columns: 92px minmax(0, 1fr) 36px;
}

.hash-row code {
  overflow: hidden;
  color: #c7cebf;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hash-row button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: var(--bg-soft);
  cursor: pointer;
}

.hash-row button:hover {
  color: var(--yellow-bright);
  border-color: #5a6248;
}

.hash-row svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.release-action {
  grid-column: 2;
  justify-self: start;
  margin-top: -24px;
}

.install-band {
  background: #101410;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: flex;
  gap: 18px;
  min-width: 0;
  padding-top: 22px;
  border-top: 2px solid #3d4433;
}

.install-steps li > b {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 13px;
}

.install-steps strong,
.install-steps span {
  display: block;
}

.install-steps strong {
  margin-bottom: 8px;
  font-size: 16px;
}

.install-note {
  margin-top: 34px;
  padding-left: 15px;
  border-left: 3px solid var(--yellow);
}

.support-band {
  background: #0b0e0c;
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  background: #101410;
}

.support-copy h2 {
  margin: 0;
  font-size: 28px;
}

.support-copy p:last-child {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.support-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  min-width: 330px;
}

.support-group span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.support-group strong {
  color: var(--yellow-bright);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 25px;
}

.support-group button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--yellow);
  border-radius: 6px;
  color: #111305;
  background: var(--yellow);
  font-weight: 800;
  cursor: pointer;
}

.support-group button:hover {
  border-color: var(--yellow-bright);
  background: var(--yellow-bright);
}

footer {
  background: #070907;
}

.footer-inner {
  display: flex;
  align-items: center;
  min-height: 92px;
  color: #747c70;
  font-size: 12px;
}

.footer-brand {
  gap: 7px;
  margin-right: 24px;
  font-size: 17px;
}

.footer-inner p {
  margin: 0;
}

.footer-support {
  margin-left: auto;
  color: #b4bbac;
  text-decoration: none;
}

.footer-support:hover {
  color: var(--yellow-bright);
}

.footer-inner > span {
  margin-left: 24px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 16px;
  border: 1px solid #4c543e;
  border-radius: 6px;
  color: var(--text);
  background: #151a14;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 213, 28, 0.38);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .product-stage {
    width: 100%;
  }

  .download-layout {
    grid-template-columns: 1fr;
  }

  .release-action {
    grid-column: 1;
    margin-top: -24px;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 58px;
    padding: 0 16px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav {
    display: none;
  }

  .header-download {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 30px, 1180px);
  }

  .hero-inner {
    gap: 24px;
    padding: 34px 0 40px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 22px;
  }

  .hero-description {
    font-size: 15px;
  }

  .product-stage {
    height: 190px;
    min-height: 0;
    aspect-ratio: auto;
  }

  .app-toolbar span,
  .app-toolbar .muted-button {
    display: none;
  }

  .app-toolbar button {
    margin-left: auto;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-item {
    min-height: 94px;
  }

  .account-item:nth-child(n + 2) {
    display: none;
  }

  .account-item strong {
    margin-top: 10px;
  }

  .section-inner {
    padding: 60px 0;
  }

  .section-heading h2,
  .download-copy h2 {
    font-size: 28px;
  }

  .feature-grid,
  .install-steps {
    grid-template-columns: 1fr;
  }

  .feature-grid article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article {
    padding: 28px 8px;
  }

  .install-steps {
    gap: 28px;
  }

  .download-layout {
    gap: 38px;
  }

  .release-action {
    width: 100%;
    margin-top: -8px;
  }

  .support-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 24px;
  }

  .support-group {
    min-width: 0;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 0;
  }

  .footer-inner > span {
    width: 100%;
    margin-left: 0;
  }

  .footer-support {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
