/* BUILDWEB — cinema sub-pages (demo, faq, terms, contact) */

.page-cinema {
  background: transparent;
}

.page-cinema-main {
  position: relative;
  z-index: 2;
}

.page-cinema .header {
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
}

.page-cinema .page-hero {
  min-height: 100vh;
  background: transparent;
  padding-bottom: 5.5rem;
}

.page-cinema .page-hero-grid {
  opacity: 0.35;
}

.page-cinema .page-content {
  background: transparent;
}

.page-cinema .page-hero + .page-content {
  padding-top: 0;
}

.page-cinema .footer {
  position: relative;
  z-index: 2;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
}

.page-cinema,
.page-cinema-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Code backdrop */
.code-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
}

.code-bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.code-bg__scenes {
  position: absolute;
  inset: 0;
}

.code-bg__scene {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.code-bg__scene.is-active {
  opacity: 1;
}

.code-snippet {
  position: absolute;
  margin: 0;
  padding: 1rem 1.25rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  line-height: 1.55;
  color: rgba(129, 140, 248, 0.55);
  background: rgba(21, 27, 46, 0.45);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 0.5rem;
  white-space: pre;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.code-snippet--a {
  top: 18%;
  left: 6%;
  max-width: min(340px, 42vw);
}

.code-snippet--b {
  bottom: 22%;
  right: 5%;
  max-width: min(300px, 38vw);
  color: rgba(165, 180, 252, 0.45);
}

.code-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 20%, rgba(79, 70, 229, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 75%, rgba(99, 102, 241, 0.18), transparent 50%);
}

.code-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.code-bg__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.7) 0%,
    rgba(10, 14, 26, 0.35) 40%,
    rgba(10, 14, 26, 0.75) 100%
  );
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: rgba(99, 102, 241, 0.15);
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  transform-origin: left center;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
}

.scene-indicator {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 0.65rem;
}

.scene-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.5);
  background: transparent;
  transition: transform 0.35s ease, background 0.35s;
}

.scene-indicator__dot.is-active {
  background: #818cf8;
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.8);
}

@media (min-width: 1024px) {
  .scene-indicator {
    display: flex;
  }
}

.page-cinema .page-section-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 1rem;
}

.page-cinema .cinema-panel,
.page-cinema .demo-card,
.page-cinema .faq-item,
.page-cinema .terms-section,
.page-cinema .contact-card-horizontal,
.page-cinema .contact-form-container,
.page-cinema .faq-cta {
  background: rgba(21, 27, 46, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.page-cinema .demo-card {
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.page-cinema .page-hero-word,
.page-cinema .cinema-quote__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.page-cinema .page-hero-word-inner,
.page-cinema .cinema-quote__word-inner {
  display: inline-block;
}

.page-cinema .demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .page-cinema .demo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .page-cinema .demo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ===== DEMO CARD ANIMATION STATES ===== */
.page-cinema .demo-card {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.page-cinema .demo-card .demo-image {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

.page-cinema .demo-card:hover .demo-image {
  transform: scale(1.07);
}

.page-cinema .demo-card .demo-info {
  position: relative;
  overflow: hidden;
}

.page-cinema .demo-card .demo-info::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-cinema .demo-card:hover .demo-info::after {
  width: 100%;
}

/* Demo card badge shimmer */
.page-cinema .demo-card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  padding: 0.15rem 0.65rem;
  margin-top: 0.5rem;
}

/* Demo counter bar */
.demo-count-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.demo-count-bar span {
  color: #818cf8;
  font-weight: 700;
}

/* CTA strip */
.demo-cta-strip {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem;
  background: rgba(15, 20, 35, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 1.25rem;
}

.demo-cta-strip p {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.demo-cta-strip strong {
  color: #e2e8f0;
}

.page-cinema .demo-card,
.page-cinema .faq-item,
.page-cinema .contact-card-horizontal {
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.page-cinema .scroll-hint-arrow {
  will-change: transform;
}

@media (max-width: 767px) {
  .page-cinema .page-hero {
    min-height: 88vh;
    padding: 7rem 1rem 5rem;
  }

  .page-cinema .page-hero .page-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    line-height: 1.25;
  }

  .page-cinema .page-hero .page-description {
    font-size: 0.95rem;
    margin-bottom: 0;
  }

  /* Hide code snippets on very small screens for cleaner look */
  .code-snippet {
    display: none;
  }

  .scene-indicator {
    display: none !important;
  }

  .page-cinema .demo-grid {
    gap: 1.25rem;
  }

  .page-cinema .demo-card .demo-image {
    height: 190px;
  }

  .demo-cta-strip {
    padding: 1.75rem 1.25rem;
  }
}

@media (min-width: 480px) and (max-width: 599px) {
  .code-snippet {
    display: none;
  }
}

/* ===== GSAP ANIMATION INITIAL STATES ===== */
/* These classes are applied by JS before animation so there's no flash */
.gsap-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Page section label */
.page-cinema .page-section-label {
  position: relative;
}

.page-cinema .page-section-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #818cf8;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ===== SCROLL PROGRESS GLOW ===== */
.scroll-progress__bar {
  transition: box-shadow 0.3s ease;
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 767px) {
  .page-cinema .nav-container {
    padding: 0.75rem 1rem;
  }

  .page-cinema .logo {
    font-size: 1.1rem;
  }

  .page-cinema .logo-img {
    width: 36px;
    height: 36px;
  }
}

/* ===== FLOATING PARTICLES (CSS-only, for mobile) ===== */
@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  33% { transform: translateY(-20px) translateX(10px) scale(1.1); opacity: 1; }
  66% { transform: translateY(10px) translateX(-8px) scale(0.9); opacity: 0.8; }
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(129, 140, 248, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle linear infinite;
}

.particle:nth-child(1) { top: 20%; left: 15%; animation-duration: 7s; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-duration: 9s; animation-delay: 2s; width: 4px; height: 4px; }
.particle:nth-child(3) { top: 35%; left: 70%; animation-duration: 11s; animation-delay: 4s; width: 5px; height: 5px; }
.particle:nth-child(4) { top: 75%; left: 30%; animation-duration: 8s; animation-delay: 1s; width: 3px; height: 3px; }
.particle:nth-child(5) { top: 50%; left: 50%; animation-duration: 13s; animation-delay: 3s; width: 4px; height: 4px; opacity: 0.4; }
