@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   JointPay — core.css
   Loaded on EVERY page. Contains:
     1. Design tokens
     2. Reset / base elements
     3. Layout primitives   (.container)
     4. Surfaces & decor    (.surface-dark, .orb)
     5. Typography          (.eyebrow, .section-title, .section-desc)
     6. Components          (.card, .icon-box, .btn, .shimmer)
     7. Page hero           (.page-hero)
     8. CTA band            (.cta-band)
     9. Navbar
    10. Footer
   Page-specific rules live in home/about/services/partners/contact.css
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  --color-orange: #f97316;
  --color-blue: #0f2d6b;
  --color-white: #ffffff;
  --color-green: #22c55e;
  --color-green-light: rgba(34, 197, 94, 0.08);
  --color-orange-light: rgba(249, 115, 22, 0.08);
  --color-blue-light: rgba(15, 45, 107, 0.015);
  --color-blue-border: rgba(15, 45, 107, 0.05);
  --background: var(--color-white);
  --foreground: var(--color-blue);
  --color-primary: var(--color-orange);
  --color-primary-light: rgba(249, 115, 22, 0.15);
  --color-primary-border: rgba(249, 115, 22, 0.3);
  --color-text-primary: var(--color-blue);
  --color-text-muted: #6b7280;

  /* Hero / dark surface colors */
  --hero-bg-start: #050e21;
  --hero-bg-middle: #0f2d6b;
  --hero-bg-end: #541e02;
  --color-orange-shadow: rgba(249, 115, 22, 0.2);
  --color-white-transparent: rgba(255, 255, 255, 0.1);
  --color-white-border: rgba(255, 255, 255, 0.15);

  /* Shared surface gradient (dark brand panel) */
  --surface-dark-gradient: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-middle) 50%, var(--hero-bg-end) 100%);
}


/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  max-width: 100vw;
  overflow-x: clip;
}

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

button {
  background: none;
  border: none;
  outline: none;
  font: inherit;
  cursor: pointer;
}

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


/* ==========================================================================
   3. LAYOUT PRIMITIVES
   .container            max-width 1152px, centred
   .container--xl        1440px
   .container--md        1024px
   .container--sm         960px
   .container--xs         896px
   .container--pad       adds 24px side padding
   .container--rel       lifts above absolute decor (position/z-index)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}

.container--xl { max-width: 1440px; }
.container--md { max-width: 1024px; }
.container--sm { max-width: 960px; }

.container--pad {
  padding-left: 24px;
  padding-right: 24px;
}

.container--rel {
  position: relative;
  z-index: 10;
}


/* ==========================================================================
   4. SURFACES & DECOR
   ========================================================================== */

/* Dark brand gradient panel — hero, canvas, trusted, vision, who, info, cta, footer */
.surface-dark {
  background: var(--surface-dark-gradient);
}

/* Decorative blurred circle. Page CSS supplies position / size / colour. */
.orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}


/* ==========================================================================
   5. TYPOGRAPHY
   ========================================================================== */

/* Small uppercase orange label above a heading */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-orange);
}

/* 11px on mobile, 12px from tablet up */
.eyebrow--sm { font-size: 11px; }
@media (min-width: 768px) {
  .eyebrow--sm { font-size: 12px; }
}

.eyebrow--mb { margin-bottom: 12px; }
.eyebrow--mb-lg { margin-bottom: 16px; }
@media (min-width: 768px) {
  .eyebrow--mb { margin-bottom: 16px; }
  .eyebrow--mb-lg { margin-bottom: 24px; }
}


/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* White rounded panel with hairline border */
.card {
  border-radius: 24px;
  border: 1px solid var(--color-blue-border);
  background-color: var(--color-white);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Rounded square holding an icon.
   Cosmetics only — width/height (and radius, where it differs) are set by the
   page, because most icon boxes grow at the 768px breakpoint. */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background-color: var(--color-orange-light);
  color: var(--color-orange);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  border-radius: 12px;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.97); }

/* Inline icons stay glyph-sized rather than filling the button */
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--pill { border-radius: 9999px; }

/* Roomier from tablet up; stays thumb-sized on phones */
@media (min-width: 768px) {
  .btn--lg {
    padding: 14px 32px;
    font-size: 15px;
  }
}

.btn--primary {
  background-color: var(--color-orange);
  box-shadow: 0 8px 25px var(--color-orange-shadow);
}
.btn--primary:hover { transform: scale(1.03); }

/* Sweeping highlight. Put .shimmer-host on the button, .shimmer on a child span. */
.shimmer-host {
  position: relative;
  overflow: hidden;
}
.shimmer {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: transform 1s ease;
  pointer-events: none;
}
.shimmer-host:hover .shimmer { transform: translateX(100%); }


/* ==========================================================================
   7. PAGE HERO — the short intro band on about / services / contact
   ========================================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(to bottom, rgba(15, 45, 107, 0.05), var(--color-white));
  padding: 112px 0 40px;
  border-bottom: 1px solid var(--color-blue-border);
}
@media (min-width: 768px) {
  .page-hero {
    padding: 144px 0 48px;
  }
}

.page-hero-inner {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 896px;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  text-align: center;
  user-select: none;
}

.page-hero-title {
  margin-top: 24px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-blue);
  letter-spacing: -0.025em;
  max-width: 768px;
}
@media (min-width: 768px) {
  .page-hero-title { font-size: 54px; }
}

.page-hero-desc {
  margin-top: 16px;
  max-width: 672px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--color-text-muted);
}
@media (min-width: 768px) {
  .page-hero-desc {
    margin-top: 24px;
    font-size: 18px;
  }
}


/* ==========================================================================
   8. CTA BAND — full-bleed dark call-to-action (contact, partners)
   ========================================================================== */
.cta-band {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 64px 0;
}
@media (min-width: 768px) {
  .cta-band { padding: 96px 0; }
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-middle) 30%);
  user-select: none;
  pointer-events: none;
}

.cta-band-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}

.cta-band-orb--1 {
  top: 25%;
  left: 28%;
  background-color: rgba(249, 115, 22, 0.14);
}

.cta-band-orb--2 {
  bottom: 25%;
  right: 28%;
  background-color: rgba(15, 45, 107, 0.28);
  filter: blur(90px);
}

@media (min-width: 768px) {
  .cta-band-orb {
    width: 280px;
    height: 280px;
    filter: blur(95px);
  }
  .cta-band-orb--2 { filter: blur(110px); }
}

.cta-band-inner {
  position: relative;
  z-index: 10;
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.cta-band-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .cta-band-title { font-size: 42px; }
}

.cta-band-desc {
  margin-top: 16px;
  max-width: 576px;
  font-size: 14px;
  line-height: 1.65;
  color: #d1d5db;
  font-weight: 500;
}
@media (min-width: 768px) {
  .cta-band-desc {
    margin-top: 24px;
    font-size: 15.5px;
  }
}

.cta-band .btn {
  margin-top: 24px;
}
@media (min-width: 768px) {
  .cta-band .btn { margin-top: 32px; }
}

.cta-band-note {
  margin-top: 24px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #9ca3af;
}
@media (min-width: 768px) {
  .cta-band-note {
    margin-top: 32px;
    font-size: 11px;
  }
}


/* ==========================================================================
   9. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.theme-light {
  color: var(--color-blue);
}
.navbar.theme-light .nav-link {
  color: rgba(15, 45, 107, 0.85);
  transition: color 0.3s ease;
}
.navbar.theme-light .nav-link:hover {
  color: var(--color-orange);
}
.navbar.theme-light .btn-login {
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.navbar.theme-light .btn-login:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.navbar.theme-dark {
  color: var(--color-white);
}
.navbar.theme-dark .nav-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}
.navbar.theme-dark .nav-link:hover {
  color: var(--color-white);
}
.navbar.theme-dark .btn-login {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}
.navbar.theme-dark .btn-login:hover {
  background-color: var(--color-white);
  color: var(--color-blue);
}

.navbar.scrolled {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 32px rgba(15, 45, 107, 0.10);
}
.navbar.theme-light.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(15, 45, 107, 0.12);
}
.navbar.theme-dark.scrolled {
  background-color: rgba(3, 9, 30, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.navbar .btn-login {
  border-radius: 9999px;
  border-width: 1px;
  border-style: solid;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.navbar .btn-get-started {
  border-radius: 9999px;
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.navbar .btn-get-started:hover {
  transform: scale(1.04);
}
.navbar .btn-get-started:active {
  transform: scale(0.97);
}

.shimmer-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: transform 0.6s ease;
  transform: translateX(0);
}
.shimmer-button:hover::after {
  transform: translateX(200%);
}

.navbar-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 22px;
  font-weight: 700;
  position: relative;
}
.navbar-logo .pay-text {
  transition: color 0.3s ease;
}
.navbar-logo::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  background-color: var(--color-orange);
  width: 100%;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) {
  .navbar-actions {
    display: flex;
  }
}

.menu-toggle {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: color 0.3s ease;
}
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  background-color: rgba(3, 9, 30, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 80px 40px 40px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  color: var(--color-white);
}
.mobile-menu-link {
  font-size: 28px;
  font-weight: 600;
}
.mobile-menu-footer {
  width: 100%;
}
.mobile-menu-footer .btn-get-started {
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  font-size: 16px;
}

.navbar-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #F97316, #0F2D6B, transparent);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.navbar.scrolled .navbar-divider {
  opacity: 1;
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 40px;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .footer {
    padding: 80px 80px 40px;
  }
}

.footer-ambient-orb {
  left: 50%;
  top: -100px;
  height: 400px;
  width: 800px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(15, 45, 107, 0.4), transparent 65%);
  border-radius: 0;
}

.footer-top-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-orange), transparent);
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-brand-col {
    align-items: flex-start;
    text-align: left;
  }
}

.footer-brand-logo {
  font-size: 22px;
  font-weight: 700;
}

.footer-brand-desc {
  margin-top: 12px;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social-link:hover {
  background-color: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--color-orange);
}

.footer-rbi-badge {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background-color: rgba(34, 197, 94, 0.08);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links-col {
  text-align: center;
}
@media (min-width: 640px) {
  .footer-links-col {
    text-align: left;
  }
}

.footer-links-col h3 {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
}

.footer-link-item {
  margin-bottom: 12px;
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s, transform 0.2s;
}
.footer-link-item:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
}

.footer-divider {
  margin: 28px 0;
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-bottom-link {
  transition: color 0.2s;
}
.footer-bottom-link:hover {
  color: rgba(255, 255, 255, 0.7);
}
