:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #17172a;
  --muted: #66677e;
  --purple: #6756e8;
  --purple-deep: #4f3fc7;
  --cyan: #0e9fc4;
  --line: #dedcf0;
  --surface: rgba(255,255,255,.92);
  --soft: #f5f4fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f5f4fb; color: var(--ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 64px; }
.source-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 28px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 800; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(82,66,202,.2)); }
.version-badge { padding: 7px 11px; border: 1px solid #d7d2ff; border-radius: 999px; background: #fff; color: var(--purple-deep); font-size: 12px; font-weight: 750; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 360px);
  align-items: center;
  min-height: 430px;
  margin-top: 28px;
  padding: clamp(30px, 6vw, 74px);
  overflow: hidden;
  border: 1px solid #dcd8f4;
  border-radius: 32px;
  background: #eeecfb;
  box-shadow: 0 28px 70px rgba(53, 45, 112, 0.1);
}
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 10px; color: var(--purple-deep); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(45px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.75; }
.hero-logo { width: 100%; max-width: 340px; justify-self: center; filter: drop-shadow(0 30px 35px rgba(74,55,190,.24)); }
.release-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 27px; padding: 9px 12px; border: 1px solid #d8d3f6; border-radius: 12px; background: rgba(255,255,255,.7); color: var(--muted); font-size: 13px; }
.release-line strong { color: var(--purple-deep); }

.downloads, .install { margin-top: 74px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; }
.release-status { margin: 0; color: var(--muted); font-size: 13px; }
.release-status.error { color: #bd263b; }

.browser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.browser-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(40, 36, 82, .06);
}
.browser-card.recommended { border-color: var(--purple); box-shadow: 0 18px 40px rgba(80,62,201,.14); }
.browser-card > img { width: 54px; height: 54px; object-fit: contain; }
.browser-card h3 { margin: 0 0 6px; font-size: 18px; }
.browser-card p { margin: 0; color: var(--muted); font-size: 12px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 11px; background: var(--purple); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.download-button:hover { background: var(--purple-deep); }
.download-button[aria-disabled="true"] { pointer-events: none; opacity: .55; }

.browser-tabs { display: flex; gap: 8px; margin-bottom: 15px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #eae8f5; }
.browser-tabs button { flex: 1; min-height: 39px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; }
.browser-tabs button[aria-selected="true"] { background: #fff; color: var(--purple-deep); box-shadow: 0 5px 15px rgba(56,48,106,.1); }
.guide-panel { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.guide-visual { display: grid; place-items: center; align-content: center; min-height: 220px; border-radius: 18px; background: var(--soft); color: var(--purple-deep); font-size: 22px; font-weight: 850; }
.guide-visual img { width: 126px; height: 126px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(83,65,202,.2)); }
.guide-panel ol { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.guide-panel li { position: relative; min-height: 58px; padding: 11px 12px 11px 52px; border-bottom: 1px solid #eceaf5; counter-increment: guide; }
.guide-panel li:last-child { border-bottom: 0; }
.guide-panel li::before { content: counter(guide); position: absolute; left: 5px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--purple); color: #fff; font-weight: 800; }
.guide-panel strong, .guide-panel span { display: block; }
.guide-panel strong { margin-bottom: 5px; font-size: 15px; }
.guide-panel span { color: var(--muted); font-size: 13px; line-height: 1.65; }
code { padding: 2px 6px; border-radius: 6px; background: #eceaf7; color: #3f358f; font-family: "SFMono-Regular", Consolas, monospace; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-logo { width: min(270px, 72vw); margin-top: 28px; grid-row: 1; }
  .browser-grid { grid-template-columns: 1fr; }
  .guide-panel { grid-template-columns: 1fr; }
  .guide-visual { min-height: 170px; }
}

@media (max-width: 560px) {
  main { width: min(100% - 20px, 1180px); }
  .brand-bar { min-height: 64px; }
  .hero { margin-top: 14px; padding: 30px 20px; border-radius: 24px; }
  h1 { font-size: 44px; }
  .downloads, .install { margin-top: 50px; }
  .section-heading { align-items: start; flex-direction: column; }
  .browser-card { grid-template-columns: 48px 1fr; padding: 18px; }
  .browser-card > img { width: 46px; height: 46px; }
  .download-button { grid-column: 1 / -1; width: 100%; }
  .browser-tabs { overflow-x: auto; }
  .browser-tabs button { min-width: 90px; }
  .guide-panel { padding: 18px; }
}
