:root {
  --bg: #ccff00;
  --hot-pink: #ff00aa;
  --electric: #00ffff;
  --blood: #ff0040;
  --purple: #6600cc;
  --yellow: #ffff00;
  --toxic: #ccff00;
  --black: #0a0a0a;
  --font-display: "Rubik Glitch", "Press Start 2P", "Comic Sans MS", cursive;
  --font-body: "VT323", "Courier New", monospace;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1.25;
  overflow-x: hidden;
}

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

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

@keyframes rgb-jitter {
  0% { text-shadow: 4px 0 #ff0040, -4px 0 #00ffff, 0 4px #ccff00; }
  33% { text-shadow: -5px 2px #ff00aa, 5px -2px #ffff00, 2px 5px #00ff00; }
  66% { text-shadow: 3px -3px #00ffff, -3px 3px #ff0040, 0 -4px #ff00aa; }
  100% { text-shadow: 4px 0 #ff0040, -4px 0 #00ffff, 0 4px #ccff00; }
}

@keyframes title-skew {
  0%, 88%, 100% { transform: skew(0deg) scale(1); filter: none; }
  89% { transform: skew(-6deg) scale(1.02) translateX(-6px); filter: hue-rotate(90deg); }
  90% { transform: skew(4deg) scale(0.98) translateX(8px); filter: invert(0.2); }
  91% { transform: skew(0deg); }
}

@keyframes glitch-top {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); transform: translate(-4px, -2px); }
  87% { clip-path: inset(8% 0 55% 0); transform: translate(-8px, 0); }
  88% { clip-path: inset(45% 0 25% 0); transform: translate(-3px, 2px); }
  89% { clip-path: inset(0 0 100% 0); }
}

@keyframes glitch-bottom {
  0%, 84%, 100% { clip-path: inset(100% 0 0 0); transform: translate(4px, 2px); }
  85% { clip-path: inset(35% 0 40% 0); transform: translate(7px, -1px); }
  86% { clip-path: inset(65% 0 8% 0); transform: translate(5px, 3px); }
  87% { clip-path: inset(100% 0 0 0); }
}

/* Hero title — under ticker, big + broken */
.hero {
  padding: 0.35rem 0.5rem 0.25rem;
  text-align: center;
  background: var(--bg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 11vw, 5.5rem);
  margin: 0;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  animation: title-skew 16s infinite;
  color: var(--toxic);
}

.hero-title-fill {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: var(--hot-pink);
  color: var(--black);
  padding: 0.12em 0.3em;
  border: 5px solid var(--black);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  animation: rgb-jitter 7s infinite;
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.hero-title::before {
  color: var(--blood);
  transform: translate(-5px, -2px);
  opacity: 0.85;
  animation: glitch-top 12s infinite;
}

.hero-title::after {
  color: var(--electric);
  transform: translate(5px, 2px);
  opacity: 0.85;
  animation: glitch-bottom 10s infinite;
}

.hero-meta {
  padding: 0.5rem 1rem 0.75rem;
  text-align: center;
}

.hero-version {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--purple);
  margin: 0.35rem 0 0;
  animation: blink 1.5s step-end infinite;
}

.hero-tagline {
  max-width: 36rem;
  margin: 0.5rem auto 0;
  font-size: 1.3rem;
  text-transform: lowercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.65rem 0 0;
}

.btn {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
  border: 4px solid var(--black);
  cursor: pointer;
}

.btn-primary {
  background: var(--hot-pink);
  color: var(--black);
}

.btn-secondary {
  background: var(--electric);
  color: var(--black);
}

.btn-huge {
  font-size: 1.5rem;
  padding: 0.75rem 1.25rem;
}

.strip {
  overflow: hidden;
  padding: 0.4rem 0;
  background: #000;
  border: 4px solid var(--black);
  width: 100%;
}

.strip-top {
  border-top: none;
  border-left: none;
  border-right: none;
}

.strip-bottom {
  border-bottom: none;
  border-left: none;
  border-right: none;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
}

.marquee-reverse {
  animation-direction: reverse;
}
.marquee span {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: bold;
  padding-right: 2rem;
  color: #ffff00;
}

/* Sections */
section {
  padding: 1.25rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: bold;
  text-align: center;
  color: var(--black);
  background: var(--hot-pink);
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.5rem;
  text-transform: uppercase;
  line-height: 1.15;
  border: 4px solid var(--black);
  letter-spacing: 0.06em;
}

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

.feature-card {
  padding: 1rem;
  border: 5px solid var(--black);
  background: #fff;
  transform: rotate(var(--tilt, 0deg));
}

.feature-card:nth-child(1) { --tilt: -2deg; background: var(--electric); }
.feature-card:nth-child(2) { --tilt: 1.5deg; background: var(--hot-pink); }
.feature-card:nth-child(3) { --tilt: -1deg; background: #fff; }

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.feature-card p {
  margin: 0;
  font-size: 1.25rem;
}

/* Demo video */
.video-section {
  max-width: 1200px;
  padding-top: 0.75rem;
  padding-bottom: 0.35rem;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 5px solid var(--black);
  background: var(--black);
  box-shadow: 6px 6px 0 var(--hot-pink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Effects */
.effects-section {
  max-width: 1600px;
  padding-top: 0.85rem;
}

.effects-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.3rem;
}

@media (max-width: 1200px) {
  .effects-grid { grid-template-columns: repeat(8, 1fr); }
}

@media (max-width: 900px) {
  .effects-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 560px) {
  .effects-grid { grid-template-columns: repeat(4, 1fr); }
}

.effect-cell {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid var(--black);
  overflow: hidden;
}

.effect-thumb-wrap {
  aspect-ratio: 1;
  width: 100%;
  background: #fff;
}

.effect-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.effect-label {
  display: block;
  padding: 0.2rem 0.15rem;
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1.1vw, 0.95rem);
  font-weight: bold;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  color: var(--black);
  background: var(--hot-pink);
  border-top: 3px solid var(--black);
}

.effect-cell:nth-child(even) .effect-label {
  background: var(--electric);
}

/* Download */
.download-section {  text-align: center;
  padding-bottom: 3rem;
}

.download-box {
  display: inline-block;
  padding: 1.25rem;
  border: 6px solid var(--black);
  background: var(--electric);
  transform: rotate(1deg);
}

.download-platform {
  font-size: 1.45rem;
  margin: 0 0 1rem;
}

.download-fine {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  max-width: 26rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  border-top: 6px solid var(--black);
  border-bottom: none;
}
.site-footer p {
  margin: 0.3rem 0;
  font-size: 1.2rem;
}

.footer-glitch {
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.8;
}
