:root {
  --bg: #050507;
  --bg-soft: #0f1320;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #f6f7ff;
  --text-muted: #b4bdd6;
  --primary: #7b8dff;
  --accent: #64d3ff;
  --nav-height: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% -10%, #1a2140 0%, #0c1020 30%, var(--bg) 75%);
}

.container { width: min(1160px, 92%); margin: 0 auto; }
.desktop-only { display: flex; }
.mobile-only { display: none !important; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  transition: background .25s ease, box-shadow .25s ease;
}
.navbar.is-scrolled {
  background: rgba(10, 10, 15, 0.88);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 1rem;
}

.logo { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; color: var(--text); }
.logo-icon { width: 34px; height: 34px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: .97rem; font-weight: 700; }
.logo-sub { font-size: .67rem; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-link,
.mobile-link,
.footer-column a,
.footer-social a,
.fallback-link { color: var(--text-muted); text-decoration: none; }
.nav-link { font-size: .9rem; position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .2s ease;
}
.nav-link:hover,
.mobile-link:hover,
.footer-column a:hover,
.footer-social a:hover,
.fallback-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }
.menu-icon-close { display: none; }
.menu-toggle.active .menu-icon-open { display: none; }
.menu-toggle.active .menu-icon-close { display: inline-flex; }

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--nav-height));
  background: linear-gradient(180deg, rgba(12, 12, 20, 0.98), rgba(10, 10, 15, 0.98));
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s ease, opacity .24s ease, visibility .24s ease;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-content {
  width: min(1160px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 0 1.2rem;
}
.mobile-link {
  font-size: 1.05rem;
  font-weight: 600;
  padding: .82rem 0;
  border-bottom: 1px solid var(--surface-border);
  opacity: 0;
  transform: translateY(8px);
  transition: all .35s ease;
}
.mobile-menu.active .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: .04s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: .08s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: .12s; }

.hero { padding: 4.6rem 0 2.2rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: #9ca8ff;
}
h1 { margin: 0; font-size: clamp(1.9rem, 3.1vw, 2.85rem); line-height: 1.2; }
.lead { margin: 0.9rem 0 0; max-width: 720px; color: var(--text-muted); line-height: 1.75; }

main { padding: 0 0 4.2rem; }
.download-card {
  max-width: 760px;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, var(--surface) 100%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.download-card h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.95rem); }
.download-card p { margin: 0.7rem 0 0; color: var(--text-muted); line-height: 1.7; }
.status-row { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: 0.65rem; color: #c7d8ff; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.65s linear infinite;
}
.fallback-link { display: inline-block; margin-top: 1.1rem; color: #9cb4ff; text-underline-offset: 3px; }

.footer {
  margin-top: 3.8rem;
  border-top: 1px solid var(--surface-border);
  background: linear-gradient(180deg, #09090c, #060608);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
  padding: 1.8rem 0;
}
.footer-description { color: var(--text-muted); max-width: 420px; line-height: 1.65; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 1.1rem; }
.footer-column h4 { margin: .1rem 0 .6rem; font-size: .95rem; }
.footer-column a { display: block; margin: .4rem 0; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.4rem;
}
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: .88rem; }
.footer-social { display: flex; gap: .9rem; }
.footer-social a { font-size: .9rem; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

@media (max-width: 700px) {
  .download-card { padding: 1.4rem; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
