/* SpaceLabels product page — Cassette Futurism variant */

:root {
  --chassis: #1c1b19;
  --panel: #2a2926;
  --panel-hi: #3a3834;
  --bezel: #141312;
  --screw: #5a574f;
  --ink: #d8d2c4;
  --ink-dim: #9a9284;
  --lcd: #ffb84d;
  --lcd-dim: #c47a18;
  --phosphor: #5dff9a;
  --led: #ff6a1a;
  --led-glow: rgba(255, 106, 26, 0.55);
  --key: #e85d04;
  --key-deep: #9a3400;
  --wide: 68rem;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--chassis);
  position: relative;
}

/* Chassis atmosphere: dark plastic + vent ridges */
.chassis {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--chassis);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(70, 60, 40, 0.35), transparent 60%),
    repeating-linear-gradient(
      90deg,
      transparent 0 10px,
      rgba(0, 0, 0, 0.22) 10px 11px
    ),
    linear-gradient(180deg, #262420 0%, #171614 45%, #10100e 100%);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
}

/* —— Hero —— */

.hero {
  text-align: center;
  max-width: var(--wide);
  margin: 0 auto;
}

.deck-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.brand {
  margin: 0 0 0.7rem;
  font-family: "Chakra Petch", "Share Tech Mono", sans-serif;
  font-weight: 700;
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lcd);
  text-shadow:
    0 0 12px rgba(255, 184, 77, 0.35),
    0 0 1px var(--lcd-dim);
}

.tagline {
  margin: 0 auto 0.9rem;
  max-width: 24ch;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  color: var(--ink-dim);
  font-size: 1rem;
  text-wrap: pretty;
}

/* Monitor bezel around hero shot */
.hero-shot {
  margin: 0 auto;
  max-width: var(--wide);
}

.bezel {
  position: relative;
  padding: 1.35rem 1rem 1rem;
  background:
    linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 2px solid #0c0c0b;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(0, 0, 0, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.bezel::before,
.bezel::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #8a867c, var(--screw) 55%, #2a2824 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.bezel::before {
  top: 10px;
  left: 10px;
}

.bezel::after {
  top: 10px;
  right: 10px;
}

.bezel__led {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 10px var(--led-glow), 0 0 2px #fff3;
}

.bezel__caption {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}

.crt {
  position: relative;
  overflow: hidden;
  border: 3px solid #0a0a09;
  border-radius: 2px;
  background: #050505;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
}

.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.45;
}

.crt img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}

/* —— Download = tape-deck transport key —— */

.download {
  display: flex;
  justify-content: center;
  margin: 1.6rem 0 3rem;
}

.download-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 14rem;
  padding: 0.95rem 2.2rem 0.85rem;
  border-radius: 3px;
  text-decoration: none;
  color: #1a0d05;
  font-family: "Chakra Petch", "Share Tech Mono", sans-serif;
  background: linear-gradient(180deg, #ff8a3d 0%, var(--key) 48%, var(--key-deep) 100%);
  border: 2px solid #4a1c00;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 170, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.28),
    0 8px 0 #2a1205,
    0 12px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.download-btn:hover {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 170, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.28),
    0 7px 0 #2a1205,
    0 10px 18px rgba(0, 0, 0, 0.4);
}

.download-btn:active {
  transform: translateY(6px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 2px 0 #2a1205,
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.download-btn__key {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 8px rgba(93, 255, 154, 0.7);
}

.download-btn__label {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-btn__meta {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* —— Story panel —— */

.story {
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  padding: 1.4rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, #262521, #1f1e1b);
  border: 1px solid #0d0d0c;
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.story h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lcd);
}

.story__index {
  color: var(--led);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.story p {
  margin: 0 0 0.85rem;
  color: var(--ink-dim);
}

.story p:last-child {
  margin-bottom: 0;
}

/* —— Explain cards = channel modules —— */

.explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0 0 3rem;
}

.card {
  margin: 0;
  padding: 0.75rem 0.75rem 1.15rem;
  background: linear-gradient(180deg, #2c2a26, #221f1c);
  border: 1px solid #0d0d0c;
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.card__media {
  position: relative;
  margin: 0 0 0.85rem;
  overflow: hidden;
  border: 2px solid #0a0a09;
  border-radius: 2px;
  background: #050505;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.35;
}

.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.8);
}

.card__slot {
  margin: 0 0.35rem 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--phosphor);
  text-shadow: 0 0 8px rgba(93, 255, 154, 0.35);
}

.card h3 {
  margin: 0 0.35rem 0.45rem;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.card p:not(.card__slot) {
  margin: 0 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}

/* —— Footer —— */

.footer {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.footer p {
  margin: 0.25rem 0;
}

.footer__meta {
  opacity: 0.8;
  font-size: 0.75rem;
}

/* —— Responsive —— */

@media (max-width: 720px) {
  .page {
    width: min(100% - 1.25rem, var(--wide));
    padding-top: 1.75rem;
  }

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

  .bezel {
    padding: 1.2rem 0.7rem 0.75rem;
  }

  .story {
    padding: 1.2rem 1.1rem;
  }

  .download {
    margin-bottom: 2.25rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --wide: 74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .download-btn {
    transition: none;
  }

  .crt::after,
  .card__media::after {
    display: none;
  }
}
