:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: #0f1c2f;
  --panel-2: #13243b;
  --line: rgba(142, 170, 205, 0.2);
  --text: #edf6ff;
  --muted: #9fb0c7;
  --cyan: #42d9ff;
  --green: #53e3a6;
  --orange: #ffb86b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(66, 217, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, #08111f 0%, #111827 48%, #0a1f22 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  background: rgba(8, 17, 31, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #06111d;
}

nav {
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 6rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.install-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  padding: 0 1rem;
  font-weight: 800;
}

.primary-action {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #07111f;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.product-panel,
.install-card,
.steps article {
  border: 1px solid var(--line);
  background: rgba(15, 28, 47, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.product-panel {
  border-radius: 1rem;
  padding: 1rem;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.matrix {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.5fr 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.matrix > * {
  min-height: 3rem;
  padding: 0.75rem;
  background: var(--panel-2);
}

.matrix span {
  color: var(--muted);
  font-size: 0.8rem;
}

.matrix em {
  color: var(--green);
  font-style: normal;
}

.matrix .risk {
  color: var(--orange);
}

.section-grid,
.workflow,
.download {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.section-grid,
.download {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section-grid p,
.download p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-list span {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.steps article,
.install-card {
  border-radius: 0.8rem;
  padding: 1.2rem;
}

.steps strong {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(66, 217, 255, 0.16);
  color: var(--cyan);
}

.steps p {
  color: var(--muted);
}

.install-card {
  margin-top: 0;
  flex-direction: column;
}

.install-card .primary-action,
.install-card .secondary-action {
  width: 100%;
}

.release-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.release-link:hover {
  color: var(--text);
}

code {
  display: block;
  border-radius: 0.45rem;
  padding: 0.8rem;
  background: #07101d;
  color: #cde7ff;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.zh-block {
  padding-bottom: 6rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .section-grid,
  .download,
  .steps {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  h1 {
    max-width: 100%;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.install-step {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}

.install-step h3 {
  margin: 0 0 0.6rem;
}

.install-step ol {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.install-step code {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85em;
  word-break: break-all;
}

.install-step p[lang] {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 860px) {
  .install-steps {
    grid-template-columns: 1fr;
  }
}
