:root {
  color-scheme: dark;
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --background: #080b12;
  --surface: rgba(17, 23, 35, 0.78);
  --surface-strong: #111827;
  --border: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(125, 211, 252, 0.28);
  --text: #f5f7fb;
  --muted: #98a3b7;
  --blue: #60a5fa;
  --cyan: #67e8f9;
  --purple: #a78bfa;
  --green: #6ee7b7;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(59, 130, 246, 0.13), transparent 34rem),
    linear-gradient(180deg, #090d16 0%, var(--background) 54%, #070a10 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  color: #08111f;
  background: white;
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.ambient {
  position: fixed;
  z-index: -2;
  width: 26rem;
  height: 26rem;
  pointer-events: none;
  filter: blur(95px);
  opacity: 0.12;
  border-radius: 50%;
}

.ambient-one { top: 8rem; left: -12rem; background: var(--blue); }
.ambient-two { right: -13rem; bottom: 2rem; background: var(--purple); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.brand img { border-radius: 10px; box-shadow: 0 9px 24px rgba(59, 130, 246, 0.2); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.text-link, .footer-links a { color: var(--muted); transition: color 160ms ease; }
.text-link:hover, .footer-links a:hover { color: var(--text); }

.account-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 210px;
  padding: 9px 13px;
  overflow: hidden;
  color: #dbeafe;
  cursor: pointer;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 999px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button:hover { background: rgba(59, 130, 246, 0.14); border-color: rgba(125, 211, 252, 0.38); }
.account-button.is-authenticated { color: #d1fae5; background: rgba(16, 185, 129, 0.08); border-color: rgba(110, 231, 183, 0.2); }
.account-indicator { flex: 0 0 auto; width: 7px; height: 7px; background: #64748b; border-radius: 50%; }
.account-indicator.is-active { background: var(--green); box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.08); }

.language-switch {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.language-switch:hover { border-color: rgba(148, 163, 184, 0.35); }
.language-switch .language-active { color: white; font-weight: 700; }
.language-divider { opacity: 0.34; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.78fr);
  gap: clamp(44px, 7vw, 98px);
  align-items: center;
  min-height: 690px;
  padding: 86px 0 70px;
}

.hero-copy { min-width: 0; }

.release-pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 7px 12px;
  color: #bbd7fb;
  font-size: 13px;
  background: rgba(30, 64, 175, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 999px;
}

.release-pill strong { color: #eaf3ff; font-weight: 650; }
.pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(110, 231, 183, 0.08); }

h1 {
  max-width: 720px;
  margin: 26px 0 20px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

h1 span { display: block; }
.gradient-text { color: transparent; background: linear-gradient(98deg, #f8fafc 6%, #93c5fd 45%, #a78bfa 92%); background-clip: text; -webkit-background-clip: text; }

.hero-description {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
}

.download-actions { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; margin-top: 36px; }
.account-note { max-width: 620px; margin: 16px 0 0; color: #7f8ca1; font-size: 13px; line-height: 1.6; }

.primary-button {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-width: 330px;
  padding: 15px 17px;
  color: #08111f;
  background: linear-gradient(135deg, #f8fafc, #dbeafe);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(59, 130, 246, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:not(.is-disabled):hover { transform: translateY(-2px); box-shadow: 0 20px 52px rgba(59, 130, 246, 0.28); }
.primary-button strong, .primary-button small { display: block; }
.primary-button strong { font-size: 15px; }
.primary-button small { margin-top: 4px; color: #53627a; font-size: 11px; }
.primary-button small span + span::before { content: " · "; }
.windows-mark { font-size: 25px; line-height: 1; }
.button-arrow { font-size: 19px; }

.secondary-link { display: inline-flex; gap: 9px; align-items: center; color: #cbd5e1; font-size: 14px; }
.secondary-link:not(.is-disabled):hover { color: white; }
.is-disabled { pointer-events: none; opacity: 0.5; }

.load-status, .platform-note { min-height: 22px; margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.load-status { display: flex; gap: 9px; align-items: center; }
.load-status.is-error { color: #fca5a5; }
.status-spinner { width: 13px; height: 13px; border: 2px solid rgba(148, 163, 184, 0.25); border-top-color: var(--blue); border-radius: 50%; animation: spin 800ms linear infinite; }
.load-status.is-ready { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.release-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20, 28, 43, 0.92), rgba(13, 18, 29, 0.84));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.release-card::before {
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.65), transparent);
}

.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.card-topline h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -0.03em; }
.status-badge { padding: 6px 10px; color: #a7f3d0; font-size: 11px; background: rgba(16, 185, 129, 0.09); border: 1px solid rgba(110, 231, 183, 0.14); border-radius: 999px; }

.release-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0; padding: 20px 0; border-block: 1px solid var(--border); }
.release-meta div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.release-meta dt { color: var(--muted); font-size: 12px; }
.release-meta dd { margin: 7px 0 0; color: #e2e8f0; font-size: 14px; }

.checksum-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 15px; background: rgba(3, 7, 18, 0.45); border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 12px; }
.checksum-panel code { display: block; max-width: 100%; margin-top: 7px; overflow: hidden; color: #b6c3d7; font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { padding: 7px 10px; color: #cbd5e1; cursor: pointer; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 8px; font-size: 11px; }
.copy-button:disabled { cursor: default; opacity: 0.45; }

.release-notes { margin-top: 24px; }
.release-notes h3 { margin: 0 0 13px; font-size: 13px; }
.release-notes ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.release-notes li { position: relative; padding-left: 17px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.release-notes li::before { position: absolute; top: 0.68em; left: 2px; width: 4px; height: 4px; content: ""; background: var(--blue); border-radius: 50%; box-shadow: 0 0 10px var(--blue); }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); }
.trust-grid article { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 30px 26px; }
.trust-grid article + article { border-left: 1px solid var(--border); }
.feature-icon { display: grid; width: 32px; height: 32px; place-items: center; color: #bfdbfe; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(96, 165, 250, 0.15); border-radius: 9px; }
.trust-grid h2 { margin: 1px 0 7px; font-size: 14px; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; min-height: 120px; color: #727e91; font-size: 12px; }
.footer-brand { opacity: 0.72; }
.footer-links { display: flex; gap: 18px; justify-content: flex-end; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.verification-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  color: var(--text);
  background: rgba(13, 18, 29, 0.97);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}

.verification-dialog::backdrop { background: rgba(2, 6, 15, 0.76); backdrop-filter: blur(8px); }
.dialog-shell { position: relative; display: grid; justify-items: center; padding: 34px; text-align: center; }
.dialog-close { position: absolute; top: 13px; right: 13px; display: grid; width: 32px; height: 32px; place-items: center; color: var(--muted); cursor: pointer; background: transparent; border: 0; border-radius: 8px; font-size: 22px; }
.dialog-close:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.dialog-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; color: #dbeafe; background: rgba(59, 130, 246, 0.13); border: 1px solid rgba(96, 165, 250, 0.2); border-radius: 14px; font-size: 23px; }
.dialog-shell h2 { margin: 0; font-size: 21px; }
.dialog-shell > p { margin: 10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.dialog-account { display: inline-flex; gap: 8px; align-items: center; margin: -8px 0 18px; padding: 8px 11px; color: #b8c6d9; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; }
.captcha-slot { display: flex; min-height: 65px; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 12px; }
.verification-status { min-height: 20px; margin: 12px 0 !important; color: #fca5a5 !important; }
.verification-status.is-success { color: #a7f3d0 !important; }
.verify-button { width: 100%; padding: 12px 16px; color: #08111f; cursor: pointer; background: linear-gradient(135deg, #f8fafc, #dbeafe); border: 0; border-radius: 11px; font-weight: 700; }
.verify-button:disabled { cursor: default; opacity: 0.42; }
.dialog-shell small { margin-top: 13px; color: #6f7b8e; font-size: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero-copy { text-align: center; }
  .hero-description { margin-inline: auto; }
  .download-actions { justify-content: center; }
  .load-status { justify-content: center; }
  .release-card { max-width: 620px; margin-inline: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article + article { border-top: 1px solid var(--border); border-left: 0; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 70px; }
  .header-actions { gap: 12px; }
  .account-button { max-width: 128px; }
  .text-link { display: none; }
  .hero { gap: 44px; padding: 52px 0; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .primary-button { width: 100%; min-width: 0; text-align: left; }
  .release-card { padding: 21px; border-radius: 18px; }
  .release-meta { grid-template-columns: 1fr; gap: 16px; }
  .release-meta div + div { padding-top: 16px; padding-left: 0; border-top: 1px solid var(--border); border-left: 0; }
  footer { grid-template-columns: 1fr; justify-items: center; padding: 28px 0; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
