/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0D0D1A; }
::-webkit-scrollbar-thumb { background: #252540; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4F6EF7; }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Header scroll state ── */
#header { background: transparent; }
#header.scrolled {
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 37, 64, 0.8);
}

/* ── Reveal animation (Intersection Observer) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ── Select arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B6B8A' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* ── Input focus ring ── */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.18);
}

/* ── FAQ accordion ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  display: block !important;
  padding-bottom: 0;
}
.faq-answer.open {
  max-height: 200px;
  padding-bottom: 1.25rem;
}
.faq-icon.open {
  transform: rotate(180deg);
}

/* ── Mobile menu open state ── */
#mobile-menu.open { display: flex; }

/* ── Burger animation ── */
#burger.open .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#burger.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#burger.open .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ════════════════════════════════════════════
   VSL VIDEO PLAYER
════════════════════════════════════════════ */

/* Outer wrapper — positions the glow ring */
.vsl-wrapper {
  position: relative;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Animated glow border ring */
.vsl-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79,110,247,0.6), rgba(79,110,247,0.05) 50%, rgba(79,110,247,0.4));
  padding: 2px;
  animation: vsl-ring-rotate 6s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
@keyframes vsl-ring-rotate {
  0%   { filter: hue-rotate(0deg)   brightness(1); }
  50%  { filter: hue-rotate(20deg)  brightness(1.3); }
  100% { filter: hue-rotate(0deg)   brightness(1); }
}

/* Player box */
.vsl-player {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0f0f1e;
  box-shadow:
    0 0 0 1px rgba(79,110,247,0.18),
    0 8px 32px rgba(0,0,0,0.5),
    0 0 80px rgba(79,110,247,0.10);
  cursor: pointer;
  z-index: 2;
  aspect-ratio: 16 / 9;
}

/* Animated gradient background inside the player */
.vsl-thumbnail {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsl-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(79,110,247,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 65%, rgba(79,110,247,0.10) 0%, transparent 70%),
    linear-gradient(135deg, #0a0a18 0%, #111128 50%, #0d0d20 100%);
  animation: vsl-bg-pulse 8s ease-in-out infinite;
}
@keyframes vsl-bg-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.8; }
}

/* Subtle grid */
.vsl-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,110,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,110,247,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Floating stat chips inside video */
.vsl-stat {
  position: absolute;
  top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(13,13,26,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(79,110,247,0.25);
  border-radius: 12px;
  padding: 8px 14px;
  gap: 1px;
  z-index: 3;
}
.vsl-stat-left  { left: 16px; }
.vsl-stat-right { right: 16px; }
.vsl-stat-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #F0F0F5;
  line-height: 1;
}
.vsl-stat-label {
  font-size: 0.65rem;
  color: #6B6B8A;
  font-weight: 500;
}

/* Play button */
.vsl-play-btn {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.vsl-player:hover .vsl-play-btn { transform: scale(1.08); }

/* Pulsing rings */
.vsl-play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(79,110,247,0.4);
  animation: vsl-pulse 2.4s ease-out infinite;
}
.vsl-ring-2 { animation-delay: 1.2s; }
@keyframes vsl-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(2.2);  opacity: 0; }
}

/* Play icon circle */
.vsl-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(79,110,247,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(79,110,247,0.5), 0 4px 16px rgba(0,0,0,0.4);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.vsl-player:hover .vsl-play-icon {
  background: rgba(61,92,224,1);
  box-shadow: 0 0 48px rgba(79,110,247,0.7), 0 4px 20px rgba(0,0,0,0.4);
}
.vsl-play-icon svg {
  width: 28px;
  height: 28px;
  color: white;
  margin-left: 4px; /* optical centering */
}

/* Bottom caption bar */
.vsl-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(10,10,24,0.95) 0%, transparent 100%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #C8C8D8;
  z-index: 4;
}
.vsl-duration {
  margin-left: auto;
  background: rgba(79,110,247,0.2);
  border: 1px solid rgba(79,110,247,0.3);
  color: #4F6EF7;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Playing state */
.vsl-player.playing .vsl-thumbnail { display: none; }
.vsl-player.playing iframe { display: block !important; }

/* Responsive tweaks */
@media (max-width: 480px) {
  .vsl-play-icon { width: 56px; height: 56px; }
  .vsl-play-btn  { width: 56px; height: 56px; }
  .vsl-play-icon svg { width: 22px; height: 22px; }
  .vsl-stat { padding: 6px 10px; }
  .vsl-stat-value { font-size: 0.9rem; }
}
