/* ============================================================
   MONIX PAY — style.css
   ============================================================ */

/* ---- Reset & Base ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1B254A;
  --navy-dark: #131A3A;
  --coral: #EE5746;
  --white: #FFFFFF;
  --off-white: #F0F1F7;
  --card-bg: #FFFFFF;
  --text-dark: #1B254A;
  --text-gray: #6B7280;
  --radius: 14px;
  --max-w: 1180px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hand: 'Kalam', cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

ul {
  list-style: none;
}

.coral {
  color: var(--coral);
}

/* ---- Shared container ---- */
.nav-inner,
.features-inner,
.cta-inner,
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  transition: background .3s, box-shadow .3s;
}

.navbar.is-sticky {
  position: fixed;
  background: var(--navy-dark);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.navbar.is-sticky .nav-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 64px;
  width: auto;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.3px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

.nav-links li a {
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  opacity: .88;
  transition: opacity .2s, color .2s;
}

.nav-links li a:hover {
  opacity: 1;
  color: var(--coral);
}

/* Nav right */
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  /* Increased margin between locale and buttons */
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Increased margin between buttons */
}

.nav-locale {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Increased internal spacing between flags/text */
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding-right: 4px;
  /* Slight right padding to align perfectly with the button edge */
}

.flag {
  height: 15px;
  width: auto;
  border-radius: 2px;
}

.lang-icon {
  height: 15px;
  width: auto;
  opacity: .85;
}

.locale-divider {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, .3);
  margin: 0 3px;
}

.btn-login {
  padding: 7px 20px;
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 50px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  transition: background .2s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, .1);
}

.btn-register {
  padding: 7px 20px;
  background: var(--coral);
  border: 1.5px solid var(--coral);
  border-radius: 50px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  transition: background .2s;
}

.btn-register:hover {
  background: #d43e2e;
  border-color: #d43e2e;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: 8px;
  transition: background .2s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, .1);
}

.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.is-open .ham-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .ham-bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .ham-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE OVERLAY MENU
   ============================================================ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 15, 38, .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}

.mobile-overlay.is-visible {
  opacity: 1;
}

.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  padding: 0 28px 36px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.mobile-overlay.is-visible .mobile-panel {
  transform: translateX(0);
}

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 8px;
}

.mobile-panel-header .nav-logo img {
  height: 36px;
}

.mobile-close {
  background: rgba(255, 255, 255, .08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.mobile-close:hover {
  background: rgba(255, 255, 255, .16);
}

.mobile-panel-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
}

.mobile-panel-links li a {
  display: block;
  padding: 13px 6px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .2s, color .2s, padding-left .2s;
}

.mobile-panel-links li a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--coral);
  padding-left: 14px;
}

.mobile-panel-actions {
  display: flex;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 18px;
}

.mobile-btn-full {
  flex: 1;
  text-align: center;
  padding: 11px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
}

.mobile-panel-locale {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .65);
  font-size: 12.5px;
  font-weight: 500;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 140px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-looper {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  height: 150%;
  width: auto;
  z-index: 1;
  opacity: .45;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 700px;
}

/* "Payments Made Easy" white image */
.hero-title-img {
  width: 100%;
  max-width: 480px;
  margin-bottom: 4px;
}

/* "WITH" small text */
.hero-with {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  opacity: .95;
}

/* "MONIX PAY" large coral text — Chewy font */
.hero-brand {
  font-family: 'Chewy', cursive;
  font-size: clamp(80px, 12vw, 171.733px);
  font-weight: 400;
  color: #EE5746;
  /* line-height: 0.7; */
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  /* margin-bottom: 30px; */
  margin-top: -10px;
  -webkit-text-stroke: 1px #000000;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.hero-subtitle {
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  opacity: .9;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.btn-download {
  display: inline-block;
  padding: 13px 48px;
  border: 2px solid var(--white);
  border-radius: 50px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background .22s, color .22s;
  margin-top: 8px;
}

.btn-download:hover {
  background: var(--white);
  color: var(--navy);
}

/* ============================================================
   FEATURES TIMELINE SECTION
   ============================================================ */
.features-section {
  background: #FAFBFF;
  /* Slight off-white to make the white bg1 logo pop */
  padding: 100px 0 100px;
  overflow: hidden;
  position: relative;
}

.features-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* bg1 watermark centered behind the timeline */
.timeline-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(10%, -50%);
  width: 55%;
  max-width: 900px;
  object-fit: contain;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.timeline-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.timeline-row:not(:first-child) {
  margin-top: -60px;
  /* Overlaps slightly with previous row for scattered look */
}

/* Ensure the second row (first left card) doesn't overlap the slogan image */
/* .timeline-row:nth-child(1) {
  margin-top: 40px;
} */

/* .timeline-row:nth-child(2) {
  margin-top: 40px;
}


.timeline-row:nth-child(4) {
  margin-top: 20px;
} */

.timeline-item {
  width: 48%;
  /* Leaves gap in the middle */
  display: flex;
}

.timeline-item--left {
  justify-content: flex-end;
}

.timeline-item--right {
  justify-content: flex-start;
  padding-top: 60px;
  /* offset to create natural staggered overlap */
}

/* Tweak specifically for the very first row (Slogan Left / Card 1 Right) */
.timeline-row:first-child .timeline-item--right {
  padding-top: 0;
}

.timeline-row:first-child .timeline-item--left {
  align-items: flex-start;
  justify-content: flex-start;
}

.slogan-img {
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
}

/* Individual card — horizontal layout: icon LEFT, text RIGHT */
.feature-card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, .06);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .25s, box-shadow .25s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .1);
}

/* Icon circle */
.card-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(238, 87, 70, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Text block */
.card-body {
  flex: 1;
  min-width: 0;
}

.card-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-body h3 strong {
  font-weight: 800;
}

.card-body p {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ============================================================
   CTA / APP DOWNLOAD
   ============================================================ */
.cta-section {
  background: var(--off-white);
  overflow: hidden;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  min-height: 420px;
}

.cta-text {
  flex: 0 0 auto;
  width: 400px;
  padding: 72px 0;
}

/* "Start spending today" heading from Figma */
.cta-heading {
  font-family: 'Chewy', cursive;
  font-size: 64px;
  font-weight: 400;
  color: #202253;
  line-height: 50px;
  text-transform: capitalize;
  margin-bottom: 24px;
}

.cta-sub {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  line-height: 1.4;
}

.app-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-link {
  display: block;
}

.badge-img {
  height: 50px;
  width: auto;
}

.cta-phones {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.cta-phones img {
  width: 580px;
  max-width: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: var(--white);
}

.footer-inner {
  padding-top: 52px;
  padding-bottom: 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo img {
  height: 86px;
  width: auto;
}

.footer-logo-text {
  font-size: 21px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  opacity: .82;
  transition: color .2s, opacity .2s;
}

.footer-links li a:hover {
  color: var(--coral);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.footer-legal .sep {
  opacity: .35;
}

.footer-legal a {
  color: rgba(255, 255, 255, .5);
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  opacity: .7;
  transition: opacity .2s;
}

.footer-socials a:hover {
  opacity: 1;
}

.footer-locale {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {

  .nav-links,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Features stack */
  .features-inner {
    flex-direction: column;
    gap: 36px;
  }

  .features-quote {
    width: 100%;
    padding-top: 0;
    text-align: center;
  }

  .slogan-img {
    max-width: 340px;
    margin: 0 auto;
  }

  .timeline-wrap {
    gap: 32px;
  }

  .timeline-row {
    flex-direction: column;
    margin-top: 0 !important;
    gap: 32px;
  }

  .timeline-item {
    width: 100%;
    justify-content: center !important;
    padding-top: 0 !important;
  }

  /* CTA */
  .cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: unset;
    padding-top: 56px;
  }

  .cta-text {
    width: 100%;
    padding: 0 0 36px;
  }

  .app-badges {
    justify-content: center;
  }

  .cta-phones {
    justify-content: center;
    width: 100%;
  }

  .cta-phones img {
    width: 100%;
    max-width: 480px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {

  .nav-inner,
  .features-inner,
  .cta-inner,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hero */
  .hero {
    padding: 110px 20px 56px;
    min-height: 420px;
  }

  .hero-looper {
    left: -80px;
    opacity: .3;
    height: 100%;
  }

  .hero-title-img {
    max-width: 90%;
  }

  .hero-brand {
    font-size: clamp(60px, 11vw, 100px);
  }

  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .btn-download {
    padding: 11px 32px;
    font-size: 12px;
  }

  /* Features */
  .features-section {
    padding: 56px 0;
  }

  /* Cards layout is handled by tablet breakpoint, just adjust spacing if needed */
  .timeline-wrap {
    padding: 24px 0;
  }

  /* CTA */
  .cta-heading {
    font-size: 38px;
  }

  .cta-sub {
    font-size: 14px;
  }

  .badge-img {
    height: 42px;
  }

  .cta-phones img {
    max-width: 300px;
  }

  /* Footer */
  .footer-links {
    gap: 10px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
}