:root {
  --black: #1a1c2c;
  --plum: #5d275d;
  --maroon: #b13e53;
  --orange: #ef7d57;
  --sand: #ffcd75;
  --lime: #a7f070;
  --green: #38b764;
  --teal: #257179;
  --indigo: #29366f;
  --blue: #3b5dc9;
  --sky: #41a6f6;
  --cyan: #73eff7;
  --white: #f4f4f4;
  --silver: #94b0c2;
  --steel: #566c86;
  --slate: #333c57;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scrollbar-width: thin;
  scrollbar-color: var(--slate) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--slate);
  border-radius: 5px;
  border: 2px solid var(--black);
}

::-webkit-scrollbar-track {
  background: transparent;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  background: repeating-linear-gradient(
    0deg,
    rgba(26, 28, 44, 0.16) 0 1px,
    transparent 1px 3px
  );
}

::selection {
  background: var(--orange);
  color: var(--black);
}

a {
  color: var(--sky);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  margin-top: clamp(80px, 12vw, 144px);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 2px solid var(--slate);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.sec-index {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 0.85rem;
}

.sec-head h2 {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--white);
}

.lead {
  color: var(--silver);
  max-width: 64ch;
  font-size: 1.05rem;
  margin-top: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--silver);
  margin-bottom: 0;
}

.feature-list li {
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 96px 24px;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(41, 54, 111, 0.55),
    transparent 70%
  );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      var(--white) 1px,
      transparent 1.5px
    ),
    radial-gradient(var(--silver) 1px, transparent 1.5px),
    radial-gradient(var(--steel) 1px, transparent 1.5px);
  background-size: 220px 220px, 140px 140px, 90px 90px;
  background-position: 0 0, 40px 60px, 12px 28px;
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  max-width: 860px;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--white);
}

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.85em;
  margin-left: 0.1em;
  background: var(--orange);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

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

.pitch {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--silver);
  max-width: 58ch;
  margin: 22px auto 34px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-sub {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.cta-sub a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 1px;
}

.cta-sub a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.btn {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--sand);
  border-color: var(--sand);
}

.btn-ghost {
  color: var(--silver);
  border-color: var(--silver);
}

.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.ladder-strip {
  margin-top: 46px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.ladder-strip span {
  margin: 0 6px;
}

.ladder-strip .sep {
  color: var(--silver);
}

.t-o8 {
  color: var(--orange);
}

.t-o16 {
  color: var(--sand);
}

.t-o32 {
  color: var(--sky);
}

.t-o64 {
  color: var(--cyan);
}

.reserved-tag {
  color: var(--silver);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-left: -2px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tier {
  background: var(--slate);
  border: 2px solid var(--steel);
  border-top-width: 4px;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-o8 {
  border-top-color: var(--orange);
}

.tier-o16 {
  border-top-color: var(--sand);
}

.tier-o32 {
  border-top-color: var(--sky);
}

.tier-o64 {
  border-top-color: var(--cyan);
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
}

.tier-id {
  font-size: 1.5rem;
  font-weight: 700;
}

.tier-class {
  color: var(--silver);
  font-size: 0.8rem;
}

.tier-o8 .tier-id {
  color: var(--orange);
}

.tier-o16 .tier-id {
  color: var(--sand);
}

.tier-o32 .tier-id {
  color: var(--sky);
}

.tier-o64 .tier-id {
  color: var(--cyan);
}

.screen {
  --px: 4px;
  position: relative;
  width: 100%;
  border: 2px solid var(--steel);
  border-radius: 2px;
  background-color: var(--indigo);
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      0deg,
      rgba(26, 28, 44, 0.4) 0 1px,
      transparent 1px var(--px)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(26, 28, 44, 0.4) 0 1px,
      transparent 1px var(--px)
    );
}

.r-sq {
  aspect-ratio: 1 / 1;
}

.r-r87 {
  aspect-ratio: 8 / 7;
}

.r-r43 {
  aspect-ratio: 4 / 3;
}

.tier-o8 .screen {
  --px: 10px;
  background-image: radial-gradient(
      circle at 72% 26%,
      var(--sand) 0 7px,
      transparent 8px
    ),
    linear-gradient(
      180deg,
      var(--indigo) 0 42%,
      var(--maroon) 42% 58%,
      var(--green) 58% 100%
    );
}

.tier-o16 .screen {
  --px: 7px;
  background-image: radial-gradient(
      circle at 28% 24%,
      var(--white) 0 5px,
      transparent 6px
    ),
    linear-gradient(
      180deg,
      var(--teal) 0 50%,
      var(--green) 50% 72%,
      var(--lime) 72% 100%
    );
}

.tier-o32 .screen {
  --px: 4px;
  background-image: linear-gradient(
      180deg,
      var(--blue) 0 45%,
      var(--plum) 45% 62%,
      var(--maroon) 62% 100%
    );
}

.tier-o64 .screen {
  --px: 2px;
  background-image: radial-gradient(
      circle at 50% 62%,
      var(--cyan) 0 10px,
      transparent 12px
    ),
    linear-gradient(180deg, var(--indigo) 0 100%);
}

.specs {
  display: grid;
  gap: 6px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(86, 108, 134, 0.4);
  padding-bottom: 4px;
}

.specs dt {
  color: var(--silver);
}

.specs dd {
  margin: 0;
  color: var(--silver);
  text-align: right;
}

.notes {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: var(--silver);
  font-size: 0.92rem;
}

.notes li {
  padding-left: 20px;
  position: relative;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--steel);
}

.cart-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.cart-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-mock {
  width: min(272px, 100%);
  margin: 0 auto;
  aspect-ratio: 160 / 205;
  background: var(--slate);
  border: 3px solid var(--steel);
  border-radius: 12px;
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cart-label {
  background: var(--indigo);
  border: 2px solid var(--steel);
  border-radius: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-brand {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  padding: 8px 10px 0;
  letter-spacing: 0.08em;
}

.cart-scene {
  flex: 1;
  margin: 10px;
  border: 2px solid rgba(26, 28, 44, 0.8);
  background-image: repeating-linear-gradient(
      0deg,
      rgba(26, 28, 44, 0.25) 0 2px,
      transparent 2px 8px
    ),
    repeating-linear-gradient(90deg, rgba(26, 28, 44, 0.25) 0 2px, transparent 2px 8px),
    radial-gradient(circle at 70% 30%, var(--sand) 0 6px, transparent 7px),
    linear-gradient(
      180deg,
      var(--sky) 0 52%,
      var(--teal) 52% 62%,
      var(--green) 62% 76%,
      var(--sand) 76% 100%
    );
}

.cart-name {
  font-family: var(--mono);
  text-align: center;
  padding: 8px;
  letter-spacing: 0.2em;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-ridges {
  height: 14px;
  margin: 10px 26px 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--steel) 0 4px,
    transparent 4px 12px
  );
  border-radius: 2px;
  opacity: 0.7;
}

.cart-stripe {
  height: 15.6%;
  background: var(--orange);
  margin: 0 -3px -3px;
  border-top: 2px solid rgba(26, 28, 44, 0.5);
  border-radius: 0 0 9px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--black);
  font-size: 0.85rem;
}

.caption {
  font-family: var(--mono);
  color: var(--silver);
  font-size: 0.8rem;
  text-align: center;
  margin: 16px 0 0;
}

.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

.code {
  margin: 0;
  background: var(--black);
  border: 2px solid var(--slate);
  border-radius: 6px;
  overflow: hidden;
}

.code figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  padding: 8px 14px;
  border-bottom: 2px solid var(--slate);
  text-transform: uppercase;
}

.code pre {
  margin: 0;
  padding: 16px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--silver);
}

.teaser {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--mono);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

.teaser:hover {
  color: var(--white);
  border-color: var(--cyan);
}

.teaser-sub {
  color: var(--silver);
  margin-left: 12px;
  font-size: 0.8rem;
}

.formula {
  font-family: var(--mono);
  font-size: clamp(1rem, 3.4vw, 1.6rem);
  color: var(--white);
  background: var(--slate);
  border: 2px solid var(--steel);
  border-left: 6px solid var(--cyan);
  padding: 22px 24px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0 0 28px;
  white-space: nowrap;
}

.f-orange {
  color: var(--sand);
}

.f-sand {
  color: var(--sand);
}

.f-sky {
  color: var(--cyan);
}

.f-cyan {
  color: var(--cyan);
}

.f-op {
  color: var(--silver);
}

.roadmap {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  color: var(--silver);
  font-size: 0.95rem;
}

.roadmap li {
  background: var(--slate);
  border: 2px solid var(--steel);
  border-left: 6px solid var(--green);
  padding: 14px 18px;
  border-radius: 4px;
}

.out {
  color: var(--silver);
  font-size: 0.9rem;
  margin-top: 22px;
}

.footer {
  margin-top: clamp(80px, 12vw, 144px);
  border-top: 2px solid var(--slate);
  background: linear-gradient(180deg, transparent, rgba(41, 54, 111, 0.25));
  padding: 40px 0 48px;
}

.footer-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-tag {
  color: var(--silver);
}

.footer-links {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-fine {
  margin: 26px 0 0;
  color: var(--silver);
  font-size: 0.78rem;
  font-family: var(--mono);
}

@media (max-width: 780px) {
  .cart-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .cart-visual {
    order: -1;
  }
}

.pxl {
  image-rendering: pixelated;
  display: block;
  width: 100%;
  height: auto;
}

.page {
  padding-top: 48px;
  padding-bottom: 64px;
}

.page-head {
  margin-bottom: 40px;
}

.page-back {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.page-head h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  letter-spacing: 0.02em;
  margin: 18px 0 0;
}

.page-foot {
  margin-top: 40px;
  color: var(--silver);
  font-size: 0.85rem;
  font-family: var(--mono);
}

.doc {
  max-width: 900px;
}

.doc-grid {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 48px;
}

.doc-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.doc-nav-home {
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 14px;
}

.doc-nav-link {
  color: var(--silver);
  text-decoration: none;
  padding: 5px 10px;
  border-left: 2px solid var(--slate);
}

.doc-nav-link:hover {
  color: var(--white);
}

.doc-nav-link.active {
  color: var(--sand);
  border-left-color: var(--orange);
}

@media (max-width: 860px) {
  .doc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .doc-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .doc-nav-home {
    width: 100%;
    margin-bottom: 4px;
  }

  .doc-nav-link {
    border-left: none;
    border: 1px solid var(--slate);
    border-radius: 3px;
    padding: 4px 9px;
  }

  .doc-nav-link.active {
    border-color: var(--orange);
  }
}

.about-section {
  margin-top: 48px;
  max-width: 72ch;
}

.about-section h2 {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  letter-spacing: 0.06em;
  color: var(--white);
  border-bottom: 2px solid var(--slate);
  padding-bottom: 10px;
  margin: 0 0 8px;
}

.about-section p {
  color: var(--silver);
  line-height: 1.7;
  margin: 16px 0;
}

.about-section a {
  color: var(--sand);
}

.about-list {
  color: var(--silver);
  line-height: 1.7;
  padding-left: 22px;
  margin: 16px 0;
}

.about-list li {
  margin: 8px 0;
}

.about-list li::marker {
  color: var(--orange);
}

.md-h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}

.md-h2 {
  font-family: var(--mono);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--white);
  border-bottom: 2px solid var(--slate);
  padding-bottom: 10px;
  margin: 56px 0 20px;
}

.md-h3 {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin: 32px 0 12px;
}

.md-p {
  color: var(--silver);
  line-height: 1.7;
  margin: 14px 0;
  max-width: 78ch;
}

.md-p code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--slate);
  color: var(--sand);
  border-radius: 3px;
  padding: 1px 5px;
}

.md-p strong {
  color: var(--white);
}

.md-ul {
  color: var(--silver);
  line-height: 1.7;
  max-width: 78ch;
  padding-left: 22px;
  margin: 14px 0;
}

.md-ul li {
  margin: 6px 0;
}

.md-ul li::marker {
  color: var(--orange);
}

.md-code {
  margin: 20px 0;
}

.md-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.md-table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.md-table th {
  text-align: left;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  border-bottom: 2px solid var(--slate);
  padding: 8px 14px 8px 0;
}

.md-table td {
  color: var(--silver);
  border-bottom: 1px solid rgba(86, 108, 134, 0.35);
  padding: 7px 14px 7px 0;
  vertical-align: top;
}

.md-table td:first-child code,
.md-table th:first-child {
  color: var(--sand);
  white-space: nowrap;
}

.replay-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.replay-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.replay-title {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.replay-desc {
  color: var(--silver);
  margin: 0;
  max-width: 56ch;
}

.replay-meta {
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--silver);
  text-align: right;
}

.replay-timeline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  font-family: var(--mono);
  font-size: 0.9rem;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 2px solid var(--steel);
  background: var(--slate);
  color: var(--silver);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chip-on {
  border-color: var(--orange);
  color: var(--orange);
}

.chip-final {
  min-width: 64px;
}

.replay-progress {
  height: 6px;
  background: var(--slate);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.replay-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--sand));
  transition: width 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .replay-progress-fill {
    transition: none;
  }
}

.replay-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.replay-btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 4px;
  border: 2px solid var(--steel);
  background: transparent;
  color: var(--silver);
  cursor: pointer;
}

.replay-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.replay-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.replay-play {
  border-color: var(--orange);
  color: var(--orange);
}

.replay-play:hover:not(:disabled) {
  background: var(--orange);
  color: var(--black);
}

.replay-count {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--silver);
  margin-left: 8px;
}

.replay-view {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 36px;
  align-items: start;
}

.replay-screen {
  border: 3px solid var(--steel);
  border-radius: 6px;
  padding: 10px;
  background: var(--indigo);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.replay-panel {
  min-width: 0;
}

.replay-step-title {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--sand);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.replay-goal {
  color: var(--silver);
  margin: 0 0 18px;
}

.replay-calls {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.replay-calls li {
  display: grid;
  grid-template-columns: 92px 1fr auto 52px;
  gap: 10px;
  align-items: baseline;
  background: var(--slate);
  border: 1px solid rgba(86, 108, 134, 0.5);
  border-radius: 4px;
  padding: 8px 10px;
}

.replay-tool {
  color: var(--cyan);
}

.replay-args {
  color: var(--silver);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-res {
  color: var(--sand);
  white-space: nowrap;
}

.replay-ms {
  color: var(--silver);
  text-align: right;
}

.replay-code summary {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--sky);
  cursor: pointer;
  margin-bottom: 10px;
}

.replay-code pre {
  margin: 0;
  background: var(--black);
  border: 2px solid var(--slate);
  border-radius: 6px;
  padding: 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--lime);
  max-height: 420px;
  overflow-y: auto;
}

.replay-hash {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--silver);
  margin: 14px 0;
}

.replay-cart {
  width: 140px;
  border: 2px solid var(--steel);
  border-radius: 6px;
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .replay-view {
    grid-template-columns: 1fr;
  }

  .replay-screen {
    max-width: 420px;
  }

  .replay-meta {
    text-align: left;
  }

  .replay-calls li {
    grid-template-columns: 84px 1fr;
  }

  .replay-res,
  .replay-ms {
    display: none;
  }
}

/* stylized console hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  max-width: 1080px;
  text-align: left;
}

.hero-copy .pitch {
  margin-left: 0;
}

.hero-console {
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.console-body {
  background: linear-gradient(180deg, var(--slate) 0%, #232a3d 100%);
  border: 1px solid var(--steel);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow:
    inset 0 1px 0 rgba(148, 176, 194, 0.18),
    0 24px 48px rgba(10, 12, 22, 0.55);
}

.console-screen {
  background: #0d0f1a;
  border: 1px solid #0a0c14;
  border-radius: 10px;
  padding: 14px;
  position: relative;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(65, 166, 246, 0.14);
}

.console-screen img {
  display: block;
  width: var(--scr, 100%);
  aspect-ratio: 1 / 1;
  image-rendering: pixelated;
  border-radius: 4px;
}

.console-screen::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    0deg,
    rgba(26, 28, 44, 0.22) 0px,
    rgba(26, 28, 44, 0.22) 1px,
    transparent 1px,
    transparent var(--spx, 4px)
  );
  pointer-events: none;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px;
}

.console-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(56, 183, 100, 0.8);
  animation: led-pulse 2.4s ease-in-out infinite;
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.console-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--silver);
}

.console-slot {
  margin-left: auto;
  width: 84px;
  height: 12px;
  border-radius: 3px;
  background: #0a0c14;
  border: 1px solid var(--slate);
  display: flex;
  align-items: center;
  padding: 0 3px;
}

.slot-tab {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--black);
  background: var(--orange);
  border-radius: 2px;
  padding: 1px 4px;
  line-height: 1;
}

.console-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--silver);
  margin-top: 14px;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .hero-copy .pitch {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .console-led {
    animation: none;
  }
}

.console-screen { position: relative; }
.console-screen img,
.console-screen canvas {
  display: block;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  image-rendering: pixelated;
  border-radius: 4px;
}
.console-screen .screen-off { display: none; }
.console-screen canvas:focus {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.console-live {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(13, 15, 26, 0.85);
  border: 1px solid rgba(167, 240, 112, 0.4);
  border-radius: 3px;
  padding: 2px 6px;
}
.console-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(13, 15, 26, 0.85);
  border-radius: 3px;
  padding: 3px 8px;
  pointer-events: none;
}
