/* ================================================
   SAFIRION LANDING PAGE - CUSTOM STYLES
   ================================================ */

/* ----- Base ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060B18;
}
::-webkit-scrollbar-thumb {
  background: #2389E6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #146AC7;
}

/* ----- Selection ----- */
::selection {
  background-color: rgba(35, 137, 230, 0.3);
  color: #ffffff;
}

/* ----- Hero Crystal Float Animation ----- */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-float {
  animation: heroFloat 6s ease-in-out infinite;
}

/* ----- Hero Check Icon (circle with gradient border) ----- */
.hero-check-icon {
  background: #090E1A;
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.hero-check-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #146AC7, #0A3461);
  z-index: -1;
}

/* ----- CTA Pulse Glow ----- */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(35, 137, 230, 0.3); }
  50% { box-shadow: 0 0 40px rgba(35, 137, 230, 0.5), 0 0 60px rgba(35, 137, 230, 0.2); }
}

.cta-pulse {
  animation: ctaPulse 3s ease-in-out infinite;
}

/* ----- FAQ Accordion ----- */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item.active {
  border-color: rgba(35, 137, 230, 0.3);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-content {
  max-height: 500px;
}

.faq-icon-close {
  display: none;
}

.faq-item.active .faq-icon-plus {
  display: none;
}

.faq-item.active .faq-icon-close {
  display: block;
}

/* ----- Crypto Card Hover ----- */
.crypto-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.crypto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(35, 137, 230, 0.15);
}

/* ----- Testimonial Carousel (center-highlight) ----- */
.testimonial-carousel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  min-height: 320px;
}

.testimonial-slide {
  position: absolute;
  width: 380px;
  max-width: 90vw;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Center (active) slide */
.testimonial-slide.active {
  position: relative;
  z-index: 10;
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

/* Left slide */
.testimonial-slide.prev {
  z-index: 5;
  opacity: 0.4;
  transform: scale(0.88) translateX(-105%);
  filter: blur(1px);
}

/* Right slide */
.testimonial-slide.next {
  z-index: 5;
  opacity: 0.4;
  transform: scale(0.88) translateX(105%);
  filter: blur(1px);
}

/* Hidden slides */
.testimonial-slide.hidden-slide {
  opacity: 0;
  transform: scale(0.8) translateX(0);
  z-index: 0;
}

.testimonial-slide.active > div {
  border-color: rgba(35, 137, 230, 0.2);
  box-shadow: 0 0 40px rgba(35, 137, 230, 0.08);
}

/* ----- Mobile Menu Hamburger ----- */
.hamburger-line {
  transition: all 0.3s ease;
}

.mobile-menu-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ----- Scroll Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Language Dropdown ----- */
.lang-dropdown-menu {
  background: linear-gradient(180deg, #0C1424 0%, #111C30 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ----- Marquee / Infinite Scroll ----- */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track-reverse {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite reverse;
}

.marquee-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* ----- Steps Overlapping Layout ----- */
.steps-overlap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .steps-overlap {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 0;
  }

  .steps-overlap-image {
    grid-column: 1 / 9;
    grid-row: 1;
  }

  .steps-overlap-card {
    grid-column: 5 / 13;
    grid-row: 1;
    z-index: 10;
  }
}

/* ----- Comparativa Table: Desktop vs Mobile ----- */
.comp-desktop {
  display: none;
}

.comp-mobile {
  display: block;
}

@media (min-width: 768px) {
  .comp-desktop {
    display: grid;
  }

  .comp-mobile {
    display: none;
  }
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero-float {
    animation-duration: 4s;
  }

  .testimonial-carousel {
    min-height: 360px;
  }

  .testimonial-slide {
    width: 85vw;
  }

  .testimonial-slide.prev {
    transform: scale(0.85) translateX(-90%);
  }

  .testimonial-slide.next {
    transform: scale(0.85) translateX(90%);
  }
}
