@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Rubik:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand-blue: #0500FF;
  --brand-blue-hover: #0400D4;
  --brand-blue-light: #EEF0FF;
  --text-main: #0B122B;
  --text-muted: #64748B;
  --bg-card-muted: #F5F6FA;
  --border-subtle: #E2E8F0;
  --spring-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #F3F5FF 0%, #FFFFFF 220px, #FFFFFF 100%);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Rubik when Hebrew (RTL) is active */
html[dir='rtl'] body {
  font-family: 'Rubik', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive Shell */
.app-shell {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding-bottom: 110px;
}

/* ========================================================= */
/* ANIMATIONS & KEYFRAMES (Framer-Motion style curves)       */
/* ========================================================= */

/* 1. Scroll Reveal (initial hidden -> revealed in viewport) */
.reveal-up {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition:
    opacity 0.75s var(--spring-easing),
    transform 0.75s var(--spring-easing);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.7s var(--spring-easing),
    transform 0.7s var(--spring-easing);
  transition-delay: var(--delay, 0ms);
}

.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* 2. Continuous Levitation / Floating Keyframes */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(1.5deg);
  }
}

@keyframes floatMedium {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

@keyframes floatCardIso {
  0%, 100% {
    transform: translate(75px, 84px);
  }
  50% {
    transform: translate(75px, 75px);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

@keyframes cardSheen {
  0% {
    transform: translateX(-140%) skewX(-25deg);
  }
  35%, 100% {
    transform: translateX(220%) skewX(-25deg);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(36px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-36px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes tabFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float-1 {
  animation: floatSlow 4.2s ease-in-out infinite;
}

.animate-float-2 {
  animation: floatMedium 5s ease-in-out infinite 0.7s;
}

.animate-float-3 {
  animation: floatSlow 4.6s ease-in-out infinite 1.4s;
}

.animate-float-iso-card {
  animation: floatCardIso 4.8s ease-in-out infinite;
}

.animate-nfc-pulse {
  animation: pulseRing 2.2s infinite;
}

.animate-tab-enter {
  animation: tabFadeIn 0.4s var(--spring-easing) forwards;
}

.card-slide-next {
  animation: slideInRight 0.45s var(--spring-easing) forwards;
}

.card-slide-prev {
  animation: slideInLeft 0.45s var(--spring-easing) forwards;
}

/* Sticker Badges with hover & float */
.sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #48FF91;
  color: #05080F;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 2px solid #05080F;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--spring-easing), box-shadow 0.25s ease;
}

.sticker-badge:hover {
  box-shadow: 0 12px 24px rgba(72, 255, 145, 0.35);
}

@keyframes floatStickerLeft {
  0%, 100% {
    transform: rotate(8deg) translateY(0px);
  }
  50% {
    transform: rotate(10deg) translateY(-7px);
  }
}

@keyframes floatStickerRightTop {
  0%, 100% {
    transform: rotate(-8deg) translateY(0px);
  }
  50% {
    transform: rotate(-5deg) translateY(-8px);
  }
}

@keyframes floatStickerRightBottom {
  0%, 100% {
    transform: rotate(7deg) translateY(0px);
  }
  50% {
    transform: rotate(4deg) translateY(-6px);
  }
}

.sticker-float-1 {
  animation: floatStickerLeft 4.4s ease-in-out infinite;
}

.sticker-float-2 {
  animation: floatStickerRightTop 4.9s ease-in-out infinite 0.6s;
}

.sticker-float-3 {
  animation: floatStickerRightBottom 4.2s ease-in-out infinite 1.2s;
}

/* Feature Card Hover Lift & Illustration Bounce */
.feature-card {
  transition:
    transform 0.35s var(--spring-easing),
    box-shadow 0.35s var(--spring-easing),
    background-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(11, 18, 43, 0.06);
  background-color: #F0F2F8;
}

.feature-card svg {
  transition: transform 0.45s var(--spring-easing);
}

.feature-card:hover svg {
  transform: scale(1.06) translateY(-4px) rotate(-2deg);
}

/* Step Card Hover */
.step-card {
  transition:
    transform 0.3s var(--spring-easing),
    box-shadow 0.3s var(--spring-easing),
    border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(5, 0, 255, 0.06);
  border-color: #D8DCFF;
}

/* Language pill & dropdown */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid #EAECEF;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(11, 18, 43, 0.06);
  font-weight: 600;
  font-size: 14px;
  color: #0B122B;
  cursor: pointer;
  transition: all 0.2s var(--spring-easing);
}

.lang-pill:hover {
  box-shadow: 0 6px 20px rgba(11, 18, 43, 0.1);
  transform: translateY(-1px);
}

.lang-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 220px;
  background: #FFFFFF;
  border: 1px solid #E6E8F0;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(11, 18, 43, 0.14);
  padding: 8px;
  z-index: 80;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.22s var(--spring-easing),
    transform 0.22s var(--spring-easing);
}

.lang-dropdown-right {
  left: auto;
  right: 0;
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #0B122B;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, transform 0.15s ease;
}

.lang-option:hover,
.lang-option.active {
  background: #F1F3FF;
}

.lang-option:hover {
  transform: translateX(2px);
}

/* Primary & Secondary Buttons */
.btn-primary-blue {
  background: var(--brand-blue);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--spring-easing),
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary-blue:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 10px 24px rgba(5, 0, 255, 0.28);
  transform: translateY(-2px);
}

.btn-primary-blue:active {
  transform: translateY(0) scale(0.97);
}

.btn-gradient-issue {
  background: linear-gradient(90deg, #0500FF 0%, #2563EB 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 10px 24px rgba(5, 0, 255, 0.22);
  cursor: pointer;
  transition:
    transform 0.2s var(--spring-easing),
    box-shadow 0.2s ease;
}

.btn-gradient-issue:hover {
  box-shadow: 0 14px 30px rgba(5, 0, 255, 0.34);
  transform: translateY(-2px);
}

.btn-gradient-issue:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline-blue {
  background: #FFFFFF;
  color: #1E1B4B;
  font-weight: 600;
  border-radius: 9999px;
  border: 1.5px solid #1E00FF;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s var(--spring-easing),
    box-shadow 0.2s ease;
}

.btn-outline-blue:hover {
  background: #F5F6FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 0, 255, 0.08);
}

/* Floating Bottom Navigation Dock */
.bottom-nav-wrap {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 60;
}

.bottom-dock {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid #E6E8F0;
  border-radius: 9999px;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(11, 18, 43, 0.1);
}

.dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #0B122B;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.32s var(--spring-easing);
}

.dock-item.active {
  flex: 1.55;
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 2px 10px rgba(11, 18, 43, 0.06);
}

.dock-item .dock-label {
  display: none;
}

.dock-item.active .dock-label {
  display: inline;
  animation: tabFadeIn 0.25s var(--spring-easing);
}

/* Inactive = solid icon, active = stroke icon */
.dock-item .icon-outline {
  display: none;
}
.dock-item .icon-solid {
  display: block;
}
.dock-item.active .icon-outline {
  display: block;
}
.dock-item.active .icon-solid {
  display: none;
}

/* Separate Support dock — same container as .bottom-dock; a perfect circle
   when inactive, expanding into a pill with its label when active */
.support-dock {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 56px;
  height: 56px;
}

.support-dock .dock-item {
  flex: 0 0 auto;
  width: 44px;
  padding: 0;
}

.support-dock .dock-item.active {
  width: auto;
  padding: 0 14px;
}

/* Credit Card Visuals with 3D tilt & sheen */
.credit-card-perspective {
  perspective: 1100px;
}

.credit-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 20px;
  overflow: hidden;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 38px rgba(5, 0, 255, 0.16);
  user-select: none;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* Periodic subtle light sheen across the card */
.credit-card-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-140%) skewX(-25deg);
  animation: cardSheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

/* 1. Mastercard Pro */
.card-mastercard-pro {
  background: linear-gradient(135deg, #04008C 0%, #0500FF 55%, #0018CC 100%);
  color: #FFFFFF;
}

.card-mastercard-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 54%;
  height: 100%;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 35, 0.42) 100%);
  clip-path: polygon(0 0, 62% 0, 100% 100%, 0% 100%);
}

/* 2. Visa E-commerce */
.card-visa-ecom {
  background: linear-gradient(145deg, #38F88F 0%, #2DD4BF 36%, #2563EB 72%, #0500FF 100%);
  color: #0B122B;
}

.card-visa-ecom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(165deg, #F8FAFC 0%, #E2E8F0 65%, #CBD5E1 100%);
  clip-path: polygon(0 0, 56% 0, 96% 100%, 0% 100%);
}

/* 3. VISA Infinity */
.card-visa-infinity {
  background: linear-gradient(145deg, #0500FF 0%, #1D4ED8 48%, #04009A 100%);
  color: #0B122B;
}

.card-visa-infinity::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(165deg, #F1F5F9 0%, #DBEAFE 55%, #93C5FD 100%);
  clip-path: polygon(0 0, 56% 0, 96% 100%, 0% 100%);
}

/* Carousel navigation buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(11, 18, 43, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B122B;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s var(--spring-easing), background 0.15s ease, box-shadow 0.2s ease;
}

.carousel-arrow:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 20px rgba(11, 18, 43, 0.18);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 43, 0.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--spring-easing);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 410px;
  background: #FFFFFF;
  border-radius: 26px;
  padding: 24px 20px;
  box-shadow: 0 24px 48px rgba(11, 18, 43, 0.24);
  transform: translateY(16px) scale(0.95);
  transition: transform 0.3s var(--spring-easing);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

/* FAQ Accordion transitions (CSS grid smooth height animation) */
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  background: #FFFFFF;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s var(--spring-easing);
}

.faq-item:hover {
  border-color: #CBD5E1;
}

.faq-item.open {
  border-color: #BFC4FF;
  box-shadow: 0 8px 24px rgba(5, 0, 255, 0.05);
}

.faq-answer-grid {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.32s var(--spring-easing),
    opacity 0.28s ease,
    margin-top 0.28s var(--spring-easing);
  margin-top: 0;
}

.faq-item.open .faq-answer-grid {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}

.faq-answer-inner {
  overflow: hidden;
}

/* Phone Mockup Frame */
.iphone-frame {
  width: 284px;
  margin: 0 auto;
  background: #08090C;
  border-radius: 42px;
  border: 6px solid #1E2430;
  box-shadow: 0 24px 48px rgba(11, 18, 43, 0.22);
  padding: 14px;
  color: #FFFFFF;
  position: relative;
  transition: transform 0.4s var(--spring-easing), box-shadow 0.4s ease;
}

.iphone-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 56px rgba(11, 18, 43, 0.28);
}

/* Floating Transaction Pill */
.tx-pill {
  background: rgba(24, 26, 32, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #FFFFFF;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--spring-easing), border-color 0.25s ease;
}

.tx-pill:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(72, 255, 145, 0.45);
}
