/* Site-level custom CSS (non-Tailwind) */

html {
  scroll-behavior: smooth;
}

/* Anchor offset for fixed top navbar (h-20 = 5rem) */
#features,
#comparison,
#cases,
#faq,
#contact {
  scroll-margin-top: 6rem;
}

.text-neon {
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.3);
}

.text-neon-cyan {
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
}

.bg-glass {
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gradient-text {
  background: linear-gradient(to right, #ffffff, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00e5ff;
}

/* Seamless marquee (shift is computed in JS) */
.marquee-track {
  animation: marquee-seamless var(--marquee-duration, 25s) linear infinite;
}

@keyframes marquee-seamless {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--marquee-shift, 0px)));
  }
}

/* One-screen scrolling: section transition when entering viewport */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 600ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* FAQ accordion (animated) */
.faq-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.faq-item:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 229, 255, 0.08);
}

.faq-item.is-open {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 229, 255, 0.08);
}

.faq-answer-wrap {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: height 320ms ease, opacity 240ms ease, transform 320ms ease;
  will-change: height;
}

.faq-item.is-open .faq-answer-wrap {
  opacity: 1;
  transform: none;
}

.faq-answer {
  padding-top: 10px;
}

.faq-answer::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-answer-wrap {
    transition: none;
  }
}
