/* ---------- tokens ---------- */
:root {
  --bg:            #0a0a0b;
  --bg-2:          #111114;
  --bg-3:          #16161a;
  --line:          #23232a;
  --line-2:        #2d2d36;
  --fg:            #e8e8ee;
  --fg-2:          #a4a4b0;
  --fg-3:          #6f6f80;
  --accent:        #7cf5b3;
  --accent-2:      #58e0d5;
  --purple:        #a68cff;
  --danger:        #ff6a7a;
  --mono:          'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:          'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, system-ui, sans-serif;
  --radius:        10px;
  --radius-lg:     14px;
  --shadow:        0 20px 60px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
code { font-family: var(--mono); font-size: 0.92em; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.brand .prompt { color: var(--accent); margin-right: 6px; }
.nav-links a {
  color: var(--fg-2);
  margin-left: 22px;
  font-size: 14px;
}
.nav-links a:hover { color: var(--fg); }

/* ---------- main + layout ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; border-bottom: 1px solid transparent; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: 32px; margin: 0 0 32px; }
h3 { font-size: 17px; margin: 0 0 8px; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 80px; text-align: center; position: relative; }
.hero .glow {
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(124, 245, 179, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 24px;
}
.accent { color: var(--accent); }
.tagline {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--fg-2);
  font-size: 18px;
}
.install-block {
  display: inline-block;
  min-width: min(540px, 92vw);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  text-align: left;
}
.install-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 10px;
  text-transform: lowercase;
}
.os-detected {
  color: var(--accent);
  margin-left: 6px;
}
.install-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  gap: 10px;
}
.install-cmd code {
  color: var(--fg);
  font-size: 13.5px;
  overflow-x: auto;
  white-space: nowrap;
}
.copy {
  background: transparent;
  color: var(--fg-3);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--accent); border-color: var(--accent); }
.copy.done { color: var(--accent); border-color: var(--accent); }
.install-alt {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 10px;
}

/* ---------- example tabs ---------- */
.example h2 { text-align: center; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 20px;
}
.tab {
  background: var(--bg-2);
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.tab:hover { color: var(--fg); border-color: var(--line-2); }
.tab.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 500;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.repl-notes {
  padding: 24px 24px 18px;
}
.repl-notes p {
  color: var(--fg-2);
  font-size: 14.5px;
  margin: 0 0 14px;
}
.repl-notes p:last-child { margin-bottom: 0; }
.repl-notes code {
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-2);
  border: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}
.pane {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pane-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
pre.code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 18px 20px;
  margin: 0;
  overflow-x: auto;
  color: var(--fg);
  white-space: pre;
}
.comment { color: var(--fg-3); }
.kw { color: var(--purple); }
.str { color: var(--accent); }
.var { color: var(--accent-2); }
.prose { color: var(--fg); }
pre.out .q { color: #6ea8ff; }
pre.out .capture { color: var(--purple); }
pre.out .shell { color: var(--purple); font-weight: 500; }
pre.out .cmd { color: #d9c268; }
pre.out .assist { color: #8ecfff; }
pre.out .assist-out { color: var(--fg); }
pre.out .branch { color: var(--purple); font-weight: 500; }
pre.out .print { color: var(--fg); }

/* ---------- features ---------- */
.features h2 { text-align: center; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .icon {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 245, 179, .08);
  border: 1px solid rgba(124, 245, 179, .18);
  border-radius: 8px;
  margin-bottom: 14px;
}
.card p {
  color: var(--fg-2);
  font-size: 14.5px;
  margin: 0;
}
.card code {
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-2);
  border: 1px solid var(--line);
}

/* ---------- downloads ---------- */
.downloads h2 { text-align: center; }
.dl-note { text-align: center; color: var(--fg-2); margin: 0 auto 32px; max-width: 640px; }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
.dl {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--fg);
  transition: border-color .15s, transform .15s;
  text-align: center;
}
.dl:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--fg);
}
.dl.recommended { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 245, 179, .1); }
.dl-os { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.dl-arch { color: var(--fg-3); font-size: 12px; font-family: var(--mono); }

/* ---------- final cta ---------- */
.finalcta { text-align: center; padding-bottom: 120px; }
.cta-cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 8px auto 16px;
}
.cta-cmd code { font-size: 14px; }
.fine {
  color: var(--fg-3);
  font-size: 13px;
  margin-top: 12px;
}
.fine code { color: var(--accent-2); background: transparent; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  max-width: 1100px;
  margin: 0 auto;
}
footer a { color: var(--fg-3); margin-left: 18px; }
footer a:hover { color: var(--accent); }
