:root {
  --bg: #0b0f14;
  --bg-soft: #111820;
  --surface: #141c25;
  --surface-2: #1a2530;
  --line: rgba(132, 160, 173, 0.22);
  --line-strong: rgba(88, 229, 200, 0.38);
  --text: #eef4f2;
  --muted: #96a8ad;
  --accent: #58e5c8;
  --accent-strong: #22c7a8;
  --signal: #ff9b64;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --display: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 6%, rgba(34, 199, 168, 0.13), transparent 32rem),
    radial-gradient(circle at 8% 34%, rgba(88, 229, 200, 0.06), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(88, 229, 200, 0.4);
  outline-offset: 3px;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #04120f;
  background: var(--accent);
  border-radius: var(--radius);
  transform: translateY(-150%);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 15, 20, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

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

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav .nav-action {
  margin-left: 4px;
  color: #04120f;
  background: var(--accent);
}

.site-nav .nav-action:hover {
  color: #04120f;
  background: var(--accent-strong);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(88, 229, 200, 0.04) 50%, transparent 50.2%),
    linear-gradient(rgba(88, 229, 200, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 48px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(50px, 7vw, 86px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #04120f;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-quiet {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.button-quiet:hover {
  border-color: var(--accent);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 38px 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 15px 14px 2px 0;
}

.hero-facts div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.hero-facts dt,
.hero-facts dd {
  padding-inline: 2px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 3px 0 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.status-board {
  padding: 18px;
  background: linear-gradient(145deg, rgba(26, 37, 48, 0.94), rgba(17, 24, 32, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.board-top,
.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.board-top {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-right: auto;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(88, 229, 200, 0.12);
}

.board-code {
  color: var(--accent);
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  background: rgba(88, 229, 200, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.board-foot {
  padding-top: 14px;
}

.section {
  padding: 76px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 26px;
  background: rgba(20, 28, 37, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.service-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-heading h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 850;
}

.version-tag,
.download-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  color: #04120f;
  background: var(--accent);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.version-tag {
  margin-left: auto;
}

.service-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  list-style: none;
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 2px 0;
  background: var(--accent);
  border-radius: 50%;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-weight: 800;
}

.text-link::after {
  content: "\2192";
  margin-left: 8px;
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.service-button {
  align-self: flex-start;
  margin-top: auto;
}

.downloads {
  background: linear-gradient(180deg, rgba(17, 24, 32, 0.72), rgba(11, 15, 20, 0));
  border-block: 1px solid var(--line);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
  gap: 16px;
}

.download-primary,
.mini-download {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-primary {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-color: var(--line-strong);
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-platform {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.download-main {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 26px;
  align-items: end;
}

.remote-logo {
  align-self: start;
  object-fit: contain;
}

.remote-logo-todesk {
  border-radius: 6px;
}

.download-primary h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.download-primary p,
.mini-download p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.download-actions {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.download-actions .text-link {
  margin-top: 0;
  padding-top: 2px;
}

.download-secondary {
  display: grid;
  gap: 16px;
}

.module-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, rgba(26, 37, 48, 0.82), rgba(17, 24, 32, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.module-copy h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.module-copy p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.module-tags span {
  padding: 5px 10px;
  color: var(--text);
  background: rgba(88, 229, 200, 0.07);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.module-link {
  margin-top: 0;
  padding-top: 20px;
}

.module-panel > .button {
  min-width: 148px;
}

.mini-download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.mini-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #04120f;
  background: var(--accent);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 900;
}

.mini-icon-img {
  object-fit: contain;
  background: transparent;
  border-radius: 6px;
  width: 48px;
  height: 48px;
}

.mini-download h3 {
  margin: 0;
  font-size: 19px;
}

.mini-download > a {
  display: grid;
  min-width: 58px;
  min-height: 42px;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.mini-download > a:hover {
  color: #04120f;
  background: var(--accent);
  border-color: var(--accent);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, rgba(26, 37, 48, 0.92), rgba(17, 24, 32, 0.92));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.contact-info {
  min-width: 0;
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact-info > strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.02em;
}

.copy-button {
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  color: #04120f;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--accent-strong);
}

.contact-info p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.qr-panel {
  width: 220px;
  margin: 0;
  padding: 0;
  padding-bottom: 12px;
  background: #f6f8f4;
  border-radius: var(--radius);
}

.qr-panel img {
  width: 100%;
  height: 200px;
  margin-top: 12px;
  object-fit: cover;
  object-position: center 62%;
  border-radius: 5px;
}

.site-footer {
  padding: 24px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 480ms ease both; }
  .status-board { animation: rise 560ms 70ms ease both; }
}

@media (max-width: 920px) {
  .hero-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 44px;
  }

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

  .download-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .mini-download > a {
    grid-column: 2;
    justify-self: start;
  }

  .module-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-card {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 66px;
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 18px 14px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 220ms ease, visibility 220ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .site-nav a {
    min-height: 52px;
    padding: 0 16px;
    font-size: 16px;
  }

  .site-nav .nav-action {
    margin: 6px 0 0;
  }

  .hero {
    padding: 34px 0 38px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .hero-lead {
    margin-top: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-facts div {
    padding: 9px 0;
  }

  .hero-facts div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 52px 0;
  }

  .service-grid,
  .download-secondary,
  .module-panel {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
    padding: 22px;
  }

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

  .download-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .remote-logo {
    width: 44px;
    height: 44px;
  }

  .download-actions {
    width: 100%;
  }

  .mini-download > a {
    grid-column: auto;
    justify-self: end;
  }

  .module-panel {
    padding: 22px;
  }

  .contact-card {
    grid-template-columns: 1fr 132px;
    gap: 18px;
    padding: 22px;
    align-items: start;
  }

  .qr-panel {
    width: 100%;
    max-width: 132px;
    padding: 7px;
  }

  .qr-panel img {
    height: 118px;
  }

  .qr-panel figcaption {
    padding-top: 7px;
    font-size: 11px;
  }

  .contact-info > strong {
    font-size: 25px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
