/* =========================
  BANNER SECTION
=========================  */
.premium-banner {
  position: relative;
  width: 100%;
  height: clamp(400px, 55vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

/* Cinematic Background Animation */
.banner-bg-image {
  position: absolute;
  inset: -5%;
  background-image: url("https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: cinematicPan 25s linear infinite alternate;
}

/* Vignette / Spotlight Overlay */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(15, 15, 15, 0.2) 0%,
    rgba(15, 15, 15, 0.8) 100%
  );
  z-index: 1;
}

/* Content Container */
.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-4);
  max-width: 1000px;
  width: 100%;
}

/* --- ADVANCED GLASSMORPHISM BREADCRUMB --- */
.breadcrumb {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s var(--premium-ease) forwards;
  margin-bottom: var(--space-3);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 0;
  padding-left: 0;
}

.breadcrumb li {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--color-surface);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
  color: var(--color-surface);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* SVG Chevron Separator */
.breadcrumb .separator {
  opacity: 0.4;
  display: flex;
  align-items: center;
}

.breadcrumb .current {
  color: var(--color-yellow);
  font-weight: 600;
  opacity: 1;
}

/* --- TYPOGRAPHY --- */
.title-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.page-title {
  font-size: var(--fs-xxl);
  color: var(--color-surface);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--premium-ease) 0.2s forwards;
  margin-bottom: 0;
}

.page-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--premium-ease) 0.4s forwards;
}

/* --- GLOWING BRAND ACCENT LINE --- */
.brand-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 3;
  background: linear-gradient(
    90deg,
    var(--color-blue) 0%,
    var(--color-red) 33%,
    var(--color-yellow) 66%,
    var(--color-green) 100%
  );
}

/* Subtle glow beneath the line */
.brand-accent-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  z-index: 2;
  filter: blur(8px);
  opacity: 0.6;
  background: linear-gradient(
    90deg,
    var(--color-blue) 0%,
    var(--color-red) 33%,
    var(--color-yellow) 66%,
    var(--color-green) 100%
  );
}

/* --- KEYFRAMES --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematicPan {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* =========================================
   FEATURE MATRIX (Elegant Polish)
========================================= */
.feature-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  overflow: hidden;
}

/* Accent Line Reveal on Hover */
.feature-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-blue);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-row:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transform: translateX(6px);
}

.feature-row:hover::before {
  transform: scaleY(1);
}

.f-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.4s ease;
}

.feature-row:hover .f-icon {
  transform: scale(1.05) rotate(-3deg);
}

.f-text h4 {
  margin: 0 0 2px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.f-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =========================================
   REELS SLIDER (Stage Lighting & Glass)
========================================= */
.ambient-stage-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(66, 133, 244, 0.08) 0%,
    transparent 60%
  );
  z-index: 0;
  pointer-events: none;
}

.reel-track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  /* padding: var(--space-4) 0; */
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.reel-track::-webkit-scrollbar {
  display: none;
}
.reel-track:active {
  cursor: grabbing;
}

.reel-card {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #111;
  /* Glass Edge Highlight */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}

.reel-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 30px 60px rgba(66, 133, 244, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}
.reel-card:hover .reel-thumb {
  opacity: 0.6;
}

.reel-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  background: #000;
  animation: fadeIn 0.4s ease forwards;
  cursor: pointer;
}

/* UI Overlays */
.reel-ui-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  pointer-events: none;
  z-index: 2;
}

/* Frosted Glass Play Button (Pulse Animation) */
.play-glass-btn {
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  animation: elegantPulse 3s infinite;
}

@keyframes elegantPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.reel-card:hover .play-glass-btn {
  background: #fff;
  color: var(--color-blue);
  transform: scale(1.15);
  border-color: #fff;
  animation: none;
  box-shadow: 0 15px 35px rgba(66, 133, 244, 0.4);
}

.reel-caption {
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  margin: -20px;
  padding: 30px 20px 20px 20px;
}
.reel-caption strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.reel-caption p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Edge Masks */
/* .slider-mask {
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  pointer-events: none;
  z-index: 10;
}
.mask-left { left: 0; background: linear-gradient(to right, var(--color-bg) 10%, transparent); }
.mask-right { right: 0; background: linear-gradient(to left, var(--color-bg) 10%, transparent); } */

@media (max-width: 992px) {
  .reel-split-layout {
    flex-direction: column;
    gap: var(--space-3);
  }
  .reel-content-side {
    max-width: 100%;
    text-align: center;
  }
  .feature-row {
    text-align: left;
  }
  .reel-slider-side {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
  .reel-track {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  .mask-left,
  .mask-right {
    display: none;
  }
}

/* =========================================
   CINEMATIC WORK SHOWCASE STYLES
========================================= */
.masterpiece-layout {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.masterpiece-sidebar {
  flex: 1;
  max-width: 440px;
  display: flex;
  flex-direction: column;
}

/* Premium Details Box */
.video-info-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
}

.info-header {
  background: rgba(66, 133, 244, 0.05);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-blue);
  transition: opacity 0.4s ease;
}

.info-body {
  padding: 24px 20px;
}

.masterpiece-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--color-text);
  line-height: 1.1;
  margin: 0 0 12px 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.info-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Micro Badges for Tags */
.micro-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--color-text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Auto-Sliding Playlist */
.playlist-slider-wrapper {
  margin: 0 calc(var(--space-2) * -1); /* Pulls edges slightly for mask effect */
}

.playlist-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px var(--space-2);
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.playlist-track::-webkit-scrollbar { display: none; }
.playlist-track:active { cursor: grabbing; }

.playlist-item {
  flex: 0 0 160px; /* Perfect thumbnail size */
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s var(--premium-ease);
  background: #000;
  box-shadow: var(--shadow-sm);
}

.playlist-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.playlist-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.playlist-overlay svg {
  width: 32px;
  height: 32px;
  opacity: 0.9;
  transform: scale(0.8);
  transition: all 0.3s var(--premium-ease);
}

.playlist-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.playlist-item:hover img {
  opacity: 0.9;
  transform: scale(1.05);
}
.playlist-item:hover .playlist-overlay svg {
  transform: scale(1.1);
}

/* Active Playlist State */
.playlist-item.active {
  border-color: var(--color-blue);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}
.playlist-item.active img { opacity: 1; transform: scale(1); }
.playlist-item.active .playlist-overlay { background: transparent; }
.playlist-item.active .playlist-overlay svg { display: none; }

/* Main Stage */
.masterpiece-stage {
  flex: 1.5;
  position: relative;
}

.stage-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Swapping Transitions */
.stage-swapping .stage-video { opacity: 0; filter: blur(10px); }
.stage-swapping .masterpiece-title,
.stage-swapping #active-desc,
.stage-swapping #active-meta {
  opacity: 0;
  transform: translateY(10px);
}

/* Cinematic Letterboxing */
.letterbox {
  position: absolute;
  left: 0; right: 0;
  height: 12%;
  background: #000;
  z-index: 2;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }
.stage-video-wrapper:hover .letterbox { height: 0; }

@media (max-width: 992px) {
  .masterpiece-layout { flex-direction: column-reverse; }
  .masterpiece-sidebar { max-width: 100%; }
}

/* =========================================
   SECTION 2: PREMIUM WORKFLOW STYLES
========================================= */

.premium-workflow {
  position: relative;
  overflow: hidden;
  background-color: var(
    --color-surface
  ); /* Pure white or extremely light gray */
  z-index: 1;
}

/* Ambient subtle background elements to break up solid white */
.ambient-mesh {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(66, 133, 244, 0.03) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.relative-z {
  position: relative;
  z-index: 2;
}

/* Elegant, deeper shadow for light themes */
.elegant-shadow {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-xl);
}

/* Workflow Layout Grid */
.workflow-showcase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.workflow-step {
  flex: 1;
  max-width: 45%;
}

/* Mac-Style Glass Panel for Text Input */
.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 1);
  overflow: hidden;
  transition: transform 0.4s var(--premium-ease);
}

.glass-panel:hover {
  transform: translateY(-5px);
}

.panel-header {
  background: rgba(247, 249, 252, 0.8);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.panel-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-body {
  padding: var(--space-4);
}

.typing-text {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0;
}

.text-highlight {
  color: var(--color-text);
  font-weight: 600;
  font-style: normal;
  background: linear-gradient(
    120deg,
    rgba(66, 133, 244, 0.1) 0%,
    rgba(66, 133, 244, 0) 100%
  );
  padding: 2px 4px;
  border-radius: 4px;
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-green));
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  animation: floatBtn 3s ease-in-out infinite;
}

@keyframes floatBtn {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Center Connector Animation */
.workflow-connector {
  position: relative;
  width: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-path {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.animated-path::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-blue),
    transparent
  );
  animation: flowLine 2s linear infinite;
}

@keyframes flowLine {
  100% {
    left: 100%;
  }
}

.processing-badge {
  position: relative;
  z-index: 2;
  background: var(--color-surface);
  border: 1px solid rgba(66, 133, 244, 0.2);
  color: var(--color-blue);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pulse-element {
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.2);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
  }
}

/* Output Wrapper & Floating Elements */
.output-wrapper {
  position: relative;
  background: var(--color-surface);
  padding: 8px; /* Acts like a premium device bezel */
  transition: transform 0.4s var(--premium-ease);
}

.output-wrapper:hover {
  transform: translateY(-5px);
}

/* Light theme variation of your cinematic facade */
.light-facade img {
  filter: brightness(0.95);
  border-radius: calc(var(--radius-xl) - 8px);
}

.light-ring {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-ring .play-triangle {
  border-left-color: var(--color-blue);
}

.light-facade:hover .light-ring {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Floating UI Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}

.badge-top-left {
  top: 24px;
  left: -20px;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-bottom-right {
  bottom: 24px;
  right: -20px;
  color: var(--color-green);
  animation: floatBadge 4s ease-in-out infinite alternate-reverse;
}

.avatar-thumb {
  width: 24px;
  height: 24px;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-8px);
  }
}

/* Responsive adjustments for Mobile/Tablet */
@media (max-width: 992px) {
  .workflow-showcase {
    flex-direction: column;
  }
  .workflow-step {
    max-width: 100%;
    width: 100%;
  }
  .workflow-connector {
    width: 100%;
    height: 60px;
    flex-direction: column;
  }
  .animated-path {
    width: 2px;
    height: 100%;
  }
  .animated-path::after {
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      transparent,
      var(--color-blue),
      transparent
    );
    animation: flowLineVert 2s linear infinite;
  }
  @keyframes flowLineVert {
    100% {
      top: 100%;
    }
  }
  .step-output .step-meta {
    text-align: left !important;
  }
  .badge-top-left {
    left: 10px;
  }
  .badge-bottom-right {
    right: 10px;
  }
}

/* =========================================
   CINEMATIC ACCORDION STYLES
========================================= */

.client-accordion-wrapper {
  display: flex;
  width: 100%;
  height: 550px;
  gap: 12px;
  border-radius: var(--radius-xl);
  /* The elegant inner shadow frames the entire component */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  background: var(--color-surface);
  padding: 8px;
}

.accordion-blade {
  position: relative;
  flex: 1; /* All blades start equally sized */
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  background: #111;
  cursor: pointer;
  /* Premium cubic-bezier for a "spring-like" elegant expansion */
  transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* THE MAGIC EXPANSION */
.accordion-blade:hover {
  flex: 4; /* Hovered blade takes up massive space */
}

/* Background Image */
.blade-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.4);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-blade:hover .blade-bg {
  filter: grayscale(0%) brightness(0.7);
  transform: scale(1.05);
}

/* Film Grain Texture */
.blade-noise {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* =========================================
   COLLAPSED VIEW UI
========================================= */
.blade-collapsed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.accordion-blade:hover .blade-collapsed {
  opacity: 0;
  pointer-events: none;
}

.client-logo-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.vertical-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* =========================================
   EXPANDED VIEW UI
========================================= */
.blade-expanded {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  align-items: flex-end;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  /* Waits slightly before fading in for a clean effect */
  transition: opacity 0.4s ease 0.2s, visibility 0s linear 0.6s;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.accordion-blade:hover .blade-expanded {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.3s, visibility 0s linear 0s;
}

.expanded-content {
  color: #fff;
  max-width: 320px;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.accordion-blade:hover .expanded-content {
  transform: translateY(0);
}

.expanded-title {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 8px 0;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.expanded-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.5;
}

.metrics-grid {
  display: flex;
  gap: 24px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.m-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.m-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green);
  margin-top: 4px;
}

/* Injected Video Styles */
.blade-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  animation: fadeIn 0.8s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .flex-between { flex-direction: column; align-items: flex-start !important; }
  .flex-between p { text-align: left !important; }
  
  .client-accordion-wrapper {
    flex-direction: column; /* Stack vertically on mobile */
    height: 700px;
  }
  
  .vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.1em;
  }
  
  .blade-collapsed {
    flex-direction: row;
    padding: 0 24px;
  }
}

/* =========================================
   SECTION 3: IMAGE TO VIDEO WORKSPACE
========================================= */

.interactive-split-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  gap: 16px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 8px; /* Inner bezel */
  background: var(--color-surface);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.split-panel {
  position: relative;
  flex: 1; /* Both start at 50% width */
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  background: #050505;
  cursor: pointer;
  transition:
    flex 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s ease;
}

/* THE MAGIC: Hover expands the panel smoothly */
.split-panel:hover {
  flex: 2.2; /* Expands to take up more space */
}

/* Ambient Blurred Background (Ensures no black bars) */
.ambient-bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(40px) brightness(0.3);
  z-index: 0;
  transition: filter 0.6s ease;
}
.split-panel:hover .ambient-bg {
  filter: blur(20px) brightness(0.5); /* Brightens slightly on hover */
}

/* Media Container (Maintains 100% visibility) */
.media-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  perspective: 1000px;
}

.main-media {
  width: 100%;
  height: 100%;
  object-fit: contain; /* CRITICAL: Never crops the image */
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating UI Badges */
.panel-ui {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.8;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-panel:hover .panel-ui {
  opacity: 1;
  transform: translateY(0);
}

.ui-blur-box {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  color: #fff;
  min-width: 200px;
}

.ui-blur-box h4 {
  color: #fff;
  font-size: var(--fs-base);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ui-blur-box p {
  color: #94a3b8;
  font-size: var(--fs-xs);
  margin: 0;
  line-height: 1.4;
}

.active-glow {
  border-color: rgba(0, 255, 204, 0.3);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.1);
}

.dot-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pulse-green {
  background: #00ffcc;
  box-shadow: 0 0 10px #00ffcc;
  animation: pulseDot 2s infinite;
}

/* The Center Divider Orb */
.split-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none; /* Lets hover pass through */
}

.divider-orb {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  border: 3px solid var(--color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

/* Hide orb when interacting so it doesn't block the view */
.interactive-split-wrapper:hover .divider-orb {
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .interactive-split-wrapper {
    flex-direction: column;
    height: 700px;
  }
  .split-panel:hover {
    flex: 1.5;
  }
  .panel-ui {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

/* =========================================
   NEURAL ENGINE LAYOUT
========================================= */
.neural-split-layout {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 85vh;
  overflow: hidden;
}

/* Canvas Positioning */
.render-canvas-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.static-img {
  z-index: 1;
  filter: contrast(1.1) brightness(0.7);
  transform: scale(1);
}

.canvas-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.85) 100%);
  z-index: 4;
  pointer-events: none;
}

/* =========================================
   AI PROCESSING EFFECTS
========================================= */
.processing-overlay {
  z-index: 2;
  opacity: 0;
  background: rgba(0, 255, 204, 0.1);
  mix-blend-mode: screen;
}

.processing-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 204, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 204, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: scale(1.1) perspective(500px) rotateX(20deg);
  transform-origin: bottom;
  transition: transform 1s ease;
}

.processing-laser {
  position: absolute;
  top: -10%; left: 0; right: 0;
  height: 3px;
  background: #fff;
  box-shadow: 0 0 20px 5px #00ffcc, 0 0 40px 10px #00ffcc;
  opacity: 0;
}

/* Targeting Box UI */
.ai-targeting-box {
  position: absolute;
  top: 20%; left: 20%; right: 20%; bottom: 20%;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ai-targeting-box .corner {
  position: absolute;
  width: 30px; height: 30px;
  border: 2px solid #00ffcc;
}
.ai-targeting-box .tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.ai-targeting-box .tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.ai-targeting-box .bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.ai-targeting-box .br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Final Video */
.final-video {
  z-index: 3;
  opacity: 0;
  transform: scale(1.05);
}

/* Interactive States */
.is-processing .static-img {
  filter: contrast(1.3) brightness(0.4) saturate(0.5);
  transform: scale(1.03);
}
.is-processing .processing-overlay,
.is-processing .ai-targeting-box {
  opacity: 1;
}
.is-processing .processing-grid {
  transform: scale(1) perspective(500px) rotateX(0deg);
}
.is-processing .processing-laser {
  opacity: 1;
  animation: laserScan 2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.is-rendered .static-img, .is-rendered .processing-overlay { opacity: 0; }
.is-rendered .final-video { opacity: 1; transform: scale(1); }

@keyframes laserScan {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* =========================================
   UI CONTROL PANEL
========================================= */
.neural-ui-container {
  position: relative;
  z-index: 10;
  pointer-events: none; /* Allows clicking background video if needed */
}

.neural-ui-box {
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: var(--radius-xl);
  max-width: 440px;
}

.neural-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.neural-desc {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Premium Hold Button */
.hold-btn {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hold-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.05);
}

.hold-btn:active, .hold-btn.holding {
  transform: scale(0.92);
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.5);
  box-shadow: 0 0 40px rgba(0, 255, 204, 0.2);
}

.progress-ring {
  position: absolute;
  inset: -10px;
  pointer-events: none;
  transform: rotate(-90deg);
}
.progress-ring svg { width: 100%; height: 100%; }

.bg-circle {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 2;
}

.fill-circle {
  fill: none;
  stroke: #00ffcc;
  stroke-width: 4;
  stroke-dasharray: 289; 
  stroke-dashoffset: 289;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.flash-bang {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}
.flash-bang.active {
  animation: flashAnim 0.8s ease-out forwards;
}
@keyframes flashAnim {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* =========================================
   MOBILE SPLIT-SCREEN FIX
========================================= */
@media (max-width: 992px) {
  .neural-split-layout {
    flex-direction: column;
    min-height: auto;
  }
  
  /* Video takes top half completely unobscured */
  .render-canvas-wrapper {
    position: relative;
    height: 50vh;
    min-height: 400px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
  }

  /* UI sits below the video naturally */
  .neural-ui-container {
    padding: var(--space-5) var(--space-3);
    width: 100%;
    background: transparent;
  }

  .neural-ui-box {
    max-width: 100%;
    text-align: center;
    background: transparent; /* Remove box style on mobile */
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
  }
  
  .neural-title { font-size: 2.2rem; }
  .neural-desc { margin: 0 auto 30px auto; }

  .hold-action-area {
    display: flex;
    justify-content: center;
  }
  
  .hold-btn {
    width: 110px;
    height: 110px;
  }
}



/* =========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS FIXES
========================================= */

/* Tablet & Mobile (under 992px) */
@media (max-width: 992px) {
  /* Ensure full-width buttons for primary CTAs on smaller screens */
  #btn-create-reel, 
  .btn-lg {
    width: 100%;
    max-width: 100%;
  }

  /* Cinematic Accordion */
  .client-accordion-wrapper {
    flex-direction: column;
    height: 800px; /* Increased height to accommodate vertical stacking */
  }
  .vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.1em;
  }
  .blade-collapsed {
    flex-direction: row;
    padding: 0 24px;
    align-items: center;
  }
  .accordion-blade:hover {
    flex: 3; /* Slightly less aggressive expansion vertically */
  }
}

/* Standard Mobile (under 768px) */
@media (max-width: 768px) {
  /* Universal Spacing Adjustments */
  section {
    padding-block: var(--space-4) !important;
  }
  .section-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }
  .lead {
    font-size: 1rem !important;
  }

  /* Banner Section */
  .premium-banner {
    height: auto;
    min-height: 60vh;
    padding: var(--space-6) 0;
  }
  .page-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .breadcrumb {
    padding: 6px 16px;
  }
  .breadcrumb li {
    font-size: 0.65rem;
  }

  /* Feature Matrix */
  .feature-row {
    padding: 12px;
    gap: 12px;
  }
  .f-icon {
    width: 40px;
    height: 40px;
  }
  .f-text h4 {
    font-size: 1rem;
  }

  /* Reels Showcase */
  .reel-card {
    width: 220px; /* Scaled down for mobile viewports */
  }
  .reel-track {
    gap: 16px;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
  .play-glass-btn {
    width: 54px;
    height: 54px;
  }

  /* Cinematic Accordion Expanded Content */
  .blade-expanded {
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
  }
  .expanded-title {
    font-size: 1.5rem;
  }
  .expanded-desc {
    font-size: 0.85rem;
  }
  .metrics-grid {
    gap: 16px;
  }
  .m-value {
    font-size: 1.2rem;
  }

  /* Masterpiece Showcase / Video Details */
  .info-body {
    padding: 16px;
  }
  .masterpiece-title {
    font-size: 1.5rem;
  }
  .playlist-item {
    flex: 0 0 130px; /* Smaller thumbnails */
  }

  /* Neural Engine */
  .neural-split-layout {
    min-height: auto;
  }
  .render-canvas-wrapper {
    height: 45vh;
    min-height: 350px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .neural-ui-container {
    padding: var(--space-4) var(--space-2);
  }
  .neural-ui-box {
    padding: 16px;
  }
  .neural-title {
    font-size: 1.8rem !important;
  }
  .neural-desc {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
  }
  .hold-btn {
    width: 100px;
    height: 100px;
    font-size: 0.65rem;
  }

  /* Glass Panels / Workflows */
  .glass-panel {
    margin-inline: var(--space-2);
  }
  .panel-body {
    padding: var(--space-3);
  }
  .typing-text {
    font-size: 1.1rem;
  }
}

/* Extra Small Mobile (under 480px) */
@media (max-width: 480px) {
  /* Tighten up extreme small screens */
  .client-accordion-wrapper {
    height: 700px;
    gap: 8px;
  }
  .reel-card {
    width: 180px; 
  }
  .client-logo-box {
    width: 36px;
    height: 36px;
  }
  .client-logo-box h4 {
    font-size: 1rem !important;
  }
  .vertical-title {
    font-size: 0.9rem;
  }
  .metrics-grid {
    flex-wrap: wrap; /* Prevent metric overlap */
  }
}

