:root{
  --burgundy-950:#3e0717;
  --burgundy-900:#52091d;
  --burgundy-800:#6a0d28;
  --burgundy-700:#7d1533;
  --gold-600:#b98b20;
  --gold-500:#d7ad2e;
  --gold-300:#ead27d;
  --paper:#fbf8f3;
  --paper-2:#f6f0e8;
  --surface:#ffffff;
  --surface-soft:#fcfaf7;
  --ink:#251a1e;
  --muted:#73686c;
  --line:#eadfda;
  --success:#2f6e53;
  --shadow-sm:0 8px 24px rgba(58,15,30,.06);
  --shadow-md:0 20px 50px rgba(58,15,30,.09);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 85% -10%,rgba(215,173,46,.11),transparent 28rem),
    linear-gradient(180deg,#fff 0%,var(--paper) 55%,#fff 100%);
  color:var(--ink);
  font-family:Tahoma,Arial,sans-serif;
  line-height:1.95;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--burgundy-800)}
img{max-width:100%}
.wrap{width:min(1040px,calc(100% - 32px));margin:auto}

/* Shared header */
.top{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.93);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(111,16,38,.08);
}
.topin{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:var(--ink);
  text-decoration:none;
}
.brand-logo{
  width:48px;
  height:48px;
  flex:0 0 auto;
  border-radius:15px;
  box-shadow:0 8px 20px rgba(74,7,24,.16);
}
.brand-copy{min-width:0}
.name{
  display:block;
  color:var(--burgundy-900);
  font-size:22px;
  line-height:1.1;
  font-weight:900;
}
.sub{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.nav{display:flex;gap:7px;flex-wrap:wrap}
.nav a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:999px;
  color:#665b5f;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  transition:.18s ease;
}
.nav a:hover{background:#f8f2f3;color:var(--burgundy-800)}
.nav a.active{
  color:var(--burgundy-900);
  background:#fff6df;
  border-color:#eddca5;
}

main{padding:40px 0 68px}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  padding:34px;
  margin-bottom:26px;
  border:1px solid var(--line);
  border-radius:28px;
  background:
    radial-gradient(circle at 8% 10%,rgba(215,173,46,.11),transparent 18rem),
    linear-gradient(145deg,#fff,#fffaf2);
  box-shadow:var(--shadow-sm);
}
.hero::after{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  left:-78px;
  bottom:-96px;
  border:1px solid rgba(185,139,32,.18);
  border-radius:50%;
  pointer-events:none;
}
.eyebrow{
  color:var(--gold-600);
  font-size:13px;
  font-weight:900;
  letter-spacing:.01em;
}
h1{
  position:relative;
  z-index:1;
  margin:4px 0 12px;
  color:var(--burgundy-950);
  font-size:clamp(29px,5vw,45px);
  line-height:1.4;
}
h2{
  margin:34px 0 10px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  color:var(--burgundy-800);
  font-size:21px;
  line-height:1.5;
}
h3{margin:24px 0 6px;color:var(--burgundy-900);font-size:17px}
.lead{position:relative;z-index:1;max-width:820px;margin:0;color:var(--muted);font-size:16px}
.meta{display:flex;gap:8px 18px;flex-wrap:wrap;margin-top:17px;color:#82767a;font-size:13px}

/* Content */
article{max-width:920px;margin:auto}
article>p,article>ul,article>ol{color:#51484b}
article li+li{margin-top:5px}
.note{
  margin:22px 0;
  padding:16px 18px;
  border:1px solid #eee2c8;
  border-inline-start:4px solid var(--gold-500);
  border-radius:15px;
  background:#fff9e9;
  color:#4b403b;
}
.note strong{color:var(--burgundy-900)}
.danger{border-color:#f0d9de;border-inline-start-color:#a42b48;background:#fff7f8}
.small-note{
  margin-top:14px;
  padding:11px 13px;
  border-radius:12px;
  background:#f8f5f2;
  color:var(--muted);
  font-size:12px;
}

.btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.btn{
  display:inline-flex;
  min-height:48px;
  align-items:center;
  justify-content:center;
  padding:0 20px;
  border:1px solid var(--burgundy-800);
  border-radius:14px;
  background:var(--burgundy-800);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 9px 22px rgba(106,13,40,.14);
}
.btn.alt{background:#fff;color:var(--burgundy-800);box-shadow:none}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}
.legal-card{
  display:flex;
  min-height:142px;
  flex-direction:column;
  gap:7px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  box-shadow:var(--shadow-sm);
  transition:.18s ease;
}
.legal-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.legal-card strong{color:var(--burgundy-800);font-size:17px}
.legal-card span{color:var(--muted);font-size:13px}

/* Download page */
.download-shell{width:min(760px,calc(100% - 28px));margin:auto}
.download-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:18px;
  padding:28px;
  border:1px solid #e9ded8;
  border-radius:28px;
  background:
    radial-gradient(circle at 8% 8%,rgba(215,173,46,.18),transparent 17rem),
    linear-gradient(145deg,#fff,#fff9ed);
  box-shadow:var(--shadow-md);
}
.download-hero::after{
  content:"";
  position:absolute;
  width:210px;
  height:210px;
  left:-100px;
  bottom:-125px;
  border:1px solid rgba(106,13,40,.08);
  border-radius:50%;
}
.download-logo{
  position:relative;
  z-index:1;
  width:78px;
  height:78px;
  flex:0 0 auto;
  border-radius:22px;
  box-shadow:0 14px 30px rgba(74,7,24,.18);
}
.download-hero-copy{position:relative;z-index:1;min-width:0}
.download-hero .eyebrow{margin:0 0 3px}
.download-hero h1{margin:0;font-size:clamp(27px,7vw,39px)}
.download-hero p{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.8}
.release-card{
  margin-top:16px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.recommended{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:12px;
  padding:6px 10px;
  border:1px solid #efdc9d;
  border-radius:999px;
  background:#fff7db;
  color:var(--burgundy-800);
  font-size:11px;
  font-weight:800;
}
.recommended::before{content:"✓";display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--burgundy-800);color:#fff;font-size:10px}
.release-card h2{margin:0;padding:0;border:0;color:var(--burgundy-900);font-size:23px}
.release-card>p{margin:8px 0 18px;color:var(--muted);font-size:14px}
.download-primary,.download-secondary{
  display:flex;
  width:100%;
  min-height:56px;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 18px;
  border-radius:16px;
  text-decoration:none;
  font-weight:900;
}
.download-primary{background:var(--burgundy-800);color:#fff;box-shadow:0 12px 25px rgba(106,13,40,.18)}
.download-primary::before{content:"↓";display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--gold-300);color:var(--burgundy-950);font-size:18px}
.download-secondary{margin-top:10px;border:1px solid #dfcfd4;background:#fff;color:var(--burgundy-800);font-size:13px}
.meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.meta-item{padding:11px 10px;border:1px solid #eee5e1;border-radius:13px;background:var(--surface-soft);text-align:center}
.meta-item strong,.meta-item span{display:block}
.meta-item strong{color:var(--burgundy-900);font-size:12px}
.meta-item span{margin-top:2px;color:var(--muted);font-size:12px}
.support-card{margin-top:12px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:#fff}
.support-card summary{cursor:pointer;color:var(--burgundy-800);font-weight:800;font-size:13px}
.support-card p{margin:10px 0 0;color:var(--muted);font-size:13px}
.site-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;margin:20px 0 0}
.site-links a{color:var(--burgundy-800);font-size:12px;text-underline-offset:4px}
.footer-note{margin:16px 0 0;color:#91868a;text-align:center;font-size:11px}

/* Footer */
footer{border-top:1px solid var(--line);background:#faf7f3;color:var(--muted)}
.foot{padding:22px 0 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px}
.developer{font-weight:800;color:var(--burgundy-800)}

@media(max-width:760px){
  .top{position:static}
  .topin{align-items:flex-start;flex-direction:column;padding:16px 0}
  .sub{white-space:normal}
  .nav{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .nav a{justify-content:center;padding:0 8px;text-align:center;font-size:11px}
  main{padding-top:24px}
  .hero{padding:23px;border-radius:22px}
  .cards{grid-template-columns:1fr}
  .btn{width:100%}
  .download-shell{width:min(100% - 20px,760px)}
  .download-hero{padding:20px 17px;border-radius:22px;align-items:flex-start}
  .download-logo{width:64px;height:64px;border-radius:18px}
  .download-hero p{font-size:12px}
  .release-card{padding:20px 16px;border-radius:21px}
  .meta-grid{grid-template-columns:1fr}
  .meta-item{display:flex;align-items:center;justify-content:space-between;text-align:right;padding-inline:13px}
}

@media(max-width:430px){
  .wrap{width:min(100% - 22px,1040px)}
  .brand-logo{width:44px;height:44px;border-radius:14px}
  .name{font-size:20px}
  .nav a{min-height:36px}
  h1{font-size:29px}
  h2{font-size:19px}
  .download-hero{gap:13px}
}
