:root {
  --void: #070708;
  --ink: #0d0e11;
  --panel: #13151a;
  --line: #24262d;
  --mute: #8b8e98;
  --paper: #f3eee4;
  --lime: #d6ff3c;
  --lime-dim: #9fbf20;
  --magenta: #ff3d8a;
  --cyan: #3dfff0;
  --venmo: #008cff;
  --radius: 18px;
  --nav-h: 72px;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Syne", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-ui);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 7px,
      rgba(214, 255, 60, 0.015) 7px 8px
    );
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 8, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav-links a:hover {
  color: var(--lime);
}

.nav-spacer {
  flex: 1;
}

.venmo-chip,
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venmo-chip {
  color: #b7dcff;
  border-color: #1b4d7a;
}

.cart-btn {
  background: var(--lime);
  color: #111;
  border-color: var(--lime);
}

.cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #111;
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}

.hero {
  position: relative;
  z-index: 2;
  padding: 54px 0 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 148px);
  line-height: 0.82;
  letter-spacing: 0.02em;
}

.hero h1 span {
  display: block;
}

.hero h1 .acid {
  color: var(--lime);
}

.hero-lede {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.45;
  color: #d7d3c8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.btn-lime {
  background: var(--lime);
  color: #111;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--paper);
}

.btn-venmo {
  background: var(--venmo);
  color: #fff;
}

.btn-magenta {
  background: var(--magenta);
  color: #fff;
}

.printer {
  position: relative;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(214, 255, 60, 0.18), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(255, 61, 138, 0.16), transparent 40%),
    var(--ink);
  overflow: hidden;
}

.printer-bed {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 38px;
  height: 14px;
  border-radius: 6px;
  background: #1c1e24;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.gantry {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 54px;
  height: 10px;
  background: #2a2d34;
  border-radius: 4px;
  animation: gantry 4.8s ease-in-out infinite;
}

.hotend {
  position: absolute;
  left: 46%;
  top: 54px;
  width: 28px;
  margin-left: -14px;
  animation: nozzle 4.8s ease-in-out infinite;
}

.hotend-body {
  height: 38px;
  background: linear-gradient(#d6ff3c, #8aa318);
  clip-path: polygon(18% 0, 82% 0, 70% 70%, 30% 70%);
}

.hotend-tip {
  width: 8px;
  height: 16px;
  margin: -2px auto 0;
  background: #ff3d8a;
}

.filament {
  width: 3px;
  height: 150px;
  margin: 0 auto;
  background: linear-gradient(var(--lime), transparent);
  animation: drip 1.2s linear infinite;
  transform-origin: top;
}

.print-part {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 110px;
  height: 54px;
  margin-left: -55px;
  background:
    repeating-linear-gradient(
      180deg,
      #c8ff3d 0 3px,
      #9ccc22 3px 4px
    );
  clip-path: polygon(8% 100%, 0 40%, 20% 0, 80% 0, 100% 40%, 92% 100%);
  animation: grow 4.8s ease-in-out infinite;
}

@keyframes gantry {
  0%, 100% { transform: translateX(-8%); }
  50% { transform: translateX(8%); }
}

@keyframes nozzle {
  0%, 100% { transform: translateX(-42px); }
  50% { transform: translateX(42px); }
}

@keyframes drip {
  from { transform: scaleY(0.4); opacity: 0.3; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes grow {
  0% { height: 12px; }
  100% { height: 54px; }
}

.marquee {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--line);
  background: #0a0b0e;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  padding: 10px 0;
  color: var(--lime);
}

.marquee-track span {
  padding: 0 28px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 22px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--lime);
}

.stat span {
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop {
  position: relative;
  z-index: 2;
  padding: 42px 0 80px;
}

.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.shop-head h2 {
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter,
.search {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.filter.is-on,
.filter:hover {
  background: var(--lime);
  color: #111;
  border-color: var(--lime);
}

.search {
  width: 180px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

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

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #3a3d46;
}

.card.featured {
  border-color: rgba(214, 255, 60, 0.35);
}

.thumb {
  height: 210px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(214, 255, 60, 0.08), transparent 55%),
    #0c0d11;
  cursor: pointer;
}

.thumb svg {
  width: 78%;
  height: 78%;
}

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.price {
  color: var(--magenta);
  font-weight: 600;
}

.card h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.blurb {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
}

.swatches {
  display: flex;
  gap: 7px;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.swatch.is-on {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-actions .btn {
  flex: 1;
  height: 42px;
}

.how,
.fine {
  position: relative;
  z-index: 2;
  padding: 28px 0 60px;
}

.how h2,
.fine h2 {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--ink);
}

.step b {
  display: block;
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.fine p {
  max-width: 70ch;
  color: var(--mute);
  line-height: 1.55;
  margin-bottom: 10px;
}

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--mute);
  font-size: 13px;
}

.drawer-bg,
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-bg.open,
.modal-bg.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #0d0e12;
  border-left: 1px solid var(--line);
  z-index: 60;
  transform: translateX(104%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: none;
}

.drawer-head,
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.drawer h2,
.modal h2 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.06em;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 12px 18px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row small {
  color: var(--mute);
  display: block;
  margin-top: 4px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.cart-foot {
  padding: 16px 18px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
}

.ship-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ship-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.ship-opt.is-on {
  border-color: var(--lime);
  color: var(--lime);
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.totals .row {
  display: flex;
  justify-content: space-between;
  color: var(--mute);
  font-size: 13px;
}

.totals .row.grand {
  color: var(--paper);
  font-size: 18px;
  font-weight: 800;
  padding-top: 6px;
}

.note-in {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--ink);
}

.hint {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.4;
}

.modal {
  position: fixed;
  z-index: 70;
  inset: 8vh 50% auto auto;
  transform: translateX(50%);
  width: min(720px, calc(100% - 28px));
  background: #101218;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: none;
}

.modal.open {
  display: block;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal .thumb {
  height: 100%;
  min-height: 280px;
  border-radius: 22px 0 0 22px;
}

.modal-copy {
  padding: 18px 18px 22px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--lime);
  color: #111;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty {
  color: var(--mute);
  padding: 24px 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .modal-grid,
  .stats,
  .steps,
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links,
  .venmo-chip {
    display: none;
  }
  .hero h1 {
    font-size: 84px;
  }
  .printer {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .grid,
  .stats,
  .steps,
  .hero-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .shop-head h2,
  .how h2,
  .fine h2 {
    font-size: 42px;
  }
  .footer {
    flex-direction: column;
  }
  .modal {
    inset: 4vh 12px auto 12px;
    transform: none;
    width: auto;
  }
}
