:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-hover: #1f2937;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --success: #3fb950;
  --radius: 10px;
  --max-width: 1100px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-elevated: #f6f8fa;
    --bg-hover: #eaeef2;
    --border: #d0d7de;
    --text: #1f2328;
    --text-muted: #59636e;
    --accent: #0969da;
    --accent-hover: #1f6feb;
    --success: #1a7f37;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: rgba(255, 255, 255, 0.85);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(88, 166, 255, 0.08), transparent 60%);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), #a371f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.dot {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.btn-download {
  width: 100%;
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
  padding: 0.8rem 1rem;
  text-align: left;
  justify-content: space-between;
}

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

.btn-download .download-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-download .download-name {
  font-weight: 600;
}

.btn-download .download-size {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.btn-download .download-arrow {
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.status-pill {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(127, 127, 127, 0.15);
  border: 1px solid rgba(127, 127, 127, 0.3);
  border-radius: 999px;
  vertical-align: middle;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Download */
.download-version {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.release-date {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

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

.platform {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.platform-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.platform-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.platform-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.platform-downloads .loading,
.platform-downloads .empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.download-fallback {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Bottom CTA */
.cta-bottom {
  text-align: center;
  padding: 5rem 1.5rem 6rem;
}

.cta-bottom p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 4rem 1.5rem 2rem;
  }

  section {
    padding: 3rem 1rem;
  }
}
