/* =====================================================
   NABADAT PULSE — Enhanced Animations & Life
   ===================================================== */

/* Scroll Progress Bar */
#scrollProgress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--orange));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  will-change: transform;
}

/* ── Hero Orbs ─────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-orb-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(var(--teal-rgb), 0.16) 0%, transparent 70%);
  top: -18%; left: -12%;
  filter: blur(64px);
  animation: orb-drift 13s ease-in-out infinite;
}
.hero-orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(var(--amber-rgb), 0.13) 0%, transparent 70%);
  top: 28%; right: -10%;
  filter: blur(72px);
  animation: orb-drift 16s ease-in-out infinite reverse;
  animation-delay: -5s;
}
.hero-orb-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(var(--orange-rgb), 0.11) 0%, transparent 70%);
  bottom: 8%; left: 28%;
  filter: blur(56px);
  animation: orb-drift 11s ease-in-out infinite;
  animation-delay: -8s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  25%       { transform: translate(38px, -28px); }
  50%       { transform: translate(-22px, 42px); }
  75%       { transform: translate(28px, 18px); }
}

/* ── Reveal Upgrades ───────────────────── */
.reveal {
  will-change: opacity, transform;
}
/* Stagger feature grid */
.feature-grid .feature-card.reveal:nth-child(1)  { transition-delay: 0.00s; }
.feature-grid .feature-card.reveal:nth-child(2)  { transition-delay: 0.07s; }
.feature-grid .feature-card.reveal:nth-child(3)  { transition-delay: 0.14s; }
.feature-grid .feature-card.reveal:nth-child(4)  { transition-delay: 0.21s; }
.feature-grid .feature-card.reveal:nth-child(5)  { transition-delay: 0.28s; }
.feature-grid .feature-card.reveal:nth-child(6)  { transition-delay: 0.35s; }
.feature-grid .feature-card.reveal:nth-child(7)  { transition-delay: 0.42s; }
.feature-grid .feature-card.reveal:nth-child(8)  { transition-delay: 0.49s; }
.feature-grid .feature-card.reveal:nth-child(9)  { transition-delay: 0.56s; }
.feature-grid .feature-card.reveal:nth-child(10) { transition-delay: 0.63s; }
.feature-grid .feature-card.reveal:nth-child(11) { transition-delay: 0.70s; }
.feature-grid .feature-card.reveal:nth-child(12) { transition-delay: 0.77s; }
/* Stagger workflow steps */
.workflow-line .workflow-step:nth-child(1) { transition-delay: 0.00s; }
.workflow-line .workflow-step:nth-child(2) { transition-delay: 0.14s; }
.workflow-line .workflow-step:nth-child(3) { transition-delay: 0.28s; }
.workflow-line .workflow-step:nth-child(4) { transition-delay: 0.42s; }
/* Stagger price cards */
.pricing-grid .price-card.reveal:nth-child(1) { transition-delay: 0.00s; }
.pricing-grid .price-card.reveal:nth-child(2) { transition-delay: 0.14s; }
.pricing-grid .price-card.reveal:nth-child(3) { transition-delay: 0.28s; }

/* ── Feature Cards ─────────────────────── */
.feature-card {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 260ms ease,
              border-color 260ms ease;
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(var(--teal-rgb), 0.42);
  box-shadow: 0 20px 44px rgba(var(--teal-rgb), 0.13);
}

/* ── Price Cards ───────────────────────── */
.price-card {
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 300ms ease,
              border-color 300ms ease;
  will-change: transform;
}
.price-card:hover {
  transform: translateY(-8px);
}
.price-card.is-cycling {
  border-color: rgba(var(--teal-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.1), var(--shadow);
  transform: translateY(-6px);
}
.price-card.featured.is-cycling {
  border-color: rgba(var(--amber-rgb), 0.65);
  box-shadow: 0 0 0 4px rgba(var(--amber-rgb), 0.14), var(--shadow);
}

/* Animated border on featured card */
.price-card.featured {
  position: relative;
  isolation: isolate;
  background: #fff !important;
  color: #101418 !important;
}
.price-card.featured::after {
  content: '';
  display: none;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(var(--teal-rgb), 0.6),
    rgba(var(--amber-rgb), 0.6),
    rgba(var(--orange-rgb), 0.5),
    rgba(var(--teal-rgb), 0.6));
  background-size: 300% 300%;
  animation: border-spin 5s linear infinite;
  z-index: -1;
  opacity: 0.65;
}
@keyframes border-spin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Demo Tabs ─────────────────────────── */
.demo-tabs {
  position: relative;
}
.demo-auto-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: rgba(var(--teal-rgb), 0.22);
  border-radius: 3px;
  animation: none;
  width: 0;
}
.demo-auto-progress.running {
  animation: tab-fill linear forwards;
}
@keyframes tab-fill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── CX Command Auto Indicator ─────────── */
.cx-auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  margin-top: 0.6rem;
  user-select: none;
}
.cx-auto-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: badge-pulse 1.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Step Numbers Pulse ─────────────────── */
@keyframes step-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0); }
  50%       { box-shadow: 0 0 0 8px rgba(var(--teal-rgb), 0.14); }
}
.workflow-step.is-active .step-number {
  animation: step-glow 2s ease infinite;
}

/* ── Status Dot Ping ──────────────────── */
.status-dot {
  position: relative;
  flex-shrink: 0;
}
.status-dot.success::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(var(--lime-rgb), 0.35);
  animation: dot-ping 2.2s ease-out infinite;
}
@keyframes dot-ping {
  0%        { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ── Floating Particles Canvas ──────────── */
#heroCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Gradient Headline ───────────────────── */
.hero-title em,
.gradient-word {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal) 0%, var(--amber) 60%, var(--orange) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: text-gradient 5s ease infinite;
}
@keyframes text-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Scroll Down Indicator ───────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.5;
  animation: bounce-hint 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
.scroll-hint span {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--teal), transparent);
}
.scroll-hint i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
@keyframes bounce-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Section transitions ─────────────────── */
section {
  transition: opacity 0.5s ease;
}

/* ── Pricing mobile carousel ─────────────── */
@media (max-width: 767px) {
  .pricing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-grid .price-card {
    flex: 0 0 84vw;
    scroll-snap-align: center;
  }
}

/* ── Workflow step hover ─────────────────── */
.workflow-step {
  transition: transform 240ms ease;
  cursor: default;
}
.workflow-step:hover {
  transform: translateY(-4px);
}
.workflow-step:hover .step-number {
  background: linear-gradient(135deg, var(--teal), var(--amber));
  color: #fff;
}

/* ── Smooth section divider ──────────────── */
.section-band {
  position: relative;
}

/* ── Live board rows pulse ───────────────── */
.board-table > div {
  transition: background 300ms ease, transform 200ms ease;
}
.board-table > div.new-entry {
  background: rgba(var(--teal-rgb), 0.08);
  transform: translateX(-4px);
}

/* ── Playbook step highlight ─────────────── */
.playbook-steps > div {
  transition: background 250ms ease, border-color 250ms ease;
}
.playbook-steps > div.highlighted {
  background: rgba(var(--teal-rgb), 0.08);
  border-radius: var(--radius);
}

/* ── CX choice buttons active glow ──────── */
[data-cx-mood].active,
[data-cx-location].active {
  position: relative;
}
[data-cx-mood].active::after,
[data-cx-location].active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: rgba(var(--teal-rgb), 0.15);
  z-index: -1;
  border-radius: var(--radius);
}

/* ── Tilt 3D card wrapper ────────────────── */
.tilt-wrap {
  perspective: 800px;
}
.tilt-inner {
  transition: transform 200ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============================================
   NAVBAR ENHANCEMENTS
   ============================================ */

/* Theme SVG toggle */
.theme-svg { display: block; transition: opacity 150ms ease, transform 150ms ease; }
.theme-svg-moon { display: none; }
html[data-theme="dark"] .theme-svg-sun { display: none; }
html[data-theme="dark"] .theme-svg-moon { display: block; }

/* Language pill */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 0.65rem;
  height: 38px;
  border-radius: var(--radius);
}
.lang-code {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* Custom hamburger */
.nav-ham-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  transition: background 150ms ease, border-color 150ms ease;
}
html[data-theme="dark"] .nav-ham-btn {
  background: rgba(255,255,255,0.08);
}
.nav-ham-btn:hover {
  border-color: rgba(var(--teal-rgb), 0.5);
  background: rgba(var(--teal-rgb), 0.08);
}
.nav-ham-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}
/* Animate to X when open */
.nav-ham-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav-ham-btn { display: flex; }
}

/* ── Premium Mobile Menu ─────────────────── */
@media (max-width: 991px) {
  /* Hide desktop theme/lang from navbar on mobile */
  .site-nav #themeToggle,
  .site-nav #languageToggle { display: none !important; }

  .nav-cta { display: none !important; }

  /* Hamburger above menu z-index */
  .site-nav .d-flex.order-lg-3 {
    position: relative;
    z-index: 1100;
  }
}

/* Always show navbar brand on all sizes */
.navbar-brand {
  display: flex !important;
  opacity: 1 !important;
}

/* ── Mobile Header Bar ──────────────────── */
.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.mob-header-brand {
  display: inline-flex;
  align-items: center;
}
.mob-header-brand img {
  width: min(42vw, 150px);
  height: auto;
}
.mob-close-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  flex-shrink: 0;
}
.mob-close-btn:hover {
  border-color: rgba(var(--orange-rgb), 0.55);
  background: rgba(var(--orange-rgb), 0.12);
  transform: rotate(90deg);
}
html[data-theme="dark"] .mob-close-btn {
  background: rgba(255,255,255,0.08);
}

/* ── Nav Icons (mobile-only) ──────────────── */
/* Icon definitions moved to the main @media block below */

/* ── Stagger animation for nav items ────── */
@media (max-width: 991px) {
  #navLinks .nav-item {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 280ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  html[dir="rtl"] #navLinks .nav-item {
    transform: translateX(-30px);
  }
  #navLinks.show .nav-item { opacity: 1; transform: translateX(0); }
  #navLinks.show .nav-item:nth-child(1) { transition-delay: 60ms; }
  #navLinks.show .nav-item:nth-child(2) { transition-delay: 110ms; }
  #navLinks.show .nav-item:nth-child(3) { transition-delay: 160ms; }
  #navLinks.show .nav-item:nth-child(4) { transition-delay: 210ms; }
  #navLinks.show .nav-item:nth-child(5) { transition-delay: 260ms; }
  #navLinks.show .nav-item:nth-child(6) { transition-delay: 310ms; }
  #navLinks.show .nav-item:nth-child(7) { transition-delay: 360ms; }
}

/* ── Mobile Footer Area ─────────────────── */
.mob-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}
.mob-cta-btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(var(--orange-rgb), 0.22);
}
.mob-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mob-extras-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.mob-extras-links .app-links { gap: 0.35rem; }
.mob-extras-links .social-links { gap: 0.35rem; }
.mob-extras-links .store-link { min-height: 48px; padding: 0.3rem 0.55rem; }
.mob-extras-links .store-link img { height: 34px; max-width: 120px; }
.mob-extras-links .social-link { width: 36px; height: 36px; }

/* ── Setting Chips ──────────────────────── */
.mob-settings {
  display: flex;
  gap: 0.5rem;
}
.mob-setting-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  white-space: nowrap;
}
.mob-setting-chip:hover {
  border-color: rgba(var(--teal-rgb), 0.5);
  background: rgba(var(--teal-rgb), 0.1);
  transform: translateY(-1px);
}
.mob-setting-chip svg { flex-shrink: 0; }
.mob-setting-chip span {
  font-weight: 800;
  font-size: 0.8rem;
}
html[data-theme="dark"] .mob-setting-chip {
  background: rgba(255,255,255,0.08);
}

/* ============================================
   BILLING BADGE
   ============================================ */
.billing-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  margin-inline-start: 0.3rem;
  vertical-align: middle;
  letter-spacing: 0.02em;
}


/* ============================================
   FOOTER REDESIGN & GLOBAL POLISH
   ============================================ */

/* ── Footer ─────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  margin-top: 0;
  overflow: hidden;
}

/* CTA Band */
.ftcta {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(var(--teal-rgb), 0.08), rgba(var(--amber-rgb), 0.05));
  border-bottom: 1px solid var(--line);
}
.ftcta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ftcta__copy strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.ftcta__copy span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Main Grid */
.ftbody {
  padding: 4rem 0 3rem;
}
.ftgrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

/* Brand Col */
.ftbrand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 0.5rem;
  margin-right: -0.5rem; /* Optical alignment */
}
.ftbrand__tagline {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 2rem;
}
.ft-app-links {
  margin-bottom: 1.5rem;
}
.ft-social-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ft-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--soft);
  background: var(--panel);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.ft-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime, #84cc16);
  display: inline-block;
}

/* Nav Cols */
.ftcol--nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.ftnav__title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.ftnav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.ftnav__list a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 150ms ease, transform 150ms ease;
  display: inline-block;
}
.ftnav__list a:hover {
  color: var(--teal);
  transform: translateX(-4px); /* RTL */
}

/* Contact Col */
.ftcol--contact {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.ftcontact__note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.ftcontact__wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: all 150ms ease;
}
.ftcontact__wa svg {
  color: #25d366;
}
.ftcontact__wa .ftcontact__arrow {
  margin-right: auto; /* Push to end RTL */
  color: var(--muted);
  transition: transform 150ms ease;
}
.ftcontact__wa:hover {
  border-color: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.1);
}
.ftcontact__wa:hover .ftcontact__arrow {
  transform: translateX(-4px); /* RTL */
  color: #25d366;
}
.ftcontact__meta-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 150ms ease;
}
.ftcontact__meta-link:hover {
  color: var(--teal);
}

/* Bottom Bar */
.ftbar {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  background: var(--bg);
}
.ftbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.ftbar__copy {
  font-size: 0.85rem;
  color: var(--soft);
}
.ftbar__legal {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
}
.ftbar__legal a {
  color: var(--muted);
  transition: color 150ms ease;
}
.ftbar__legal a:hover {
  color: var(--text);
}
.ftbar__legal span {
  color: var(--line-strong);
}

/* Responsive Footer */
@media (max-width: 991px) {
  .ftgrid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ftcol--brand {
    text-align: center;
  }
  .ftbrand {
    margin: 0 auto 1rem;
  }
  .ftbrand__tagline {
    margin: 0 auto 1.5rem;
  }
  .ft-app-links,
  .ft-social-row {
    justify-content: center;
  }
  .ftcol--nav {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
  }
}
@media (max-width: 767px) {
  .ftcta {
    text-align: center;
    padding: 2.5rem 0;
  }
  .ftcta__inner {
    flex-direction: column;
  }
  .ftcta__btn {
    width: 100%;
  }
  .ftcol--nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: center;
  }
  .ftcol--contact {
    text-align: center;
  }
  .ftbar__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   GLOBAL POLISH & DARK MODE FIXES
   ============================================ */
html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .brand-logo-wide,
html[data-theme="dark"] .mob-header-brand img,
html[data-theme="dark"] .ftbrand img {
  filter: brightness(10) saturate(0) contrast(2);
  opacity: 0.92;
}
html[data-theme="dark"] .ft-status {
  background: rgba(255, 255, 255, 0.05);
}

.section-space {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.section-band + .section-space,
.section-space + .section-space {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.section-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link::before {
    display: none !important;
  }
  #navLinks .nav-link::after {
    display: none !important;
  }
  #navLinks .nav-link {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }
  #navLinks .nav-link:hover,
  #navLinks .nav-link.active {
    transform: none !important;
    box-shadow: none !important;
    color: var(--teal) !important;
    background: none !important;
    border: none !important;
  }
}

.hero-stage {
  overflow: hidden;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.hero-section .btn-primary {
  position: relative;
}
.hero-section .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(var(--orange-rgb), 0.4);
  animation: cta-pulse 2.5s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--orange-rgb), 0.35); }
  50%       { box-shadow: 0 0 0 12px rgba(var(--orange-rgb), 0); }
}

.support-card,
.resource-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.support-card:hover,
.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--teal-rgb), 0.35);
  box-shadow: 0 16px 36px rgba(var(--teal-rgb), 0.1);
}

.price-card.is-cycling .btn {
  transform: scale(1.02);
}

/* Mobile navigation rework */
@media (max-width: 991.98px) {
  body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }

  body.mobile-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1080;
    pointer-events: auto;
    background: rgba(11, 18, 20, 0.42);
    backdrop-filter: blur(12px);
    mask-image: none;
    opacity: 1;
  }

  html[data-theme="dark"] body.mobile-menu-open::before {
    background: rgba(0, 0, 0, 0.6);
  }

  .site-nav {
    z-index: 1030;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(var(--teal-rgb), 0.16);
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 28px rgba(20, 26, 30, 0.08);
  }

  body.mobile-menu-open .site-nav {
    z-index: 1095;
    border-color: transparent;
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.mobile-menu-open .site-nav .navbar-brand,
  body.mobile-menu-open .site-nav .nav-ham-btn {
    opacity: 0;
    pointer-events: none;
  }

  html[data-theme="dark"] .site-nav {
    background: rgba(9, 10, 12, 0.88) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .site-nav .container {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .site-nav .brand-mark,
  .site-nav .navbar-brand {
    display: inline-flex !important;
    flex: 0 1 auto;
    max-width: calc(100vw - 86px);
    min-width: 0;
  }

  .site-nav .logo-brand {
    padding: 0.36rem 0.46rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(var(--teal-rgb), 0.2);
    box-shadow: 0 12px 24px rgba(20, 26, 30, 0.08);
  }

  html[data-theme="dark"] .site-nav .logo-brand {
    background: rgba(255, 255, 255, 0.07);
  }

  .site-nav .brand-logo-wide {
    display: block !important;
    width: clamp(112px, 32vw, 150px) !important;
    max-width: 100% !important;
    filter: none !important;
  }

  .site-nav .brand-logo-mark,
  .site-nav .brand-name,
  .site-nav .brand-sub,
  .site-nav #themeToggle,
  .site-nav #languageToggle,
  .nav-cta {
    display: none !important;
  }

  .site-nav .d-flex.order-lg-3 {
    position: relative;
    z-index: 1 !important;
    flex: 0 0 auto;
    margin-inline-start: auto;
    gap: 0.45rem !important;
  }

  body.mobile-menu-open .site-nav .d-flex.order-lg-3 {
    z-index: 1100 !important;
  }

  .navbar-toggler.nav-ham-btn,
  .nav-ham-btn {
    width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    flex: 0 0 46px;
    border-radius: 15px;
    border: 1px solid rgba(var(--teal-rgb), 0.24);
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 26px rgba(20, 26, 30, 0.1);
  }

  html[data-theme="dark"] .navbar-toggler.nav-ham-btn,
  html[data-theme="dark"] .nav-ham-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .navbar-toggler.nav-ham-btn[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
  }

  #navLinks.navbar-collapse {
    --mobile-menu-offset: -112%;
    position: fixed !important;
    inset-block-start: max(0.7rem, env(safe-area-inset-top));
    inset-block-end: max(0.7rem, env(safe-area-inset-bottom));
    inset-inline-start: max(0.7rem, env(safe-area-inset-left));
    inset-inline-end: auto;
    width: min(420px, calc(100vw - 1.4rem));
    min-height: 0;
    height: auto !important;
    max-height: calc(100dvh - 1.4rem);
    z-index: 1090;
    margin: 0 !important;
    padding: 0.95rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(var(--teal-rgb), 0.2);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.96)),
      rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 90px rgba(20, 26, 30, 0.26);
    transform: translateX(var(--mobile-menu-offset));
    opacity: 0;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
    align-content: start;
  }

  html[dir="rtl"] #navLinks.navbar-collapse {
    --mobile-menu-offset: 112%;
    inset-inline-start: max(0.7rem, env(safe-area-inset-right));
    inset-inline-end: auto;
  }

  html[data-theme="dark"] #navLinks.navbar-collapse {
    background:
      linear-gradient(180deg, rgba(18, 22, 25, 0.98), rgba(10, 17, 19, 0.96)),
      rgba(10, 12, 15, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  }

  #navLinks.navbar-collapse::before {
    display: none !important;
  }

  #navLinks.navbar-collapse.show,
  #navLinks.navbar-collapse.collapsing {
    display: flex !important;
    flex-direction: column;
    transform: translateX(0);
    opacity: 1;
  }

  #navLinks.navbar-collapse.collapsing {
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease !important;
  }

  .mob-header {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
    min-height: 58px;
  }

  .mob-header-brand {
    min-width: 0;
  }

  .mob-header-brand img {
    width: min(48vw, 164px) !important;
    max-width: 100%;
    height: auto;
    filter: none !important;
  }

  .mob-close-btn {
    position: absolute !important;
    top: 0;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    right: 0 !important;
    left: auto !important;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 22px rgba(20, 26, 30, 0.08);
  }

  html[data-theme="dark"] .mob-close-btn {
    background: rgba(255, 255, 255, 0.08);
  }

  #navLinks .navbar-nav {
    width: 100%;
    display: grid;
    gap: 0.55rem;
    margin: 0.9rem 0 0.85rem !important;
    padding: 0 !important;
    list-style: none;
  }

  #navLinks .nav-item {
    width: 100%;
    display: block;
    opacity: 0;
    transform: translateX(12px) !important;
    transition: opacity 210ms ease, transform 210ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  html[dir="rtl"] #navLinks .nav-item {
    transform: translateX(-12px) !important;
  }

  #navLinks .nav-link {
    min-height: 54px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.72rem;
    border: 1px solid rgba(20, 26, 30, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    padding: 0.72rem 0.82rem;
    font-size: 1rem;
    font-weight: 920;
    line-height: 1.25;
    box-shadow: 0 10px 24px rgba(20, 26, 30, 0.07);
  }

  html[data-theme="dark"] #navLinks .nav-link {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
  }

  /* ── Nav Item Icons (replaces numbered counters) ── */
  #navLinks .navbar-nav .nav-link::before {
    content: "";
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    margin: 0;
    border-radius: 12px;
    background-color: rgba(var(--teal-rgb), 0.12);
    -webkit-mask-size: 17px 17px;
    mask-size: 17px 17px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: var(--teal);
  }

  /* Home icon – house */
  #navLinks .navbar-nav .nav-item:nth-child(1) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  }

  /* Workflow icon – route/flow */
  #navLinks .navbar-nav .nav-item:nth-child(2) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3Cpath d='M6 9v3a3 3 0 0 0 3 3h6a3 3 0 0 1 3 3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3Cpath d='M6 9v3a3 3 0 0 0 3 3h6a3 3 0 0 1 3 3'/%3E%3C/svg%3E");
  }

  /* CX Center icon – command/compass */
  #navLinks .navbar-nav .nav-item:nth-child(3) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'/%3E%3C/svg%3E");
  }

  /* Features icon – grid/zap */
  #navLinks .navbar-nav .nav-item:nth-child(4) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
  }

  /* Demo icon – play/monitor */
  #navLinks .navbar-nav .nav-item:nth-child(5) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
  }

  /* Pricing icon – tag/credit-card */
  #navLinks .navbar-nav .nav-item:nth-child(6) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
  }

  /* FAQs icon – help-circle (for page_shell.php which includes 7th item) */
  #navLinks .navbar-nav .nav-item:nth-child(7) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  }

  #navLinks .navbar-nav .nav-link.nav-link-contact::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E");
  }

  #navLinks .navbar-nav .nav-link.nav-link-wa::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  }

  #navLinks .nav-link::after {
    content: "";
    width: 0.52rem;
    height: 0.52rem;
    flex: 0 0 auto;
    margin-inline-start: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.45;
    transform: rotate(-45deg);
  }

  html[dir="rtl"] #navLinks .nav-link::after {
    transform: rotate(135deg);
  }

  #navLinks .nav-link:hover,
  #navLinks .nav-link.active {
    transform: translateY(-1px);
    border-color: rgba(var(--teal-rgb), 0.34);
    background: rgba(var(--teal-rgb), 0.11);
    color: var(--text);
    box-shadow: 0 14px 30px rgba(var(--teal-rgb), 0.11);
  }

  #navLinks.show .nav-item {
    opacity: 1;
    transform: translateX(0) !important;
  }

  html[dir="rtl"] #navLinks.show .nav-item,
  html[dir="ltr"] #navLinks.show .nav-item {
    transform: translateX(0) !important;
  }

  #navLinks.show .nav-item:nth-child(1) { transition-delay: 20ms; }
  #navLinks.show .nav-item:nth-child(2) { transition-delay: 35ms; }
  #navLinks.show .nav-item:nth-child(3) { transition-delay: 50ms; }
  #navLinks.show .nav-item:nth-child(4) { transition-delay: 65ms; }
  #navLinks.show .nav-item:nth-child(5) { transition-delay: 80ms; }
  #navLinks.show .nav-item:nth-child(6) { transition-delay: 95ms; }
  #navLinks.show .nav-item:nth-child(7) { transition-delay: 110ms; }
  #navLinks.show .nav-item:nth-child(8) { transition-delay: 125ms; }
  #navLinks.show .nav-item:nth-child(9) { transition-delay: 140ms; }

  .mob-footer {
    display: grid !important;
    gap: 0.7rem;
    margin-top: 0.2rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    flex: 0 0 auto;
  }

  .mob-cta-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 950;
  }

  .mob-extras {
    display: grid;
    gap: 0.7rem;
  }

  .mob-extras-links {
    display: grid;
    gap: 0.6rem;
  }

  .mob-extras-links .app-links,
  .mob-extras-links .social-links {
    justify-content: center;
  }

  .mob-extras-links .app-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .mob-extras-links .store-link {
    min-height: 44px;
    padding: 0.25rem 0.5rem;
  }

  .mob-extras-links .store-link img {
    height: 30px;
    max-width: 112px;
  }

  .mob-extras-links .social-link {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .mob-settings {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .mob-setting-chip {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
  }

  html[data-theme="dark"] .mob-setting-chip {
    background: rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 575.98px) {
  .site-nav .container {
    min-height: 50px !important;
  }

  .site-nav > .container > .brand-mark,
  .site-nav > .container > .navbar-brand {
    display: inline-flex !important;
  }

  .site-nav > .container > .navbar-brand .brand-logo-wide {
    width: clamp(108px, 42vw, 136px) !important;
  }

  .mob-header-brand .brand-logo-wide {
    display: block !important;
    width: min(44vw, 148px) !important;
    max-width: none !important;
  }

  #navLinks.navbar-collapse {
    inset-block-start: 0.55rem;
    inset-block-end: 0.55rem;
    inset-inline-start: 0.55rem;
    width: calc(100vw - 1.1rem);
    max-height: calc(100dvh - 1.1rem);
    border-radius: 20px;
    padding: 0.8rem;
  }

  html[dir="rtl"] #navLinks.navbar-collapse {
    inset-inline-start: 0.55rem;
  }

  #navLinks .navbar-nav {
    gap: 0.45rem;
    margin-top: 0.75rem !important;
  }

  #navLinks .nav-link {
    min-height: 50px;
    padding: 0.62rem 0.68rem;
    font-size: 0.96rem;
  }

  #navLinks .navbar-nav .nav-link::before {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 11px;
    -webkit-mask-size: 15px 15px;
    mask-size: 15px 15px;
  }
}

/* Professional footer reset */
.site-footer {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  border-top: 1px solid rgba(var(--teal-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(242, 248, 247, 0.92)),
    linear-gradient(135deg, rgba(var(--teal-rgb), 0.12), rgba(var(--amber-rgb), 0.08) 48%, rgba(var(--orange-rgb), 0.08));
}

html[data-theme="dark"] .site-footer {
  background:
    linear-gradient(180deg, rgba(12, 15, 17, 0.94), rgba(8, 12, 14, 0.98)),
    linear-gradient(135deg, rgba(var(--teal-rgb), 0.13), rgba(var(--amber-rgb), 0.07) 48%, rgba(var(--orange-rgb), 0.08));
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 25, 28, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 25, 28, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 88%);
  opacity: 0.55;
}

html[data-theme="dark"] .site-footer::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.ftcta {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

html[data-theme="dark"] .ftcta {
  background: rgba(255, 255, 255, 0.025);
}

.ftcta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.ftcta__copy {
  max-width: 760px;
}

.ftcta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
}

.ftcta__eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(var(--teal-rgb), 0.52);
}

.ftcta__copy strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 950;
  line-height: 1.25;
}

.ftcta__copy p {
  max-width: 620px;
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.ftcta__btn {
  min-height: 52px;
  padding-inline: 1.25rem;
  white-space: nowrap;
}

.ftbody {
  padding: clamp(2.4rem, 5vw, 4.2rem) 0;
}

.ftgrid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(280px, 1fr) minmax(240px, 0.8fr);
  gap: clamp(1.3rem, 3vw, 3rem);
  align-items: start;
}

.ftcol {
  min-width: 0;
}

.ftbrand {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(var(--teal-rgb), 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(20, 26, 30, 0.08);
}

html[data-theme="dark"] .site-footer .ftbrand {
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="dark"] .site-footer .ftbrand img {
  filter: none !important;
  opacity: 1;
}

.ftbrand .brand-logo-wide {
  width: min(176px, 46vw);
  max-width: 100%;
}

.ftbrand__tagline {
  max-width: 420px;
  margin: 0 0 1.15rem;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.85;
}

.ft-app-links {
  margin-bottom: 1rem;
}

.ft-app-links .store-link {
  min-height: 46px;
  padding: 0.34rem 0.55rem;
}

.ft-app-links .store-link img {
  height: 31px;
  max-width: 118px;
}

.ft-social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ft-social-row .social-link {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.ft-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  border: 1px solid rgba(var(--green-rgb), 0.25);
  border-radius: 999px;
  background: rgba(var(--green-rgb), 0.1);
  color: var(--soft);
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 850;
}

html[data-theme="dark"] .ft-status {
  background: rgba(var(--green-rgb), 0.11);
}

.ftcol--nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.ftnav__title {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
}

.ftnav__list {
  list-style: none;
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
}

.ftnav__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 800;
  transition: color 150ms ease, transform 150ms ease;
}

.ftnav__list a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(var(--teal-rgb), 0.5);
}

.ftnav__list a:hover {
  color: var(--teal);
  transform: translateX(-3px);
}

html[dir="ltr"] .ftnav__list a:hover {
  transform: translateX(3px);
}

.ftcol--contact {
  border: 1px solid rgba(var(--teal-rgb), 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52));
  padding: 1.15rem;
  box-shadow: 0 18px 42px rgba(20, 26, 30, 0.08);
}

html[data-theme="dark"] .ftcol--contact {
  background: rgba(255, 255, 255, 0.06);
}

.ftcontact__note {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.ftcontact__wa,
.ftcontact__meta-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font-weight: 900;
}

html[data-theme="dark"] .ftcontact__wa,
html[data-theme="dark"] .ftcontact__meta-link {
  background: rgba(255, 255, 255, 0.055);
}

.ftcontact__wa {
  margin-bottom: 0.65rem;
}

.ftcontact__wa svg:first-child {
  color: #25d366;
}

.ftcontact__arrow {
  margin-inline-start: auto;
  color: var(--muted);
  transition: transform 150ms ease, color 150ms ease;
}

html[dir="rtl"] .ftcontact__arrow {
  transform: scaleX(-1);
}

.ftcontact__wa:hover {
  border-color: rgba(37, 211, 102, 0.5);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.12);
}

.ftcontact__wa:hover .ftcontact__arrow {
  color: #25d366;
}

html[dir="rtl"] .ftcontact__wa:hover .ftcontact__arrow {
  transform: scaleX(-1) translateX(-3px);
}

html[dir="ltr"] .ftcontact__wa:hover .ftcontact__arrow {
  transform: translateX(3px);
}

.ftcontact__meta-link {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ftcontact__meta-link:hover {
  border-color: rgba(var(--teal-rgb), 0.35);
  color: var(--teal);
}

.ftbar {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 1.05rem 0;
}

html[data-theme="dark"] .ftbar {
  background: rgba(255, 255, 255, 0.025);
}

.ftbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ftbar__copy {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.ftbar__legal {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.ftbar__legal a:hover {
  color: var(--teal);
}

.ftbar__legal span {
  color: var(--line-strong);
}

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

  .ftcol--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .ftcta__inner,
  .ftgrid,
  .ftcol--nav {
    grid-template-columns: 1fr;
  }

  .ftcol--nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftcta__inner {
    text-align: center;
  }

  .ftcta__eyebrow,
  .ft-social-row,
  .ft-app-links {
    justify-content: center;
  }

  .ftcta__copy p,
  .ftbrand__tagline {
    margin-inline: auto;
  }

  .ftcta__btn {
    width: 100%;
  }

  .ftcol--brand,
  .ftcol--nav,
  .ftcol--contact,
  .ftbar__inner {
    text-align: center;
  }

  .ftbrand {
    margin-inline: auto;
  }

  .ftnav__list a,
  .ftcontact__wa,
  .ftcontact__meta-link,
  .ftbar__inner,
  .ftbar__legal {
    justify-content: center;
  }

  .ftnav__list a::before {
    display: none;
  }

  .ftcontact__arrow {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .ftbody {
    padding: 2rem 0;
  }

  .ftgrid {
    gap: 1.5rem;
  }

  .ft-app-links {
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  html[dir="rtl"] .ft-app-links {
    justify-content: center;
  }

  .ft-social-row {
    display: grid;
    justify-items: center;
  }

  .ftbar__inner {
    justify-content: center;
  }
}
