/* ========================
   GLOWOS EXPLAINER VIDEO MOCKUP
   Dark cinematic theme — replaces hero section above the fold
   Background: #1a1a1a | Accent: #c9a84c | Font: Inter
   ======================== */

/* ---- Explainer Container ---- */
.explainer-wrap {
  position: relative;
  width: 100%;
  background: #1a1a1a;
  overflow: hidden;
}

.explainer-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
}

/* ---- Scene Base ---- */
.explainer-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: #1a1a1a;
}

.explainer-scene.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Dashboard Shell ---- */
.dash-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 16px;
  gap: 14px;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2e2e2e;
}

.dash-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.dash-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

.dash-status-dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9a84c;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(201,168,76,0); }
}

/* ---- Split View ---- */
.scene-split {
  flex: 1;
  display: flex;
  gap: 14px;
}

.split-panel {
  flex: 1;
  background: #222222;
  border-radius: 10px;
  border: 1px solid #2e2e2e;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  padding: 8px 12px;
  background: #1f1f1f;
  border-bottom: 1px solid #2a2a2a;
  text-transform: uppercase;
}

/* ---- Message Cards ---- */
.messages-area {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.msg-card {
  background: #2a2a2a;
  border: 1px solid #353535;
  border-radius: 10px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.msg-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.msg-sender {
  font-size: 11px;
  font-weight: 600;
  color: #c9a84c;
}

.msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

.msg-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-new {
  background: rgba(201,168,76,0.2);
  color: #c9a84c;
}

.badge-ai {
  background: rgba(201,168,76,0.15);
  color: #c9a84c;
}

.badge-done {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.4);
}

.msg-text {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.msg-text .ai-action {
  color: #c9a84c;
  font-weight: 500;
}

/* ---- Processing Indicator ---- */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.ai-typing-dots {
  display: flex;
  gap: 3px;
}

.ai-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a84c;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.ai-typing-label {
  font-size: 10px;
  color: rgba(201,168,76,0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---- Action Log (right panel) ---- */
.action-log {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.log-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.log-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #2a2a2a;
  border: 1px solid #353535;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: #c9a84c;
}

.log-content {}

.log-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
}

.log-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.log-check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  font-size: 9px;
  flex-shrink: 0;
}

/* ---- Calendar View ---- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 12px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 5px;
  background: #2a2a2a;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  position: relative;
}

.cal-day.has-client {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.3);
  color: #c9a84c;
  font-weight: 600;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9a84c;
  margin-top: 2px;
}

/* ---- Closing Day View ---- */
.day-full-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
}

.day-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.client-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.client-row.visible {
  opacity: 1;
  transform: translateX(0);
}

.client-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2e2e2e;
  border: 1.5px solid #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #c9a84c;
  flex-shrink: 0;
}

.client-name {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.client-svc {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-left: 4px;
}

.client-time {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #c9a84c;
}

.client-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(201,168,76,0.15);
  color: #c9a84c;
  text-transform: uppercase;
}

/* ---- Scene Lower Third ---- */
.scene-caption {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 22px 24px 16px;
  text-align: center;
}

.scene-caption-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* ---- Scene Number Pills ---- */
.scene-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.pill {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.pill.active {
  width: 24px;
  background: #c9a84c;
}

/* ---- CTA Block (closing scene only) ---- */
.explainer-cta {
  text-align: center;
  padding: 16px 24px 20px;
}

.explainer-cta-text {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.explainer-cta-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #c9a84c;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.explainer-cta-btn:hover {
  background: #d4b55a;
  transform: translateY(-1px);
}

/* ---- Progress Bar ---- */
.explainer-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #c9a84c;
  width: 0%;
  transition: width 0.1s linear;
  opacity: 0.6;
}

/* ---- Voiceover Captions ---- */
.voiceover-caption {
  background: #111;
  padding: 14px 24px;
  text-align: center;
}

.voiceover-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .scene-split { flex-direction: column; }
  .dash-title { font-size: 11px; }
  .msg-text { font-size: 11px; }
  .client-name { font-size: 11px; }
}