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

:root {
  --primary: #C41E3A;
  --primary-dark: #A01828;
  --primary-light: #E8506A;
  --bg: #0a0a0f;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --text: #e8e8ed;
  --text-muted: #8888a0;
  --border: #2a2a3a;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  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;
  letter-spacing: 0.5px;
}

.nav-logo { width: auto; height: 28px; border-radius: 6px; object-fit: contain; }

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover { background: var(--primary-light) !important; }

/* ---- Sections ---- */
section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ---- Hero ---- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-logo {
  width: auto;
  height: 96px;
  border-radius: 16px;
  margin-bottom: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(196,30,58,0.3));
}

h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.accent { color: var(--primary); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-badges { margin-bottom: 36px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.badge {
  background: rgba(196,30,58,0.12);
  color: var(--primary-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(196,30,58,0.2);
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover { background: var(--primary-light); transform: translateY(-1px); }

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

.btn.outline:hover { border-color: var(--primary); color: var(--primary); }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(196,30,58,0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,30,58,0.1);
  border-radius: 10px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---- Versions ---- */
.versions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.version-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.version-card:hover { transform: translateY(-2px); }

.version-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(196,30,58,0.1);
}

.version-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.version-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  margin-top: 8px;
}

.version-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.version-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.version-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.version-features li::before {
  content: "";
  margin-right: 8px;
}

/* ---- About ---- */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.meta-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 24px;
  min-width: 130px;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value {
  font-weight: 600;
  font-size: 1rem;
}

/* ---- Download ---- */
#download { text-align: center; }

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.dl-icon { font-size: 2.4rem; margin-bottom: 12px; }

.download-box h3 { font-size: 1.3rem; margin-bottom: 4px; }

.dl-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 24px; }

.dl-info {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.dl-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.88rem;
}

.dl-info-row + .dl-info-row { border-top: 1px solid var(--border); }

.dl-info-row span:first-child { color: var(--text-muted); }

.dl-info-row span:last-child { font-weight: 500; }

.download-btn {
  display: block;
  text-align: center;
  font-size: 1.05rem;
  padding: 14px;
}

.dl-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 12px;
  opacity: 0.7;
}

.setup-steps {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.setup-steps h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
}

.setup-steps ol { padding-left: 20px; }

.setup-steps li {
  color: var(--text-muted);
  padding: 8px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.setup-steps code {
  background: rgba(196,30,58,0.1);
  color: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-motto { margin-top: 4px; opacity: 0.6; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.6rem; }
  .features-grid { grid-template-columns: 1fr; }
  .versions-grid { grid-template-columns: 1fr; }
  .about-meta { flex-direction: column; align-items: center; }
  .nav-links a { padding: 6px 10px; font-size: 0.82rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-logo { height: 72px; }
  .download-box { padding: 24px; }
}
