html,
body {
  overflow-x: hidden;
}

.hero-device img {
  width: 100%;
  max-width: 590px;
  max-height: 660px;
  object-fit: contain;
}

.appwork-phones img,
.appwork-phones img:first-child,
.appwork-phones img:last-child {
  position: absolute;
  left: 3%;
  right: auto;
  top: 0;
  width: 78%;
  max-height: 630px;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .appwork-phones img,
  .appwork-phones img:first-child,
  .appwork-phones img:last-child {
    width: 92%;
    left: 4%;
    top: 0;
  }
}

.screenshots-section {
  scroll-margin-top: 95px;
  position: relative;
  min-height: 575px;
  padding-top: 145px;
  background-size: cover;
  background-position: center;
}

.screenshots-section .eyebrow {
  display: block;
  position: absolute;
  top: 128px;
  left: max(30px, calc((100vw - 1140px) / 2));
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  text-transform: none;
  z-index: 2;
}

.screenshots-section h2 {
  margin-top: 0;
}

.screenshots-section .title-line {
  width: 210px;
  height: 4px;
  margin-top: 28px;
  background: #ed7203;
}

.shots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1040px;
  margin: 40px auto 0;
}

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.side-shot img {
  width: 138px;
  height: 300px;
  object-fit: fill;
  transition: opacity .22s ease, transform .22s ease;
}

.phone-shell {
  padding: 11px 9px;
  border: 4px solid #2d2d2d;
  border-radius: 31px;
  background: #050505;
  box-shadow: 0 3px 0 #777, 0 12px 25px rgba(0,0,0,.14);
}

.phone-shell img {
  display: block;
  width: 138px;
  height: 300px;
  border-radius: 19px;
  transition: opacity .22s ease, transform .22s ease;
}

.shots-grid img.changing {
  opacity: 0;
  transform: translateY(7px);
}

@media (max-width: 767.98px) {
  .screenshots-section {
    min-height: 550px;
    padding-top: 120px;
  }

  .screenshots-section .eyebrow {
    top: 62px;
    left: 15px;
    font-size: 25px;
  }

  .shots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 38px;
  }

  .side-shot img {
    width: 90px;
    height: 196px;
  }

  .phone-shell {
    padding: 7px 6px;
    border-width: 3px;
    border-radius: 20px;
  }

  .phone-shell img {
    width: 96px;
    height: 210px;
    border-radius: 13px;
  }

  .screenshots-section .title-line {
    width: 110px;
  }
}

.modern-footer .col-lg-5 > .socials::before {
  content: 'The smart POS platform built to simplify operations, connect businesses with customers, and help modern teams grow.';
  display: block;
  max-width: 460px;
  margin: 0 0 28px;
  color: #b8d8d6;
  font-size: 16px;
  line-height: 1.8;
}

/* Refined responsive navigation */
.navbar-toggler {
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(7, 126, 121, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  place-items: center;
  box-shadow: 0 8px 24px rgba(5, 91, 87, .1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(9, 149, 143, .14);
}

.menu-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.menu-icon span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 3px;
  background: #076f6c;
  transition: top .25s ease, transform .25s ease, opacity .18s ease;
}

.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 7px; }
.menu-icon span:nth-child(3) { top: 14px; }
.navbar-toggler.is-open .menu-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.navbar-toggler.is-open .menu-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggler.is-open .menu-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

@media (max-width: 991.98px) {
  .site-header { backdrop-filter: blur(14px); }
  .site-header .navbar { min-height: 78px; padding-inline: 18px; }
  .site-header .navbar-brand img { width: 62px; height: 58px; }
  .navbar-collapse {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    padding: 10px;
    border: 1px solid rgba(7, 126, 121, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 55px rgba(5, 62, 60, .18);
  }
  .navbar-nav { gap: 2px; }
  .site-header .nav-link {
    padding: 13px 15px;
    border-radius: 12px;
    color: #183837 !important;
    font-size: 14px;
    letter-spacing: .25px;
  }
  .site-header .nav-link:hover,
  .site-header .nav-link:focus { background: #edf9f8; color: #087f7a !important; }
  .site-header .nav-link::after { display: none; }
}

@media (max-width: 767.98px) {
  body { color: #17302f; line-height: 1.65; }
  h2 { font-size: clamp(28px, 8vw, 34px); letter-spacing: -.7px; }
  .container { padding-right: 20px; padding-left: 20px; }
  .section-pad { padding: 72px 0; }
  .title-line { margin: 18px 0 26px; }

  .hero-section {
    padding: 122px 0 64px;
    background-position: 42% center;
  }
  .hero-section .row { gap: 42px; }
  .hero-copy { text-align: center; }
  .hero-kicker {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 7px 13px;
    border: 1px solid rgba(8, 127, 122, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: #087f7a;
    font-size: 13px;
    letter-spacing: .3px;
  }
  .hero-copy h1 { margin: 6px 0 16px; font-size: clamp(52px, 17vw, 68px); letter-spacing: -2px; }
  .hero-copy > p:not(.hero-kicker) { max-width: 440px; margin-inline: auto; font-size: 15px; }
  .hero-copy .btn-orange { width: 100%; max-width: 250px; margin-top: 8px; border-radius: 12px; }
  .hero-copy .store-badges { justify-content: center; margin-top: 25px; }
  .store-badges img { width: 137px; height: 43px; }
  .hero-device { margin-top: 0; }
  .hero-device img { width: min(100%, 430px); }

  .about-section .row,
  .features-section .row { --bs-gutter-y: 2.25rem; }
  .device-dashboard { padding: 10px; }
  .check-list { margin: 24px 0 30px; }
  .check-list li { margin: 16px 0; padding-left: 34px; }
  .check-list li::before { top: 2px; }
  .about-section .btn-orange { width: 100%; border-radius: 12px; }

  .features-section { background: linear-gradient(180deg, #f7fbfb, #fff); }
  .features-section .row.g-4 { --bs-gutter-y: 1rem; }
  .feature-card { padding: 22px; border-radius: 16px; box-shadow: 0 12px 30px rgba(8, 77, 74, .08); }
  .feature-card img { width: 38px; }
  .feature-card h3 { margin-bottom: 8px; }
  .feature-phones { max-height: 470px; }

  .appwork-section .row { --bs-gutter-y: 2rem; }
  .appwork-phones { height: 410px; margin-top: 10px; }
  .appwork-phones img,
  .appwork-phones img:first-child,
  .appwork-phones img:last-child { width: 86%; left: 7%; }
  .work-step { align-items: flex-start; margin: 18px 0; padding: 16px 12px; background: rgba(255,255,255,.07); }
  .work-step img { width: 44px; height: 44px; }
  .work-step h3 { font-size: 18px; }

  .availability-section .store-badges { flex-wrap: wrap; }
  .availability-section .store-badges img { width: calc(50% - 7px); height: auto; }
  .stats { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
  .stats > div > div { height: 138px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0, 45, 43, .12); }
  .stats span { text-align: center; }

  .platform-section .row { --bs-gutter-y: 1rem; }
  .platform-section .text-center { margin-bottom: 2rem !important; }
  .platform-item { padding: 22px; border: 1px solid #e6f1f0; background: #fff; box-shadow: 0 12px 32px rgba(6, 92, 88, .07); }
  .platform-item img { width: 56px; height: 54px; margin-bottom: 16px; }
  .platform-item h3 { font-size: 21px; }

  .modern-footer { padding-top: 58px; }
  .modern-footer .row { --bs-gutter-y: 2.5rem; }
  .modern-footer .col-6 { width: 100%; }
  .modern-footer h3 { margin-bottom: 15px; }
  .footer-bottom { gap: 14px; }
}
