:root {
  --bg: #000;
  --fg: #fff;
  --muted: #a3a3a3;
  --line: #1f1f1f;
  --accent: #ec5b2b;
  --accent-ink: #140804;
  --panel: #111;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: var(--fg);
  text-decoration: none;
}

a:hover {
  color: var(--muted);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 4vw;
  border-bottom: 1px solid var(--line);
}

.mark {
  color: var(--accent);
  line-height: 0;
}

.mark:hover {
  color: var(--accent);
  filter: brightness(1.12);
}

.wordmark {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0.15rem 0;
  max-width: none;
  white-space: pre;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

main {
  padding: 4.5rem 4vw 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1180px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2rem -4vw auto auto;
  width: 55%;
  height: 120%;
  background-image: radial-gradient(#2a2a2a 0.7px, transparent 0.8px);
  background-size: 7px 7px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy,
.hero .ascii {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

a:visited {
  color: #8f8f8f;
}

nav a:visited {
  color: var(--fg);
}

.mark:visited {
  color: var(--accent);
}

.btn:visited {
  color: var(--fg);
}

.btn-light:visited {
  color: var(--bg);
}

.btn-ghost:visited {
  color: var(--fg);
}

footer a:visited {
  color: var(--muted);
}

.hero h1,
.auth h1,
.dash-head h1,
.band h2,
.split h2,
.cta h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

.band h2,
.split h2,
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 18ch;
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.6rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--fg);
  border: 1px solid var(--accent);
  padding: 0.72rem 1.05rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  color: var(--fg);
  filter: brightness(1.08);
}

.btn-light {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-light:hover {
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: #3a3a3a;
}

.ascii {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 16rem;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #c4c4c4;
}

.ascii::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
  animation: scan 4.8s linear infinite;
  pointer-events: none;
}

.ascii .frame {
  position: absolute;
  inset: 1rem 1.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  max-width: none;
  font: inherit;
  color: inherit;
  white-space: pre;
  opacity: 0;
  animation: ascii-cycle 9s infinite;
}

.ascii .frame:nth-child(2) {
  animation-delay: 3s;
}

.ascii .frame:nth-child(3) {
  animation-delay: 6s;
}

.ascii .hi {
  color: var(--accent);
}

@keyframes ascii-cycle {
  0%,
  28% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

@keyframes scan {
  from {
    top: 0;
  }
  to {
    top: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ascii::after {
    animation: none;
    display: none;
  }

  .ascii .frame {
    animation: none;
    opacity: 0;
  }

  .ascii .frame:first-child {
    opacity: 1;
  }
}

.demo {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 22rem;
}

.demo-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--mono);
}

.demo-term {
  margin: 0;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #d4d4d4;
  white-space: pre-wrap;
}

.ticker {
  margin: 4.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band,
.split,
.cta {
  margin-top: 4.5rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  max-width: 1180px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.feature-grid article {
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
}

.feature-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.rung-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
}

.rung-list li {
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.rung-list li:last-child {
  border-bottom: 0;
}

.rung-list strong {
  display: block;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
  counter-increment: step;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.steps h3::before {
  content: counter(step, decimal-leading-zero) "  ";
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

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

.cta .lede {
  margin-bottom: 1.4rem;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

.auth {
  max-width: 24rem;
}

.auth form,
.auth .btn {
  width: 100%;
  margin-top: 0.6rem;
}

label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.8rem 0 0.35rem;
}

input {
  width: 100%;
  background: transparent;
  color: var(--fg);
  border: 1px solid #2a2a2a;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.error {
  color: var(--accent);
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  max-width: 980px;
}

.dash-actions {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.text-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.remain {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.4rem 0;
}

.bar {
  height: 4px;
  max-width: 420px;
  background: var(--line);
  margin: 0.7rem 0;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.rungs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 720px;
  margin: 1.8rem 0 2.4rem;
}

.rungs div {
  border: 1px solid var(--line);
  padding: 0.85rem;
}

.rungs strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: pre-wrap;
  max-width: 720px;
}

.mint {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem 0.9rem;
  max-width: 980px;
  margin: 1.6rem 0 2rem;
  align-items: end;
}

.mint label {
  grid-row: 1;
  margin: 0;
}

.mint input {
  grid-row: 2;
}

.mint .btn {
  grid-column: 1 / -1;
  width: max-content;
  margin: 0.4rem 0 0;
}

.minted {
  max-width: 720px;
  margin-bottom: 1.6rem;
}

.minted h2,
.install h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.admin-list {
  display: grid;
  gap: 0.55rem;
  max-width: 980px;
}

.admin-row {
  display: grid;
  grid-template-columns: 13rem 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
}

.admin-row code {
  font-family: var(--mono);
  font-size: 0.8rem;
}

.admin-row.is-revoked {
  color: var(--muted);
}

.plans {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  max-width: 860px;
}

.plan {
  border: 1px solid var(--line);
  padding: 1.3rem;
}

.plan.on {
  border-color: var(--accent);
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.2rem 0 0.6rem;
}

.docs {
  max-width: 72ch;
}

.docs h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  margin: 0 0 1rem;
}

.docs h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: none;
  max-width: none;
  margin: 2.4rem 0 0.55rem;
}

.docs p,
.docs li {
  color: var(--muted);
}

.docs a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.docs a:visited {
  color: #c47a62;
}

.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  margin: 0 0 2.4rem;
  padding: 0.9rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.docs-toc a {
  color: var(--fg);
  text-decoration: none;
}

.docs-toc a:visited {
  color: var(--muted);
}

.docs pre {
  max-width: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 5rem;
}

@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .rungs {
    grid-template-columns: 1fr;
  }

  nav a:not(.btn) {
    display: none;
  }

  .wordmark {
    font-size: 8px;
  }

  .mint {
    grid-template-columns: 1fr 1fr;
  }

  .mint label,
  .mint input,
  .mint .btn {
    grid-row: auto;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }
}
