:root {
  --bg: #0a0c0b;
  --bg-2: #101412;
  --bg-3: #161b18;
  --ink: #f4f7f2;
  --muted: #b7c2b7;
  --line: rgba(124, 252, 0, 0.14);
  --line-strong: rgba(124, 252, 0, 0.32);
  --accent: #7cfc00;
  --btn-bg: #7cfc00;
  --accent-2: #39ff14;
  --accent-dim: #3d7a12;
  --ink-on-accent: #0a0c0b;
  --danger: #f87171;
  --radius: 16px;
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}
body {
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100%;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink-on-accent);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus, .skip:focus-visible {
  top: 12px;
  outline-color: var(--ink);
}

/* ---- Animated circuit / data field (page-wide, decorative) ---- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(55% 70% at 82% 28%, rgba(57, 255, 20, 0.10), transparent 62%),
    radial-gradient(45% 50% at 8% 88%, rgba(124, 252, 0, 0.07), transparent 68%),
    linear-gradient(180deg, #0c100d 0%, var(--bg) 42%, #070908 100%);
}
.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 252, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 252, 0, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 30%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 80% at 70% 30%, #000 20%, transparent 78%);
}
.scene-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.2) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.2) 100%);
}
.scene-circuit .tr path {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.28;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: square;
}
.scene-circuit .nd circle {
  fill: var(--bg);
  stroke: currentColor;
  stroke-opacity: 0.55;
  stroke-width: 1.4;
}
.scene-circuit .pl path {
  fill: none;
  stroke: #c8ff6a;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 8 92;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(124, 252, 0, 0.95));
  animation: dataPulse 7s linear infinite;
}
.scene-circuit .pl path:nth-child(2) { animation-duration: 9s; animation-delay: -2s; }
.scene-circuit .pl path:nth-child(3) { animation-duration: 6.4s; animation-delay: -3.5s; }
.scene-circuit .pl path:nth-child(4) { animation-duration: 8.2s; animation-delay: -1.2s; }
.scene-glow {
  position: absolute;
  width: 42%;
  height: 50%;
  right: -6%;
  top: -8%;
  background: radial-gradient(closest-side, rgba(57, 255, 20, 0.16), transparent 72%);
  filter: blur(8px);
}
.scene-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent) no-repeat;
  background-size: 32% 100%;
  background-position: -40% 0;
  animation: dataSweep 8s cubic-bezier(.45, 0, .55, 1) infinite;
  opacity: 0.85;
}
@keyframes dataPulse { to { stroke-dashoffset: 0; } }
@keyframes dataSweep {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---- Header ---- */
header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 12, 11, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.brand span {
  color: var(--ink);
  letter-spacing: 0.16em;
  margin-left: 0.4em;
  font-weight: 400;
}
.brand:hover { color: var(--accent-2); }
.nav-desktop { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-desktop a,
.menu nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
  font-weight: 500;
}
.nav-desktop a:hover,
.menu nav a:hover { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover,
.menu[open] summary { color: var(--ink); }
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.menu nav a {
  margin: 0;
  padding: 10px 16px;
  display: block;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  padding: 48px 0 64px;
  overflow: hidden;
  min-height: min(78vh, 740px);
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  z-index: 2;
}
.hero-copy { max-width: 640px; padding: 12px 0 24px; position: relative; z-index: 2; }
.eye {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 8px;
}
.eye span { white-space: nowrap; }
.eye .sep { opacity: 0.7; letter-spacing: 0; }
.eye::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 252, 0, 0.22), 0 0 12px rgba(124, 252, 0, 0.9);
  animation: liveBlink 2.6s ease-in-out infinite;
  flex: 0 0 auto;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.hero .lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  max-width: 36em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.founder {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.founder picture, .founder img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.founder img {
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 3px rgba(10, 12, 11, 0.8), 0 0 24px rgba(124, 252, 0, 0.18);
}
.founder figcaption {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.founder figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(54%, 780px);
  pointer-events: none;
  z-index: 1;
}
.hero-art picture, .hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  display: block;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 12, 11, 0.7) 12%, rgba(10, 12, 11, 0.15) 32%, transparent 48%),
    linear-gradient(180deg, transparent 62%, rgba(10, 12, 11, 0.35) 82%, var(--bg) 100%),
    linear-gradient(0deg, transparent 78%, rgba(10, 12, 11, 0.45) 100%);
  pointer-events: none;
}

/* ---- Shelves / cards ---- */
main { position: relative; z-index: 1; }
.shelf { padding: 12px 0 64px; }
.section-title {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  font-weight: 650;
  font-weight: 600;
}
.section-lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 760px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(16, 20, 18, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.card header { display: flex; gap: 12px; align-items: flex-start; }
.swatch {
  width: 12px;
  height: 48px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
  flex: 0 0 auto;
}
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.card h3 {
  margin: 2px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: break-word;
  font-weight: 600;
}
.pitch { margin: 0; flex: 1; }
.price {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 15px;
}
.price span { color: var(--muted); font-size: 12px; }
.works { margin: 0; color: var(--muted); font-size: 14px; }
.fine { margin: 0; color: var(--muted); font-size: 13px; }
.buys { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--ink-on-accent);
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { color: var(--ink-on-accent); background: #b6ff4a; }
.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn[disabled], .btn.pending {
  opacity: 0.55;
  cursor: not-allowed;
  background: #1c2530;
  color: var(--muted);
  border-color: var(--line);
}
.badge {
  display: inline-block;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge.soon { color: #fbbf24; border-color: #78350f; }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 0 64px;
  color: var(--muted);
  font-size: 14px;
}
footer .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 32px;
  flex-wrap: wrap;
}
footer .row > div:first-child { flex: 1 1 28rem; max-width: 70ch; }
footer .row > div:last-child { flex: 0 0 auto; padding-top: 4px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
.legal { max-width: 760px; padding: 48px 0 80px; position: relative; z-index: 1; }
.legal h1 { letter-spacing: -0.03em; font-size: clamp(32px, 5vw, 44px); margin: 0 0 16px; }
.legal h2 { margin-top: 32px; font-size: 22px; }
.legal p { color: var(--muted); }
.legal p, .legal li { max-width: 70ch; }
.legal code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.92em;
  color: var(--ink);
}

@media (max-width: 920px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
  .hero { min-height: 0; padding: 0 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; width: min(1160px, calc(100% - 32px)); }
  .hero-art {
    position: relative;
    width: 100vw;
    height: 420px;
    max-height: 52vh;
    margin: 0 calc(50% - 50vw);
    order: -1;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .hero-art picture, .hero-art img {
    width: 100%;
    height: 100%;
    object-position: 50% 38%;
  }
  .hero-art::after {
    background:
      linear-gradient(180deg, rgba(10, 12, 11, 0.35) 0%, transparent 22%, transparent 55%, rgba(10, 12, 11, 0.55) 82%, var(--bg) 100%),
      linear-gradient(90deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
  }
  .hero-copy { padding-top: 8px; }
  .eye { letter-spacing: 0.12em; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .scene-grid {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.45) 100%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.45) 100%);
    background-size: 32px 32px;
  }
  .scene-circuit { opacity: 0.5; }
}
@media (max-width: 600px) {
  .wrap, .hero-grid { width: calc(100% - 32px); }
  .hero .lede { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .eye { column-gap: 0; }
  .eye .sep { display: none; }
  .eye span { display: block; }
  .eye { flex-direction: column; align-items: flex-start; gap: 4px 0; padding-left: 18px; position: relative; }
  .eye::before { position: absolute; left: 0; top: 0.35em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-circuit .pl { display: none; }
  .scene-sweep { animation: none; background-size: 100% 100%; background-position: 0 0; opacity: 0.45; }
  .eye::before { animation: none; }
  .card { transition: none; }
}

/* ---- Category filter ---- */
.catalog-filter {
  position: sticky;
  top: var(--header-h);
  z-index: 12;
  margin: 0 0 28px;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, rgba(10, 12, 11, 0.96) 0%, rgba(10, 12, 11, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.filter-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.filter-status {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.filter-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 252, 0, 0.35) transparent;
  margin: 0 -4px;
  padding: 2px 4px 8px;
}
.filter-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  min-width: 100%;
}
.filter-pill {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 20, 18, 0.7);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  scroll-margin-top: calc(var(--header-h) + 10px);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-pill.is-active,
.filter-pill[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink-on-accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(124, 252, 0, 0.2), 0 0 18px rgba(124, 252, 0, 0.28);
}
.filter-pill.is-active:hover,
.filter-pill[aria-pressed="true"]:hover {
  background: #b6ff4a;
  color: var(--ink-on-accent);
  border-color: #b6ff4a;
}
.filter-pill[hidden] { display: none; }
.card.is-hidden,
.shelf.is-hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  .filter-pill { transition: none; }
}
