*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0c0c0e;
  --bg-card: #131316;
  --bg-card-hover: #18181c;
  --border: #242428;
  --border-subtle: #1a1a1e;
  --text: #ededf0;
  --text-muted: #888896;
  --accent: #898cfc;
  --accent-dim: #6467d4;
  --accent-glow: rgba(137, 140, 252, 0.12);
  --accent-glow-strong: rgba(137, 140, 252, 0.22);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Nav ──────────────────────────────────────────────── */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-logo-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}

.btn-nav {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-nav:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-card);
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow-strong), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 2rem;
  box-shadow:
    0 0 0 1px rgba(137,140,252,0.15),
    0 8px 32px rgba(0,0,0,0.4),
    0 0 60px var(--accent-glow);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.125rem;
  background: linear-gradient(170deg, #ffffff 50%, #6a6a7a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0c0c0e;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  transition: background 0.15s, box-shadow 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: #a8abff;
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.version-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.hero-platforms {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Downloads ────────────────────────────────────────── */

.downloads {
  padding: 5rem 2rem 6rem;
  max-width: 960px;
  margin: 0 auto;
}

.downloads-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.downloads-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.downloads-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.downloads-header strong {
  color: var(--text);
  font-weight: 600;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
  border-color: rgba(137,140,252,0.3);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px rgba(137,140,252,0.08), 0 4px 20px rgba(0,0,0,0.3);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.platform-icon {
  width: 1.875rem;
  height: 1.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.platform-icon svg { width: 100%; height: 100%; }

.platform-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.platform-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.575rem 0.875rem;
  border-radius: 8px;
  background: var(--accent);
  color: #0c0c0e;
  transition: background 0.15s, transform 0.1s;
}

.btn-download:hover {
  background: #a8abff;
  transform: translateY(-1px);
}

.btn-download:active { transform: translateY(0); }

.btn-download.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-download.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--text-muted);
}

.ext {
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.55;
  font-family: ui-monospace, monospace;
}

/* ── Footer ───────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.75rem 2rem;
  text-align: center;
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }

  .hero { padding: 4rem 1.25rem 3rem; }

  .hero-icon { width: 72px; height: 72px; border-radius: 16px; }

  h1 { font-size: 1.875rem; }

  .downloads { padding: 3rem 1.25rem 4rem; }

  .platform-grid { grid-template-columns: 1fr; }
}
