:root {
  color-scheme: light;
  --ink: #171819;
  --muted: #5e656b;
  --paper: #f5f4ef;
  --panel: #ffffff;
  --line: rgba(23, 24, 25, 0.12);
  --graphite: #101214;
  --rose: #ff305c;
  --red-glow: #ff6d7c;
  --warm-gray: #d6d1c7;
  --cool-gray: #707780;
  --shadow: 0 26px 70px rgba(16, 18, 20, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body::selection {
  color: #fff;
  background: var(--rose);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.scroll-meter {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #7d0d1d, var(--rose), var(--red-glow));
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 72px) clamp(34px, 5vw, 60px);
  color: #fff;
  background: #090a0b;
  isolation: isolate;
}

.hero::before,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero::before {
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 48, 92, 0.08), transparent 38%),
    linear-gradient(rgba(255, 48, 92, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 92, 0.13) 1px, transparent 1px),
    linear-gradient(135deg, #070809 0%, #171b1d 48%, #090a0b 100%);
  background-size: auto, 68px 68px, 68px 68px, auto;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.9), rgba(8, 9, 10, 0.52) 46%, rgba(8, 9, 10, 0.18)),
    linear-gradient(0deg, rgba(8, 9, 10, 0.76), rgba(8, 9, 10, 0.06) 58%);
}

.hero-content {
  width: 100%;
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.step-label,
.media-caption p,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.panel-kicker {
  color: #85f7e8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(3.15rem, 8vw, 7.3rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.68;
}

.hero-byline {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  line-height: 1.4;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #101214;
  background: #fff;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.button.small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.82rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.matrix-workbench {
  position: relative;
  width: min(100%, 700px);
  margin-inline: auto;
  overflow: visible;
  filter: drop-shadow(0 42px 54px rgba(0, 0, 0, 0.5));
}

.hero .matrix-workbench {
  width: min(88%, 560px);
  justify-self: end;
}

.device-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1079 / 1580;
}

.device-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.matrix-shell {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  z-index: 2;
}

.matrix-board {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
  touch-action: none;
  user-select: none;
}

.matrix-pixel {
  position: absolute;
  left: var(--led-x);
  top: var(--led-y);
  isolation: isolate;
  width: 3.55%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: background 90ms ease, box-shadow 90ms ease, transform 90ms ease;
}

.matrix-pixel::before,
.matrix-pixel::after {
  content: "";
  position: absolute;
  inset: -52%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.matrix-pixel::before {
  background:
    radial-gradient(circle, rgba(255, 142, 150, 0.28) 0 6%, rgba(255, 46, 62, 0.5) 17%, rgba(255, 18, 42, 0.24) 40%, rgba(255, 18, 42, 0.08) 58%, transparent 76%);
  filter: blur(3px);
  mix-blend-mode: screen;
}

.matrix-pixel::after {
  inset: -10%;
  background:
    radial-gradient(circle, rgba(255, 176, 180, 0.46) 0 7%, rgba(255, 68, 80, 0.68) 18%, rgba(255, 20, 44, 0.32) 43%, transparent 72%);
  filter: blur(1px);
  mix-blend-mode: screen;
}

.matrix-pixel:hover,
.matrix-pixel:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.matrix-pixel.is-on {
  background:
    radial-gradient(circle, rgba(255, 150, 156, 0.42) 0 8%, rgba(255, 58, 72, 0.58) 18%, rgba(255, 22, 46, 0.38) 34%, rgba(255, 18, 42, 0.12) 56%, transparent 74%);
  filter: saturate(1.15) brightness(1.08);
  mix-blend-mode: screen;
  box-shadow:
    0 0 5px rgba(255, 96, 108, 0.48),
    0 0 12px rgba(255, 34, 54, 0.58),
    0 0 24px rgba(255, 22, 44, 0.32);
}

.matrix-pixel.is-on::before,
.matrix-pixel.is-on::after {
  opacity: 0.76;
}

.matrix-pixel.is-cursor {
  outline: none;
}

.matrix-pixel.is-cursor:not(.is-on) {
  background:
    radial-gradient(circle, rgba(255, 130, 138, 0.2) 0 9%, rgba(255, 44, 62, 0.42) 22%, rgba(255, 24, 44, 0.22) 42%, rgba(255, 18, 42, 0.08) 58%, transparent 76%);
  mix-blend-mode: screen;
  box-shadow:
    0 0 4px rgba(255, 84, 96, 0.3),
    0 0 10px rgba(255, 34, 54, 0.28);
  animation: cursorBlink 760ms ease-in-out infinite;
}

.matrix-pixel.is-on.is-cursor {
  animation: litCursorBlink 760ms ease-in-out infinite;
  box-shadow:
    0 0 6px rgba(255, 96, 108, 0.52),
    0 0 14px rgba(255, 34, 54, 0.62),
    0 0 28px rgba(255, 22, 44, 0.34);
}

.push-controls {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 3;
}

.push-button {
  position: absolute;
  width: 12%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  transform: translate(-50%, -50%);
  transition: transform 90ms ease, background 120ms ease, box-shadow 120ms ease;
}

.push-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.push-button:hover,
.push-button:focus-visible {
  background: transparent;
  box-shadow: none;
  outline: none;
}

.push-button:active,
.push-button.is-pressed {
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.push-button.up {
  left: 59.4%;
  top: 51.1%;
}

.push-button.left {
  left: 49.1%;
  top: 57.7%;
}

.push-button.toggle {
  left: 60.2%;
  top: 58.1%;
}

.push-button.right {
  left: 72.7%;
  top: 58.1%;
}

.push-button.down {
  left: 60.6%;
  top: 65.0%;
}

.push-button.clear {
  left: 23.8%;
  top: 64.0%;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(72px, 9vw, 118px) 0;
}

.intro-grid,
.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.demo-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy p:not(.section-kicker),
.demo-copy p:not(.section-kicker),
.step-copy p:not(.step-label) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats-panel div {
  min-height: 170px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--panel);
  transition: transform 220ms ease, background 220ms ease;
}

.stats-panel div:hover {
  background: #fbfbf8;
  transform: translateY(-3px);
}

.stats-panel span {
  display: block;
  min-height: 1em;
  margin-bottom: 34px;
  font-size: clamp(1.75rem, 4vw, 3.55rem);
  font-weight: 820;
  line-height: 0.94;
}

.stats-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  text-transform: uppercase;
}

.materials-panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.materials-panel p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.5;
}

.materials-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.55;
}

.process-section {
  display: grid;
  gap: clamp(40px, 7vw, 86px);
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(72px, 9vw, 118px) 0;
}

.process-entry {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.process-copy {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.5;
}

.process-media {
  display: grid;
  gap: 16px;
}

.process-media img,
.process-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(23, 24, 25, 0.1);
  border-radius: 0;
  background: #151719;
  box-shadow: 0 18px 48px rgba(16, 18, 20, 0.1);
  object-fit: contain;
}

.process-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 25, 0.1);
  border-radius: 0;
  background: #151719;
  box-shadow: 0 18px 48px rgba(16, 18, 20, 0.1);
}

.carousel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.carousel-frame img,
.carousel-frame video {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.carousel-frame img.is-active,
.carousel-frame video.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  color: #fff;
  background: rgba(10, 10, 10, 0.58);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 160ms ease, border-color 160ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  border-color: #fff;
  background: rgba(10, 10, 10, 0.82);
}

.carousel-button:focus-visible {
  outline: 3px solid rgba(255, 48, 92, 0.72);
  outline-offset: 3px;
}

.carousel-button.previous {
  left: 14px;
}

.carousel-button.next {
  right: 14px;
}

.media-strip {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  width: min(1380px, calc(100% - 32px));
  margin-inline: auto;
  padding: 20px 0 clamp(72px, 9vw, 118px);
}

.media-feature {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #151719;
  box-shadow: var(--shadow);
}

.media-feature.tall {
  min-height: 650px;
}

.image-placeholder {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 25, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 48, 92, 0.2), transparent 34%),
    linear-gradient(315deg, rgba(52, 230, 211, 0.2), transparent 38%),
    #e9ece7;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 24, 25, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 25, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
  pointer-events: none;
}

.media-caption {
  position: absolute;
  inset: auto 18px 18px;
  max-width: 560px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(16px);
}

.media-caption p {
  color: #94f4e6;
}

.media-caption h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.placeholder-art {
  position: absolute;
  inset: 0;
}

.led-panel-art {
  display: grid;
  place-items: center;
}

.led-panel-art::before {
  content: "";
  width: min(72%, 650px);
  aspect-ratio: 1;
  border: 14px solid #111315;
  border-radius: 10px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0 4px, transparent 5px) 0 0 / 30px 30px,
    radial-gradient(circle at 20% 35%, rgba(255, 48, 92, 0.95), transparent 22%),
    radial-gradient(circle at 68% 48%, rgba(255, 48, 92, 0.52), transparent 24%),
    radial-gradient(circle at 42% 72%, rgba(255, 109, 124, 0.6), transparent 20%),
    #16191b;
  box-shadow: 0 38px 90px rgba(23, 24, 25, 0.3);
  transform: perspective(900px) rotateX(47deg) rotateZ(-7deg) translateY(5%);
}

.controller-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18% 12%;
}

.controller-art i {
  min-height: 110px;
  border: 2px solid rgba(23, 24, 25, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 28%, var(--rose) 0 8px, transparent 9px),
    radial-gradient(circle at 70% 62%, var(--cool-gray) 0 7px, transparent 8px),
    linear-gradient(90deg, transparent 48%, rgba(23, 24, 25, 0.18) 49% 51%, transparent 52%);
}

.sticky-copy {
  align-self: start;
  position: sticky;
  top: 116px;
}

.parts-list {
  display: grid;
  gap: 14px;
}

.part-card {
  min-height: 174px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(16, 18, 20, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.part-card:hover {
  border-color: rgba(255, 48, 92, 0.38);
  box-shadow: 0 26px 70px rgba(16, 18, 20, 0.12);
  transform: translateY(-5px);
}

.part-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--graphite);
  font-size: 0.75rem;
  font-weight: 800;
}

.part-card h3,
.step-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.part-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.tutorial-section {
  width: min(1240px, calc(100% - 32px));
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 60px);
}

.timeline {
  display: grid;
  gap: clamp(48px, 8vw, 92px);
}

.tutorial-step {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.tutorial-step.reversed {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.tutorial-step.reversed .step-media {
  order: 2;
}

.step-media {
  min-height: clamp(340px, 46vw, 620px);
  box-shadow: var(--shadow);
}

.panel-art {
  display: grid;
  place-items: center;
}

.panel-art::before {
  content: "";
  width: min(58%, 430px);
  aspect-ratio: 1;
  border: 12px solid #151719;
  border-radius: 8px;
  background:
    radial-gradient(circle, #222629 0 5px, transparent 6px) 14px 14px / 32px 32px,
    linear-gradient(135deg, rgba(255, 48, 92, 0.4), transparent 34%),
    linear-gradient(315deg, rgba(255, 109, 124, 0.24), transparent 34%),
    #0d0f11;
  box-shadow: 0 34px 80px rgba(23, 24, 25, 0.24);
  transform: rotate(-7deg);
}

.power-art {
  display: grid;
  place-items: center;
}

.power-art span {
  position: absolute;
  width: min(58%, 470px);
  height: 8px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 14px 26px rgba(23, 24, 25, 0.14);
}

.power-art span:nth-child(1) {
  transform: translateY(-104px) rotate(-8deg);
}

.power-art span:nth-child(2) {
  background: #2b2d30;
  transform: translateY(-48px) rotate(7deg);
}

.power-art span:nth-child(3) {
  background: var(--warm-gray);
  transform: translateY(10px) rotate(-4deg);
}

.power-art span:nth-child(4) {
  background: #202124;
  transform: translateY(70px) rotate(9deg);
}

.power-art span:nth-child(5) {
  width: min(34%, 260px);
  background: var(--rose);
  transform: translateY(132px) rotate(-12deg);
}

.upload-art,
.pattern-art {
  display: grid;
  place-items: center;
}

.upload-art::before {
  content: "";
  width: min(62%, 460px);
  aspect-ratio: 1.4;
  border: 3px solid rgba(23, 24, 25, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255, 48, 92, 0.76) 46% 54%, transparent 54%),
    linear-gradient(transparent 0 46%, rgba(45, 49, 52, 0.55) 46% 54%, transparent 54%),
    radial-gradient(circle at 28% 50%, #151719 0 24px, transparent 25px),
    radial-gradient(circle at 72% 50%, #151719 0 24px, transparent 25px),
    #f4f2ec;
  box-shadow: 0 34px 80px rgba(23, 24, 25, 0.18);
  transform: rotate(5deg);
}

.pattern-art::before {
  content: "";
  width: min(60%, 430px);
  aspect-ratio: 1;
  border: 12px solid #111315;
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.26) 0 4px, transparent 5px) 0 0 / 28px 28px,
    radial-gradient(circle at 50% 50%, rgba(255, 48, 92, 0.92), rgba(255, 48, 92, 0.28) 34%, #151719 68%);
  box-shadow: 0 34px 80px rgba(23, 24, 25, 0.24);
  filter: saturate(1.08);
  transform: rotate(8deg);
}

.step-copy {
  max-width: 430px;
}

.step-label {
  color: var(--rose);
}

.code-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}

.code-section .section-copy {
  max-width: 100%;
}

.code-section .section-copy h2 {
  margin-bottom: 0;
}

.code-window {
  max-height: 720px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 25, 0.1);
  border-radius: 0;
  background: #151719;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.window-bar span:nth-child(3) {
  background: #28c840;
}

pre {
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  max-height: 654px;
  overflow: auto;
}

code {
  color: #e6edf1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.5vw, 0.94rem);
  line-height: 1.72;
}

.demo-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto clamp(72px, 9vw, 120px);
  padding: clamp(18px, 2vw, 28px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.animation-display {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
  min-height: clamp(360px, 52vw, 720px);
  align-content: center;
  padding: clamp(28px, 4vw, 60px);
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 48, 92, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(255, 109, 124, 0.1), transparent 38%),
    #101214;
}

.animation-display span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #202326;
  animation: ledPulse 1800ms ease-in-out infinite;
}

.animation-display span:nth-child(8n + 1) {
  animation-delay: 0ms;
}

.animation-display span:nth-child(8n + 2) {
  animation-delay: 90ms;
}

.animation-display span:nth-child(8n + 3) {
  animation-delay: 180ms;
}

.animation-display span:nth-child(8n + 4) {
  animation-delay: 270ms;
}

.animation-display span:nth-child(8n + 5) {
  animation-delay: 360ms;
}

.animation-display span:nth-child(8n + 6) {
  animation-delay: 450ms;
}

.animation-display span:nth-child(8n + 7) {
  animation-delay: 540ms;
}

.animation-display span:nth-child(8n) {
  animation-delay: 630ms;
}

.demo-copy {
  padding: clamp(10px, 2vw, 20px);
}

.site-footer {
  display: flex;
  width: min(1160px, calc(100% - 32px));
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  font-weight: 760;
}

.site-footer a {
  font-weight: 760;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ledPulse {
  0%,
  100% {
    background: #202326;
    box-shadow: none;
    transform: scale(0.92);
  }

  45%,
  58% {
    background: var(--rose);
    box-shadow:
      0 0 14px var(--rose),
      0 0 32px rgba(255, 48, 92, 0.58);
    transform: scale(1);
  }
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 0.18;
    filter: saturate(0.9) brightness(0.82);
  }

  48%,
  58% {
    opacity: 0.92;
    filter: saturate(1.16) brightness(1.08);
  }
}

@keyframes litCursorBlink {
  0%,
  100% {
    filter: saturate(1.05) brightness(0.9);
  }

  48%,
  58% {
    filter: saturate(1.24) brightness(1.16);
  }
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 820px;
  }

  .matrix-workbench {
    width: min(720px, 100%);
  }

  .hero .matrix-workbench {
    width: min(86%, 540px);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 32px 20px 44px;
  }

  .intro-grid,
  .build-layout,
  .code-section,
  .media-strip,
  .tutorial-step,
  .tutorial-step.reversed,
  .demo-band {
    grid-template-columns: 1fr;
  }

  .tutorial-step.reversed .step-media {
    order: 0;
  }

  .sticky-copy {
    position: static;
  }

  .media-feature,
  .media-feature.tall {
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 28px 10px 44px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.3rem);
  }

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

  .button {
    width: 100%;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .stats-panel div {
    min-height: 128px;
  }

  .media-caption {
    inset: auto 10px 10px;
    padding: 14px;
  }

  .section {
    width: min(100% - 24px, 1160px);
  }

  .media-strip,
  .process-section,
  .tutorial-section,
  .demo-band {
    width: min(100% - 24px, 1240px);
  }

  .step-media,
  .animation-display {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
