/* =============================================
   NEKO LANDING PAGE — Custom Animations & Styles
   ============================================= */

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

*::selection {
  background: rgba(59, 130, 246, 0.2);
  color: inherit;
}

/* ---- Gradient Text ---- */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
  will-change: width;
}

/* ---- Section Dots (side navigation) ---- */
.section-dot .w-3 {
  transition: all 0.3s ease;
}

.section-dot.active span:last-child {
  background-color: #3b82f6;
  border-color: #3b82f6;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.section-dot.active .section-label {
  opacity: 1;
  color: #3b82f6;
}

/* ---- Navigation ---- */
#navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#navbar .nav-logo-text {
  color: #0f172a;
}

#navbar .nav-link {
  color: #6b7280;
}

#navbar .hamburger-line {
  background-color: #1f2937;
}

/* Hamburger open state */
#menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

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

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

/* ---- Kinetic Typography ---- */
.kinetic-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: kinetic-appear 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay) * 0.12s + 0.3s);
}

@keyframes kinetic-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Hero Title Effects ---- */
.hero-underline {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-underline 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.7s;
}

@keyframes draw-underline {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-sparkle {
  opacity: 0;
  animation: sparkle 2s ease-in-out infinite;
  animation-delay: var(--sparkle-delay, 0s);
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(15deg);
  }
}

/* ---- Float Animation (mockup & decorative elements) ---- */
.mockup-float {
  animation: float 6s ease-in-out infinite;
}

.float-element {
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

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

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Logo Scroll ---- */
.logo-scroll {
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-scroll:hover {
  animation-play-state: paused;
}

/* ---- Features Horizontal Scroll ---- */
.features-scroll-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.features-scroll-track:active {
  cursor: grabbing;
}

.features-scroll-track::-webkit-scrollbar {
  display: none;
}

/* ---- Step Connector ---- */
.step-connector {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-connector.animate {
  transform: scaleX(1);
}

/* ---- Demo Carousel ---- */
.demo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.demo-slide.active {
  opacity: 1;
}

.demo-dot.active {
  background-color: #3b82f6;
  transform: scale(1.3);
}

/* ---- FAQ Accordion ---- */
.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

.faq-item[open] {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .kinetic-word {
    opacity: 1;
    transform: none;
  }

  .logo-scroll {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}
