* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  overflow: hidden;
}

#bbr {
  background: #000;
  height: 100vh;
  font-family: 'Space Mono', 'Courier New', monospace;
  position: relative;
  overflow: hidden;
}

/* Scan lines overlay */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  pointer-events: none;
  z-index: 50;
}

/* Skip button */
.skip {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #555;
  letter-spacing: 2px;
  background: none;
  border: 1px solid #222;
  padding: 7px 14px;
  cursor: pointer;
  z-index: 200;
}

.skip:hover {
  color: #888;
  border-color: #444;
}

/* Phases */
.ph {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  opacity: 0;
  transition: opacity 0.7s;
}

.ph.on {
  opacity: 1;
}

/* Phase 1 — Terminal */
.terminal {
  width: 100%;
  max-width: 640px;
  border: 1px solid #1a0a3a;
  background: rgba(10, 0, 25, 0.6);
  padding: 28px;
}

.tline {
  font-size: 12px;
  color: #A78BFA;
  line-height: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.tline.show {
  opacity: 1;
}

.cur {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: #7C3AED;
  animation: blink 0.7s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Phase 2 — Surveillance */
.surv-wrap {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.abadge {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: 10px;
  padding: 3px 12px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.atitle {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.4;
  text-align: center;
  min-height: 60px;
}

.dgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 28px 0;
  width: 100%;
}

.dcell {
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid #1a1a1a;
  padding: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.dcell.show {
  opacity: 1;
  transform: translateY(0);
}

.dlabel {
  font-size: 9px;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.dval {
  font-size: 20px;
  font-weight: 700;
}

.dval.red { color: #ff3333; }
.dval.purple { color: #A78BFA; }
.dval.white { color: #fff; }

.wmsg {
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s;
  margin-top: 8px;
}

.wnote {
  font-size: 10px;
  color: #cc0000;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.wtext {
  font-size: 16px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.6;
}

/* Phase 3 — Glitch reveal */
.reveal-wrap {
  text-align: center;
}

.rnoise {
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 10px;
  min-width: 400px;
  text-align: center;
}

.rtag {
  font-size: 12px;
  letter-spacing: 6px;
  color: #666;
  opacity: 0;
  transition: opacity 1s;
  margin-top: 12px;
}

/* Phase 4 — Landing */
.landing-wrap {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.doc-line {
  width: 100%;
  height: 1px;
  background: #444;
  margin-bottom: 32px;
}

.llogo {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 8px;
  display: block;
  margin-bottom: 6px;
}

.lsub {
  font-size: 10px;
  letter-spacing: 6px;
  color: #888;
  margin-bottom: 40px;
}

.lhook {
  font-size: 26px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.lhook span {
  color: #7C3AED;
}

/* Countdown */
.cdrow {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.cdblock {
  text-align: center;
}

.cdnum {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.cdlbl {
  font-size: 10px;
  color: #888;
  letter-spacing: 2px;
}

.cddiv {
  font-size: 28px;
  color: #333;
  align-self: center;
}

/* Email form */
.aform {
  display: flex;
  max-width: 460px;
  margin: 0 auto 16px;
}

.ainput {
  flex: 1;
  background: #050505;
  border: 1px solid #2a2a2a;
  border-right: none;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 13px 14px;
  outline: none;
  letter-spacing: 1px;
}

.ainput:focus {
  border-color: #7C3AED;
}

.ainput::placeholder {
  color: #444;
}

.abtn {
  background: #7C3AED;
  border: 1px solid #7C3AED;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 13px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.abtn:hover {
  background: #6D28D9;
}

.anote {
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
  text-align: center;
}

/* Status bar */
.sbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
}

.sitem {
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

#acount {
  color: #888;
}

.sdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7C3AED;
  animation: pdot 2s infinite;
}

.sdot.red-dot {
  background: #cc0000;
}

@keyframes pdot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}