:root {
  --bg: #0f1117;
  --panel: #171b26;
  --panel-strong: #1f2432;
  --line: #2d3148;
  --text: #edf2f7;
  --muted: #8f9aad;
  --soft: #c8d0dd;
  --primary: #6c63ff;
  --primary-2: #ff684d;
  --cyan: #39d6c4;
  --green: #48bb78;
  --warning: #ecc94b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(108, 99, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(255, 104, 77, 0.14), transparent 30rem),
    linear-gradient(180deg, #10131c 0%, var(--bg) 34%, #11141d 100%);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.hero-actions,
.hero-stats,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.top-nav {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(23, 27, 38, 0.76);
}

.top-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 72px);
  padding: 28px 0 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(57, 214, 196, 0.26);
  border-radius: 999px;
  background: rgba(57, 214, 196, 0.08);
  color: #95fff3;
  font-size: 12px;
  font-weight: 650;
}

.hero h1,
.section-heading h2 {
  margin: 18px 0 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 610px;
  font-size: clamp(42px, 6vw, 76px);
}

.hero p {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 12px 34px rgba(108, 99, 255, 0.26);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 24px;
  margin: 34px 0 0;
}

.hero-stats div {
  min-width: 116px;
}

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

.hero-stats dd {
  margin: 6px 0 0;
  font-weight: 700;
}

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

.app-window {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(26, 29, 39, 0.92);
  box-shadow: var(--shadow);
}

.mock-sidebar {
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: #1a1d27;
}

.mock-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.mock-logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.mock-nav {
  display: block;
  margin-top: 4px;
  padding: 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}

.mock-nav.active {
  color: #d8d5ff;
  background: rgba(108, 99, 255, 0.18);
}

.mock-panel {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(108, 99, 255, 0.08), transparent 42%),
    #0f1117;
}

.mock-title-row,
.download-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.mock-kicker,
.platform {
  color: var(--muted);
  font-size: 12px;
}

.mock-title-row h2 {
  margin: 6px 0 0;
  font-size: 26px;
}

.mock-version {
  height: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(108, 99, 255, 0.15);
  color: #c7c3ff;
  font-size: 12px;
  font-weight: 700;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.check,
.install-list div,
.terminal-lines,
.feature-grid article,
.flow div,
.download-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  color: var(--soft);
  font-weight: 700;
}

.check span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(72, 187, 120, 0.7);
}

.check.warn span {
  background: var(--warning);
  box-shadow: 0 0 18px rgba(236, 201, 75, 0.6);
}

.install-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.install-list div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.install-list b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(57, 214, 196, 0.12);
  color: #91fff2;
}

.install-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.terminal-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.26);
  color: #a9f7c5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.terminal-lines span::before {
  content: ">";
  margin-right: 8px;
  color: var(--cyan);
}

.section {
  padding: 86px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.feature-grid article,
.flow div,
.download-card {
  padding: 22px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 104, 77, 0.13);
  color: #ff9a88;
  font-weight: 800;
}

h3 {
  margin: 18px 0 0;
  font-size: 20px;
}

article p,
.flow p,
.download-card p,
.download-note {
  color: var(--muted);
  line-height: 1.7;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  counter-reset: flow;
}

.flow span {
  color: var(--cyan);
  font-weight: 800;
}

.flow b {
  display: block;
  margin-top: 14px;
  font-size: 18px;
}

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

.download-card {
  align-items: center;
  min-height: 210px;
}

.download-card.recommended,
.download-card.is-current {
  border-color: rgba(57, 214, 196, 0.34);
  background: linear-gradient(135deg, rgba(57, 214, 196, 0.1), rgba(255, 255, 255, 0.045));
}

.download-card h3 {
  margin-top: 8px;
  font-size: 24px;
}

.download-card .btn {
  flex: 0 0 auto;
}

.download-note {
  margin-top: 18px;
  font-size: 13px;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 13px;
}

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

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

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .app-window {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .top-nav {
    display: none;
  }

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

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

  .hero-actions .btn,
  .download-card .btn {
    width: 100%;
  }

  .mock-panel {
    padding: 20px;
  }

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

  .download-card,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
