/* ========================================
   POSBuddies — Design System
   Color: #35858E (Original Teal)
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #1d1d1f;
  background: #FFFFFF;
  letter-spacing: 0;
  overflow-x: hidden;
}

/* ========================================
   Section Dividers — Receipt / POS Theme
   ======================================== */

/* Zigzag receipt tear between sections */
.receipt-tear {
  position: relative;
  height: 20px;
  overflow: hidden;
}
.receipt-tear::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  right: -10px;
  height: 20px;
  background: 
    linear-gradient(135deg, transparent 33.33%, #fff 33.33%, #fff 66.66%, transparent 66.66%),
    linear-gradient(225deg, transparent 33.33%, #fff 33.33%, #fff 66.66%, transparent 66.66%);
  background-size: 20px 20px;
}
.receipt-tear-dark::before {
  background: 
    linear-gradient(135deg, transparent 33.33%, #1d1d1f 33.33%, #1d1d1f 66.66%, transparent 66.66%),
    linear-gradient(225deg, transparent 33.33%, #1d1d1f 33.33%, #1d1d1f 66.66%, transparent 66.66%);
  background-size: 20px 20px;
}

/* Wave divider */
.wave-divider {
  position: relative;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Dashed line separator (receipt style) */
.receipt-dash {
  border: none;
  border-top: 2px dashed rgba(53, 133, 142, 0.2);
  margin: 0 auto;
  max-width: 80%;
}

/* ========================================
   Animations
   ======================================== */

/* Ticker */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  animation: ticker 25s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

/* Fade In Up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Float receipts horizontally across hero */
@keyframes floatReceipt {
  0% { transform: translateX(-10vw) rotate(var(--rot, -5deg)); opacity: 0; }
  5% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(110vw) rotate(var(--rot, -5deg)); opacity: 0; }
}
.receipt-float {
  position: absolute;
  will-change: transform;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   CTA & Interactive Elements
   ======================================== */

.cta-glow {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.cta-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  transition: left 0.6s ease;
}
.cta-glow:hover::after {
  left: 60%;
}
.cta-glow:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(53, 133, 142, 0.35);
}

/* Floating card tap animation */
@keyframes cardTap {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
}
.animate-card-tap {
  animation: cardTap 3s ease-in-out infinite;
}

/* Receipt printing animation */
@keyframes receiptPrint {
  0% { height: 0; opacity: 0; }
  20% { opacity: 1; }
  100% { height: 120px; opacity: 1; }
}
.animate-receipt {
  animation: receiptPrint 2s ease-out forwards;
}

/* Contactless pulse rings */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pulse-ring {
  position: absolute;
  border: 2px solid rgba(53, 133, 142, 0.3);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 1.25rem;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8d1d3; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #35858E; }

/* ========================================
   Range Slider
   ======================================== */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #d2d2d7;
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #35858E;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(53, 133, 142, 0.35);
  transition: transform 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ========================================
   Navigation
   ======================================== */

.nav-blur {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 28px rgba(29, 29, 31, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.nav-is-scrolled .nav-blur {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 14px 36px rgba(29, 29, 31, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* ========================================
   Modern Hero
   ======================================== */

.modern-hero {
  position: relative;
  padding: 7.35rem 1.5rem 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 251, 253, 0.98) 48%, #f5f5f7 100%);
  isolation: isolate;
}

.modern-hero,
.modern-hero * {
  letter-spacing: 0;
}

.hero-contours,
.hero-soft-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-contours {
  z-index: -2;
  opacity: 0.72;
  background:
    repeating-radial-gradient(ellipse 84% 52% at 50% 20%, transparent 0 23px, rgba(53, 133, 142, 0.08) 24px 25px, transparent 26px 54px),
    repeating-radial-gradient(ellipse 62% 46% at 18% 86%, transparent 0 29px, rgba(0, 113, 227, 0.055) 30px 31px, transparent 32px 62px),
    repeating-radial-gradient(ellipse 72% 48% at 92% 74%, transparent 0 31px, rgba(134, 134, 139, 0.06) 32px 33px, transparent 34px 68px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.52) 58%, transparent 98%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.52) 58%, transparent 98%);
}

.hero-soft-light {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.92), transparent 24rem),
    radial-gradient(circle at 28% 58%, rgba(53, 133, 142, 0.08), transparent 20rem),
    radial-gradient(circle at 80% 48%, rgba(0, 113, 227, 0.055), transparent 21rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.45rem;
  padding: 0.4rem 0.95rem 0.4rem 0.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(29, 29, 31, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d1d1f;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 16px 50px rgba(29, 29, 31, 0.055);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.hero-kicker svg {
  width: 1rem;
  height: 1rem;
  color: #35858E;
}

.hero-kicker-logo {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.hero-headline {
  color: #1d1d1f;
  font-size: 3.55rem;
  line-height: 1.05;
  font-weight: 600;
  max-width: 690px;
  margin: 0 auto;
  text-wrap: balance;
}

.hero-qr-type {
  position: relative;
  min-height: 2.1em;
}

.qr-type-text {
  display: inline-block;
}

.qr-line {
  display: block;
  white-space: nowrap;
}

.qr-word {
  display: inline-block;
  white-space: nowrap;
}

.qr-char {
  position: relative;
  display: inline-block;
  min-width: 0.38em;
  vertical-align: baseline;
  transform: translateY(0.1em);
}

.qr-letter {
  display: inline-block;
  opacity: 0;
  color: #1d1d1f;
  filter: blur(0.22em);
  transform: translateY(0.08em) scale(0.94);
  transition: opacity 0.34s ease, filter 0.44s ease, transform 0.44s ease;
}

.barcode-bars {
  position: absolute;
  inset: 0.1em 0.02em 0.03em;
  display: block;
  background: repeating-linear-gradient(
    90deg,
    #1d1d1f 0 1px,
    transparent 1px 3px,
    #1d1d1f 3px 5px,
    transparent 5px 8px,
    #1d1d1f 8px 9px,
    transparent 9px 12px
  );
  opacity: 0.92;
  transform: scaleX(0.82);
  transform-origin: left center;
  transition: opacity 0.34s ease 0.12s, transform 0.42s ease;
}

.qr-char.is-visible .qr-letter {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.qr-char.is-visible .barcode-bars {
  opacity: 0;
  transform: scaleX(1.18);
}

.qr-scan-cursor {
  position: absolute;
  left: var(--qr-cursor-x, 50%);
  top: var(--qr-cursor-y, 0.15em);
  display: inline-flex;
  align-items: center;
  width: 0.42em;
  height: 0.96em;
  color: #35858E;
  animation: scannerCursorPulse 0.9s ease-in-out infinite;
  pointer-events: none;
}

.qr-scan-cursor::before {
  content: '';
  width: 0.1em;
  height: 100%;
  border-radius: 999px;
  background: #35858E;
  box-shadow: 0 0 0.38em rgba(53, 133, 142, 0.42);
}

.qr-scan-cursor::after {
  content: '';
  position: absolute;
  left: 0.1em;
  width: 0.25em;
  height: 0.82em;
  opacity: 0.55;
  background: repeating-linear-gradient(
    90deg,
    #35858E 0 1px,
    transparent 1px 4px
  );
}

@keyframes scannerCursorPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero-subtitle {
  max-width: 610px;
  margin: 1.15rem auto 0;
  color: #6e6e73;
  font-size: 1.08rem;
  line-height: 1.46;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0 1.65rem;
  border-radius: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.hero-primary {
  background: #35858E;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(53, 133, 142, 0.22);
}

.hero-primary:hover {
  background: #2A6B73;
  box-shadow: 0 20px 46px rgba(53, 133, 142, 0.26);
}

.hero-primary.cta-glow:hover {
  box-shadow: 0 20px 46px rgba(53, 133, 142, 0.26);
}

.hero-secondary {
  color: #1d1d1f;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.hero-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 133, 142, 0.22);
  box-shadow: 0 12px 32px rgba(53, 133, 142, 0.12);
}

.hero-suite-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.98fr) minmax(0, 1.62fr);
  gap: 2rem;
  margin: 3.4rem auto -1.1rem;
  padding: 1rem;
  border: 1px solid rgba(29, 29, 31, 0.07);
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(251, 251, 253, 0.72));
  box-shadow:
    0 38px 90px rgba(29, 29, 31, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.checkout-visual-card {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 0.72rem;
  padding: 1.6rem;
  color: white;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.26), transparent 4.5rem),
    radial-gradient(circle at 74% 26%, rgba(74, 159, 168, 0.48), transparent 7rem),
    linear-gradient(135deg, #11363d 0%, #255f68 46%, #111827 100%);
}

.checkout-card-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, 0.14) 44%, transparent 68%);
  transform: translateX(-64%);
  animation: checkoutSheen 6.5s ease-in-out infinite;
}

.checkout-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(520px) rotateX(58deg) translateY(-5rem);
  transform-origin: top center;
}

.checkout-system-label {
  position: absolute;
  z-index: 3;
  top: 1.2rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.2rem;
  padding: 0 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 780;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.checkout-system-label svg {
  width: 0.95rem;
  height: 0.95rem;
}

.checkout-device {
  position: relative;
  z-index: 1;
  width: min(100%, 16.8rem);
  min-height: 18rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 24px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.device-status,
.device-total,
.device-lines div,
.device-action,
.floating-payment-card,
.floating-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-status {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.device-status span,
.device-total span,
.device-lines span,
.floating-payment-card span,
.floating-receipt span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
}

.device-status strong,
.device-total strong,
.device-lines strong,
.floating-payment-card strong,
.floating-receipt strong {
  color: #ffffff;
  font-weight: 800;
}

.device-total {
  padding: 1.05rem 0;
}

.device-total strong {
  font-size: 2.45rem;
  line-height: 1;
}

.device-lines {
  display: grid;
  gap: 0.55rem;
}

.device-lines div {
  min-height: 2.2rem;
  padding: 0 0.7rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
}

.device-lines .is-zero {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  animation: zeroFeePulse 3.4s ease-in-out infinite;
}

.device-action {
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  margin-top: 0.9rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1f;
  font-size: 0.82rem;
  font-weight: 800;
}

.device-action svg {
  width: 1.05rem;
  height: 1.05rem;
  color: #35858E;
}

.fee-flow {
  position: absolute;
  z-index: 1;
  right: 2.1rem;
  top: 5rem;
  bottom: 5.2rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.fee-flow span {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
  animation: flowDot 3s ease-in-out infinite;
}

.fee-flow span:nth-child(1) {
  top: 0;
}

.fee-flow span:nth-child(2) {
  top: 45%;
  animation-delay: 0.42s;
}

.fee-flow span:nth-child(3) {
  bottom: 0;
  animation-delay: 0.84s;
}

.floating-payment-card,
.floating-receipt {
  position: absolute;
  z-index: 2;
  right: 1.35rem;
  gap: 0.65rem;
  width: 12.7rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.floating-payment-card {
  top: 4.05rem;
  animation: cardTapFloat 4s ease-in-out infinite;
}

.floating-payment-card svg {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  color: #ffffff;
}

.floating-receipt {
  bottom: 1.55rem;
  display: grid;
  gap: 0.45rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.floating-receipt > div:not(.receipt-head) {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.receipt-head {
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.receipt-total {
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.24);
}

@keyframes zeroFeePulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 0 28px rgba(255, 255, 255, 0.12);
  }
}

@keyframes flowDot {
  0%, 100% {
    opacity: 0.34;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(8px);
  }
}

@keyframes cardTapFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes checkoutSheen {
  0%, 100% {
    opacity: 0;
    transform: translateX(-64%);
  }
  18%, 54% {
    opacity: 1;
  }
  72% {
    opacity: 0;
    transform: translateX(64%);
  }
}

.hero-feature-suite {
  padding: 1.25rem 1rem 1.25rem 0;
}

.suite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0 1.2rem;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.suite-header span {
  color: #424245;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.suite-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #2A6B73;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.suite-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding-top: 1.55rem;
}

.suite-app {
  min-height: 7.2rem;
  padding: 0.9rem 0.2rem;
}

.suite-app svg {
  width: 1.55rem;
  height: 1.55rem;
  color: #35858E;
  stroke-width: 1.75;
}

.suite-app h3 {
  margin-top: 0.62rem;
  color: #1d1d1f;
  font-size: 1.18rem;
  line-height: 1.12;
  font-weight: 520;
}

.suite-app p {
  margin-top: 0.42rem;
  color: #6e6e73;
  font-size: 0.82rem;
  line-height: 1.34;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 3.85rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .modern-hero {
    padding: 7rem 2rem 0;
  }

  .hero-headline {
    font-size: 3.9rem;
    max-width: 700px;
  }

  .hero-subtitle {
    max-width: 620px;
    font-size: 1.05rem;
  }

  .hero-actions {
    margin-top: 1.95rem;
  }

  .hero-suite-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 760px;
    margin-top: 3rem;
    padding: 0.85rem;
  }

  .checkout-visual-card {
    min-height: 19rem;
  }

  .hero-feature-suite {
    padding: 0.4rem 0.75rem 0.85rem;
  }

  .checkout-device {
    width: min(64%, 18rem);
  }

  .suite-app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .modern-hero {
    padding-top: 7.8rem;
  }

  .hero-headline {
    font-size: 4.25rem;
  }
}

@media (min-width: 1280px) {
  .hero-headline {
    font-size: 4.55rem;
  }
}

@media (max-width: 767px) {
  .modern-hero {
    min-height: 0;
    padding: 6rem 1rem 0;
  }

  .hero-kicker {
    min-height: 2.2rem;
    margin-bottom: 1.15rem;
    font-size: 0.84rem;
  }

  .hero-headline {
    font-size: 2.35rem;
    line-height: 1.07;
  }

  .hero-subtitle {
    max-width: 35rem;
    font-size: 0.96rem;
    line-height: 1.42;
  }

  .hero-actions {
    margin-top: 1.55rem;
    gap: 0.65rem;
  }

  .hero-primary,
  .hero-secondary {
    min-width: 11.4rem;
    min-height: 3rem;
    padding: 0 1.25rem;
  }

  .hero-suite-panel {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 2.35rem;
    padding: 0.75rem;
    border-radius: 0.45rem;
  }

  .checkout-visual-card {
    min-height: 0;
    padding: 1.65rem 1.2rem;
  }

  .checkout-system-label {
    position: relative;
    top: auto;
    right: auto;
    width: max-content;
    margin-bottom: 0.78rem;
  }

  .checkout-device {
    width: 100%;
    min-height: 16rem;
  }

  .hero-feature-suite {
    padding: 0.35rem 0.4rem 0.55rem;
  }

  .suite-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .suite-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    padding-top: 1.1rem;
  }

  .suite-app {
    min-height: 6rem;
    padding: 0.5rem 0;
  }

  .floating-payment-card,
  .floating-receipt {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 0.72rem;
    animation: none;
  }

  .fee-flow {
    display: none;
  }

}

@media (max-width: 459px) {
  .modern-hero {
    padding-top: 5.45rem;
  }

  .hero-kicker {
    margin-bottom: 0.95rem;
  }

  .hero-primary,
  .hero-secondary {
    width: min(100%, 20rem);
    padding: 0 0.8rem;
  }

  .hero-headline {
    font-size: 1.94rem;
  }

  .hero-subtitle {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.34;
  }

  .hero-actions {
    margin-top: 1.2rem;
  }

  .hero-suite-panel {
    margin-top: 1.55rem;
  }

  .device-total strong {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-lines .is-zero,
  .fee-flow span,
  .floating-payment-card,
  .checkout-card-glow {
    animation: none;
  }
}

/* ========================================
   Trust Strip
   ======================================== */

.trust-strip {
  padding: 4.2rem 1.5rem 4.6rem;
  background: #f5f5f7;
  border-top: 1px solid rgba(29, 29, 31, 0.04);
}

.trust-strip-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.trust-strip p {
  color: #6e6e73;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.trust-strip p::after {
  content: '';
  display: block;
  width: 1.55rem;
  height: 2px;
  margin: 1rem auto 2rem;
  border-radius: 999px;
  background: #35858E;
}

.trust-strip-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4.5rem);
  flex-wrap: wrap;
}

.trust-strip-tags span {
  color: rgba(29, 29, 31, 0.46);
  font-size: clamp(1.15rem, 2.1vw, 1.8rem);
  line-height: 1;
  font-weight: 650;
}

@media (max-width: 767px) {
  .trust-strip {
    padding: 3rem 1rem 3.3rem;
  }

  .trust-strip-tags {
    gap: 1rem 1.5rem;
  }
}

/* ========================================
   Cards & Hardware
   ======================================== */

.hardware-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.hardware-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px -8px rgba(53, 133, 142, 0.2);
}

/* ========================================
   Toast
   ======================================== */

.toast {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================
   Hero POS Terminal Illustration
   ======================================== */

.pos-terminal {
  position: relative;
  width: 280px;
  height: 360px;
  background: linear-gradient(145deg, #2a2a2e, #1d1d1f);
  border-radius: 24px;
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  overflow: hidden;
}

.pos-screen {
  position: absolute;
  top: 20px;
  left: 16px;
  right: 16px;
  height: 200px;
  background: linear-gradient(135deg, #35858E, #4A9FA8);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.pos-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  border-radius: 12px 12px 0 0;
}

.pos-keypad {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pos-key {
  height: 28px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
}

.pos-key.enter {
  grid-column: span 3;
  background: #35858E;
  border: none;
}

/* Receipt coming out of terminal */
.pos-receipt {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  background: white;
  border-radius: 2px;
  padding: 8px 12px;
  font-size: 8px;
  font-family: 'Courier New', monospace;
  color: #666;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pos-receipt::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -2px;
  right: -2px;
  height: 10px;
  background: 
    linear-gradient(135deg, transparent 33.33%, white 33.33%, white 66.66%, transparent 66.66%),
    linear-gradient(225deg, transparent 33.33%, white 33.33%, white 66.66%, transparent 66.66%);
  background-size: 12px 10px;
}

/* ========================================
   Section transition — gradient mesh BGs
   ======================================== */

.gradient-mesh {
  background-image: 
    radial-gradient(at 20% 80%, rgba(53, 133, 142, 0.06) 0, transparent 50%),
    radial-gradient(at 80% 20%, rgba(53, 133, 142, 0.04) 0, transparent 50%),
    radial-gradient(at 50% 50%, rgba(53, 133, 142, 0.02) 0, transparent 70%);
}

/* Parallax support */
.parallax-bg {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ========================================
   Creative Section Backgrounds
   ======================================== */

.section-dots {
  background-image: radial-gradient(circle, rgba(53, 133, 142, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-grid {
  background-image: 
    linear-gradient(rgba(53, 133, 142, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 133, 142, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ========================================
   Stagger children animations
   ======================================== */

.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.40s; }
