/* ====================================================================
   demarc - 80s demoscene / Amiga vibes
   black background, copper bars, chrome logo, raster scroller
   ==================================================================== */

:root {
  --neon-cyan:    #19f0ff;
  --neon-magenta: #ff2bd6;
  --neon-green:   #36ff6a;
  --neon-yellow:  #ffe23d;
  --amber:        #ffb000;
  --ink:          #05030a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: #d7e7ff;
  font-family: "Sixtyfour", monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow-x: hidden;
}

/* --- background layers ------------------------------------------------ */

/* slow scrolling copper bars, Amiga style */
.copper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.20;
  background: repeating-linear-gradient(
    to bottom,
    #000 0px,
    #2a0033 6px,
    #ff2bd6 14px,
    #19f0ff 22px,
    #36ff6a 30px,
    #2a0033 38px,
    #000 46px
  );
  background-size: 100% 220px;
  animation: copperscroll 6s linear infinite;
}

@keyframes copperscroll {
  from { background-position: 0 0; }
  to   { background-position: 0 220px; }
}

/* twinkling starfield */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px,  #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #9cf, transparent),
    radial-gradient(2px 2px at 200px 150px,#fff, transparent),
    radial-gradient(1px 1px at 300px 60px, #fdf, transparent),
    radial-gradient(1px 1px at 380px 200px,#fff, transparent),
    radial-gradient(2px 2px at 90px 240px, #cff, transparent);
  background-repeat: repeat;
  background-size: 400px 300px;
  animation: starscroll 40s linear infinite;
  opacity: 0.7;
}

@keyframes starscroll {
  from { background-position: 0 0; }
  to   { background-position: 0 -1200px; }
}

/* CRT scanlines over everything */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  /* background: repeating-linear-gradient( */
  /*   to bottom, */
  /*   rgba(0,0,0,0)   0px, */
  /*   rgba(0,0,0,0)   2px, */
  /*   rgba(0,0,0,0.35) 3px, */
  /*   rgba(0,0,0,0.35) 4px */
  /* ); */
  mix-blend-mode: multiply;
}

/* --- layout ----------------------------------------------------------- */

.demo {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 7rem;
}

/* --- chrome logo ------------------------------------------------------ */

.logo { text-align: center; margin-bottom: 2rem; }

.chrome {
  font-family: "Baumans", monospace;
  font-size: clamp(2.4rem, 11vw, 6rem);
  letter-spacing: 0.05em;
  margin: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #dff6ff 30%,
    #8fdcff 50%,
    #ffffff 60%,
    #5cbdee 80%,
    #2f86c4 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #000;
  filter:
    drop-shadow(2px 2px 0 #0a3a7a)
    drop-shadow(-1px -1px 0 #bdf2ff);
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) skewX(0deg); }
  50%      { transform: translateY(-6px) skewX(-2deg); }
}

.tag {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.55rem, 1.8vw, 0.85rem);
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--neon-green);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

/* --- the video "monitor" --------------------------------------------- */

.screen { margin: 2.5rem 0 3rem; }

.screen-frame {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, #2a2a35, #0a0a12);
  border: 2px solid #000;
  box-shadow:
    0 0 0 2px #444,
    0 0 30px rgba(25,240,255,0.45),
    0 0 60px rgba(255,43,214,0.25),
    inset 0 0 20px rgba(0,0,0,0.9);
}

.screen-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #000;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

/* --- prose / markdown content ---------------------------------------- */

.prose {
  background: rgba(8, 4, 20, 0.78);
  border: 2px solid var(--neon-magenta);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  box-shaBaumansdow: 0 0 20px rgba(255,43,214,0.4), inset 0 0 30px rgba(0,0,0,0.6);
}

.prose h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 1.1rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
  text-transform: uppercase;
  margin: 2rem 0 1rem;
  border-bottom: 2px dashed rgba(25,240,255,0.4);
  padding-bottom: 0.6rem;
}

.prose h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 6px var(--amber);
  margin: 1.5rem 0 0.75rem;
}

.prose p { margin: 0.75rem 0; }

.prose em {
  color: var(--neon-green);
  font-style: normal;
  text-shadow: 0 0 5px var(--neon-green);
}

.prose ul { list-style: none; padding-left: 1rem; }

.prose li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.35rem 0;
}

.prose li::before {
  content: "\25B6";
  position: absolute;
  left: 0;
  color: var(--neon-magenta);
  text-shadow: 0 0 6px var(--neon-magenta);
}

.prose a {
  color: var(--neon-yellow);
  text-decoration: none;
  border-bottom: 1px dotted var(--neon-yellow);
}
.prose a:hover { color: #fff; text-shadow: 0 0 8px var(--neon-yellow); }

.prose code {
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  color: var(--amber);
  background: #000;
  padding: 0.15em 0.4em;
  border: 1px solid rgba(255,176,0,0.4);
  border-radius: 3px;
}

.prose pre {
  background: #000;
  border: 2px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  box-shadow: 0 0 14px rgba(25,240,255,0.35), inset 0 0 20px rgba(0,0,0,0.8);
}

.prose pre code {
  font-family: "VT323", monospace;
  font-size: 1.15rem;
  color: var(--neon-green);
  background: none;
  border: none;
  padding: 0;
  text-shadow: 0 0 4px rgba(54,255,106,0.6);
}

/* --- footer / back link ---------------------------------------------- */

.bottom { text-align: center; margin-top: 2.5rem; }

.backlink {
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  color: var(--neon-cyan);
  text-decoration: none;
  text-shadow: 0 0 6px var(--neon-cyan);
}
.backlink:hover { color: #fff; }

/* --- horizontal demoscene scroller ----------------------------------- */

.scroller {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  overflow: hidden;
  background: linear-gradient(to bottom, #000, #1a0030);
  border-top: 3px solid var(--neon-magenta);
  box-shadow: 0 -4px 20px rgba(255,43,214,0.5);
  white-space: nowrap;
  padding: 0.6rem 0;
}

.scroll-text {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 0.85rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px var(--amber), 0 0 2px #fff;
  padding-left: 100%;
  animation: scrollleft 32s linear infinite;
  will-change: transform;
}

@keyframes scrollleft {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* --- respect reduced motion ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .copper, .stars, .chrome, .scroll-text { animation: none; }
}
