  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #07070f; --surface: #0f0f1e; --card: #13132a;
    --border: rgba(255,255,255,0.07); --accent: #ff3c6e; --accent2: #ff8c00;
    --glow: #ff3c6e33; --text: #f0eeff; --muted: #8888aa; --cyan: #25f4ee;
  }
  body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; min-height: 100vh; }
  body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 40% at 20% 10%, rgba(255,60,110,0.10) 0%, transparent 60%),
                radial-gradient(ellipse 50% 30% at 80% 80%, rgba(37,244,238,0.06) 0%, transparent 60%);
  }

  /* ── HERO ── */
  .hero { text-align: center; padding: 80px 40px 60px; position: relative; z-index: 1; }
  .section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
  h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; margin-bottom: 16px; }
  .hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto 48px; font-weight: 300; }

  /* ── DOWNLOAD CARD ── */
  .download-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; position: relative; z-index: 1; }

  .download-card {
    background: var(--card); border: 1px solid rgba(255,60,110,0.25);
    border-radius: 20px; padding: 40px 44px;
    box-shadow: 0 0 60px rgba(255,60,110,0.07);
    position: relative; overflow: hidden;
  }
  .download-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,60,110,0.05) 0%, transparent 60%);
  }

  .version-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; position: relative; }
  .version-info h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 6px; }
  .version-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  .vbadge {
    padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
  }
  .vbadge.latest { background: rgba(37,244,238,0.12); border: 1px solid rgba(37,244,238,0.3); color: var(--cyan); }
  .vbadge.stable { background: rgba(100,220,100,0.12); border: 1px solid rgba(100,220,100,0.3); color: #6dc96d; }

  .version-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }
  .meta-row { font-size: 0.82rem; color: var(--muted); }
  .meta-row strong { color: var(--text); }

  .divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

  /* release note */
  .release-note { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; font-size: 0.88rem; color: var(--muted); }
  .release-note strong { color: var(--text); }

  /* download btn */
  .btn-download {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(135deg, var(--accent), #c4183c);
    color: #fff; border: none; border-radius: 10px;
    padding: 18px 36px; width: 100%;
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.1rem;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 0 40px var(--glow);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    position: relative;
  }
  .btn-download:hover { transform: translateY(-2px); box-shadow: 0 0 60px var(--glow); }
  .btn-download:disabled, .btn-download.loading { opacity: 0.6; cursor: not-allowed; transform: none; }
  .btn-download .dl-icon { font-size: 1.3rem; }
  .btn-download .dl-label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .btn-download .dl-main { font-size: 1rem; font-weight: 700; }
  .btn-download .dl-sub { font-size: 0.75rem; font-weight: 400; opacity: 0.8; }

  .sys-req { display: flex; justify-content: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
  .sys-item { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; }

  /* ── CHANGELOG PREVIEW ── */
  .changelog-preview { margin-top: 48px; }
  .changelog-preview h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
  .changelog-preview h3 a { color: var(--accent); font-size: 0.8rem; font-weight: 500; text-decoration: none; font-family: 'DM Sans', sans-serif; }
  .changelog-preview h3 a:hover { text-decoration: underline; }

  .change-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .change-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 8px; font-size: 0.88rem; color: #c8c8e0;
  }
  .change-list li::before { content: '✦'; color: var(--accent); font-size: 0.6rem; margin-top: 4px; flex-shrink: 0; }

  /* ── VERSION HISTORY MINI ── */
  .older-versions { margin-top: 48px; }
  .older-versions h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
  .version-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 8px; flex-wrap: wrap;
  }
  .version-row .ver { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; min-width: 80px; }
  .version-row .date-tag { color: var(--muted); font-size: 0.82rem; }
  .version-row .type-tag {
    padding: 3px 10px; border-radius: 100px; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
  }
  .type-tag.major { background: rgba(255,60,110,0.15); border: 1px solid rgba(255,60,110,0.3); color: var(--accent); }
  .type-tag.minor { background: rgba(255,140,0,0.12); border: 1px solid rgba(255,140,0,0.3); color: var(--accent2); }
  .type-tag.patch { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--muted); }
  .version-row .spacer { flex: 1; }
  .btn-dl-small {
    background: transparent; border: 1px solid var(--border); color: var(--muted);
    padding: 6px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 500;
    cursor: pointer; text-decoration: none; transition: all 0.2s; font-family: 'DM Sans', sans-serif;
  }
  .btn-dl-small:hover { border-color: var(--accent); color: var(--text); }

  /* loading skeleton */
  .skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; height: 18px; margin-bottom: 8px; }
  @keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

  footer { border-top: 1px solid var(--border); padding: 32px 60px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.8rem; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
  footer a { color: var(--muted); text-decoration: none; }
  footer a:hover { color: var(--text); }


  @media(max-width:768px) { .download-card { padding: 28px 20px; } footer { padding: 24px 20px; } }
