:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #f59e0b;
  --surface: #0a0f1c;
  --surface-elevated: #111827;
  --surface-card: #1a2336;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* === Hero === */
.hero {
  background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.2), transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(245, 158, 11, 0.15), transparent 50%),
              var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; }
.logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.5px;
}
.logo.small { width: 28px; height: 28px; font-size: 0.75rem; }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.hero-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}
.accent {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.6);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(59, 130, 246, 0.8);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* === Features === */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.features h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -1px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.2s;
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* === Download === */
.download {
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.08));
  padding: 6rem 2rem;
}
.download-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.download h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}
.download > .download-inner > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.download code {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
}

.download-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s;
  text-align: left;
}
.download-card.primary {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(245, 158, 11, 0.05));
}
.download-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(59, 130, 246, 0.4);
}
.download-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.download-text { flex: 1; }
.download-text strong { display: block; font-size: 1.05rem; }
.download-text span { font-size: 0.85rem; color: var(--text-muted); }
.download-arrow { font-size: 1.5rem; color: var(--primary); }

.changelog {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}
.changelog summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.changelog ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}
.changelog li { color: var(--text-muted); font-size: 0.9rem; padding: 0.15rem 0; }

.system-requirements {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
}
.system-requirements h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.system-requirements ul { list-style: none; }
.system-requirements li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.system-requirements li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.muted { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .hero-content { padding: 2rem 1rem 4rem; }
  .features, .download { padding: 4rem 1rem; }
  .hero-stats { gap: 1.5rem; }
}
