html, body {
  overflow-x: clip;
  font-family: 'Sarabun', 'Plus Jakarta Sans', sans-serif;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}
html { background: #fff; }
body { background: transparent; }

.route-flow {
  fill: none;
  stroke: #2563EB;
  stroke-opacity: .55;
  stroke-width: 2.6;
  stroke-dasharray: 3 11;
  stroke-linecap: round;
  animation: dashflow 1.8s linear infinite;
}
@keyframes dashflow { to { stroke-dashoffset: -28; } }

.font-display { font-family: 'Plus Jakarta Sans', 'Sarabun', sans-serif; }
[x-hidden], .hidden-page, #trustStatsStrip.hidden, .section-hidden { display: none !important; }

/* Page transitions */
.page { display: none; }
.page.active { display: block; animation: pageIn .45s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Tabs */
.tab-btn { position: relative; transition: all .2s ease; }
.tab-btn.active { color: #1D4ED8; background: #EFF6FF; box-shadow: inset 0 0 0 1px #BFDBFE; }
.tab-btn:not(.active):hover { background: #F1F5F9; color: #0F172A; }

/* Hero & Global 3D Canvas */
.hero-bg {
  background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.56) 46%, rgba(255,255,255,0) 84%);
  overflow-x: clip;
}
@media (max-width: 1023px) {
  .hero-bg {
    background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.62) 56%, rgba(255,255,255,.38) 100%);
  }
}
@media (max-height: 500px) and (max-width: 1279px) {
  .header-mobile-nav { padding-bottom: 0.35rem; }
  .header-mobile-nav .tab-btn { padding-top: 0.3rem; padding-bottom: 0.3rem; }
  .floating-chat-pill { display: none !important; }
}
@media (max-height: 520px) {
  .modal-panel { max-height: 96vh !important; }
  .modal-panel > div { padding-top: 0.65rem; padding-bottom: 0.65rem; }
}
.hero-title {
  font-size: clamp(1.55rem, 1.1rem + 2.05vw, 2.85rem);
  line-height: 1.38;
}
.section-title {
  font-size: clamp(1.4rem, 1.05rem + 1.35vw, 2.35rem);
  line-height: 1.25;
}
.bg-three-canvas {
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.bg-three-canvas.is-ready { opacity: 1; }
.page .bg-white.rounded-3xl,
.page .bg-white.rounded-2xl {
  background-color: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 24px -4px rgba(15,23,42,.07);
}
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* Truck scene */
.road-dash { animation: roadMove .7s linear infinite; }
@keyframes roadMove { from { transform: translateX(0); } to { transform: translateX(-60px); } }
.truck-bob { animation: bob .6s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cloud { animation: cloud 28s linear infinite; }
@keyframes cloud { from { transform: translateX(-60px); } to { transform: translateX(420px); } }
.hill-move { animation: hill 18s linear infinite; }
@keyframes hill { from { transform: translateX(0); } to { transform: translateX(-200px); } }
.blink { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Floating */
.float-up { animation: floatUp 3.2s ease-in-out infinite; }
@keyframes floatUp { 50% { transform: translateY(-6px); } }
.ring-ping::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: inherit;
  z-index: -1;
  animation: ping2 2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping2 { 75%, 100% { transform: scale(1.7); opacity: 0; } }

/* Product card */
.p-card {
  background-color: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(37,99,235,.25); border-color: #BFDBFE; }
.p-card.hide { display: none; }
.filter-btn.active {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
  box-shadow: 0 6px 16px -6px rgba(37,99,235,.55);
}

/* Slider */
input[type=range].tt-range {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #2563EB var(--p,0%), #E2E8F0 var(--p,0%));
  outline: none;
}
input[type=range].tt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #2563EB;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,.4);
}
input[type=range].tt-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #2563EB;
  cursor: pointer;
}

/* Modals */
.modal-shell { display: none; }
.modal-shell.open { display: flex; }
.modal-shell.open .modal-panel { animation: modalIn .28s ease both; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: all .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.field {
  width: 100%;
  border: 1px solid #CBD5E1;
  background: #fff;
  border-radius: 12px;
  padding: .7rem .9rem;
  font-size: .95rem;
  transition: all .15s;
}
.field:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field.invalid { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239,68,68,.1); }

/* Marquee & Client Logos */
.marquee-fade {
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding-top: 80px;
  padding-bottom: 80px;
  margin-top: -80px;
  margin-bottom: -80px;
}
.client-marquee {
  position: relative;
  z-index: 20;
  animation: marquee var(--marquee-speed, 65s) linear infinite;
}
.client-marquee:hover,
.client-marquee:focus-within {
  z-index: 100 !important;
  animation-play-state: paused;
}
.client-marquee-rev {
  position: relative;
  z-index: 10;
  animation: marqueeRev var(--marquee-speed-rev, 70s) linear infinite;
}
.client-marquee-rev:hover,
.client-marquee-rev:focus-within {
  z-index: 100 !important;
  animation-play-state: paused;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.logo-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}
.logo-pill-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(42px, 5vw, 56px);
  min-width: clamp(88px, 12vw, 120px);
  max-width: clamp(120px, 16vw, 168px);
  padding: 5px clamp(8px, 1.5vw, 12px);
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .32s cubic-bezier(0.2, 0.8, 0.2, 1), border-color .25s ease, box-shadow .32s ease;
  transform-origin: center center;
  will-change: transform;
}
.logo-pill:hover {
  z-index: 500 !important;
}
.logo-pill:hover .logo-pill-inner {
  transform: scale(2.6);
  border-color: #3B82F6;
  background: #ffffff;
  box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.45), 0 0 0 1.5px rgba(59, 130, 246, 0.4);
}
.logo-pill img {
  max-height: clamp(28px, 4vw, 40px);
  max-width: clamp(98px, 14vw, 138px);
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.logo-pill-caption {
  position: absolute;
  top: calc(50% + 56px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #ffffff;
  color: #0F172A;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1.5px solid #2563EB;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.4);
  transition: opacity .25s ease, transform .25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility .25s;
  z-index: 2000 !important;
  text-align: center;
}
.logo-pill:hover .logo-pill-caption {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

.logo-grid-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color .25s ease, box-shadow .3s ease;
  position: relative;
  z-index: 1;
  will-change: transform;
}
.logo-grid-card:hover {
  z-index: 40;
  border-color: #3B82F6;
  box-shadow: 0 12px 30px -8px rgba(37,99,235,.25);
}
.logo-grid-thumb {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform .35s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
  will-change: transform;
}
.logo-grid-card:hover .logo-grid-thumb {
  transform: scale(3);
  z-index: 60;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 16px 36px -6px rgba(15,23,42,0.4), 0 0 0 1px rgba(59,130,246,0.35);
  padding: 6px;
}
.logo-grid-thumb img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translateZ(0);
}

.client-card {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #E2E8F0;
  border-radius: clamp(18px, 2.5vw, 24px);
  padding: clamp(1rem, 2.4vw, 1.45rem);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -8px rgba(15,23,42,.08);
  transition: all .25s ease;
  cursor: pointer;
}
.client-card:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
  box-shadow: 0 18px 40px -14px rgba(37,99,235,.22);
}
.client-card.hide { display: none !important; }
.ct {
  font-size: 11px;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
}

.dir-tab.active {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
  box-shadow: 0 4px 12px -4px rgba(37,99,235,.45);
}

/* No Scrollbar Utility */
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  overflow: -moz-scrollbars-none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Social Proof Strip - Strictly 1 Line across all devices without scrollbars */
.proof-strip-wrapper {
  max-width: 98vw;
  box-sizing: border-box;
  overflow: hidden !important;
}
.proof-strip-fit {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip;
  display: flex !important;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.proof-strip-sub {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip;
  max-width: 100%;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
::-webkit-scrollbar-track { background: #F1F5F9; }

@keyframes dataStreamFlow {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}
.data-stream-flow {
  stroke-dasharray: 8 6;
  animation: dataStreamFlow 2.5s linear infinite;
}

.install-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.install-card:hover {
  transform: translateY(-4px);
  border-color: #93C5FD;
}





/* 24/7 Call Center Transparent Video Stage */
.cc-presenter-media {
  filter: drop-shadow(0 16px 26px rgba(15, 23, 42, 0.14));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, rgba(0, 0, 0, 0.62) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, rgba(0, 0, 0, 0.62) 93%, transparent 100%);
  will-change: transform;
}


/* ========================================================
   RESPONSIVE HEADER & LOGIN BOX ADAPTATION
   - Keeps login box visible when resizing down to 540px
   - Transitions navigation tabs smoothly
   ======================================================== */
@media (min-width: 540px) {
  .header-login-desktop {
    display: flex !important;
  }
  .header-login-mobile-btn {
    display: none !important;
  }
}
@media (max-width: 539.98px) {
  .header-login-desktop {
    display: none !important;
  }
  .header-login-mobile-btn {
    display: inline-flex !important;
  }
}

@media (min-width: 1280px) {
  #desktopNav {
    display: flex !important;
  }
  #mobileNav {
    display: none !important;
  }
}
@media (max-width: 1279.98px) {
  #desktopNav {
    display: none !important;
  }
  #mobileNav {
    display: grid !important;
  }
}
