/* XavexPay — payments platform theme */
:root {
  --navy: #0b1220;
  --navy-mid: #111c33;
  --slate: #64748b;
  --text: #1e293b;
  --text-muted: #475569;
  --white: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --cyan: #06b6d4;
  --accent: #2563eb;
  --gradient: linear-gradient(135deg, #0d9488 0%, #2563eb 55%, #7c3aed 100%);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 80px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
ul { padding-left: 1.25rem; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--text-muted); }

.skip-link {
  position: absolute; left: -9999px; z-index: 9999;
  padding: 0.75rem 1rem; background: var(--navy); color: var(--white);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section--alt { background: var(--surface); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head p { font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; flex-shrink: 0; font-weight: 800; color: var(--navy); }
.logo:hover { color: var(--navy); }
.site-header .logo img {
  height: 30px;
  object-fit: contain;
  border-radius: 12px;
}

.nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  border-radius: 8px;
}
.nav > li > a:hover,
.nav > li.is-active > a { color: var(--teal); background: rgba(13, 148, 136, 0.08); }
.nav > li > a i { font-size: 0.85rem; opacity: 0.7; }

.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  margin: 0; padding: 0.5rem; list-style: none;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav__parent:hover .nav__dropdown,
.nav__parent:focus-within .nav__dropdown,
.nav__parent.is-open .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(4px);
}
.nav__dropdown a {
  display: block; padding: 0.55rem 0.85rem;
  font-size: 0.875rem; font-weight: 500; color: var(--text);
  border-radius: 6px;
}
.nav__dropdown a:hover { background: var(--surface); color: var(--teal); }

.header-cta { margin-left: 0.5rem; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: none;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy);
  font-size: 1.35rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn--primary {
  background: var(--gradient); color: var(--white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4); color: var(--white); }
.btn--outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--border);
}
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #f0fdfa 0%, var(--white) 45%);
  overflow: hidden;
}
.hero--dark {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 50%, #1a2744 100%);
  color: var(--white);
}
.hero--dark h1, .hero--dark h2 { color: var(--white); }
.hero--dark p { color: rgba(255, 255, 255, 0.78); }
.hero__grid {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr 1fr;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.hero__visual img {
  width: 100%;
  height: auto;
}

/* Cards */
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 1.75rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: rgba(13, 148, 136, 0.25); }
.card__icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(37,99,235,0.12));
  border-radius: 12px; color: var(--teal); font-size: 1.25rem; margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.95rem; }

/* Feature rows */
.feature-row {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr 1fr;
}
.feature-row--reverse .feature-row__media { order: -1; }
.feature-row__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; padding: 2rem 0; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--teal); }
.stat span { font-size: 0.9rem; color: var(--slate); }

/* Testimonial */
.quote {
  padding: 2rem; background: var(--surface);
  border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text);
}
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--slate); }

/* Pricing */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
.pricing-card {
  position: relative; padding: 2rem 1.75rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pricing-card--featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 0.35rem 1rem; background: var(--gradient); color: var(--white);
  font-size: 0.75rem; font-weight: 700; border-radius: 999px;
}
.pricing-card__price { font-size: 2.5rem; font-weight: 800; color: var(--navy); }
.pricing-card__price small { font-size: 0.9rem; font-weight: 500; color: var(--slate); }
.pricing-card h3 { margin: 0.5rem 0 0.25rem; }
.pricing-card__tier { font-size: 0.8rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; }
.feature-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.feature-list li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-muted);
}
.feature-list li i { margin-top: 0.2rem; flex-shrink: 0; }
.feature-list li.is-no i { color: #cbd5e1; }
.feature-list li:not(.is-no) i.fa-check { color: var(--teal); }
.feature-list__heading { font-weight: 700; color: var(--navy); margin: 1.25rem 0 0.5rem; font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600; text-align: left; color: var(--navy);
}
.faq-item button i { transition: transform 0.2s; color: var(--teal); }
.faq-item.is-open button i { transform: rotate(180deg); }
.faq-item__body {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-item__body { max-height: 400px; }
.faq-item__body p { padding-bottom: 1.25rem; }

/* Contact */
.contact-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.contact-list > p { margin-top: 0.5rem; }
.contact-card {
  display: flex; gap: 1rem; padding: 1.25rem;
  background: var(--surface); border-radius: var(--radius);
}
.contact-card i { font-size: 1.25rem; color: var(--teal); width: 28px; }
.contact-partners .card > .btn { margin-top: 1.25rem; }
.contact-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.35rem; color: var(--navy); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 0.75rem 1rem; margin-bottom: 1rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }

/* Gateway logos */
.gateway-strip {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  padding: 2rem; background: var(--surface); border-radius: var(--radius-lg);
}
.gateway-pill {
  padding: 0.65rem 1.25rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; color: var(--navy);
}

/* Case study */
.case-card { overflow: hidden; padding: 0; }
.case-card img { width: 100%; height: 200px; object-fit: cover; }
.case-card__body { padding: 1.5rem; }

/* CTA band */
.cta-band {
  padding: 3.5rem 2rem; text-align: center;
  background: var(--gradient); border-radius: var(--radius-lg); color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 1.5rem; }
.cta-band .btn--outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.cta-band .btn--outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white); }

/* Footer */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem; margin-top: 4rem;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: var(--teal-light); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr repeat(3, 1fr); margin-bottom: 2.5rem; }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid li a { font-size: 0.9rem; }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.875rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0; text-align: center;
  background: linear-gradient(180deg, #f0fdfa 0%, var(--white) 100%);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Launch options */
.deploy-card { text-align: center; padding: 2.5rem 2rem; }
.deploy-card .card__icon { margin-inline: auto; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid, .feature-row, .grid-3, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { transform: none; }
  .feature-row--reverse .feature-row__media { order: 0; }
}
@media (max-width: 768px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-wrap {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--white); padding: 1.5rem;
    transform: translateX(100%); transition: transform 0.3s;
    overflow-y: auto;
  }
  .nav-wrap.is-open { transform: translateX(0); }
  .nav { flex-direction: column; align-items: stretch; }
  .nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 1rem; display: none;
  }
  .nav__parent.is-open .nav__dropdown { display: block; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
