:root {
  --bg: #080a09;
  --surface: #101311;
  --text: #f3f0e8;
  --muted: #aaa9a3;
  --line: rgba(243, 240, 232, 0.11);
  --line-strong: rgba(243, 240, 232, 0.22);
  --accent: #ff4a31;
  --accent-dark: #dc311d;
  --status: #19c7b2;
  color-scheme: dark;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #080a09;
  background: var(--text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.page-shell::before {
  top: 0;
  right: 0;
  width: 42vw;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(8, 10, 9, 0.38));
}

.page-shell::after {
  right: 8%;
  bottom: 0;
  width: 28vw;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 48px 8px rgba(255, 74, 49, 0.16);
}

.site-header,
.hero,
.site-footer {
  width: min(1420px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-strong);
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 9px;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-api {
  margin-top: 4px;
  color: var(--accent);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.console-link,
.download-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 850;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
  touch-action: manipulation;
}

.console-link {
  min-width: 176px;
  padding: 0 20px;
  color: #aaa9a3;
  background: rgba(8, 10, 9, 0.56);
  border: 1px solid rgba(243, 240, 232, 0.28);
}

.console-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.console-link:hover {
  color: var(--text);
  background: rgba(243, 240, 232, 0.07);
  border-color: rgba(243, 240, 232, 0.5);
}

.hero {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(450px, 0.66fr) minmax(860px, 1.34fr);
  align-items: center;
  gap: clamp(16px, 1.5vw, 28px);
  padding-block: 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: copy-in 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--accent);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 74, 49, 0.1);
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(66px, 7.3vw, 112px);
  font-weight: 950;
  letter-spacing: -0.095em;
  line-height: 0.92;
}

h1 strong {
  color: var(--accent);
  font-weight: inherit;
}

.summary {
  max-width: 720px;
  margin: 30px 0 32px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 540;
  line-height: 1.8;
}

.download-button {
  width: 270px;
  flex: 0 0 270px;
  min-height: 62px;
  padding: 0 22px;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow:
    12px 12px 0 rgba(255, 74, 49, 0.16),
    0 0 0 5px rgba(255, 74, 49, 0.08),
    0 0 34px rgba(255, 74, 49, 0.38);
  animation: cta-glow 2.8s ease-in-out infinite;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.hero-actions .console-link {
  min-width: 170px;
  flex: 0 0 170px;
  min-height: 62px;
}

@media (min-width: 1181px) {
  h1 {
    font-size: clamp(76px, 6vw, 92px);
  }
}

.download-button > svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-arrow {
  margin-left: auto;
  font-size: 22px;
  transition: transform 180ms ease;
}

.download-button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow:
    12px 14px 0 rgba(255, 74, 49, 0.18),
    0 0 0 6px rgba(255, 74, 49, 0.12),
    0 0 50px rgba(255, 74, 49, 0.56);
  transform: translateY(-3px);
}

.download-button:hover .button-arrow {
  transform: translateX(4px);
}

.console-link:active,
.download-button:active {
  transform: translateY(1px);
}

.console-link:focus-visible,
.download-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(25, 199, 178, 0.75);
  outline-offset: 4px;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 24px;
  color: #797d78;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.referral-note {
  max-width: 560px;
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid #14b8a6;
  color: #91a7a2;
  font-size: 13px;
  line-height: 1.7;
}

.referral-note[hidden] { display: none; }

.release-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.release-meta span + span::before {
  margin-right: 12px;
  content: "/";
  color: #424642;
}

.release-meta svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.hero-art {
  position: relative;
  min-height: 580px;
}

.installer-showcase {
  display: grid;
  place-items: center;
}

.installer-window {
  position: relative;
  z-index: 3;
  width: min(100%, 920px);
  overflow: hidden;
  color: #15201e;
  background: #f3f7f6;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  box-shadow:
    28px 30px 0 rgba(255, 74, 49, 0.1),
    0 30px 80px rgba(0, 0, 0, 0.46);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.installer-window:hover {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    18px 20px 0 rgba(255, 74, 49, 0.13),
    0 34px 90px rgba(0, 0, 0, 0.5);
}

.window-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 72px;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: #ffffff;
  border-bottom: 1px solid #dce5e2;
}

.window-brand {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.window-brand b { color: #087f72; font-size: 17px; }
.window-brand span { color: #8b9693; font-size: 10px; }

.window-tabs {
  display: flex;
  justify-content: center;
  gap: 5px;
  color: #67716f;
  font-size: 10px;
  font-weight: 750;
}

.window-tabs span { padding: 9px 11px; border-radius: 6px; }
.window-tabs .active { color: #087f72; background: #e5f7f4; }
.window-login { padding: 7px 11px; color: #fff; background: #0e8c78; border-radius: 6px; font-size: 10px; font-weight: 800; }

.window-body { padding: 24px; }

.window-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.window-heading div { display: flex; flex-direction: column; gap: 3px; }
.window-heading small { color: #4a5754; font-size: 10px; font-weight: 750; }
.window-heading strong { font-size: 21px; }
.window-heading p { margin: 0; color: #9a6a00; font-size: 10px; }

.mini-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-app-grid article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  min-height: 134px;
  align-items: center;
  padding: 15px;
  background: #fff;
  border: 1px solid #d8e1df;
  border-radius: 8px;
}

.mini-app-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 7px;
}

.mini-app-grid article > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.mini-app-grid small { color: #78827f; font-size: 9px; }
.mini-app-grid b { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mini-app-grid button {
  grid-column: 1 / -1;
  min-height: 39px;
  color: #fff;
  background: #0c8375;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
  pointer-events: none;
}

.ai-glyph {
  position: absolute;
  inset: 50% auto auto 50%;
  display: flex;
  align-items: baseline;
  color: transparent;
  font-family: Arial Black, Inter, sans-serif;
  font-size: clamp(180px, 19vw, 320px);
  font-weight: 950;
  letter-spacing: -0.18em;
  line-height: 0.75;
  -webkit-text-stroke: 2px rgba(243, 240, 232, 0.16);
  transform: translate(-52%, -55%);
}

.ai-glyph span:last-child {
  color: rgba(255, 74, 49, 0.08);
  -webkit-text-stroke-color: var(--accent);
}

.orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-one {
  width: 460px;
  height: 230px;
}

.orbit-two {
  width: 300px;
  height: 420px;
  transform: translate(-50%, -50%) rotate(38deg);
}

.signal {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--status);
  box-shadow: 0 0 18px rgba(25, 199, 178, 0.42);
}

.signal::after {
  position: absolute;
  width: 86px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--status), transparent);
}

.signal-a { top: 17%; right: 15%; }
.signal-b { right: 1%; bottom: 28%; }
.signal-c { bottom: 11%; left: 15%; }

.deploy-path {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 5%;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-strong);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
}

.path-label {
  color: var(--status);
}

.path-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 12px 0;
}

.path-line i {
  height: 3px;
  background: var(--accent);
}

.path-line i:nth-child(2),
.path-line i:nth-child(3) {
  background: var(--line-strong);
}

.path-line i:last-child {
  background: var(--status);
}

.path-status {
  color: #666a66;
}

.site-footer {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-strong);
  color: #5d615d;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
}

.site-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.site-footer i {
  width: 7px;
  height: 7px;
  background: var(--status);
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes art-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes cta-glow {
  0%, 100% {
    box-shadow: 12px 12px 0 rgba(255, 74, 49, 0.16), 0 0 0 5px rgba(255, 74, 49, 0.08), 0 0 28px rgba(255, 74, 49, 0.28);
  }
  50% {
    box-shadow: 12px 12px 0 rgba(255, 74, 49, 0.18), 0 0 0 7px rgba(255, 74, 49, 0.13), 0 0 48px rgba(255, 74, 49, 0.52);
  }
}

@media (max-width: 1180px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 72px 40px;
  }

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

  .hero-art {
    position: relative;
    z-index: 1;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 420px;
    opacity: 1;
  }

  .installer-window { width: min(100%, 760px); }

  .hero-actions { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .site-footer {
    width: min(100% - 36px, 1240px);
  }

  .page-shell {
    background-size: 48px 48px;
  }

  .site-header {
    min-height: 74px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 18px;
  }

  .console-link {
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 64px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(55px, 17vw, 78px);
  }

  .summary {
    margin-block: 24px 28px;
    font-size: 16px;
    line-height: 1.75;
  }

  .desktop-break {
    display: none;
  }

  .download-button {
    width: 100%;
  }

  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .console-link { width: 100%; }

  .release-meta {
    gap: 9px 14px;
  }

  .release-meta span + span::before {
    margin-right: 5px;
  }

  .hero-art {
    right: auto;
    bottom: auto;
    min-height: 330px;
    opacity: 1;
  }

  .window-bar { grid-template-columns: auto 1fr; }
  .window-tabs { display: none; }
  .window-login { justify-self: end; }
  .window-body { padding: 12px; }
  .window-heading p { display: none; }
  .mini-app-grid { gap: 7px; }
  .mini-app-grid article { grid-template-columns: 30px minmax(0, 1fr); min-height: 92px; padding: 8px; }
  .mini-app-grid img { width: 28px; height: 28px; }
  .mini-app-grid b { font-size: 10px; }
  .installer-window { box-shadow: 12px 14px 0 rgba(255, 74, 49, 0.11), 0 24px 55px rgba(0, 0, 0, 0.42); }

  .site-footer span:last-child {
    display: none;
  }
}

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