@import url("https://fonts.googleapis.com/css2?family=Momo+Trust+Display&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Stack+Sans+Text:wght@200..700&display=swap");

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

body {
  font-family: "Nunito Sans", sans-serif;
  line-height: 1.6;
  color: #333;
}

h1,
h2,
h3,
h4 {
  font-family: "Momo Trust Display", sans-serif;
}

/* Header/Navigation */
header {
  background: white;
  padding: 12px 0; /* reduced navbar height */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #0631a2;
}

.logo img {
  height: 50px;
  margin-right: 12px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

/* hamburger button (hidden on desktop) */
.hamburger {
  display: none; /* hidden on desktop, shown in media query */
  background: transparent;
  border: none;
  width: 44px;
  height: 38px;
  flex-direction: column; /* stack bars vertically when visible */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  z-index: 1100; /* sit above dropdown */
}
.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

/* nav links for mobile: hidden by default and shown when nav has .open */
.nav-links {
  display: flex;
  gap: 30px;
}

@media (max-width: 860px) {
  .hamburger {
    display: inline-flex;
  }

  /* hide desktop nav links, show dropdown when open */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 200px;
  }

  nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    display: block;
    margin: 6px 0;
  }

  .nav-links li a, .nav-links li button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
  }

  /* slightly reduce spacing on small screens */
  nav ul { gap: 14px; }
}

/* when nav is open animate hamburger to X (optional styling) */
nav.nav-open .hamburger .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
nav.nav-open .hamburger .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
nav.nav-open .hamburger .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #0631a2;
}

.btn-primary {
  background: #dc143c;
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #ff1744;
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  border: 2px solid white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: white;
  color: #0631a2;
}

/* Hero Section */
.hero {
  /* using new white-pattern background for testing */
  background: url("../../assets/images/bank4.jpg") center/cover no-repeat;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

/* overlay to darken the white pattern so white text is readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* brand blue with reduced opacity so the white pattern shows through */
  background: rgba(0, 0, 0, 0.884);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bolder;
}

.hero-text h1 .highlight {
  color: #dc143c;
}

.hero-text p {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 30px;
}

.platform-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  max-width: 95%;
  height: auto;
  border-radius: 20px;
}

/* Markets Section */
.markets {
  padding: 40px 20px;
  background: white;
}

.markets-content {
  max-width: 1200px;
  margin: 0 auto;
}

.markets h2 {
  color: #0631a2;
  font-size: 22px;
  font-weight: 700; /* make heading bold */
  margin-bottom: 20px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #f0ebeb;
  border-radius: 10px;
}

.market-item img {
  width: 24px;
  height: 24px;
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(330deg)
    brightness(104%) contrast(97%);
}

.market-item span {
  font-weight: 700; /* make service labels bold */
  font-size: 16px;
  color: #1a1a1a;
}

/* Full Stack Bank Section */
.full-stack-bank {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 60%);
  padding: 80px 60px; /* increased left/right margin per request */
}

.full-stack-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.full-stack-image {
  display: flex;
  justify-content: center;
  position: relative; /* needed so overlay can be absolutely positioned */
  overflow: visible;
}

.full-stack-image img {
  width: 70%; /* reduce image size by ~30% */
  height: auto;
  border-radius: 18px;
}

/* overlay image that sits over the main image at bottom-right */
.full-stack-image .overlay-img {
  position: absolute;
  right: 5%;
  bottom: -4%;
  width: 48%;                /* increased size */
  max-width: 380px;          /* allow larger overlay on wide screens */
  height: auto;
  border-radius: 14px;
  border: 3px solid #fff;    /* reduced white frame thickness */
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  z-index: 3;
}

@media (max-width: 968px) {
  .full-stack-image .overlay-img {
    right: 4%;
    bottom: -6%;
    width: 60%;
    max-width: 320px;
    border-width: 2px;
  }
}

.full-stack-text h2 {
  font-size: 36px;
  color: #0631a2;
  margin-bottom: 18px;
  line-height: 1.15;
}

.full-stack-text p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

/* feature cards column */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 10px;
  align-items: flex-start; /* left-align the stacked cards */
}

.feature-card {
  position: relative;
  overflow: visible;
  padding: 20px 22px;
  border-radius: 18px;
  color: #fff;
  /* brand red gradient using site color #DC143C */
  background: linear-gradient(180deg, #ff4a63 0%, #dc143c 100%);
  transition: transform 0.25s ease;
  z-index: 2; /* keep card above its pseudo-elements */
  width: 100%;
  max-width: 420px; /* reduced width */
  margin: 0; /* left-aligned within the column */
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* back-card: a slightly offset dark card behind the main card to mimic the layered look */
.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  transform: translateY(8px);
  z-index: 1; /* behind main card */
}

/* subtle curved faded overlay at the bottom of each card (underneath both) */
.feature-card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -14px;
  height: 36px;
  background: radial-gradient(
    closest-side at 50% 0%,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 18px;
  filter: blur(10px);
  z-index: 0; /* underneath the back-card */
  transform: translateY(6px);
}

/* make the button below the cards align nicely */
.full-stack-text .btn-primary {
  margin-top: 18px;
}

/* Banking Smartphone Section */
.smartphone-section {
  padding: 80px 20px;
  background: white;
}

.smartphone-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.smartphone-text h2 {
  font-size: 42px;
  color: #0631a2;
  margin-bottom: 30px;
}

.smartphone-features {
  list-style: none;
}

.smartphone-features li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  font-size: 16px;
  color: #555;
}

.smartphone-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #dc143c;
  font-weight: bold;
  font-size: 20px;
}

.smartphone-images {
  display: flex;
  gap: 20px;
}

.smartphone-images img {
  width: 48%;
  height: 360px; /* fixed box so object-fit works and images crop consistently */
  object-fit: cover;
  border-radius: 15px;
}

/* Infrastructure Section */
.infrastructure {
  background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
  padding: 80px 20px;
}

.infrastructure-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.infrastructure-text h2 {
  font-size: 42px;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.infrastructure-text h2 .highlight {
  color: #dc143c;
}

.infrastructure-text p {
  color: #555;
  margin-bottom: 20px;
  font-size: 16px;
}

.infrastructure-features {
  list-style: none;
  margin-top: 30px;
}

.infrastructure-features li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #555;
}

.infrastructure-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #dc143c;
  font-weight: bold;
  font-size: 18px;
}

  .team-avatars {
    display: flex;
    margin-top: 30px;
    /* avatars will overlap via negative margins */
  }

  .team-avatars .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    display: block;
    position: relative;
  }

  /* each avatar after the first overlaps the previous one */
  .team-avatars .avatar + .avatar {
    margin-left: -12px;
  }

  /* reduce overlap on very small screens */
  @media (max-width: 480px) {
    .team-avatars .avatar {
      width: 36px;
      height: 36px;
    }
    .team-avatars .avatar + .avatar {
      margin-left: -8px;
    }
  }

.infrastructure-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Security Section */
.security {
  /* increase horizontal padding to give more breathing room */
  padding: 100px 60px;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.security-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.security h2 {
  font-size: 40px;
  color: #0631a2;
  margin-bottom: 36px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two cards per row */
  gap: 28px;
  margin-top: 30px;
  align-items: start;
}

.security-item {
  /* solid light red/pink background to match the red accent */
  background: #fff0f2;
  padding: 22px 20px;
  border-radius: 18px;
  transition: transform 0.12s ease;
  display: flex;
  flex-direction: column; /* stack icon, title, description vertically */
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: visible;
}

.security-item:hover {
  transform: translateY(-4px);
}

/* remove the previous top accent gradient */
.security-item::before {
  display: none;
}

.security-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(220,20,60,0.06); /* faint red block */
  margin: 0;
}

.security-icon img.security-svg {
  width: 30px;
  height: 30px;
  display: block;
  /* tint the svg to the red accent using filter (approximate) */
  filter: invert(28%) sepia(83%) saturate(4500%) hue-rotate(330deg) brightness(95%) contrast(90%);
}

.security-item h3 {
  color: #dc143c; /* red title accent */
  font-size: 18px;
  margin: 0;
}

.security-item p {
  color: #555; /* neutral text for readability */
  font-size: 14px;
  margin: 0;
  opacity: 0.95;
}

/* ensure text block display */
.security-item .text {
  display: block;
}

/* Impact Section */
.impact {
  background: linear-gradient(135deg, #e6f0ff 0%, #f5f9ff 100%);
  padding: 80px 80px; /* increased left/right padding to compress content inward */
}

.impact-content {
  max-width: 1000px; /* slightly reduced to keep content tighter */
  margin: 0 auto;
}

.impact h2 {
  font-size: 42px;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 50px;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  /* force a fixed row height so each grid cell has same size */
  grid-auto-rows: 360px;
}

.impact-card,
.impact-image {
  height: 100%;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-card-inner {
  padding: 28px;
  text-align: left;
}

.impact-card h3 {
  font-size: 40px;
  color: #dc143c;
  margin-bottom: 8px;
}

.impact-card h4 {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.impact-card p {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* On smaller screens stack into a single column and let height be auto */
@media (max-width: 968px) {
  .impact-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .impact-card,
  .impact-image {
    height: auto;
  }
}

.impact-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.impact-bottom img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 20px;
  background: white;
}

.testimonials-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.testimonials h2 {
  font-size: 32px;
  color: #0631a2;
  margin-bottom: 20px;
}

.testimonials .subtitle {
  color: #555;
  font-size: 16px;
  margin-bottom: 50px;
}

.stars {
  color: #ffb800;
  font-size: 32px;
  margin-bottom: 10px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial-author h4 {
  color: #1a1a1a;
  font-size: 18px;
  margin-bottom: 5px;
}

.testimonial-author p {
  color: #888;
  font-size: 14px;
}

.testimonial-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

/* Compact horizontal testimonial slider */
.testimonial-slider {
  margin-top: 40px;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  /* make the track wide enough for the items; duplication in HTML allows seamless scroll */
  animation: scroll-left 28s linear infinite;
}

.testimonial-slider .testimonial-card {
  min-width: 300px; /* compact card width */
  max-width: 300px;
  flex: 0 0 300px;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  background: #fff;
}

.testimonial-header img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.testimonial-author h4 {
  font-size: 15px;
  margin: 0;
}
.testimonial-author .muted {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.testimonial-slider:hover .slider-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* responsive: allow touch scrolling on small screens and stop animation */
@media (max-width: 768px) {
  .slider-track {
    animation: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .testimonial-slider .testimonial-card {
    min-width: 260px;
    flex: 0 0 260px;
  }
}

.app-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.app-button {
  background: #1a1a1a;
  color: white;
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: background 0.3s;
}

.app-button:hover {
  background: #333;
}

.app-button i {
  font-size: 24px;
}

/* Download App Section */
.download-app {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0631a2 0%, #0847d4 100%);
}

.download-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.download-text {
  color: white;
}

.download-text h2 {
  font-size: 42px;
  margin-bottom: 30px;
  line-height: 1.2;
}

.download-text p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.download-text ul {
  list-style: none;
  margin-bottom: 40px;
}

.download-text ul li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  font-size: 16px;
}

.download-text ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #dc143c;
  font-weight: bold;
  font-size: 20px;
}

.download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.download-btn {
  background: white;
  color: #0631a2;
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: transform 0.3s;
}

.download-btn:hover {
  transform: translateY(-3px);
}

.download-btn i {
  font-size: 24px;
}

.app-mockup {
  text-align: center;
}

.app-mockup img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
}

/* Investors Section */
.investors {
  padding: 60px 20px;
  background: white;
}

.investors-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.investors h2 {
  font-size: 28px;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.investor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

.investor-logos img {
  height: 50px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.investor-logos img:hover {
  opacity: 1;
}

/* CTA Section */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 38px;
  color: white;
  margin-bottom: 30px;
}

.cta-section p {
  color: white;
  font-size: 18px;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  background: white;
  color: #dc143c;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
}

/* icon inside CTA buttons */
.cta-button .cta-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

/* tint CTA SVG icons to brand red (#dc143c) using an approximate filter */
.cta-button .cta-icon {
  filter: invert(28%) sepia(83%) saturate(4500%) hue-rotate(330deg) brightness(95%) contrast(90%);
}

/* ensure text and icon align nicely */
.cta-button span {
  vertical-align: middle;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #fff;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
  margin-right: 12px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: white;
  font-size: 20px;
  width: 35px;
  height: 35px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-icons a:hover {
  background: #0631a2;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
  /* stack grid columns */
  .hero-content,
  .full-stack-content,
  .smartphone-content,
  .infrastructure-content,
  .download-content {
    grid-template-columns: 1fr;
  }

  /* reduce large paddings on medium/small screens */
  header {
    padding: 8px 0;
  }

  .hero {
    padding: 40px 12px;
  }

  .full-stack-bank {
    padding: 40px 20px;
  }

  .smartphone-section {
    padding: 40px 12px;
  }

  .infrastructure {
    padding: 40px 12px;
  }

  .security {
    padding: 40px 20px;
  }

  .impact {
    padding: 40px 20px;
  }

  .download-app {
    padding: 40px 12px;
  }

  .cta-section {
    padding: 40px 12px;
  }

  .testimonials {
    padding: 40px 12px;
  }

  .investors {
    padding: 30px 12px;
  }

  footer {
    padding: 40px 12px 20px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* slightly reduce the markets heading and service label sizes on smaller screens */
  .markets h2 {
    font-size: 20px;
  }

  .market-item span {
    font-size: 14px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text h1 {
    font-size: 34px;
  }

  nav ul {
    display: none;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid,
  .impact-bottom {
    grid-template-columns: 1fr;
  }

  /* full-stack responsive tweaks */
  .full-stack-text h2 {
    font-size: 28px;
  }

  .feature-card {
    padding: 14px 16px;
    border-radius: 14px;
    /* center cards within the single-column layout */
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
  }

  .feature-card::after {
    bottom: -8px;
    height: 22px;
    transform: translateY(4px);
  }

  /* center the full-stack text and the stacked feature cards on mobile */
  .full-stack-text {
    text-align: center;
    display: block;
  }

  .features-list {
    align-items: center; /* center the stacked cards */
  }

  /* tighten spacing for paragraph blocks and avatars */
  .hero-text p,
  .full-stack-text p,
  .infrastructure-text p,
  .smartphone-text p,
  .impact-card p,
  .security-item p {
    margin-bottom: 10px;
  }

  .team-avatars {
    margin-top: 18px;
  }

  .team-avatars .avatar {
    width: 36px;
    height: 36px;
  }

  /* slightly smaller testimonial cards on narrower screens */
  .testimonial-slider .testimonial-card {
    min-width: 260px;
    max-width: 260px;
    padding: 14px;
  }

  /* scale down buttons */
  .btn-primary {
    padding: 10px 18px;
  }
  .btn-secondary {
    padding: 10px 18px;
  }

}

/* Very small screens (phones) */
@media (max-width: 480px) {
  .hero {
    padding: 28px 12px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .platform-tag {
    padding: 6px 12px;
    font-size: 13px;
  }

  /* make mobile nav dropdown span the width a bit better */
  nav.nav-open .nav-links {
    right: 10px;
    left: 10px;
    min-width: auto;
  }

  .market-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* very small screens: reduce fonts for services section */
  .markets h2 {
    font-size: 18px;
  }

  .market-item span {
    font-size: 13px;
  }

  .smartphone-images img {
    height: 220px;
  }

  .impact-grid {
    grid-auto-rows: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .download-text h2 {
    font-size: 28px;
  }
}

/* Hide the second impact image on small screens to avoid duplicate/side-by-side images */
@media (max-width: 968px) {
  /* the impact-grid children order is: card (1), image (2), image (3), card (4)
     hide the 3rd div (second image) on mobile */
  .impact-grid > div:nth-of-type(3) {
    display: none;
  }
}
