/* scrn.w0zro.com */

:root {
  --bg: #0a0c10;
  --bg-2: #0b0e13;
  --panel: #0d1117;
  --panel-2: #10151c;
  --border: #1d232b;
  --border-2: #30363d;
  --text: #e8eaed;
  --muted: #8b949e;
  --faint: #5c6570;
  --hint: #6c6c6c;
  --purple: #b9a7ff;
  --blue: #79c0ff;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --cyan: #76e3ea;
  --magenta: #d2a8ff;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

::selection { background: rgba(185, 167, 255, 0.25); }

code, kbd, pre { font-family: var(--mono); }

code { font-size: 0.88em; color: var(--text); }

p code, li code {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

kbd {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 0.42em;
}

.kicker {
  font: 600 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.lede {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 2rem;
}

section { padding: 4.5rem 0 0; }

/* ---- header ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29, 35, 43, 0.8);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--purple);
}

.brand::before { content: "▸ "; color: var(--faint); font-weight: 400; }
.brand:hover { text-decoration: none; }

.nav nav { display: flex; gap: 1.5rem; }

.nav nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav a[aria-current] { color: var(--text); }

/* ---- layout ---- */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ---- hero ---- */

.hero {
  padding: 5rem 0 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -6rem 0 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(185, 167, 255, 0.1), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(139, 148, 158, 0.13) 1px, transparent 0);
  background-size: auto, 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 15%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 15%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(3.4rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0;
  color: var(--purple);
  text-shadow: 0 0 60px rgba(185, 167, 255, 0.35);
}

.tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: var(--muted);
  margin: 0.9rem auto 0;
  max-width: 36em;
}

.tagline strong { color: var(--text); font-weight: 550; }

.hero-actions {
  margin: 2.2rem 0 0.9rem;
  display: flex;
  justify-content: center;
}

.hero-links {
  font-size: 0.92rem;
  color: var(--faint);
  margin: 0 0 1rem;
}

.hero-links a { color: var(--muted); font-weight: 500; }
.hero-links a:hover { color: var(--text); }
.hero-links .sep { margin: 0 0.6rem; color: var(--border-2); }

/* ---- install command ---- */

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 0.7rem 0.7rem 0.7rem 1.05rem;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.cmd .prompt { color: var(--faint); font-family: var(--mono); flex: none; }

.cmd code {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.cmd code::-webkit-scrollbar { display: none; }

.copy {
  flex: none;
  font: 600 0.76rem var(--mono);
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.copy:hover { color: var(--text); border-color: var(--faint); }
.copy.done { color: var(--green); border-color: var(--green); }

/* ---- terminal ---- */

.term {
  position: relative;
  margin: 3.2rem auto 0;
  max-width: 820px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 110px rgba(185, 167, 255, 0.08);
  overflow: hidden;
  text-align: left;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }

.term-title {
  flex: 1;
  text-align: center;
  font: 0.74rem var(--mono);
  color: var(--faint);
  margin-left: -47px; /* balance the dots so the title sits centered */
}

.term-body {
  display: flex;
  overflow-x: auto;
  padding: 12px 0;
}

.term-body pre {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-variant-ligatures: none;
}

.pane-left { width: 28ch; flex: none; padding-left: 1ch; }
.pane-right { flex: 1; min-width: 48ch; border-left: 1px solid var(--border-2); }

.t-title { color: var(--purple); font-weight: 700; }
.t-sel   { color: var(--blue); font-weight: 700; }
.t-item  { color: var(--text); }
.t-dim   { color: var(--faint); }
.t-hint  { color: var(--hint); }
.t-busy  { color: var(--green); }
.t-warn  { color: var(--yellow); font-weight: 700; }
.t-err   { color: var(--red); }
.t-green { color: var(--green); }
.t-cyan  { color: var(--cyan); }
.t-mag   { color: var(--magenta); font-weight: 700; }
.t-label { color: var(--muted); }
.t-head  { color: var(--text); font-weight: 700; }
.t-cur   { background: var(--text); color: var(--bg); }

/* the key just pressed, shown at the terminal's corner */
.demo-key {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font: 600 0.82rem var(--mono);
  color: var(--text);
  background: rgba(16, 21, 28, 0.92);
  border: 1px solid var(--border-2);
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 0.25rem 0.7rem;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
  pointer-events: none;
}

.demo-key.show { opacity: 1; transform: translateY(0); }

/* ---- features ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--border-2); }

.card h3 {
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---- diagram ---- */

.diagram {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
}

.diagram svg { display: block; margin: 0 auto; min-width: 620px; }

.diagram-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  margin-top: 1.8rem;
}

.diagram-notes div { font-size: 0.9rem; color: var(--muted); }

.diagram-notes strong {
  display: block;
  font: 600 0.85rem var(--mono);
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* ---- split (plans, config) ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split p { color: var(--muted); font-size: 0.95rem; }

.code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
}

.code-cap {
  font: 0.74rem var(--mono);
  color: var(--faint);
  margin: 0 0 0.5rem;
}

/* ---- key grammar ---- */

.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.rule {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
}

.rule .no {
  font: 700 0.8rem var(--mono);
  color: var(--purple);
}

.rule h3 { font-size: 1.02rem; font-weight: 600; margin: 0.4rem 0 0.45rem; letter-spacing: -0.01em; }
.rule p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.keygrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.keycol {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.3rem;
}

.keycol h4 {
  font: 600 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin: 0 0 0.7rem;
}

.keycol table { border-collapse: collapse; width: 100%; }

.keycol td {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  vertical-align: baseline;
}

.keycol td:first-child { white-space: nowrap; padding-right: 1rem; width: 1%; }

.keynote { margin: 1.2rem 0 0; font-size: 0.9rem; color: var(--faint); max-width: 52em; }

/* ---- install ---- */

.install .cmd { display: flex; margin: 0.3rem 0 1rem; }
.install .cmd code { flex: 1; }
.install p { color: var(--muted); font-size: 0.95rem; max-width: 46em; }

/* ---- footer ---- */

footer { border-top: 1px solid var(--border); }

.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.7rem 1.5rem 2.6rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--faint);
}

.foot-inner nav { display: flex; gap: 1.4rem; }
.foot-inner a { color: var(--muted); }
.foot-inner a:hover { color: var(--text); }

.brand-foot { font-family: var(--mono); font-weight: 700; color: var(--faint); }

/* ---- guide ---- */

.guide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 720px);
  gap: 4rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 4.6rem;
  padding-top: 3rem;
  font-size: 0.88rem;
}

.toc h5 {
  font: 600 0.7rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin: 0 0 0.6rem;
}

.toc ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.toc li { margin: 0.28rem 0; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; }

.doc { padding-top: 3rem; }

.doc h1 {
  font-size: 2.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.doc > p, .doc li { color: var(--muted); }
.doc li { margin: 0.3rem 0; }

.doc h2 {
  font-size: 1.35rem;
  margin: 3rem 0 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.doc h3 { font-size: 1.02rem; font-weight: 600; margin: 1.8rem 0 0.4rem; }

.doc h2 a, .doc h3 a { color: inherit; }
.doc h2 a:hover::after, .doc h3 a:hover::after { content: " #"; color: var(--faint); }
.doc h2 a:hover, .doc h3 a:hover { text-decoration: none; }

.doc pre.code { margin: 1rem 0; }

.doc table { border-collapse: collapse; width: 100%; margin: 1rem 0; }

.doc table td, .doc table th {
  text-align: left;
  padding: 0.45rem 1rem 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
  vertical-align: baseline;
}

.doc table th {
  font: 600 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.doc table td:first-child { white-space: nowrap; }

.note {
  border-left: 2px solid var(--purple);
  background: var(--panel);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 1rem 0;
}

/* ---- responsive ---- */

@media (max-width: 880px) {
  .grid, .keygrid, .rules, .diagram-notes { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.4rem; }
  .guide { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; padding-top: 2.5rem; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
  .doc { padding-top: 1rem; }
}

@media (max-width: 580px) {
  .grid, .keygrid, .rules, .diagram-notes { grid-template-columns: 1fr; }
  .hero { padding-top: 3.2rem; }
  .cmd { width: 100%; }
  .cmd code { flex: 1; }
  section { padding-top: 3.4rem; }
  .nav nav { gap: 1rem; }
}
