/* Agency-grade 1920x1080 Motion Graphics Stage for Prameny Promo Series */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #060b16;
  color: #f8fafc;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.promo-viewport {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #060b16;
  transform-origin: top left;
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  display: block;
}

.stage-layer {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

/* Subtle top brand watermark + chapter indicator */
.hud-top {
  position: absolute;
  top: 40px;
  left: 64px;
  right: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
  opacity: 0;
}
.hud-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(15, 25, 48, 0.62);
  border: 1px solid rgba(148, 179, 255, 0.25);
  backdrop-filter: blur(12px);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8dcff;
}
.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

/* Subtle bottom progress line */
.hud-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 60;
}
.hud-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2f5fd4, #38bdf8, #818cf8);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

/* Crisp broadcast subtitle bar */
.subtitle-wrap {
  position: absolute;
  left: 160px;
  right: 160px;
  bottom: 36px;
  display: flex;
  justify-content: center;
  z-index: 55;
  pointer-events: none;
}
.subtitle-pill {
  max-width: 1360px;
  padding: 13px 28px;
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.38;
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(10px);
}

/* Typography & reusable agency UI primitives */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(47, 95, 212, 0.22);
  border: 1px solid rgba(120, 165, 255, 0.38);
  color: #9dc2ff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow.gold {
  background: rgba(245, 159, 0, 0.16);
  border-color: rgba(250, 198, 86, 0.42);
  color: #ffd67a;
}
.eyebrow.green {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}
.eyebrow.red {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.h-hero {
  margin: 0;
  font-size: 74px;
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.h-sub {
  margin: 0;
  font-size: 30px;
  font-weight: 450;
  line-height: 1.42;
  color: #cbd5e1;
}
.grad-blue {
  background: linear-gradient(120deg, #ffffff 10%, #7dd3fc 58%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-gold {
  background: linear-gradient(120deg, #ffffff 12%, #fde68a 58%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-green {
  background: linear-gradient(120deg, #ffffff 10%, #6ee7b7 58%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Realistic floating Prameny v4 App Window */
.app-win {
  background: #f8fafd;
  color: #152033;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.app-chrome {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #e4eaf3;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.win-dots { display: flex; gap: 8px; }
.win-dots i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #d6dfed; }
.win-dots i:nth-child(1) { background: #f87171; }
.win-dots i:nth-child(2) { background: #fbbf24; }
.win-dots i:nth-child(3) { background: #34d399; }
.app-title { font-size: 16px; font-weight: 700; color: #16233a; }
.app-tag {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: #edf3ff; color: #1d4ed8;
}
.app-tag.ok { background: #e8faf1; color: #0b7a48; }
.app-tag.warn { background: #fff4e0; color: #a15c00; }
.app-tag.err { background: #feeceb; color: #c42323; }

.cite-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  background: #e6efff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  margin: 0 2px;
  vertical-align: middle;
  border: 1px solid #b8d0ff;
}
.cite-pill.hot {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.28);
}

.glass-card {
  background: rgba(14, 24, 46, 0.72);
  border: 1px solid rgba(148, 179, 255, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
}

/* Animated SVG Cursor */
.promo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
  opacity: 0;
}
.cursor-ripple {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  opacity: 0;
  transform: scale(0.2);
}
