/* ── Reset & Base ─────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root {
  --primary: #009EFF;
  --primary-dark: #0065FF;
  --primary-glow: rgba(0, 158, 255, 0.15);
  --orange: #FF6B35;
  --orange-glow: rgba(255, 107, 53, 0.05);
  --bg: #0A0E1A;
  --surface: #111827;
  --surface-2: #1A2235;
  --border: #1E2D45;
  --border-2: #2A3F5F;
  --text: #E8EDF5;
  --text-muted: #8B9ABB;
  --success: #22C55E;
  --error: #EF4444;
  --radius: 20px;
  --radius-sm: 8px;
  --max-w: 1100px;
}
html{scroll-behavior:smooth}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
code, pre, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ── Hex background ─────────────────────────────────── */
.hex-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpath d='M30 0L60 17.3v17.4L30 52 0 34.7V17.3z' fill='none' stroke='%23009EFF' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.glow-blue {
  position: fixed;
  top: -10rem;
  left: -10rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(0, 158, 255, 0.05);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-orange {
  position: fixed;
  bottom: -10rem;
  right: -10rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: var(--orange-glow);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ──────────────────────────────────────────── */
header, main, footer { position: relative; z-index: 1; }
section { padding: 5rem 1.5rem; max-width: var(--max-w); margin: 0 auto; }

/* ── Nav ─────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.logo strong { color: var(--primary); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.accent { color: var(--primary); }
.subtitle {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  border-color: rgba(0,158,255,.4);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
}
.hero-code {
  margin-top: 2.5rem;
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.75rem;
}
.hero-code pre { margin: 0; }
.hero-code code {
  font-size: .85rem;
  color: var(--primary);
}
.dim { color: var(--text-muted); }

/* ── Section headings ────────────────────────────────── */
.features h2, .install h2, .download h2, .quickstart h2, .action-section h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -.02em;
  font-weight: 700;
}

/* ── Features ────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: 0 0 30px var(--primary-glow);
}
.card-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.card p {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.7;
}

/* ── GitHub Action ───────────────────────────────────── */
.action-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.action-box {
  max-width: 750px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.action-box p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.action-box .code-block {
  margin-top: 1.25rem;
}

/* ── Install ─────────────────────────────────────────── */
.install-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 1.5rem;
}
.install-method h3 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.code-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
}
.code-block pre { margin: 0; }
.code-block code {
  font-size: .8rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}
.copy-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 0;
  transition: color .2s, border-color .2s;
}
.copy-btn:hover { color: var(--primary); border-color: rgba(0,158,255,.4); }

/* ── Download ────────────────────────────────────────── */
.download-desc {
  text-align: center;
  color: var(--text-muted);
  margin-top: -2rem;
  margin-bottom: 2rem;
  font-size: .9rem;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.download-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 0 20px var(--primary-glow);
}
.dl-icon { color: var(--primary); flex-shrink: 0; }
.dl-info strong { display: block; font-size: .95rem; font-weight: 600; }
.dl-info span { font-size: .8rem; color: var(--text-muted); }

/* ── Quick start ─────────────────────────────────────── */
.steps { max-width: 700px; margin: 0 auto; }
.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid rgba(0,158,255,.3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.step-content { flex: 1; }
.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.step-content .code-block { margin: 0; }

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
footer p { color: var(--text-muted); font-size: .8rem; }
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { margin-top: .5rem; display: flex; gap: 1.5rem; justify-content: center; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .install-methods { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 1rem; }
  .action-box { padding: 1.5rem; }
}
