:root {
  --bg: #050506;
  --ink: #e6e1d4;
  --muted: #8a8578;
  --phosphor: #7cff6b;
  --cyan: #4de3ff;
  --magenta: #ff4d8d;
  --bezel: #141416;
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Mono", "Consolas", ui-monospace, monospace;
  overflow: hidden;
}

body {
  cursor: default;
  user-select: none;
}

#static {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  image-rendering: pixelated;
  pointer-events: none;
}

.scanlines,
.vignette,
.bezel {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scanlines {
  z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.035) 50%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: sweep 7.5s linear infinite;
}

.vignette {
  z-index: 4;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 18% 12%, rgba(124, 255, 107, 0.04), transparent 38%);
}

.bezel {
  z-index: 5;
  inset: 10px;
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 80px rgba(0, 0, 0, 0.45),
    0 0 0 10px var(--bg);
}

.screen {
  position: relative;
  z-index: 6;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 36px 48px 32px;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.02);
  animation: reveal 0.85s ease 1.15s forwards;
}

.screen.is-locked {
  opacity: 1;
  filter: blur(0);
  transform: none;
  animation: none;
}

.screen.is-glitching {
  animation: tear 160ms steps(2, end);
}

.chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b7b2a4;
}

.chrome__status {
  color: #c45a5a;
  transition: color 0.4s ease;
}

.chrome__status.is-live {
  color: var(--phosphor);
  text-shadow: 0 0 12px rgba(124, 255, 107, 0.7);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(920px, 92vw);
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(5, 5, 6, 0.78) 0%, rgba(5, 5, 6, 0.28) 48%, transparent 72%);
  pointer-events: none;
}

.eyebrow,
.wordmark,
.since {
  position: relative;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #b7b2a4;
}

.wordmark {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(42px, 11vw, 128px);
  letter-spacing: 0.08em;
  line-height: 0.92;
  color: #f4efe3;
  text-shadow:
    0 0 18px rgba(244, 239, 227, 0.35),
    0 0 48px rgba(124, 255, 107, 0.14);
}

.wordmark::before,
.wordmark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.screen.is-glitching .wordmark::before {
  opacity: 0.85;
  color: var(--cyan);
  transform: translate(-3px, 1px);
  clip-path: inset(12% 0 55% 0);
}

.screen.is-glitching .wordmark::after {
  opacity: 0.85;
  color: var(--magenta);
  transform: translate(3px, -1px);
  clip-path: inset(48% 0 8% 0);
}

.since {
  font-size: clamp(12px, 1.6vw, 16px);
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: #b7b2a4;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a2a2a;
  box-shadow: none;
}

.live.is-on i {
  background: var(--phosphor);
  box-shadow: 0 0 10px var(--phosphor);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes reveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes sweep {
  from { background-position: 0 -100%; }
  to { background-position: 0 200%; }
}

@keyframes tear {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-6px, 1px) skewX(-0.4deg); }
  50% { transform: translate(7px, -2px); }
  75% { transform: translate(-3px, 0) skewX(0.5deg); }
  100% { transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 720px) {
  .screen {
    padding: 28px 22px 22px;
  }

  .bezel {
    inset: 6px;
    border-radius: 14px;
  }

  .chrome {
    letter-spacing: 0.1em;
    font-size: 10px;
  }

  .since {
    letter-spacing: 0.28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scanlines::after,
  .live.is-on i,
  .screen.is-glitching {
    animation: none;
  }

  .screen {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
