:root {
  --bg: #070e18;
  --bg-alt: #0b1524;
  --card: rgba(14, 27, 46, 0.85);
  --border: rgba(125, 211, 252, 0.16);
  --text: #f0f9ff;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #2563eb;
  --gold: #fbbf24;
  --fire: #f97316;
  --teal: #2dd4bf;
}

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

html {
  scroll-behavior: smooth;
}

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

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { top: -160px; left: -120px; background: #38bdf8; }
.bg-glow-2 { bottom: -180px; right: -120px; background: #2563eb; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 14, 24, 0.78);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.brand-name .accent { color: var(--accent); }

.version-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 8px;
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 16px;
}
.hero-sub strong { color: var(--text); }

/* Download Card */
.download-card {
  max-width: 660px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
}

.download-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dl-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.dl-sub {
  font-size: 13px;
  color: var(--muted);
}

.gambit-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.18));
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-download {
  flex: 1;
  min-width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.42);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-mirror {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.config-warning {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 13px;
}

.hidden { display: none !important; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 16px;
  color: #fff;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 68px 0;
}
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-head p {
  color: var(--muted);
  font-size: 15px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.feature-card.gambit-border {
  border-color: rgba(251, 191, 36, 0.35);
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.icon-box.blue { background: rgba(56, 189, 248, 0.14); }
.icon-box.gold { background: rgba(251, 191, 36, 0.14); }
.icon-box.teal { background: rgba(45, 212, 191, 0.14); }

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
}

.tree-box {
  background: #050a12;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  overflow-x: auto;
  font-size: 13.5px;
  color: #bae6fd;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.step-card h3 { margin-bottom: 8px; font-size: 17px; }
.step-card p { font-size: 14px; color: var(--muted); }

code {
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 13px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
.faq-item p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.faq-item a { color: var(--accent); }

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
