:root {
  --ink: #0b0b0b;
  --bone: #e3e5e2;
  --acid: #3fa9f5;
  --hazard: #ff7a1a;
  --steel: #b9b6aa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  background: radial-gradient(circle at top left, #e1e4e6 0%, #cfd3d6 48%, #b8bcc1 100%);
  color: var(--ink);
  letter-spacing: 0.2px;
}

body[data-theme="dark"] {
  --ink: #f1f3f4;
  --bone: #17191c;
  --steel: #2c2f33;
  background: radial-gradient(circle at top left, #1b1f24 0%, #121417 52%, #0b0d10 100%);
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 4px solid var(--ink);
  background: var(--bone);
}

.brand {
  display: grid;
  gap: 6px;
  text-transform: uppercase;
}

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  border: 3px solid var(--ink);
  background: transparent;
  padding: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  width: 44px;
  height: 44px;
}

.party-toggle {
  border: 3px solid var(--ink);
  background: var(--acid);
  padding: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  width: 44px;
  height: 44px;
  box-shadow: 3px 3px 0 var(--ink);
}

.party-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: square;
}

.icon-moon {
  fill: currentColor;
  stroke: none;
  display: none;
}

.icon-party {
  fill: none;
  stroke: currentColor;
}

body[data-theme="dark"] .icon-sun {
  display: none;
}

body[data-theme="dark"] .icon-moon {
  display: block;
}

.stamp {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
}

.sub {
  font-size: 12px;
  color: #38332c;
}

.cart {
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  padding: 8px 14px;
  background: var(--acid);
  min-width: 80px;
  text-transform: uppercase;
}

.cart-label {
  font-size: 11px;
}

.cart-count {
  font-size: 24px;
  font-weight: 700;
}

main {
  padding: 32px;
  display: grid;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero {
  border: 4px solid var(--ink);
  padding: 32px;
  background: var(--bone);
  display: grid;
  gap: 18px;
}

.hero h1 {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(36px, 8vw, 96px);
  margin: 0;
  line-height: 0.95;
}

.hero-copy {
  font-size: 18px;
  max-width: 580px;
}

.ip-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 2px dashed var(--ink);
  padding: 8px 12px;
  width: fit-content;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.6);
}

.ip-label {
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta {
  border: 4px solid var(--ink);
  background: var(--hazard);
  color: #fff;
  padding: 14px 24px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.cta:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

.fineprint {
  font-size: 12px;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #111;
  color: var(--acid);
}

.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 10px 0;
  font-weight: 700;
  white-space: nowrap;
  animation: scroll 18s linear infinite;
}

.ticker span {
  text-transform: uppercase;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  border: 3px solid var(--ink);
  padding: 20px;
  background: #e8eaeb;
  display: grid;
  gap: 12px;
  min-height: 260px;
  position: relative;
}

.card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed #5b554d;
  pointer-events: none;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  text-transform: uppercase;
}

.card h2 {
  font-size: 18px;
  margin: 0;
}

.price {
  font-size: 18px;
  font-weight: 700;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  border: 2px solid var(--ink);
  padding: 2px 6px;
  font-size: 10px;
  text-transform: uppercase;
  background: var(--acid);
}

.ghost {
  border: 2px solid var(--ink);
  background: transparent;
  padding: 8px 12px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
}

.bundle {
  border: 4px solid var(--ink);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #cfd6cf;
}

.bundle h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 22px;
}

.faq {
  border: 3px solid var(--ink);
  padding: 24px;
  background: var(--bone);
  display: grid;
  gap: 18px;
}

.faq h3 {
  margin: 0;
  text-transform: uppercase;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.q {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.a {
  font-size: 14px;
}

.footer {
  border-top: 4px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 32px 36px;
  text-transform: uppercase;
  font-size: 12px;
  background: #d4d7db;
}

body[data-theme="dark"] .mast,
body[data-theme="dark"] .hero,
body[data-theme="dark"] .faq {
  background: var(--bone);
}

body[data-theme="dark"] .card {
  background: #202328;
}

body[data-theme="dark"] .bundle {
  background: #2a2f35;
}

body[data-theme="dark"] .footer {
  background: #1b1f24;
}

body[data-theme="dark"] .tags li {
  background: #2b4a5c;
}

body[data-theme="dark"] .ip-readout {
  background: rgba(0, 0, 0, 0.25);
}

.footnote {
  text-transform: none;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 16px;
  border: 3px solid var(--bone);
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.confetti {
  position: fixed;
  width: 10px;
  height: 14px;
  top: -20px;
  left: 0;
  background: var(--hazard);
  transform: rotate(0deg);
  animation: fall 1400ms linear forwards;
  z-index: 20;
  pointer-events: none;
}

.lightshow {
  position: fixed;
  inset: -10%;
  background: conic-gradient(
    from 0deg,
    #ff7a1a,
    #3fa9f5,
    #ffd36a,
    #f1f3f4,
    #1b1f24,
    #ff7a1a
  );
  mix-blend-mode: screen;
  opacity: 0;
  animation: lightshow 1200ms ease-out forwards;
  pointer-events: none;
  z-index: 15;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(220deg);
    opacity: 0;
  }
}

@keyframes lightshow {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(1);
  }
  20% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.25;
    transform: rotate(60deg) scale(1.05);
  }
  80% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: rotate(120deg) scale(1.08);
  }
}

@media (max-width: 720px) {
  .mast {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  main {
    padding: 20px;
  }

  .hero {
    padding: 24px;
  }

  .bundle {
    flex-direction: column;
    align-items: flex-start;
  }
}
