:root {
  --accent: #6b10ff;
  --accent-bright: #9d26ff;
  --accent-deep: #6426ff;
  --accent-gradient: linear-gradient(90deg, #9d26ff 0%, #6426ff 100%);
  --canvas: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #f4f5f7;
  --text: #252525;
  --muted: #777b86;
  --line: rgba(61, 45, 90, 0.1);
  --shadow: 0 20px 60px rgba(68, 35, 111, 0.11);
  --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", Inter, system-ui, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 4% 8%, rgba(157, 38, 255, 0.1), transparent 26rem),
    radial-gradient(circle at 96% 4%, rgba(93, 172, 255, 0.13), transparent 28rem),
    var(--canvas);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #171a1d;
  color: #fff;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

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

.brand img {
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.1em;
  line-height: 22px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

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

.nav-link {
  color: #545761;
  font-size: 14px;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--accent);
}

.web-entry,
.primary-button,
.secondary-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.web-entry {
  height: 40px;
  padding: 0 20px;
  background: var(--accent-gradient);
  box-shadow: 0 8px 20px rgba(107, 16, 255, 0.18);
  color: #fff;
  font-size: 14px;
}

.web-entry:hover,
.primary-button:hover,
.download-button:hover {
  box-shadow: 0 12px 26px rgba(107, 16, 255, 0.26);
  transform: translateY(-1px);
}

.web-entry:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.download-button:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgba(107, 16, 255, 0.28);
  outline-offset: 3px;
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 630px;
  align-items: center;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  gap: 46px;
  padding: 64px 0 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  letter-spacing: 0.08em;
}

.eyebrow {
  padding: 8px 13px;
  border: 1px solid rgba(107, 16, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(107, 16, 255, 0.08);
}

.eyebrow svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.hero h1 {
  margin: 25px 0 20px;
  font-size: clamp(44px, 4.6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p:not(.system-recommendation) {
  max-width: 500px;
  margin: 0;
  color: #686b74;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 34px;
  gap: 14px;
}

.primary-button,
.secondary-button {
  min-width: 180px;
  height: 50px;
  padding: 0 22px;
  font-size: 15px;
}

.primary-button {
  background: var(--accent-gradient);
  box-shadow: 0 12px 28px rgba(107, 16, 255, 0.23);
  color: #fff;
  gap: 9px;
}

.primary-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.secondary-button {
  border: 1px solid rgba(107, 16, 255, 0.22);
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent);
}

.secondary-button:hover {
  border-color: rgba(107, 16, 255, 0.36);
  background: #fff;
  transform: translateY(-1px);
}

.system-recommendation {
  min-height: 20px;
  margin: 14px 0 0;
  color: #92949b;
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  top: 0;
  right: 12px;
  width: 430px;
  height: 430px;
  background: linear-gradient(145deg, rgba(157, 38, 255, 0.16), rgba(83, 174, 255, 0.16));
}

.orb-two {
  bottom: -5px;
  left: 5px;
  width: 220px;
  height: 220px;
  background: rgba(255, 189, 107, 0.16);
  filter: blur(20px);
}

.app-window {
  position: absolute;
  z-index: 2;
  top: 50px;
  right: 6px;
  width: min(570px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(61, 36, 98, 0.18);
  transform: perspective(1100px) rotateY(-4deg) rotateX(1deg);
}

.window-bar {
  position: relative;
  display: flex;
  height: 48px;
  align-items: center;
  padding: 0 17px;
  border-bottom: 1px solid #edf0f5;
  gap: 7px;
}

.window-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2e4e9;
}

.window-bar > span:first-child {
  background: #ff7d78;
}

.window-bar > span:nth-child(2) {
  background: #ffc764;
}

.window-bar > span:nth-child(3) {
  background: #73d58b;
}

.window-title {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  color: #474952;
  font-size: 12px;
  gap: 6px;
  transform: translateX(-50%);
}

.window-title img {
  width: 30px;
  height: 20px;
  object-fit: contain;
}

.window-body {
  display: grid;
  height: 350px;
  grid-template-columns: 58px 154px 1fr;
}

.mock-sidebar {
  display: flex;
  align-items: center;
  padding: 20px 0;
  background: linear-gradient(180deg, #31224d, #241c37);
  flex-direction: column;
  gap: 22px;
}

.mock-avatar {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 11px;
  background: linear-gradient(145deg, #9d26ff, #6ab4ff);
}

.mock-sidebar i {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
}

.mock-sidebar i.active {
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(157, 38, 255, 0.25);
}

.mock-list {
  padding: 15px 10px;
  border-right: 1px solid #eff0f4;
  background: #fff;
}

.mock-search {
  height: 26px;
  margin-bottom: 15px;
  border-radius: 8px;
  background: #f3f4f7;
}

.mock-contact {
  display: grid;
  height: 55px;
  align-items: center;
  padding: 0 8px;
  border-radius: 9px;
  grid-template-columns: 32px 1fr;
  gap: 9px;
}

.mock-contact.selected {
  background: #f2edff;
}

.mock-contact b {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ebe0ff, #d6e9ff);
}

.mock-contact span {
  width: 70%;
  height: 7px;
  border-radius: 7px;
  background: #dedfe4;
}

.mock-chat {
  position: relative;
  padding: 58px 18px 18px;
  background: #f7f8fa;
}

.mock-chat-title {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 43px;
  padding: 13px 17px;
  border-bottom: 1px solid #eff0f4;
  background: #fff;
  color: #555861;
  font-size: 12px;
  font-weight: 600;
}

.mock-message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 9px;
  gap: 7px;
}

.mock-message b {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffd5da, #ffd997);
}

.mock-message span {
  padding: 10px 12px;
  border-radius: 4px 12px 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(47, 48, 55, 0.05);
  color: #686b73;
}

.mock-message.right {
  justify-content: flex-end;
}

.mock-message.right span {
  border-radius: 12px 4px 12px 12px;
  background: linear-gradient(90deg, #a645ff, #7132ff);
  color: #fff;
}

.mock-message.short span {
  padding-right: 24px;
}

.mock-input {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  height: 52px;
  border: 1px solid #e7e8ed;
  border-radius: 10px;
  background: #fff;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  width: 210px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(67, 38, 106, 0.16);
  gap: 11px;
  backdrop-filter: blur(12px);
}

.floating-card-top {
  top: 20px;
  right: -20px;
}

.floating-card-bottom {
  bottom: 6px;
  left: 16px;
}

.floating-icon {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 11px;
  background: rgba(157, 38, 255, 0.1);
  color: #8d2cff;
}

.floating-icon.blue {
  background: rgba(59, 153, 255, 0.11);
  color: #348de8;
}

.floating-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.floating-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.floating-card b {
  font-size: 12px;
}

.floating-card small {
  overflow: hidden;
  color: #92949b;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.downloads {
  scroll-margin-top: 94px;
  padding: 76px 0 70px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 12px 0 13px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  position: relative;
  display: flex;
  min-height: 342px;
  padding: 25px 24px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 36px rgba(54, 39, 77, 0.06);
  flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.download-card:hover,
.download-card.recommended {
  border-color: rgba(107, 16, 255, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.download-card.recommended::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  content: "";
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.platform-icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.platform-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.platform-icon.windows {
  background: rgba(33, 143, 255, 0.11);
  color: #1989ed;
}

.platform-icon.apple,
.platform-icon.ios {
  background: rgba(36, 38, 43, 0.08);
  color: #292b30;
}

.platform-icon.android {
  background: rgba(61, 189, 111, 0.12);
  color: #24a35b;
}

.recommend-badge,
.status-badge {
  display: none;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.recommended .recommend-badge {
  display: inline-block;
  background: rgba(107, 16, 255, 0.09);
  color: var(--accent);
}

.status-badge {
  display: inline-block;
  background: #f0f1f4;
  color: #8d9098;
}

.download-card h3 {
  margin: 22px 0 9px;
  font-size: 22px;
  line-height: 1.3;
}

.download-card > p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 0 17px;
  color: #9a9ca3;
  font-size: 11px;
}

.download-button {
  width: 100%;
  height: 44px;
  margin-top: auto;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 14px;
  gap: 8px;
}

.download-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.download-button.disabled {
  background: #eceef2;
  box-shadow: none;
  color: #a4a6ad;
  cursor: not-allowed;
}

.coming-soon {
  background: rgba(255, 255, 255, 0.62);
}

.trust-panel {
  display: grid;
  margin: 0 0 90px;
  padding: 25px 28px;
  border: 1px solid rgba(107, 16, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(157, 38, 255, 0.055), rgba(100, 38, 255, 0.025));
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-panel > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(70, 42, 106, 0.08);
  color: var(--accent);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.trust-panel div > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.trust-panel strong {
  color: #454750;
  font-size: 13px;
}

.trust-panel small {
  color: #898c94;
  font-size: 11px;
  line-height: 1.5;
}

footer {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: #92949c;
  font-size: 12px;
}

.footer-brand {
  color: #4e5057;
  font-size: 15px;
  gap: 9px;
}

.footer-brand img {
  object-fit: contain;
}

footer p {
  margin: 0;
}

footer > a:last-child:hover {
  color: var(--accent);
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(360px, 0.85fr) minmax(430px, 1.15fr);
    gap: 26px;
  }

  .floating-card-top {
    right: -8px;
  }

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

  .download-card {
    min-height: 320px;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
    text-align: center;
  }

  .hero-copy > p:not(.system-recommendation) {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .trust-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    height: 68px;
  }

  .brand-copy span,
  .nav-link {
    display: none;
  }

  nav {
    gap: 0;
  }

  .web-entry {
    height: 38px;
    padding: 0 15px;
  }

  .hero {
    gap: 24px;
    padding: 42px 0 56px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(38px, 12.5vw, 52px);
  }

  .hero-copy > p:not(.system-recommendation) {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-visual {
    min-height: 335px;
  }

  .app-window {
    top: 32px;
    right: 0;
    width: 100%;
    transform: none;
  }

  .window-body {
    height: 246px;
    grid-template-columns: 43px 97px 1fr;
  }

  .mock-sidebar {
    padding-top: 14px;
    gap: 16px;
  }

  .mock-avatar {
    width: 27px;
    height: 27px;
  }

  .mock-sidebar i {
    width: 15px;
    height: 15px;
  }

  .mock-list {
    padding: 12px 7px;
  }

  .mock-contact {
    height: 42px;
    padding: 0 5px;
    grid-template-columns: 24px 1fr;
    gap: 6px;
  }

  .mock-contact b {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .mock-chat {
    padding: 51px 10px 12px;
  }

  .mock-message {
    margin-bottom: 12px;
  }

  .mock-message b {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .mock-message span {
    padding: 7px 8px;
  }

  .mock-input {
    right: 10px;
    bottom: 10px;
    left: 10px;
    height: 39px;
  }

  .floating-card {
    width: 172px;
    padding: 10px;
  }

  .floating-card-top {
    top: 10px;
    right: -8px;
  }

  .floating-card-bottom {
    bottom: 0;
    left: -8px;
  }

  .floating-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .floating-icon svg {
    width: 17px;
    height: 17px;
  }

  .downloads {
    padding: 60px 0 54px;
  }

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

  .download-card {
    min-height: 306px;
  }

  .trust-panel {
    margin-bottom: 58px;
    padding: 22px 20px;
  }

  footer {
    padding: 24px 0;
    flex-direction: column;
    gap: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1e1e1f;
    --surface: #2f2f30;
    --surface-soft: #252526;
    --text: #dfe2e6;
    --muted: #999999;
    --line: rgba(223, 226, 230, 0.1);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }

  body {
    background:
      radial-gradient(circle at 4% 8%, rgba(157, 38, 255, 0.12), transparent 26rem),
      radial-gradient(circle at 96% 4%, rgba(93, 172, 255, 0.08), transparent 28rem),
      var(--canvas);
  }

  .site-header {
    border-bottom-color: rgba(223, 226, 230, 0.06);
    background: rgba(30, 30, 31, 0.84);
  }

  .nav-link,
  .hero-copy > p:not(.system-recommendation),
  .section-heading p {
    color: #a9abb2;
  }

  .eyebrow,
  .secondary-button {
    border-color: rgba(157, 38, 255, 0.28);
    background: rgba(47, 47, 48, 0.75);
  }

  .app-window,
  .floating-card,
  .download-card {
    border-color: rgba(223, 226, 230, 0.1);
    background: rgba(47, 47, 48, 0.94);
  }

  .window-bar,
  .mock-list,
  .mock-chat-title {
    border-color: rgba(223, 226, 230, 0.08);
    background: #2f2f30;
  }

  .mock-chat {
    background: #1e1e1f;
  }

  .mock-contact.selected,
  .mock-input,
  .mock-message span,
  .trust-icon {
    background: #444;
  }

  .window-title,
  .mock-chat-title,
  .mock-message span,
  .trust-panel strong,
  .footer-brand {
    color: #dfe2e6;
  }

  .platform-icon.apple,
  .platform-icon.ios {
    background: rgba(223, 226, 230, 0.08);
    color: #dfe2e6;
  }

  .coming-soon {
    background: rgba(47, 47, 48, 0.55);
  }

  .download-button.disabled,
  .status-badge {
    background: #444;
    color: #999;
  }

  .trust-panel {
    background: linear-gradient(110deg, rgba(157, 38, 255, 0.09), rgba(100, 38, 255, 0.03));
  }
}
