:root {
  --bg:        #0d0f18;
  --bg-card:   #12172b;
  --bg-nav:    rgba(13, 15, 24, 0.92);
  --cyan:      #00e5ff;
  --cyan-dim:  rgba(0, 229, 255, 0.10);
  --purple:    #a855f7;
  --text:      #e2e8f0;
  --text-muted:#7c8fa8;
  --border:    rgba(0, 229, 255, 0.16);
  --radius:    10px;
  --max-w:     1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

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

img { max-width: 100%; display: block; }

/* ── Navbar ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 62px;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  border: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--cyan);
  color: #0d0f18;
}
.btn-primary:hover { opacity: 0.85; }

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

.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}

/* ── Layout ─────────────────────────────────────────────── */
main { padding-top: 62px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

/* ── Hero (home) ─────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.07) 0%, transparent 68%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--cyan); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.page-hero h1 span { color: var(--cyan); }
.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Section heading ─────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Cards ───────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(0,229,255,0.35); }

.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ── Terminal block ──────────────────────────────────────── */
.terminal {
  background: #080b14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875rem;
  line-height: 1.85;
  overflow-x: auto;
}
.terminal .prompt { color: var(--cyan); user-select: none; }
.terminal .cmd    { color: var(--text); }
.terminal .out    { color: var(--text-muted); }
.terminal .ok     { color: #4ade80; }

/* ── Steps (install guide) ───────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 1.25rem; max-width: 720px; margin: 0 auto; }

.step {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  min-width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--cyan);
  color: #0d0f18;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step-content p  { color: var(--text-muted); font-size: 0.9rem; }
.step-content .terminal { margin-top: 0.85rem; }

/* ── Download card ───────────────────────────────────────── */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.75rem 2rem;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.download-card .dl-icon { font-size: 3rem; margin-bottom: 1rem; }
.download-card h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.download-card .version { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.75rem; }
.download-card .meta { color: var(--text-muted); font-size: 0.82rem; margin-top: 1rem; }

/* ── Req table ───────────────────────────────────────────── */
.req-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.req-table th, .req-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}
.req-table th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.req-table tr:last-child td { border-bottom: none; }

/* ── Tag pill ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--cyan);
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── CTA strip ───────────────────────────────────────────── */
.cta-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 4rem 0;
}
.cta-strip h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-strip p  { color: var(--text-muted); margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--cyan); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav-links { gap: 1.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .step { flex-direction: column; }
  .download-card { padding: 2rem 1.25rem; }
}
