/* ========== Base (match original font exactly) ========== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('//epay.moe/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-padding-top: 100px;
}

/* ========== Custom CSS Variables (match original) ========== */
:root {
  --color-primary: #165dff;
  --color-primaryho: #0052d9;
  --color-black: #181c31;
  --color-stroke: #eee;
  --color-strokedark: #2d2f40;
  --color-waterloo: #757693;
  --color-manatee: #999aa1;
  --color-alabaster: #fbfbfb;
  --color-zumthor: #edf5ff;
  --text-hero: 44px;
  --text-sectiontitle2: 40px;
  --text-sectiontitle3: 44px;
  --text-sectiontitle4: 34px;
  --text-itemtitle: 26px;
  --text-itemtitle2: 24px;
  --text-para2: 22px;
  --text-regular: 16px;
  --text-metatitle: 12px;
  --text-metatitle3: 18px;
}

/* ========== Animations ========== */
@keyframes line1 { 0%,100%{opacity:.2} 50%{opacity:.6} }
@keyframes line2 { 0%,100%{opacity:.4} 50%{opacity:.1} }
@keyframes line3 { 0%,100%{opacity:.3} 50%{opacity:.5} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.animate-line1 { animation: line1 3s linear infinite; }
.animate-line2 { animation: line2 6s linear infinite; }
.animate-line3 { animation: line3 9s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ========== Scroll Reveal ========== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate_left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate_left.visible {
  opacity: 1;
  transform: translateX(0);
}
.animate_right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate_right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== FAQ ========== */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
  overflow: hidden;
}
.faq-answer.open {
  grid-template-rows: 1fr;
}
.faq-answer > div {
  overflow: hidden;
}
.faq-icon {
  transition: transform 0.25s ease;
}

/* ========== Tabs ========== */
.tab-content { display: none; width: 100%; }
.tab-content.active {
  display: block;
  width: 100%;
  animation: fadeIn 0.3s ease;
}
.tab-btn {
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
}
.tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tab-btn.active:hover {
  background: #015bfe;
  color: white;
  box-shadow: none;
}
.tab-btn.active {
  /* no shadow */
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Phone Mockup (match original exactly) ========== */
.phone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: #000;
  border-radius: 2.5rem;
  padding: 6px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* ========== Swiper Custom ========== */
.testimonial-swiper .swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
  width: 8px;
  height: 8px;
}
.testimonial-swiper .swiper-pagination-bullet-active {
  background: #165dff;
  width: 24px;
  border-radius: 4px;
}
.testimonial-swiper .swiper-button-next,
.testimonial-swiper .swiper-button-prev {
  color: #165dff;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.testimonial-swiper .swiper-button-next:after,
.testimonial-swiper .swiper-button-prev:after {
  font-size: 16px;
}
.dark .testimonial-swiper .swiper-button-next,
.dark .testimonial-swiper .swiper-button-prev {
  background: #1f2937;
  color: #60a5fa;
}

/* ========== Navbar Scroll ========== */
.navbar-scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ========== Mobile Responsive (375px+) ========== */
@media (max-width: 767px) {
  /* Fix overflow */
  body { overflow-x: hidden; }
  .max-w-c-1390 { max-width: 100%; }
  .animate_left, .animate_right { transform: none !important; }

  /* Hero section */
  .phone-mockup { display: none; }
  .animate_right.hidden.md\:block { display: none !important; }

  /* Tab buttons - horizontal scroll */
  .flex.justify-center.mb-10.gap-2 {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 8px;
  }
  .flex.justify-center.mb-10.gap-2::-webkit-scrollbar { display: none; }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 16px;
  }

  /* Feature cards - single column */
  .card-feature { padding: 20px; }

  /* Solution grid - stack on mobile */
  .grid.lg\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  /* Terminal grid - 2 cols on mobile */
  .grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing cards - single column */
  .grid.grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  /* Contact grid - single column */
  .grid.md\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* CTA section */
  .rounded-2xl.bg-gradient-to-br {
    padding: 32px 20px;
  }

  /* Section padding - reduce on mobile */
  section.py-20 { padding-top: 48px; padding-bottom: 48px; }

  /* H2 text size */
  .text-sectiontitle2-custom { font-size: 24px; line-height: 1.3; }
  .text-sectiontitle-sm { font-size: 22px; line-height: 1.3; }
  .text-hero-custom { font-size: 32px; line-height: 1.3; }

  /* Brand logos */
  .flex.flex-wrap.items-center.justify-center.gap-8 { gap: 20px; }
  .flex.flex-wrap.items-center.justify-center.gap-8 img { height: 32px; }

  /* Payment channels grid */
  .flex.flex-wrap.justify-around.gap-y-10 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
    justify-items: center;
  }
  .flex.flex-wrap.justify-around.gap-y-10 > .w-1\/6 { width: auto; }
  .flex.flex-wrap.justify-around.gap-y-10 > div > .h-3,
  .flex.flex-wrap.justify-around.gap-y-10 > div > .h-3\.5,
  .flex.flex-wrap.justify-around.gap-y-10 > div > .h-4 { display: none; }
  .flex.flex-wrap.justify-around.gap-y-10 .h-20 { height: 56px; width: 56px; }
  .flex.flex-wrap.justify-around.gap-y-10 .h-16 { height: 48px; width: 48px; }
  .flex.flex-wrap.justify-around.gap-y-10 .h-8 { height: 24px; width: 24px; }
  .flex.flex-wrap.justify-around.gap-y-10 .h-7 { height: 20px; width: 20px; }

  /* Stats */
  .flex.flex-wrap.justify-center.gap-8.lg\:gap-20 { gap: 24px; }
  .text-sectiontitle3-custom { font-size: 28px; }
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #4b5563; }

/* ========== Section Spacing (match original) ========== */
.section-py {
  padding-top: 5rem;  /* pt-20 */
  padding-bottom: 5rem; /* pb-20 */
}
@media (min-width: 1280px) {
  .section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ========== Text Styles (responsive, match original exactly) ========== */
/* Hero H1: 44px mobile, 60px desktop */
.text-hero-custom {
  font-size: 44px;
  line-height: 1.32;
  font-weight: 700;
}
@media (min-width: 768px) {
  .text-hero-custom { font-size: 48px; line-height: 1.25; }
}
@media (min-width: 1280px) {
  .text-hero-custom { font-size: 60px; line-height: 1.25; }
}

/* Section H2 - varies by section, use these as base */
.text-sectiontitle2-custom {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}
@media (min-width: 768px) {
  .text-sectiontitle2-custom { font-size: 36px; line-height: 1.17; }
}
@media (min-width: 1280px) {
  .text-sectiontitle2-custom { font-size: 48px; line-height: 1.25; }
}

/* Section H2 smaller variant */
.text-sectiontitle3-custom {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}
@media (min-width: 1280px) {
  .text-sectiontitle3-custom { font-size: 44px; line-height: 1.25; }
}

/* Section H2 smallest variant */
.text-sectiontitle-sm {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}
@media (min-width: 768px) {
  .text-sectiontitle-sm { font-size: 36px; line-height: 1.17; }
}

/* Card title */
.text-itemtitle-custom {
  font-size: var(--text-itemtitle);
  line-height: 1.23;
  font-weight: 600;
}
.text-itemtitle2-custom {
  font-size: var(--text-itemtitle2);
  line-height: 1.33;
  font-weight: 600;
}

/* Paragraph text */
.text-para2-custom {
  font-size: 18px;
  line-height: 1.625;
}
@media (min-width: 1280px) {
  .text-para2-custom { font-size: 18px; line-height: 1.625; }
}
.text-regular-custom {
  font-size: var(--text-regular);
  line-height: 1.625;
}
.text-metatitle-custom {
  font-size: var(--text-metatitle);
  line-height: 1.67;
}
.text-metatitle3-custom {
  font-size: var(--text-metatitle3);
  line-height: 1.56;
  font-weight: 600;
}

/* ========== Button Styles (match original exactly) ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 6px;
  background: #0055ff;
  color: white;
  padding: 0 1rem;
  height: 2.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  box-shadow: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  outline: none;
}
.btn-primary:hover { background: rgba(0,85,255,0.9); transform: translateY(-1px); }
.btn-primary:focus { outline: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid #0055ff;
  color: #0055ff;
  background: white;
  padding: 0 1rem;
  height: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  outline: none;
}
.btn-outline:hover { background: rgba(0,85,255,0.05); transform: translateY(-1px); }
.btn-outline:focus { outline: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 6px;
  background: #0055ff;
  color: white;
  padding: 0 1.5rem;
  height: 2.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  outline: none;
}
.btn-ghost:hover { background: rgba(0,85,255,0.9); transform: translateY(-1px); }
.btn-ghost:focus { outline: none; }

.btn-ghost-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 8px;
  background: white;
  color: #374151;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  outline: none;
}
.btn-ghost-outline:hover { border-color: #165dff; color: #165dff; transform: translateY(-1px); }
.btn-ghost-outline:focus { outline: none; }

/* ========== Card Styles ========== */
.card-feature {
  border-radius: 8px;
  background: white;
  padding: 32px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.card-feature:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border-color: #bfdbfe;
}
.dark .card-feature {
  background: #111827;
  border-color: #1f2937;
}
.dark .card-feature:hover {
  border-color: #1e40af;
}

/* ========== Dotted Background Pattern ========== */
.bg-dotted {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23165dff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
