/* Second concept: no scanner column. A single horizontal bar scans the copy,
   riding with the reader's scroll. Same palette, layered over styles.css. */

/* the bar */

.scanbar {
  position: fixed;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent, var(--beam) 10%, var(--beam-hot) 50%, var(--beam) 90%, transparent);
  box-shadow:
    0 0 6px 1px rgba(169, 143, 214, 0.9),
    0 0 28px 8px rgba(169, 143, 214, 0.35);
  will-change: transform;
}
.scanbar::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 110px; height: 10px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(237, 228, 250, 0.9), transparent);
}

/* first view: catch phrase and logo, nothing else */

.hero-lock {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-lock h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.logo-code {
  --c128-module: 2px;
  height: 3.4rem;
}
@media (max-width: 700px) {
  .logo-code { --c128-module: 1px; height: 2.6rem; }
}

/* copy: centered column, overrides the fixed-scanner layout in styles.css */

.scan-copy {
  margin: 0 auto;
  max-width: 46rem;
  padding: 4rem 1.5rem 5rem;
}
.scan-copy p { color: var(--ink); }

/* the glow: JS sets --glow 0..1 as the bar passes */

.lite {
  --glow: 0;
  --base: var(--muted);
  color: color-mix(in srgb, var(--beam) calc(var(--glow) * 100%), var(--base));
  text-shadow: 0 0 calc(var(--glow) * 14px) rgba(169, 143, 214, calc(var(--glow) * 0.75));
}
h1.lite, .logo.lite { --base: var(--ink); }

/* text elements get painted line-accurately: scanline.js sets a gradient
   band at the bar's position, clipped to the glyphs */
.hero-lock h1.lite, .scan-copy p.lite {
  -webkit-background-clip: text;
  background-clip: text;
}
.scan-copy p.lite code { background: none; padding: 0; color: inherit; }
.foot-line.lite .barcode { color: inherit; }
.logo.lite .barcode { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .scanbar { display: none; }
}
