/*
Theme Name: NEXPAY ONE
Theme URI: https://nexpay.one
Author: NEXPAY ONE
Description: Modern executive landing page theme for NEXPAY ONE - a sophisticated global payments hub for PayFacs, Master Merchants and PSPs.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nexpay
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* Light surfaces */
  --nx-page: #f4f6fb;
  --nx-white: #ffffff;
  --nx-line: #e3e8f2;

  /* Navy family (anchored to the logo navy #2B3A67) */
  --nx-navy: #2b3a67;
  --nx-navy-deep: #1d2b4e;
  --nx-navy-footer: #182442;

  /* Text on light */
  --nx-ink: #1d2843;
  --nx-gray: #5d6c8a;

  /* Text on navy */
  --nx-text-inv: #eef2fa;
  --nx-muted-inv: #b3bfd9;
  --nx-line-inv: rgba(255, 255, 255, 0.14);

  /* Accents */
  --nx-cyan: #2dd4ee;
  --nx-blue: #3b82f6;
  --nx-blue-ink: #2467d6;
  --nx-gold: #e8b954;
  --nx-gold-ink: #a97e1f;
  --nx-grad: linear-gradient(92deg, #2dd4ee 0%, #3b82f6 100%);

  --nx-radius: 16px;
  --nx-container: 1180px;
  --nx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--nx-font);
  background: var(--nx-page);
  color: var(--nx-ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.nx-container {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* Section headings */
.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-blue-ink);
  margin-bottom: 16px;
}
.nx-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.nx-h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--nx-ink);
}

.nx-lead {
  color: var(--nx-gray);
  font-size: 17px;
  max-width: 640px;
}

.nx-section-head { margin-bottom: 56px; }
.nx-section-head.nx-center { text-align: center; }
.nx-section-head.nx-center .nx-lead { margin: 0 auto; }
.nx-section-head.nx-center .nx-eyebrow::before { display: none; }

/* Dark (navy) section context */
.nx-dark { background: linear-gradient(170deg, var(--nx-navy) 0%, var(--nx-navy-deep) 100%); }
.nx-dark .nx-h2 { color: #ffffff; }
.nx-dark .nx-lead { color: var(--nx-muted-inv); }
.nx-dark .nx-eyebrow { color: var(--nx-cyan); }

/* Buttons */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: none;
}
.nx-btn-primary {
  background: var(--nx-grad);
  color: #071a33;
  box-shadow: 0 8px 24px rgba(45, 165, 238, 0.3);
}
.nx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(45, 165, 238, 0.42); }
.nx-btn-ghost {
  background: transparent;
  color: var(--nx-ink);
  border: 1px solid #ccd5e5;
}
.nx-btn-ghost:hover { border-color: #9fb0cc; background: rgba(29, 40, 67, 0.05); }

/* Ghost buttons on navy backgrounds */
.nx-hero .nx-btn-ghost,
.nx-dark .nx-btn-ghost,
.nx-cta-inner .nx-btn-ghost,
.nx-header .nx-btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.nx-hero .nx-btn-ghost:hover,
.nx-dark .nx-btn-ghost:hover,
.nx-cta-inner .nx-btn-ghost:hover,
.nx-header .nx-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* Trademark superscript */
.nx-tm {
  font-size: 0.72em;
  line-height: 0;
  margin-left: 2px;
  opacity: 0.8;
}
.nx-hero h1 .nx-tm {
  font-size: 0.3em;
  font-weight: 600;
  color: #c6d2ea;
  vertical-align: 1.6em;
}

/* Reveal animation */
.nx-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.nx-reveal.nx-in { opacity: 1; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.nx-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nx-header.nx-scrolled {
  background: rgba(29, 43, 78, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--nx-line-inv);
}
/* While the mobile menu is open, the header must not create a containing
   block (backdrop-filter does), or the fixed nav overlay collapses to it. */
.nx-header.nx-menu-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom-color: transparent;
}
.nx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nx-logo {
  display: flex;
  align-items: center;
}
.nx-logo-img {
  height: 42px;
  width: auto;
}

.nx-nav { display: flex; align-items: center; gap: 36px; }
.nx-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: #c3cfe8;
  transition: color 0.2s ease;
}
.nx-nav a:hover { color: #ffffff; }

.nx-header-cta { display: flex; align-items: center; gap: 16px; }
.nx-header-cta .nx-btn { padding: 11px 22px; font-size: 14px; }

.nx-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.nx-burger span {
  display: block;
  width: 22px; height: 2px;
  background: #ffffff;
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nx-burger.nx-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nx-burger.nx-open span:nth-child(2) { opacity: 0; }
.nx-burger.nx-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.nx-hero {
  padding: 180px 0 100px;
  overflow: hidden;
  background: linear-gradient(160deg, #33447a 0%, var(--nx-navy) 45%, var(--nx-navy-deep) 100%);
}
.nx-hero::before {
  content: "";
  position: absolute;
  top: -300px; right: -200px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(88, 141, 245, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.nx-hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -300px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(45, 212, 238, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.nx-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 500;
  color: #d3ddf2;
  margin-bottom: 28px;
}
.nx-hero-badge .nx-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--nx-cyan);
  box-shadow: 0 0 0 0 rgba(45, 212, 238, 0.5);
  animation: nx-pulse 2.2s infinite;
}
@keyframes nx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 238, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(45, 212, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 238, 0); }
}

.nx-hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: #ffffff;
  padding-right: 0.06em;
}
.nx-hero h1 .nx-grad-text {
  background: linear-gradient(92deg, #5fe3f7 0%, #7db3f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nx-hero p {
  color: #c6d2ea;
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 36px;
}

.nx-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.nx-hero-visual { position: relative; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.nx-stats {
  border-top: 1px solid var(--nx-line);
  border-bottom: 1px solid var(--nx-line);
  background: var(--nx-white);
}
.nx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 0;
}
.nx-stat {
  text-align: center;
  padding: 8px 16px;
}
.nx-stat + .nx-stat { border-left: 1px solid var(--nx-line); }
.nx-stat-value {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(92deg, #17a8c9 0%, #2f6bd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nx-stat-label {
  font-size: 13.5px;
  color: var(--nx-gray);
  margin-top: 4px;
  font-weight: 500;
}

/* ==========================================================================
   Solutions cards
   ========================================================================== */
.nx-section { padding: 110px 0; }

.nx-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nx-card {
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 36px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(23, 43, 99, 0.05);
}
.nx-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 20px 44px rgba(23, 43, 99, 0.12);
}
.nx-card-photo {
  margin: -36px -30px 26px;
  height: 170px;
  overflow: hidden;
  border-radius: var(--nx-radius) var(--nx-radius) 0 0;
}
.nx-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.nx-card:hover .nx-card-photo img { transform: scale(1.05); }
.nx-card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: rgba(36, 103, 214, 0.08);
  border: 1px solid rgba(36, 103, 214, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--nx-blue-ink);
}
.nx-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--nx-ink);
}
.nx-card p { color: var(--nx-gray); font-size: 15px; }
.nx-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-blue-ink);
  transition: gap 0.2s ease;
}
.nx-card-link:hover { gap: 12px; }

/* ==========================================================================
   Why / features
   ========================================================================== */
.nx-alt { background: var(--nx-white); border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); }

.nx-why-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.nx-why-head .nx-section-head { margin-bottom: 0; }
.nx-photo-card {
  border-radius: var(--nx-radius);
  overflow: hidden;
  border: 1px solid var(--nx-line);
  box-shadow: 0 20px 44px rgba(23, 43, 99, 0.16);
}
.nx-photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.nx-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.nx-feature { display: flex; gap: 18px; align-items: flex-start; }
.nx-feature-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.09);
  border: 1px solid rgba(59, 130, 246, 0.24);
  display: grid;
  place-items: center;
  color: #2f6bd8;
}
.nx-feature h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; color: var(--nx-ink); }
.nx-feature p { color: var(--nx-gray); font-size: 14.5px; }

/* ==========================================================================
   How it works
   ========================================================================== */
.nx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: nx-step;
}
.nx-step {
  position: relative;
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 40px 30px 34px;
  box-shadow: 0 6px 18px rgba(23, 43, 99, 0.05);
}
.nx-step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--nx-gold-ink);
  margin-bottom: 18px;
}
.nx-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--nx-ink); }
.nx-step p { color: var(--nx-gray); font-size: 15px; }
.nx-step::after {
  content: "";
  position: absolute;
  top: 50%; right: -24px;
  width: 24px; height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), transparent);
}
.nx-step:last-child::after { display: none; }

/* ==========================================================================
   Global reach (navy section)
   ========================================================================== */
.nx-global-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.nx-checklist { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.nx-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--nx-text-inv);
  font-size: 15.5px;
  font-weight: 500;
}
.nx-checklist li svg { flex: none; margin-top: 3px; color: var(--nx-cyan); }
.nx-checklist li span { color: var(--nx-muted-inv); font-weight: 400; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.nx-cta {
  margin: 0 24px;
}
.nx-cta-inner {
  max-width: var(--nx-container);
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(45, 212, 238, 0.25);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(45, 212, 238, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(88, 141, 245, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, #33447a 0%, var(--nx-navy-deep) 100%);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(23, 43, 99, 0.22);
}
.nx-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: #ffffff;
}
.nx-cta p { color: var(--nx-muted-inv); font-size: 17px; max-width: 560px; margin: 0 auto 36px; }
.nx-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.nx-footer {
  margin-top: 110px;
  background: var(--nx-white);
  border-top: 1px solid var(--nx-line);
  padding: 64px 0 32px;
}
.nx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.nx-footer-brand p {
  color: var(--nx-gray);
  font-size: 14.5px;
  max-width: 300px;
  margin-top: 16px;
}
.nx-footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c8ba6;
  margin-bottom: 18px;
}
.nx-footer-col ul { list-style: none; display: grid; gap: 12px; }
.nx-footer-col a { color: var(--nx-gray); font-size: 14.5px; transition: color 0.2s ease; }
.nx-footer-col a:hover { color: var(--nx-ink); }
.nx-footer-bottom {
  border-top: 1px solid var(--nx-line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--nx-gray);
  font-size: 13.5px;
}
.nx-tagline {
  font-style: italic;
  font-weight: 700;
  color: var(--nx-ink);
}
.nx-footer-nexus {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.nx-nexus-logo {
  height: 40px;
  width: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .nx-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .nx-hero-visual { max-width: 560px; margin: 0 auto; }
  .nx-global-grid { grid-template-columns: 1fr; gap: 48px; }
  .nx-features-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-why-head { grid-template-columns: 1fr; gap: 40px; }
  .nx-photo-card img { height: 260px; }
}

@media (max-width: 860px) {
  .nx-nav {
    position: fixed;
    inset: 0;
    background: rgba(24, 36, 66, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 105;
  }
  .nx-nav.nx-open { opacity: 1; pointer-events: auto; }
  .nx-nav a { font-size: 20px; }
  .nx-burger { display: block; }
  .nx-header-cta .nx-btn-ghost { display: none; }

  .nx-cards-3, .nx-steps { grid-template-columns: 1fr; }
  .nx-step::after { display: none; }
  .nx-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .nx-stat:nth-child(3) { border-left: none; }
  .nx-section { padding: 80px 0; }
  .nx-hero { padding: 140px 0 72px; }
  .nx-footer-grid { grid-template-columns: 1fr 1fr; }
  .nx-footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .nx-features-grid { grid-template-columns: 1fr; }
  .nx-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .nx-cta { margin: 0 16px; }
  .nx-cta-inner { padding: 56px 24px; }
}
