:root {
  --bg: #0b1018;
  --bg-soft: #121a24;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2f7;
  --dim: #97a3b3;
  --teal: #35d0b5;
  --teal-deep: #1c8474;
  --amber: #f0c489;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow-wrap: anywhere;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(11, 16, 24, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #04120f;
  font-size: 15px;
  font-weight: 700;
}

.brand-text { display: flex; align-items: baseline; gap: 8px; }
.brand-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  margin-left: auto;
  font-size: 14px;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(430px, 62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/hero.jpg") center 38% / cover no-repeat,
    linear-gradient(160deg, #131b26, #0b1018);
  filter: saturate(1.1) brightness(1.06);
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.9) 0%, rgba(8, 12, 18, 0.72) 34%, rgba(8, 12, 18, 0.12) 68%, rgba(8, 12, 18, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.45) 0%, rgba(8, 12, 18, 0) 46%, rgba(11, 16, 24, 1) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 48px);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.08;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.lead {
  max-width: 30em;
  margin: 20px 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
  color: #c8d3e0;
}

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

.hero-meta {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: linear-gradient(140deg, var(--teal), var(--teal-deep));
  color: #04120f;
  box-shadow: 0 10px 30px rgba(53, 208, 181, 0.22);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(53, 208, 181, 0.32); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.42); }

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 48px);
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.03em;
}

.section-head p {
  margin: 0 0 32px;
  color: var(--dim);
  font-size: 14.5px;
}

/* ---------- shots ---------- */

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

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.shot-wide { grid-column: span 2; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shot:hover img { transform: scale(1.02); }

.shot figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

/* ---------- feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  letter-spacing: 0.02em;
}

.card h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: middle;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: #aab6c5;
}

/* ---------- download ---------- */

.download-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 26px;
  border: 1px solid rgba(53, 208, 181, 0.28);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(53, 208, 181, 0.14), transparent 55%),
    linear-gradient(160deg, #101a22, #0c1219);
}

.download-main h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
}

.download-sub {
  margin: 0 0 22px;
  color: #b6c2d1;
  font-size: 14.5px;
}

.specs {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 18px;
  font-size: 13.5px;
}

.specs li {
  display: flex;
  gap: 8px;
  color: #cfd9e5;
}

.specs span {
  flex: none;
  width: 34px;
  color: var(--dim);
}

.specs b { font-weight: 600; color: var(--text); }

.btn-download {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 15px 22px;
  overflow: hidden;
}

.btn-download[disabled] {
  cursor: progress;
  opacity: 0.9;
}

.btn-download .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: rgba(4, 18, 15, 0.35);
  transition: width 0.15s linear;
}

.download-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.download-prev {
  margin: 10px 0 0;
  font-size: 12.5px;
}

.download-prev a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px dashed rgba(53, 208, 181, 0.5);
}
.download-prev a:hover { border-bottom-style: solid; }

.download-aside h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.04em;
}

.notes {
  margin: 0;
  padding-left: 18px;
  color: #a9b5c4;
  font-size: 13.5px;
  display: grid;
  gap: 10px;
}

/* ---------- changelog ---------- */

.changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.changelog li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  color: #b3bfcd;
}

.changelog b {
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.changelog li > span {
  display: grid;
  gap: 5px;
}

.changelog em {
  font-style: normal;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.changelog i {
  font-style: normal;
  position: relative;
  padding-left: 14px;
}
.changelog i::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(53, 208, 181, 0.65);
}

/* ---------- footer ---------- */

.footer {
  padding: 40px clamp(18px, 5vw, 48px) 56px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.footer p { margin: 4px 0; }
.footer-dim { opacity: 0.7; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .nav-links { display: none; }
  .shots { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }
  .download-card { grid-template-columns: 1fr; }
  .changelog li { grid-template-columns: 1fr; gap: 6px; }
  .hero-bg { background-position: center 20%; }
  .btn-download { max-width: none; }
}
