/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:     #667eea;
  --purple-dark:#5a67d8;
  --violet:     #764ba2;
  --text:       #1a202c;
  --muted:      #4a5568;
  --light:      #718096;
  --border:     #e2e8f0;
  --bg-off:     #f8fafc;
  --white:      #ffffff;
  --green:      #38a169;
  --radius:     10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover { color: var(--purple); }

.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--purple-dark) !important; color: var(--white) !important; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 96px 24px 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero-download-btn {
  display: none; /* shown by JS after release loads */
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--white);
  color: var(--purple);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.hero-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  color: var(--purple-dark);
}

.hero-btn-main { font-size: 1rem; }
.hero-btn-sub  { font-size: 0.75rem; font-weight: 400; opacity: 0.75; }

.hero-all-platforms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.hero-all-platforms:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.hero-version {
  margin-top: 20px;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ── Section wrapper ──────────────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-off); }

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 48px;
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 6px 24px rgba(102,126,234,0.12);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── How It Works ─────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: steps;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Security strip ───────────────────────────────────────────────────────── */
.security-strip {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}

.security-strip h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.security-strip p {
  font-size: 0.95rem;
  opacity: 0.75;
  max-width: 560px;
  margin: 0 auto 28px;
}

.security-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ── Download section ─────────────────────────────────────────────────────── */
#download { scroll-margin-top: 70px; }

.download-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e9f0ff;
  color: var(--purple-dark);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.release-note {
  font-size: 0.82rem;
  color: var(--light);
}

.release-note a { color: var(--purple); }
.release-note a:hover { text-decoration: underline; }

#download-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.dl-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.dl-group--detected {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.dl-group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.dl-os-icon { font-size: 1.1rem; }

.dl-badge {
  margin-left: auto;
  background: var(--purple);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 10px;
}

.dl-btn {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
  gap: 8px;
  color: var(--text);
}

.dl-btn:first-of-type { border-top: none; }
.dl-btn:hover { background: #f0f4ff; }

.dl-btn--primary {
  background: #f0f4ff;
  font-weight: 600;
}

.dl-btn-label {
  font-size: 0.88rem;
  flex: 1;
}

.dl-btn-note {
  display: block;
  font-size: 0.75rem;
  color: var(--light);
  font-weight: 400;
  margin-top: 2px;
}

.dl-arrow {
  color: var(--purple);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.download-error {
  color: var(--muted);
  font-size: 0.9rem;
}

.download-error a { color: var(--purple); text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--light);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-brand img { width: 22px; height: 22px; border-radius: 4px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--purple); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 56px 16px; }
  .hero    { padding: 64px 16px 56px; }

  .nav-links .nav-link-hide { display: none; }

  .hero-actions { flex-direction: column; align-items: center; }

  #download-buttons { grid-template-columns: 1fr; }
}
