:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --card: #ffffff;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --orange: #ea580c;
  --orange-soft: #ffedd5;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}
.brand-mark svg { fill: currentColor; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
}
.brand-text small {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}

.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .15s ease, opacity .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .9; }

main { width: min(1160px, 92vw); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 72px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  color: var(--ink-soft);
}
.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: var(--green-soft);
  z-index: -1;
  border-radius: 4px;
}

.lead {
  max-width: 560px;
  margin: 0 0 26px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24); }
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-small { padding: 8px 14px; font-size: 13px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.hero-meta li { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.hero-meta strong { color: var(--ink); font-size: 14px; }

.hero-card {
  background: #0b1220;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 10px;
}
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.window-bar span:nth-child(1) { background: #f87171; }
.window-bar span:nth-child(2) { background: #fbbf24; }
.window-bar span:nth-child(3) { background: #34d399; }
.window-bar b { margin-left: 8px; font-size: 11px; color: #94a3b8; font-weight: 500; }

.mock {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  min-height: 320px;
  padding: 12px;
  border-radius: 12px;
  background: #111a2c;
  border: 1px solid #1e293b;
}
.mock-side { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.mock-line { height: 9px; border-radius: 5px; background: #1e293b; }
.mock-line.w70 { width: 70%; } .mock-line.w55 { width: 55%; } .mock-line.w80 { width: 80%; }
.mock-line.w45 { width: 45%; } .mock-line.w65 { width: 65%; }
.mock-main { display: flex; flex-direction: column; gap: 9px; padding: 8px; }
.mock-block {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: #e2e8f0;
  border-left: 3px solid currentColor;
  background: #16233a;
}
.mock-block.green { color: #4ade80; }
.mock-block.blue { color: #60a5fa; }
.mock-block.purple { color: #c084fc; }
.mock-block.orange { color: #fb923c; }
.mock-block.gray { color: #94a3b8; }

.section { padding: clamp(48px, 7vw, 84px) 0; }

.section-head { max-width: 680px; margin-bottom: 34px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
}
.section-head h2, .download-head h2, .contact-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-head p, .contact-card p { margin: 0; color: var(--ink-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.card h3 { margin: 14px 0 6px; font-size: 17px; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.icon-green { background: var(--green-soft); color: var(--green); }
.icon-blue { background: var(--blue-soft); color: var(--blue); }
.icon-purple { background: var(--purple-soft); color: var(--purple); }
.icon-orange { background: var(--orange-soft); color: var(--orange); }

.download-section { padding-top: 10px; }
.download-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}
.download-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.download-head p { margin: 0; color: var(--muted); font-size: 14px; }
.os-badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 26px;
  padding: 24px 0;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.file-info { flex: 1; display: flex; flex-direction: column; }
.file-info strong { font-size: 15px; }
.file-info span { font-size: 12px; color: var(--muted); }
.hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

.download-side {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.side-title { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.sha, .cmd {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--ink-soft);
  word-break: break-all;
}
.download-side .btn { margin-top: 10px; }

.download-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.download-foot a { color: var(--blue); font-weight: 600; }

.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline h3 { margin: 0 0 4px; font-size: 16px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; }
.tag {
  align-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.tag-muted { background: #eef2f7; color: var(--muted); }

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 22px;
  background: var(--ink);
  color: #e2e8f0;
}
.contact-card h2 { color: #fff; }
.contact-card p { color: #94a3b8; }
.contact-card .eyebrow { color: #4ade80; }
.contact-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; align-self: center; }
.contact-list li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 14px; }
.contact-list span { color: #94a3b8; }
.contact-list b, .contact-list a { color: #fff; font-weight: 600; }

.footer { margin-top: 24px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-brand { font-weight: 700; color: var(--ink); }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover, .footer-legal a:hover { color: var(--ink); }
.footer-legal { display: flex; gap: 14px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; transform: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { padding: 12px 18px; }
  .nav-cta { padding: 8px 13px; font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
  .file-row { flex-wrap: wrap; }
  .file-row .btn { width: 100%; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .tag { justify-self: start; }
  .download-head { flex-direction: column; }
  .download-foot { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
