/* ==========================================================================
   Ibrahim Digital — Premium Apple Design System
   Cross-browser Compatible | Performance Optimized | Mobile-first
   ========================================================================== */

/* Google Fonts Preload handled in HTML. CSS import as fallback. */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..800;1,14..32,300..800&family=Noto+Sans+Bengali:wght@400;500;600;700;800&family=Anek+Bangla:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. Apple Design Tokens
   ========================================================================== */
:root {
  /* Apple Signature Colors */
  --apple-black:       #1D1D1F;
  --apple-dark-gray:   #424245;
  --apple-gray:        #86868B;
  --apple-light-gray:  #F5F5F7;
  --apple-border:      #E5E5EA;
  --apple-border-sub:  rgba(0,0,0,0.08);

  /* Accent */
  --apple-accent:       #1D1D1F;
  --apple-accent-hover: #000000;
  --apple-accent-soft:  rgba(0,0,0,0.04);

  /* Surfaces */
  --bg-page:       #FFFFFF;
  --bg-alt:        #F5F5F7;
  --bg-card:       #F5F5F7;
  --bg-card-hover: #FFFFFF;

  /* Text */
  --text-main:  #1D1D1F;
  --text-body:  #515154;
  --text-muted: #86868B;

  /* Shadows */
  --shadow-sm:         0 2px 6px rgba(0,0,0,0.04);
  --shadow-card:       0 2px 10px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.10);
  --shadow-btn:        0 4px 14px rgba(0,0,0,0.16);

  /* Typography */
  --font-main:    "SF Pro Text","SF Pro",-apple-system,BlinkMacSystemFont,"Inter","Helvetica Neue",Helvetica,Arial,sans-serif;
  --font-heading: "SF Pro Display","SF Pro",-apple-system,BlinkMacSystemFont,"Inter","Helvetica Neue",Helvetica,Arial,sans-serif;
  --font-bn:      'Noto Sans Bengali','Anek Bangla','Hind Siliguri',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;

  /* Border Radii */
  --r-xs:   6px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   22px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* Transitions — Apple spring */
  --trans:      280ms cubic-bezier(0.25,1,0.5,1);
  --trans-fast: 180ms cubic-bezier(0.25,1,0.5,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
  /* Hide scrollbar globally across all browsers & devices */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  font-family: var(--font-main);
  font-feature-settings: "cv02","cv03","cv04","cv11","ss01";
  color: var(--text-main);
  background-color: var(--bg-page);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.016em;
  overflow-x: hidden;
  min-width: 320px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-feature-settings: "cv02","cv03","cv04","cv11","ss01";
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Cross-browser IE fallback */
  -ms-interpolation-mode: bicubic;
}

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

/* Reduce motion — accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto   !important;
  }
}

/* ==========================================================================
   3. Bengali Apple-Standard Typography (Noto Sans Bengali & Anek Bangla)
   ========================================================================== */
html[lang="bn"],
html[lang="bn"] body {
  font-family: var(--font-bn) !important;
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: 0 !important;
  word-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "dlig" 1;
  overflow-wrap: break-word;
}

html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3,
html[lang="bn"] h4,
html[lang="bn"] h5,
html[lang="bn"] h6 {
  font-family: var(--font-bn) !important;
  font-weight: 700;
  letter-spacing: 0 !important;
  line-height: 1.38;
  color: var(--apple-black);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

html[lang="bn"] p {
  font-family: var(--font-bn) !important;
  letter-spacing: 0 !important;
  line-height: 1.82;
  overflow-wrap: break-word;
}

html[lang="bn"] a,
html[lang="bn"] span,
html[lang="bn"] button,
html[lang="bn"] input,
html[lang="bn"] textarea,
html[lang="bn"] label {
  font-family: var(--font-bn) !important;
  letter-spacing: 0 !important;
}

html[lang="bn"] .hero__title {
  font-size: clamp(1.85rem, 4.8vw, 3.2rem) !important;
  line-height: 1.32 !important;
  margin-bottom: 20px;
}

html[lang="bn"] .hero__text {
  font-size: 1.08rem !important;
  line-height: 1.82 !important;
  color: var(--apple-dark-gray);
  max-width: 680px;
  margin: 0 auto 36px;
}

html[lang="bn"] .hero__badge {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

html[lang="bn"] .section__badge {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

html[lang="bn"] .card__title {
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--apple-black);
  margin-bottom: 8px;
}

html[lang="bn"] .card__text {
  font-size: 0.93rem !important;
  line-height: 1.78 !important;
  color: #515154 !important;
  letter-spacing: 0 !important;
  word-spacing: 0.02em;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

html[lang="bn"] .features-matrix__title {
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-bottom: 8px;
}

html[lang="bn"] .features-matrix__text {
  font-size: 0.92rem !important;
  line-height: 1.78 !important;
  color: #515154 !important;
  letter-spacing: 0 !important;
}

html[lang="bn"] .client-card {
  padding: 14px 26px;
}

html[lang="bn"] .client-card__name {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

html[lang="bn"] .client-card__type {
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
  color: #636366 !important;
}

html[lang="bn"] .process__step .card__title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-bottom: 8px;
}

html[lang="bn"] .process__step .card__text {
  font-size: 0.92rem !important;
  line-height: 1.78 !important;
  color: #515154 !important;
}

html[lang="bn"] .about__content p {
  line-height: 1.88 !important;
  margin-bottom: 16px;
  color: #3a3a3c;
  font-size: 0.98rem;
}

html[lang="bn"] .contact__label {
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
  color: #86868b;
}

html[lang="bn"] .contact__value {
  font-size: 1rem !important;
  line-height: 1.4 !important;
  font-weight: 600;
}

html[lang="bn"] .payment-card__title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

html[lang="bn"] .payment-card__desc {
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
  color: #86868b !important;
}

/* Responsive Bengali Tweaks for Tablet & Mobile */
@media (max-width: 768px) {
  html[lang="bn"] { font-size: 15.5px; }
  html[lang="bn"] .hero__title {
    font-size: clamp(1.75rem, 6.2vw, 2.4rem) !important;
    line-height: 1.32 !important;
  }
  html[lang="bn"] .hero__text {
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
  }
  html[lang="bn"] .card__title {
    font-size: 1.06rem !important;
  }
  html[lang="bn"] .card__text {
    font-size: 0.88rem !important;
    line-height: 1.72 !important;
  }
  html[lang="bn"] .features-matrix__title {
    font-size: 1.05rem !important;
  }
  html[lang="bn"] .features-matrix__text {
    font-size: 0.88rem !important;
    line-height: 1.72 !important;
  }
  html[lang="bn"] .process__step .card__title {
    font-size: 1.05rem !important;
  }
  html[lang="bn"] .process__step .card__text {
    font-size: 0.88rem !important;
    line-height: 1.72 !important;
  }
}

@media (max-width: 480px) {
  html[lang="bn"] { font-size: 15px; }
  html[lang="bn"] .hero__title {
    font-size: clamp(1.6rem, 7vw, 2.1rem) !important;
    line-height: 1.3 !important;
  }
  html[lang="bn"] .hero__text {
    font-size: 0.94rem !important;
    line-height: 1.7 !important;
  }
  html[lang="bn"] .card {
    padding: 24px 18px;
  }
  html[lang="bn"] .card__title {
    font-size: 1.02rem !important;
  }
  html[lang="bn"] .card__text {
    font-size: 0.86rem !important;
    line-height: 1.68 !important;
  }
  html[lang="bn"] .footer__link {
    font-size: 0.82rem;
  }
}

@media (max-width: 360px) {
  html[lang="bn"] .hero__title {
    font-size: 1.5rem !important;
    line-height: 1.28 !important;
  }
  html[lang="bn"] .hero__text {
    font-size: 0.9rem !important;
  }
}


/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
  position: relative;
}

@media (max-width: 767px) {
  .section { padding: 44px 0; }
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9F9FB 100%);
  padding: 56px 0 60px;
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--apple-border);
}

/* Grid */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3,1fr); }
  .grid--4 { grid-template-columns: repeat(4,1fr); }
}

/* Section Header */
.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section__header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--apple-black);
  margin-bottom: 12px;
}

.section__header p {
  color: var(--apple-gray);
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 400;
}

/* ==========================================================================
   5. Skip Link
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  padding: 10px 20px;
  background: var(--apple-black);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-full);
  -webkit-transition: top 0.2s ease;
          transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

/* ==========================================================================
   6. Section Badge
   ========================================================================== */
.section__badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--apple-light-gray);
  border: 1px solid var(--apple-border-sub);
  border-radius: var(--r-full);
  color: var(--apple-black);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.03);
          box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
}

/* ==========================================================================
   7. Apple Glass Header
   ========================================================================== */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-border-sub);
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
  /* IE fallback */
  background: rgba(255,255,255,0.97) \9;
}

.header--scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: rgba(0,0,0,0.12);
  -webkit-box-shadow: 0 1px 12px rgba(0,0,0,0.06);
          box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  height: 64px;
}

.header__logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  cursor: pointer;
  -webkit-transition: opacity var(--trans);
          transition: opacity var(--trans);
}

.header__logo:hover { opacity: 0.78; }

.header__logo img {
  height: 34px;
  width: auto;
  max-width: 220px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

@media (max-width: 480px) {
  .header__inner { height: 56px; }
  .header__logo img { height: 28px; max-width: 180px; }
}

.header__nav { display: none; }

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--apple-gray);
  -webkit-transition: color var(--trans);
          transition: color var(--trans);
  background: transparent;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--apple-black);
  font-weight: 600;
}

.header__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown__btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--apple-light-gray);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--apple-black);
  cursor: pointer;
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.lang-dropdown__btn:hover {
  background: #E8E8ED;
}

.lang-dropdown__globe {
  width: 15px;
  height: 15px;
  color: var(--apple-gray);
}

.lang-dropdown__arrow {
  width: 12px;
  height: 12px;
  color: var(--apple-gray);
  -webkit-transition: -webkit-transform var(--trans);
          transition: transform var(--trans);
}

.lang-dropdown--open .lang-dropdown__arrow {
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
          transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--r-md);
  -webkit-box-shadow: 0 10px 28px rgba(0,0,0,0.11);
          box-shadow: 0 10px 28px rgba(0,0,0,0.11);
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-6px);
      -ms-transform: translateY(-6px);
          transform: translateY(-6px);
  -webkit-transition: all 0.2s cubic-bezier(0.25,1,0.5,1);
          transition: all 0.2s cubic-bezier(0.25,1,0.5,1);
  z-index: 110;
}

.lang-dropdown--open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

.lang-dropdown__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--apple-black);
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
  text-decoration: none;
}

.lang-dropdown__item:hover {
  background: var(--apple-light-gray);
}

.lang-dropdown__item--active {
  background: var(--apple-light-gray);
  font-weight: 600;
}

.lang-dropdown__check {
  width: 14px;
  height: 14px;
  color: var(--apple-black);
}

.header__cta { display: none !important; }

/* Hamburger */
.header__hamburger {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--apple-black);
  border-radius: 2px;
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0; /* IE11 */
  z-index: 200;
  background: #FFFFFF;
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-transform: translateX(100%);
      -ms-transform: translateX(100%);
          transform: translateX(100%);
  -webkit-transition: -webkit-transform var(--trans);
          transition: transform var(--trans);
}

.mobile-menu--open {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}

.mobile-menu__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--apple-border);
}

.mobile-menu__close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--apple-black);
  cursor: pointer;
  line-height: 1;
}

.mobile-menu nav {
  padding: 20px 0;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.mobile-menu__link {
  display: block;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--apple-black);
  border-bottom: 1px solid var(--apple-border-sub);
}

.mobile-menu__footer {
  margin-top: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
}

/* Show desktop nav */
@media (min-width: 1024px) {
  .header__nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 4px;
  }
  .header__hamburger { display: none; }
}

/* ==========================================================================
   8. Hero Section
   ========================================================================== */
.hero { text-align: center; }

.hero__badge {
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--apple-dark-gray);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero__badge svg { display: none; }

.hero__title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--apple-black);
  max-width: 860px;
  margin: 0 auto 20px;
  text-wrap: balance;
  /* IE fallback */
  word-wrap: break-word;
}

.hero__text {
  font-size: 1.18rem;
  color: var(--apple-gray);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
  font-weight: 400;
}

.hero__buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 14px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

/* ==========================================================================
   9. Buttons
   ========================================================================== */
.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--r-full);
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--apple-black);
  color: #FFFFFF;
  -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.14);
          box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

.btn--primary:hover {
  background: #2d2d30;
  -webkit-transform: scale(1.025);
      -ms-transform: scale(1.025);
          transform: scale(1.025);
  -webkit-box-shadow: 0 6px 18px rgba(0,0,0,0.20);
          box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}

.btn--primary:active {
  -webkit-transform: scale(0.97);
      -ms-transform: scale(0.97);
          transform: scale(0.97);
}

.btn--outline {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--apple-border);
}

.btn--outline:hover {
  border-color: var(--apple-black);
  color: var(--apple-black);
}

.btn__arrow {
  width: 16px;
  height: 16px;
  -webkit-transition: -webkit-transform var(--trans);
          transition: transform var(--trans);
}

.btn:hover .btn__arrow {
  -webkit-transform: translateX(4px);
      -ms-transform: translateX(4px);
          transform: translateX(4px);
}

/* ==========================================================================
   10. Premium Service Cards (Bento)
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--apple-border-sub);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  -webkit-transition: -webkit-transform var(--trans), -webkit-box-shadow var(--trans), border-color var(--trans);
          transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-will-change: transform;
          will-change: transform;
}

.card:hover {
  -webkit-transform: translateY(-5px);
      -ms-transform: translateY(-5px);
          transform: translateY(-5px);
  -webkit-box-shadow: var(--shadow-card-hover);
          box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,0,0,0.10);
  background: #FFFFFF;
}

/* Premium Icon Container */
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: linear-gradient(145deg, #FFFFFF 0%, #F5F5F7 100%);
  border: 1px solid rgba(0,0,0,0.09);
  color: var(--apple-black);
  margin-bottom: 20px;
  -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
          box-shadow: 0 1px 4px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
  -webkit-transition: -webkit-transform var(--trans), -webkit-box-shadow var(--trans), border-color var(--trans);
          transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.card:hover .card__icon {
  -webkit-transform: translateY(-3px) scale(1.04);
      -ms-transform: translateY(-3px) scale(1.04);
          transform: translateY(-3px) scale(1.04);
  border-color: rgba(0,0,0,0.18);
  -webkit-box-shadow: 0 6px 16px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
          box-shadow: 0 6px 16px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--apple-black);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--apple-black);
  margin-bottom: 8px;
  line-height: 1.28;
}

.card__text {
  color: var(--apple-gray);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   11. Payment Methods Section
   ========================================================================== */
.payments-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  -ms-grid-columns: 1fr 16px 1fr 16px 1fr 16px 1fr 16px 1fr 16px 1fr;
  gap: 16px;
}

@media (max-width: 1100px) {
  .payments-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .payments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .payments-grid { grid-template-columns: 1fr; }
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--apple-border-sub);
  border-radius: var(--r-md);
  padding: 24px 14px;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: -webkit-transform var(--trans), -webkit-box-shadow var(--trans), border-color var(--trans), background var(--trans);
          transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans), background var(--trans);
}

.payment-card:hover {
  background: #FFFFFF;
  -webkit-transform: translateY(-3px);
      -ms-transform: translateY(-3px);
          transform: translateY(-3px);
  -webkit-box-shadow: var(--shadow-card-hover);
          box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,0,0,0.12);
}

.payment-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, #FFFFFF 0%, #F5F5F7 100%);
  border: 1px solid rgba(0,0,0,0.09);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 12px;
  -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
          box-shadow: 0 1px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
  -webkit-transition: -webkit-transform var(--trans), border-color var(--trans);
          transition: transform var(--trans), border-color var(--trans);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.payment-card:hover .payment-card__icon {
  -webkit-transform: scale(1.08);
      -ms-transform: scale(1.08);
          transform: scale(1.08);
  border-color: rgba(0,0,0,0.18);
}

.payment-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--apple-black);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-card__title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--apple-black);
  margin-bottom: 4px;
  line-height: 1.28;
}

.payment-card__desc {
  font-size: 0.77rem;
  color: var(--apple-gray);
  line-height: 1.38;
  margin: 0;
}

/* ==========================================================================
   12. Why Choose Us — Features Matrix
   ========================================================================== */
.features-matrix {
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--r-xl);
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  -webkit-box-shadow: 0 2px 14px rgba(0,0,0,0.04);
          box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.features-matrix__item {
  padding: 40px 34px;
  position: relative;
  border-right: 1px solid var(--apple-border);
  border-bottom: 1px solid var(--apple-border);
  -webkit-transition: background var(--trans);
          transition: background var(--trans);
}

.features-matrix__item:hover { background: #FAFAFA; }

/* Feature icon — premium touch */
.features-matrix__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--apple-light-gray);
  border: 1px solid rgba(0,0,0,0.07);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 16px;
}

.features-matrix__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--apple-black);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Remove right border on 3rd col */
.features-matrix__item:nth-child(3n) { border-right: none; }
/* Remove bottom border on last row */
.features-matrix__item:nth-child(n+4) { border-bottom: none; }

.features-matrix__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--apple-black);
  margin-bottom: 10px;
  line-height: 1.28;
}

.features-matrix__text {
  color: var(--apple-dark-gray);
  font-size: 0.96rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1023px) and (min-width: 640px) {
  .features-matrix { grid-template-columns: repeat(2, 1fr); }
  .features-matrix__item {
    border-right: 1px solid var(--apple-border);
    border-bottom: 1px solid var(--apple-border);
  }
  .features-matrix__item:nth-child(3n) { border-right: 1px solid var(--apple-border); }
  .features-matrix__item:nth-child(2n) { border-right: none; }
  .features-matrix__item:nth-child(n+5) { border-bottom: none; }
}

@media (max-width: 639px) {
  .features-matrix { grid-template-columns: 1fr; }
  .features-matrix__item {
    padding: 28px 24px;
    border-right: none;
    border-bottom: 1px solid var(--apple-border);
  }
  .features-matrix__item:last-child { border-bottom: none; }
  .features-matrix__item:nth-child(3n) { border-right: none; }
  .features-matrix__item:nth-child(n+4) { border-bottom: 1px solid var(--apple-border); }
  .features-matrix__item:last-child { border-bottom: none; }
}

/* ==========================================================================
   13. About Section
   ========================================================================== */
.about {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

@media (min-width: 1024px) {
  .about { grid-template-columns: 1.1fr 0.9fr; }
}

.about__content p {
  color: var(--apple-dark-gray);
  font-size: 1.02rem;
  line-height: 1.68;
  margin-bottom: 14px;
}

.about__image-wrap {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.about__image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--apple-border);
  -webkit-box-shadow: 0 12px 36px rgba(0,0,0,0.07);
          box-shadow: 0 12px 36px rgba(0,0,0,0.07);
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
  -o-object-fit: cover;
     object-fit: cover;
}

.about__image:hover {
  -webkit-transform: scale(1.015);
      -ms-transform: scale(1.015);
          transform: scale(1.015);
  -webkit-box-shadow: 0 20px 48px rgba(0,0,0,0.11);
          box-shadow: 0 20px 48px rgba(0,0,0,0.11);
}

/* ==========================================================================
   14. Clients Marquee
   ========================================================================== */
.section--clients {
  padding: 48px 0 28px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .section--clients {
    padding: 36px 0 20px;
  }
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.clients-marquee__track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  -webkit-animation: marquee-slide 32s linear infinite;
          animation: marquee-slide 32s linear infinite;
}

.clients-marquee__track:hover {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
}

@-webkit-keyframes marquee-slide {
  0%   { -webkit-transform: translateX(0);    transform: translateX(0); }
  100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes marquee-slide {
  0%   { -webkit-transform: translateX(0);    transform: translateX(0); }
  100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

.client-card {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 14px 28px;
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--r-lg);
  -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.03);
          box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  -webkit-transition: -webkit-transform var(--trans), border-color var(--trans), -webkit-box-shadow var(--trans);
          transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.client-card:hover {
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
  border-color: rgba(0,0,0,0.18);
  -webkit-box-shadow: 0 6px 18px rgba(0,0,0,0.07);
          box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.client-card__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--apple-black);
  letter-spacing: -0.015em;
  white-space: nowrap;
  margin-bottom: 3px;
}

.client-card__type {
  font-size: 0.8rem;
  color: var(--apple-gray);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   15. Process Section
   ========================================================================== */
.process__steps {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process__steps { grid-template-columns: repeat(4, 1fr); }
}

.process__step {
  padding: 30px 22px;
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--r-lg);
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  text-align: left;
}

.process__step:hover {
  -webkit-transform: translateY(-4px);
      -ms-transform: translateY(-4px);
          transform: translateY(-4px);
  border-color: rgba(0,0,0,0.18);
  -webkit-box-shadow: var(--shadow-card-hover);
          box-shadow: var(--shadow-card-hover);
}

.process__number {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--apple-light-gray);
  border: 1px solid rgba(0,0,0,0.07);
  color: var(--apple-black);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.process__step:hover .process__number {
  background: var(--apple-black);
  color: #FFFFFF;
  border-color: var(--apple-black);
}

.process__step .card__title {
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--apple-black);
  margin-bottom: 8px;
  white-space: normal;
  word-break: break-word;
}

.process__step .card__text {
  font-size: 0.9rem;
  color: var(--apple-gray);
  line-height: 1.52;
  margin: 0;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

/* ==========================================================================
   16. Contact Section
   ========================================================================== */
.contact__cards-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .contact__cards-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact__card {
  background: var(--apple-light-gray);
  border: 1px solid var(--apple-border-sub);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-transition: -webkit-transform var(--trans), -webkit-box-shadow var(--trans), border-color var(--trans);
          transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.contact__card:hover {
  -webkit-transform: translateY(-4px);
      -ms-transform: translateY(-4px);
          transform: translateY(-4px);
  -webkit-box-shadow: var(--shadow-card-hover);
          box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,0,0,0.12);
  background: #FFFFFF;
}

.contact__card .card__icon { margin-bottom: 14px; }

.contact__label {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-gray);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__value {
  font-size: 1.08rem;
  color: var(--apple-black);
  font-weight: 600;
  line-height: 1.4;
  -webkit-user-select: all;
     -moz-user-select: all;
      -ms-user-select: all;
          user-select: all;
  cursor: text;
}

/* ==========================================================================
   17. Footer
   ========================================================================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--apple-border-sub);
  padding: 32px 0 28px;
  color: var(--apple-gray);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: center;
}

.footer__links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.footer__link {
  background: none;
  border: none;
  padding: 2px 4px;
  color: var(--apple-dark-gray);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  -webkit-transition: color var(--trans-fast);
          transition: color var(--trans-fast);
  text-decoration: none !important;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--apple-black);
  text-decoration: none !important;
}


.footer__dot {
  color: var(--apple-gray);
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0 4px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.footer p { margin: 0; }

/* ==========================================================================
   17B. Apple-Style Legal Policy Modal (Razorpay Merchant KYC Compliant)
   ========================================================================== */
.legal-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 280ms cubic-bezier(0.25,1,0.5,1), visibility 280ms;
          transition: opacity 280ms cubic-bezier(0.25,1,0.5,1), visibility 280ms;
}

.legal-backdrop--open {
  opacity: 1;
  visibility: visible;
}

.legal-modal {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 660px;
  width: 100%;
  max-height: 85vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-shadow: 0 24px 64px rgba(0,0,0,0.22);
          box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  border: 1px solid rgba(0,0,0,0.08);
  -webkit-transform: scale(0.94) translateY(12px);
      -ms-transform: scale(0.94) translateY(12px);
          transform: scale(0.94) translateY(12px);
  -webkit-transition: -webkit-transform 280ms cubic-bezier(0.25,1,0.5,1);
          transition: transform 280ms cubic-bezier(0.25,1,0.5,1);
  overflow: hidden;
}

.legal-backdrop--open .legal-modal {
  -webkit-transform: scale(1) translateY(0);
      -ms-transform: scale(1) translateY(0);
          transform: scale(1) translateY(0);
}

.legal-modal__header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--apple-border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: space-between;
      -ms-flex-pack: space-between;
          justify-content: space-between;
  background: #FAFAFC;
}

.legal-modal__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--apple-black);
  margin: 0;
  letter-spacing: -0.015em;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.legal-modal__close {
  background: #E5E5EA;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  color: var(--apple-black);
  -webkit-transition: background 180ms;
          transition: background 180ms;
  margin-left: 12px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.legal-modal__close:hover,
.legal-modal__close:focus-visible {
  background: #D1D1D6;
}

.legal-modal__body {
  padding: 24px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.92rem;
  line-height: 1.72;
  color: #424245;
  /* Completely hide scrollbar across all browsers */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE 10+ and Edge */
}

.legal-modal__body::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Opera, Edge Chromium */
  width: 0;
  height: 0;
}


.legal-modal__panel {
  display: none;
}

.legal-modal__panel--active {
  display: block;
}

.legal-modal__body h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--apple-black);
  margin: 18px 0 6px;
}

.legal-modal__body h4:first-child {
  margin-top: 0;
}

.legal-modal__body p {
  margin: 0 0 12px;
}

.legal-modal__body ul {
  margin: 0 0 14px 18px;
  padding: 0;
}

.legal-modal__body li {
  margin-bottom: 5px;
}

.legal-modal__updated {
  font-size: 0.8rem;
  color: var(--apple-gray);
  margin-bottom: 16px;
  display: block;
}

/* Legal Modal Mobile & Tablet Responsive Optimizations */
@media (max-width: 768px) {
  .legal-backdrop {
    padding: 12px;
  }
  .legal-modal {
    max-height: 88vh;
    border-radius: 16px;
  }
  .legal-modal__header {
    padding: 14px 18px;
  }
  .legal-modal__title {
    font-size: 1.08rem;
  }
  .legal-modal__close {
    width: 36px;
    height: 36px;
  }
  .legal-modal__body {
    padding: 18px 18px;
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  .legal-backdrop {
    padding: 8px;
  }
  .legal-modal {
    max-height: 86vh;
    border-radius: 16px;
  }
  .legal-modal__header {
    padding: 14px 16px;
  }
  .legal-modal__title {
    font-size: 1.02rem;
  }
  .legal-modal__body {
    padding: 16px 14px;
    font-size: 0.88rem;
    line-height: 1.62;
  }
}


/* ==========================================================================
   18. WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 99;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #FFFFFF;
  -webkit-box-shadow: 0 4px 16px rgba(37,211,102,0.42);
          box-shadow: 0 4px 16px rgba(37,211,102,0.42);
  -webkit-transition: all var(--trans);
          transition: all var(--trans);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
  -webkit-box-shadow: 0 8px 24px rgba(37,211,102,0.52);
          box-shadow: 0 8px 24px rgba(37,211,102,0.52);
}

.whatsapp-float:active {
  -webkit-transform: scale(0.95);
      -ms-transform: scale(0.95);
          transform: scale(0.95);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

@media (min-width: 1340px) {
  .whatsapp-float {
    right: auto;
    left: calc(50% + 580px + 10px);
  }
}

/* ==========================================================================
   19. Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  -webkit-transform: translateY(20px);
      -ms-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: opacity 0.55s cubic-bezier(0.25,1,0.5,1),
                      -webkit-transform 0.55s cubic-bezier(0.25,1,0.5,1);
          transition: opacity 0.55s cubic-bezier(0.25,1,0.5,1),
                      transform 0.55s cubic-bezier(0.25,1,0.5,1);
}

.reveal--visible {
  opacity: 1;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

.reveal--delay-1 { -webkit-transition-delay: 0.07s; transition-delay: 0.07s; }
.reveal--delay-2 { -webkit-transition-delay: 0.14s; transition-delay: 0.14s; }
.reveal--delay-3 { -webkit-transition-delay: 0.21s; transition-delay: 0.21s; }
.reveal--delay-4 { -webkit-transition-delay: 0.28s; transition-delay: 0.28s; }

/* ==========================================================================
   20. Utilities
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border-width: 0;
  white-space: nowrap;
}

.text-center   { text-align: center; }
.text-balance  { text-wrap: balance; word-wrap: break-word; }
.gradient-text {
  background: linear-gradient(180deg, #1D1D1F 0%, #434344 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Content visibility for below-fold performance */
@supports (content-visibility: auto) {
  .section:not(.section--hero) {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
  }
}

/* ==========================================================================
   21. Small Screen Tweaks (< 360px)
   ========================================================================== */
@media (max-width: 359px) {
  .container { padding: 0 16px; }
  .card { padding: 24px 18px; }
  .payment-card { padding: 18px 10px; }
  .hero__title { font-size: 1.95rem; }
  .hero__text  { font-size: 1.02rem; }
  .btn { padding: 11px 20px; font-size: 0.92rem; }
}

/* ==========================================================================
   22. Apple-Style Page Preloader (iOS Activity Indicator)
   ========================================================================== */
.page-preloader {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  background: #FFFFFF;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 30px;
  -webkit-transition: opacity 0.4s cubic-bezier(0.25,1,0.5,1),
                      visibility 0.4s cubic-bezier(0.25,1,0.5,1);
          transition: opacity 0.4s cubic-bezier(0.25,1,0.5,1),
                      visibility 0.4s cubic-bezier(0.25,1,0.5,1);
}

.page-preloader--hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader-logo {
  height: 30px;
  width: auto;
  opacity: 0.90;
  display: block;
  -webkit-animation: preloader-logo-pulse 1.8s ease-in-out infinite;
          animation: preloader-logo-pulse 1.8s ease-in-out infinite;
}

@-webkit-keyframes preloader-logo-pulse {
  0%,100% { opacity: 0.90; }
  50%      { opacity: 0.55; }
}
@keyframes preloader-logo-pulse {
  0%,100% { opacity: 0.90; }
  50%      { opacity: 0.55; }
}

/* Apple iOS-style activity indicator — 12 radial spokes */
.preloader-spinner {
  width: 34px;
  height: 34px;
  position: relative;
}

.preloader-spinner span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.5px;
  height: 9px;
  margin-left: -1.25px;
  border-radius: 2px;
  background: #1D1D1F;
  -webkit-transform-origin: center 17px;
          transform-origin: center 17px;
  opacity: 0.15;
  -webkit-animation: preloader-spoke 1s linear infinite;
          animation: preloader-spoke 1s linear infinite;
}

.preloader-spinner span:nth-child(1)  { -webkit-transform: rotate(0deg);   transform: rotate(0deg);   -webkit-animation-delay: -0.917s; animation-delay: -0.917s; }
.preloader-spinner span:nth-child(2)  { -webkit-transform: rotate(30deg);  transform: rotate(30deg);  -webkit-animation-delay: -0.833s; animation-delay: -0.833s; }
.preloader-spinner span:nth-child(3)  { -webkit-transform: rotate(60deg);  transform: rotate(60deg);  -webkit-animation-delay: -0.75s;  animation-delay: -0.75s;  }
.preloader-spinner span:nth-child(4)  { -webkit-transform: rotate(90deg);  transform: rotate(90deg);  -webkit-animation-delay: -0.667s; animation-delay: -0.667s; }
.preloader-spinner span:nth-child(5)  { -webkit-transform: rotate(120deg); transform: rotate(120deg); -webkit-animation-delay: -0.583s; animation-delay: -0.583s; }
.preloader-spinner span:nth-child(6)  { -webkit-transform: rotate(150deg); transform: rotate(150deg); -webkit-animation-delay: -0.5s;   animation-delay: -0.5s;   }
.preloader-spinner span:nth-child(7)  { -webkit-transform: rotate(180deg); transform: rotate(180deg); -webkit-animation-delay: -0.417s; animation-delay: -0.417s; }
.preloader-spinner span:nth-child(8)  { -webkit-transform: rotate(210deg); transform: rotate(210deg); -webkit-animation-delay: -0.333s; animation-delay: -0.333s; }
.preloader-spinner span:nth-child(9)  { -webkit-transform: rotate(240deg); transform: rotate(240deg); -webkit-animation-delay: -0.25s;  animation-delay: -0.25s;  }
.preloader-spinner span:nth-child(10) { -webkit-transform: rotate(270deg); transform: rotate(270deg); -webkit-animation-delay: -0.167s; animation-delay: -0.167s; }
.preloader-spinner span:nth-child(11) { -webkit-transform: rotate(300deg); transform: rotate(300deg); -webkit-animation-delay: -0.083s; animation-delay: -0.083s; }
.preloader-spinner span:nth-child(12) { -webkit-transform: rotate(330deg); transform: rotate(330deg); -webkit-animation-delay: 0s;      animation-delay: 0s;      }

@-webkit-keyframes preloader-spoke {
  0%   { opacity: 1; }
  100% { opacity: 0.15; }
}
@keyframes preloader-spoke {
  0%   { opacity: 1; }
  100% { opacity: 0.15; }
}

/* ==========================================================================
   19. Hide Netlify Preview Drawer & Badge Widget
   ========================================================================== */
[data-netlify-deploy-id],
#netlify-drawer,
.netlify-badge,
iframe[src*="netlify"],
div[class*="netlify-drawer"],
div[class*="netlify-feedback"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


