/* ─── Reset & Variables ──────────────────────────────────────────────── */
:root {
  --bg: #09090b;
  --bg-card: #131318;
  --bg-card-hover: #1a1a22;
  --bg-nav: rgba(9, 9, 11, 0.8);
  --border: #27272a;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;
  --purple-darker: #6d28d9;
  --purple-dim: rgba(139, 92, 246, 0.15);
  --green: #22c55e;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --orange: #f97316;
  --red: #ef4444;
  --yellow: #eab308;
  --pink: #ec4899;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-darker) 100%);
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ─── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

.nav-icon {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-lang {
  font-size: 12px !important;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  transition: all 0.15s;
}
.nav-lang:hover {
  color: var(--text) !important;
  border-color: var(--text-muted);
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.25);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.platform-icons {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Section Header ─────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Features ───────────────────────────────────────────────────────── */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: #3f3f46;
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  color: var(--icon-color);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Highlights ─────────────────────────────────────────────────────── */
.highlights {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.highlight {
  text-align: center;
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--purple-dim);
  color: var(--purple);
  margin: 0 auto 16px;
}

.highlight h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.highlight p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── How It Works ───────────────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  position: relative;
  padding: 0 8px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-darker) 100%);
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Download ───────────────────────────────────────────────────────── */
.download {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.04) 100%);
}

.version-badge {
  font-size: 0.45em;
  font-weight: 600;
  vertical-align: middle;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
  letter-spacing: 0;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
  color: var(--text-secondary);
}
.download-card:hover {
  background: var(--bg-card-hover);
  border-color: #3f3f46;
}
.download-card.detected {
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
}
.download-card.detected svg:first-child {
  color: var(--purple);
}

.download-card > svg {
  flex-shrink: 0;
  transition: color 0.2s;
  color: var(--text-secondary);
}

.download-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.download-card-info strong {
  font-size: 18px;
  color: var(--text);
}

.download-card-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.download-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.download-link:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.download-link.primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-darker) 100%);
  color: white;
  border-color: transparent;
}
.download-link.primary:hover {
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.download-all-releases {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
}
.download-all-releases a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.download-all-releases a:hover {
  color: var(--purple);
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: #3f3f46;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-question:hover {
  color: var(--purple);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Screen Reader Only ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.footer-icon {
  border-radius: 5px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.nav-lang) {
    display: none;
  }
  .hero {
    padding: 130px 0 72px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn-lg {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .features,
  .how-it-works,
  .download,
  .faq {
    padding: 64px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
