/* CardMotion — Custom CSS */

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #0f0f11;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Hide native scrollbar on mobile nav */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth transitions globally */
*:not(iframe) {
  transition-property: color, background-color, border-color, opacity, transform, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override for animation-heavy elements */
[x-cloak] {
  display: none !important;
}

/* Glass card effect */
.glass-card {
  background: rgba(15, 15, 17, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(39, 39, 42, 0.8);
}

/* Page-level fade in */
.page-enter {
  animation: fadeInPage 0.25s ease-out;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Table hover rows */
tbody tr {
  transition: background-color 100ms ease;
}

/* ============================================
   FORM ELEMENT POLISH (Inputs, Selects, Checks)
   ============================================ */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25em;
  padding-right: 2.5rem !important;
}

select::-ms-expand {
  display: none;
}

select option {
  background-color: #0f0f11;
  color: white;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #000;
  border: 1px solid #27272a;
  border-radius: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}

input[type="checkbox"]:checked {
  background-color: #9333ea;
  border-color: #a855f7;
}

input[type="checkbox"]:checked::after {
  content: '';
  width: 0.35rem;
  height: 0.65rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-10%, -10%);
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #000;
  border: 1px solid #27272a;
  border-radius: 50%;
  width: 1.125rem;
  height: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}

input[type="radio"]:checked {
  border-color: #a855f7;
  border-width: 4px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
  border-color: #a855f7 !important;
}

/* Gradient text utility */
.text-gradient-brand {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #c084fc, #7e22ce);
}

/* Hide native number spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* ============================================
   LANDING PAGE — Premium Design System
   ============================================ */

/* Hero Background Glow */
.hero-glow {
  position: absolute;
  width: 800px;
  height: 600px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
      rgba(147, 51, 234, 0.15) 0%,
      rgba(147, 51, 234, 0.05) 40%,
      transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

/* Hero floating accent orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(168, 85, 247, 0.12);
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(126, 34, 206, 0.1);
  bottom: 20%;
  right: 10%;
  animation-delay: -3s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  33% {
    transform: translateY(-20px) translateX(10px);
  }

  66% {
    transform: translateY(10px) translateX(-15px);
  }
}

/* Feature cards with hover glow */
.feature-card {
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(39, 39, 42, 0.6);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(168, 85, 247, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(147, 51, 234, 0.15);
  border-color: rgba(168, 85, 247, 0.25);
}

/* Step cards — numbered */
.step-card {
  position: relative;
  background: rgba(15, 15, 17, 0.5);
  border: 1px solid rgba(39, 39, 42, 0.5);
  border-radius: 1rem;
  padding: 2rem;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 24px rgba(147, 51, 234, 0.4);
  flex-shrink: 0;
}

/* Step connector line (desktop only) */
@media (min-width: 768px) {
  .step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: linear-gradient(to right, rgba(147, 51, 234, 0.5), transparent);
  }

  .step-connector:last-child::after {
    display: none;
  }
}

/* Stats counter bar */
.stat-item {
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(39, 39, 42, 0.8);
}

/* Trust badge pills */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(15, 15, 17, 0.8);
  border: 1px solid rgba(39, 39, 42, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  color: #a1a1aa;
  backdrop-filter: blur(8px);
}

/* Pricing card glow (popular tier) */
.pricing-popular {
  position: relative;
  border-color: rgba(147, 51, 234, 0.5) !important;
  background: linear-gradient(180deg, rgba(147, 51, 234, 0.06) 0%, rgba(15, 15, 17, 0.8) 50%) !important;
  box-shadow:
    0 0 40px -8px rgba(147, 51, 234, 0.3),
    0 0 80px -16px rgba(147, 51, 234, 0.15);
}

/* No KYC highlight section */
.no-kyc-section {
  background: linear-gradient(180deg, rgba(147, 51, 234, 0.04) 0%, rgba(9, 9, 11, 1) 100%);
  position: relative;
}

.no-kyc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
}

/* Final CTA gradient banner */
.cta-banner {
  background: linear-gradient(135deg,
      rgba(147, 51, 234, 0.12) 0%,
      rgba(126, 34, 206, 0.08) 50%,
      rgba(88, 28, 135, 0.05) 100%);
  border-top: 1px solid rgba(147, 51, 234, 0.15);
  border-bottom: 1px solid rgba(147, 51, 234, 0.15);
}

/* Landing-specific reveal animation */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up {
  animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-delay-1 {
  animation-delay: 100ms;
}

.reveal-delay-2 {
  animation-delay: 200ms;
}

.reveal-delay-3 {
  animation-delay: 300ms;
}

.reveal-delay-4 {
  animation-delay: 400ms;
}

.reveal-delay-5 {
  animation-delay: 500ms;
}

/* Gradient border for sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 39, 42, 0.8), transparent);
}
