:root {
  color-scheme: dark;
  --bg: #06101d;
  --bg-deep: #030912;
  --panel: rgba(12, 28, 45, 0.86);
  --panel-strong: #0e2034;
  --border: rgba(92, 207, 255, 0.2);
  --border-strong: rgba(92, 207, 255, 0.5);
  --cyan: #4ed7ff;
  --cyan-soft: #a7ebff;
  --amber: #ffb84d;
  --text: #f1f8fc;
  --muted: #91a7b9;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --sans: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  min-width: 320px;
}

a { color: inherit; }

.radar-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(78, 215, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 215, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero {
  min-height: 760px;
  padding: 0 clamp(24px, 5vw, 80px) 72px;
  background:
    radial-gradient(circle at 80% 38%, rgba(15, 148, 194, 0.16), transparent 31%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.nav {
  width: min(1240px, 100%);
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 800;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover, .nav-link:focus-visible { color: var(--cyan); }

.hero-content {
  width: min(1240px, 100%);
  margin: 0 auto;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
  align-items: center;
  gap: clamp(30px, 6vw, 92px);
  padding-top: 62px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}

h1, h2, h3 { margin-top: 0; line-height: 1.1; }

h1 {
  margin-bottom: 26px;
  font-size: clamp(54px, 7vw, 96px);
  letter-spacing: -0.055em;
}

h1 span { color: var(--cyan); }

.hero-description {
  max-width: 610px;
  margin: 0;
  color: #b8c9d5;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { background: var(--cyan); border-color: var(--cyan); color: #03101a; }
.button.secondary { color: var(--cyan-soft); background: rgba(78, 215, 255, 0.05); }

.scope {
  position: relative;
  width: min(470px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid rgba(78, 215, 255, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 215, 255, 0.08), rgba(3, 9, 18, 0.45) 62%);
  box-shadow: 0 0 100px rgba(30, 172, 219, 0.08), inset 0 0 42px rgba(30, 172, 219, 0.08);
}

.scope-ring, .scope-line, .scope-sweep, .scope-target { position: absolute; }
.scope-ring { inset: 16%; border: 1px solid rgba(78, 215, 255, 0.22); border-radius: 50%; }
.scope-ring.ring-two { inset: 32%; }
.scope-ring.ring-three { inset: 44%; }
.scope-line.horizontal { top: 50%; left: 4%; right: 4%; border-top: 1px solid rgba(78, 215, 255, 0.24); }
.scope-line.vertical { left: 50%; top: 4%; bottom: 4%; border-left: 1px solid rgba(78, 215, 255, 0.24); }
.scope-sweep {
  inset: 7%;
  border-radius: 50%;
  background: conic-gradient(from 305deg, rgba(78, 215, 255, 0.42), transparent 28deg, transparent);
}
.scope-target { width: 8px; height: 8px; border: 2px solid var(--cyan); transform: rotate(45deg); box-shadow: 0 0 12px var(--cyan); }
.target-one { top: 28%; left: 28%; }
.target-two { top: 46%; right: 18%; }
.target-three { bottom: 20%; left: 43%; }
.scope-label { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); color: var(--muted); font: 11px var(--mono); letter-spacing: 0.18em; }

main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 54px); letter-spacing: -0.035em; }
.section-intro { max-width: 460px; color: var(--muted); margin: 0; }

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

.download-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(16, 36, 58, 0.95), rgba(8, 22, 37, 0.95));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-card.featured { border-color: var(--border-strong); }
.external-card { grid-column: span 3; min-height: 300px; }

.card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.file-type { display: inline-grid; place-items: center; min-width: 42px; height: 30px; padding: 0 8px; border: 1px solid var(--cyan); color: var(--cyan); font: 700 11px var(--mono); }
.file-type.microsoft { border-color: #66a7ff; color: #9cc8ff; }
.recommended, .hosted, .external { font: 11px var(--mono); letter-spacing: 0.08em; }
.recommended { color: var(--amber); }
.hosted { color: var(--muted); }
.external { color: #9cc8ff; }
.download-card h3 { margin-bottom: 12px; font-size: 25px; }
.download-card > p { margin: 0 0 24px; color: var(--muted); }
.file-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: auto 0 22px; }
.file-meta div { padding: 13px; background: rgba(2, 10, 18, 0.45); border: 1px solid rgba(145, 167, 185, 0.12); }
.file-meta dt { color: var(--muted); font-size: 11px; }
.file-meta dd { margin: 2px 0 0; font: 700 14px var(--mono); }
.external-spacer { flex: 1; }

.download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 17px;
  border-radius: 4px;
  background: var(--cyan);
  color: #03101a;
  text-decoration: none;
  font-weight: 800;
}
.download-button span { font-size: 19px; }
.download-button:hover, .download-button:focus-visible { background: #8be7ff; }
.external-button { background: transparent; color: #b9d8ff; border: 1px solid rgba(102, 167, 255, 0.45); }
.external-button:hover, .external-button:focus-visible { background: rgba(102, 167, 255, 0.1); }

details { margin-top: 16px; }
summary { color: var(--muted); cursor: pointer; font-size: 12px; }
details code { display: block; margin-top: 9px; color: var(--cyan-soft); font: 10px/1.5 var(--mono); overflow-wrap: anywhere; }

.compact-heading { margin-bottom: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.steps li { display: flex; gap: 18px; padding: 28px 24px; background: var(--bg); }
.steps li > span { color: var(--cyan); font: 700 13px var(--mono); }
.steps strong { display: block; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.integrity { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.integrity h2 { margin-bottom: 18px; }
.integrity p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan-soft);
  font: 12px var(--mono);
  text-decoration: none;
}
.text-link:hover { color: var(--amber); }
pre { margin: 0; padding: 24px; overflow-x: auto; border: 1px solid var(--border); background: #030a12; color: var(--cyan-soft); font: 12px/1.7 var(--mono); }

footer {
  width: min(1240px, calc(100% - 48px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: 0.08em;
}

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; min-height: auto; padding: 84px 0 40px; }
  .scope { width: min(390px, 78vw); justify-self: center; }
  .download-card { grid-column: span 3; }
  .download-card.featured { grid-column: span 6; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-inline: 20px; }
  .nav { height: 72px; }
  .nav-link { display: none; }
  .hero-content { padding-top: 60px; }
  .scope { width: 82vw; }
  main, footer { width: min(100% - 32px, 1240px); }
  .section { padding: 72px 0; }
  .section-heading, .integrity { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .download-grid { display: grid; grid-template-columns: 1fr; }
  .download-card, .download-card.featured, .external-card { grid-column: 1; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  footer { padding: 24px 0; align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
