/* Animated ShortTrust UI mockups for landing page */
.ui-mockup {
  position: relative;
  background: #0a1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 9/16;
  font-family: 'Kanit', 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #101e36;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  color: #94a3b8;
}
.mockup-topbar .logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #38bdf8; margin-right: 6px;
}
.mockup-topbar .brand { display: flex; align-items: center; color: #93c5fd; font-weight: 700; }

.mockup-screen {
  position: relative;
  flex: 1;
  min-height: 55%;
  background: linear-gradient(160deg, #0a1628 0%, #0c1a2e 50%, #152a4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-screen .person {
  width: 42%;
  height: 55%;
  border-radius: 12px;
  background: linear-gradient(180deg, #1e3a8a 0%, #152a4a 100%);
  opacity: 0.85;
}

.mockup-caption-bar {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.82);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.7rem;
  color: #fff;
  white-space: nowrap;
  animation: mockCaptionPulse 2.5s ease-in-out infinite;
}
.mockup-caption-bar .hl { color: #fbbf24; font-weight: 700; }

@keyframes mockCaptionPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; transform: translateX(-50%) scale(1.03); }
}

.mockup-timeline {
  padding: 10px 12px 14px;
  background: #111122;
}
.mockup-timeline-label {
  font-size: 0.55rem;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mockup-wave {
  height: 36px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    90deg,
    #3b82f6 0px, #3b82f6 2px,
    transparent 2px, transparent 5px
  );
  opacity: 0.35;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.mockup-wave::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  animation: mockWaveScan 3s linear infinite;
}
@keyframes mockWaveScan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.mockup-segments {
  display: flex;
  gap: 3px;
  height: 22px;
}
.mockup-segments .seg {
  border-radius: 4px;
  animation: mockSegIn 0.6s ease both;
}
.mockup-segments .seg.kept {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  flex: 2;
  animation-delay: 0.1s;
}
.mockup-segments .seg.cut {
  background: rgba(239, 68, 68, 0.25);
  flex: 0.6;
  border: 1px dashed rgba(239, 68, 68, 0.5);
  animation: mockCutBlink 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
}
.mockup-segments .seg.kept2 { flex: 1.5; background: linear-gradient(90deg, #2563eb, #38bdf8); animation-delay: 0.5s; }
.mockup-segments .seg.kept3 { flex: 2.2; background: linear-gradient(90deg, #1e3a8a, #2563eb); animation-delay: 0.7s; }

@keyframes mockSegIn {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes mockCutBlink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.15; }
}

.mockup-motion-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 20px rgba(56, 189, 248, 0.8);
  animation: mockMotionPop 2s ease-in-out infinite;
}
@keyframes mockMotionPop {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  40% { transform: scale(1.12); opacity: 1; color: #fbbf24; }
}

.mockup-export-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #10b981;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  animation: mockBadgePop 2s ease infinite;
}
@keyframes mockBadgePop {
  0%, 80%, 100% { transform: scale(1); }
  90% { transform: scale(1.08); }
}

.mockup-hero-editor {
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
}
.mockup-hero-editor .mockup-screen { min-height: 62%; }
.mockup-hero-editor .mockup-sidebar-dots {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-hero-editor .dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.mockup-hero-editor .dot.active { background: rgba(56,189,248,0.35); border-color: #38bdf8; }

.mockup-play-indicator {
  position: absolute;
  width: 2px;
  height: 100%;
  background: #fbbf24;
  left: 35%;
  top: 0;
  animation: mockPlayhead 4s ease-in-out infinite;
  box-shadow: 0 0 8px #fbbf24;
}
@keyframes mockPlayhead {
  0% { left: 8%; }
  50% { left: 72%; }
  100% { left: 8%; }
}

.demo-card .ui-mockup { width: 100%; }
.demo-card:hover .ui-mockup { box-shadow: 0 0 30px rgba(56, 189, 248, 0.25); }

.mockup-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .mockup-gallery { grid-template-columns: repeat(4, 1fr); }
}
.mockup-gallery-item h4 {
  font-size: 0.85rem;
  margin-top: 0.65rem;
  color: #94a3b8;
  text-align: center;
}
