/* ══════════════════════════════════════════
   THEME / CSS VARIABLES
══════════════════════════════════════════ */
:root {
  --transition-theme: background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
  --app-navy:      #1e3a8a;
  --app-dark:      #f0f4ff;
  --app-blue:      #4361ee;
  --app-sky:       #3a86ff;
  --app-green:     #0d9488;
  --app-amber:     #d97706;
  --app-purple:    #7c3aed;
  --app-red:       #dc2626;
  --white:         #1e293b;
  --gray-400:      #475569;
  --gray-600:      #64748b;
  --card-bg:       rgba(255,255,255,0.85);
  --card-bg-hover: rgba(67,97,238,0.06);
  --border:        rgba(30,58,138,0.1);
  --border-hover:  rgba(67,97,238,0.4);
  --body-bg:       #f0f4ff;
  --nav-bg:        rgba(240,244,255,0.97);
  --strip-bg1:     #dbeafe;
  --strip-bg2:     #eff6ff;
  --topbar-bg:     #1e40af;
  --text-primary:  #0f172a;
  --text-muted:    #475569;
  --form-bg:       rgba(255,255,255,0.9);
  --form-border:   rgba(30,58,138,0.15);
  --input-bg:      rgba(255,255,255,0.9);
  --input-border:  rgba(30,58,138,0.2);
  --toggle-bg:     rgba(30,58,138,0.06);
  --footer-bg:     #dbeafe;
  --mock-sidebar:  #1e3a8a;
  --mock-main:     #f8faff;
  --mock-kpi-bg:   white;
  --kpi-label:     #94a3b8;
  --kpi-val:       #1e293b;
  --badge-bg:      rgba(67,97,238,0.1);
  --badge-border:  rgba(67,97,238,0.25);
  --city-chip-bg:  rgba(217,119,6,0.08);
  --city-chip-b:   rgba(217,119,6,0.25);
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: var(--transition-theme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }


.container, .container-fluid {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-left: 0;
  padding-right: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
  background: var(--topbar-bg);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  transition: background .35s;
  line-height: 1.4;
  width: 100%;
}
.topbar a { color: white; text-decoration: underline; margin-left: 8px; }

/* ══════════════════════════════════════════
   NAVIGATION — Bootstrap navbar enhanced
══════════════════════════════════════════ */
nav,
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1030; /**/
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: var(--nav-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-theme);
  box-shadow: 0 1px 24px rgba(30,58,138,.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  transition: color .35s;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--gray-400);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--app-blue); background: var(--badge-bg); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.phone-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(58,134,255,.5);
  font-size: 13px;
  font-weight: 700;
  color: var(--app-sky);
  background: rgba(58,134,255,.08);
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition-theme);
}
.phone-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-green);
  animation: blink 2s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.btn-login {
  padding: 8px 22px;
  border-radius: 9px;
  background: var(--app-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(67,97,238,.35);
  white-space: nowrap;
  transition: all .2s;
  display: inline-block;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(67,97,238,.5); color: #fff; }

/*  / toggler */
.hamburger,
.navbar-toggler.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  padding: 7px;
  transition: all .2s;
  flex-shrink: 0;
  box-shadow: none;
}
.hamburger span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 95px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f0f4ff;
  z-index: 1025;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  isolation: isolate;
}
.mobile-menu.open {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 0 24px;
  list-style: none;
}
.mobile-nav-links a {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 12px;
  color: var(--gray-400);
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  background: var(--card-bg);
  margin-bottom: 4px;
}
.mobile-nav-links a:hover { color: var(--app-blue); background: var(--badge-bg); }

.mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  margin: 20px 0 10px;
  border: 1.5px solid rgba(58,134,255,.5);
  font-size: 15px;
  font-weight: 700;
  color: var(--app-sky);
  background: rgba(58,134,255,.08);
}
.mobile-login {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--app-blue);
  color: white;
  text-decoration: none;
  margin-top: 10px;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#home {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  padding: 0 0 0 64px;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 800px 600px at -10% 60%, rgba(67,97,238,.08) 0%, transparent 70%),
              radial-gradient(ellipse 400px 400px at 80% 10%, rgba(245,158,11,.04) 0%, transparent 70%);
  z-index: 0;
}
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(67,97,238,.12) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  z-index: 0;
}
.hero-left {
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--app-sky);
  letter-spacing: .5px;
  transition: var(--transition-theme);
  animation: badgePop .6s cubic-bezier(.34,1.56,.64,1) both .2s;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(.85) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

h1 {
  font-size: clamp(28px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  color: var(--text-primary);
  animation: heroTitleIn .8s cubic-bezier(.22,1,.36,1) both .35s;
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--app-amber), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--gray-400);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 38px;
  animation: heroTitleIn .8s cubic-bezier(.22,1,.36,1) both .5s;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroTitleIn .8s cubic-bezier(.22,1,.36,1) both .65s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 12px;
  background: var(--app-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(67,97,238,.4);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(67,97,238,.55); color: #fff; }
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 12px;
  border: 1px solid rgba(30,58,138,.2);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}
.btn-ghost:hover { border-color: var(--app-blue); background: var(--badge-bg); transform: translateY(-2px); color: var(--app-blue); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  animation: heroTitleIn .8s cubic-bezier(.22,1,.36,1) both .8s;
  flex-wrap: wrap;
}
.trust-num { font-size: 26px; font-weight: 800; color: var(--text-primary); }
.trust-num span { font-size: 13px; display: block; color: var(--gray-400); font-weight: 400; margin-top: 2px; }
.trust-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* Hero Right / Mockup */
.hero-right {
  position: relative;
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 1;
}
.dashboard-mockup {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 480px;
  background: #f1f5f9;
  border-radius: 20px 0 0 20px;
  box-shadow: -40px 0 120px rgba(30,58,138,0.10);
  display: flex;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transform-origin: right center;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.dashboard-mockup:hover { transform: perspective(1000px) rotateY(-1deg) rotateX(.5deg); }

.mock-sidebar {
  width: 190px;
  flex-shrink: 0;
  background: var(--mock-sidebar);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 20px;
  font-weight: 800;
  font-size: 15px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 8px;
}
.mock-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--app-blue), var(--app-sky));
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
}
.mock-nav-item.active {
  background: rgba(67,97,238,.2);
  color: white;
  border-right: 3px solid var(--app-blue);
}
.mock-nav-item .nd {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  opacity: .7;
  flex-shrink: 0;
}
.mock-main {
  flex: 1;
  background: #f8faff;
  padding: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-topbar { display: flex; justify-content: space-between; align-items: center; }
.mock-title { font-size: 13px; font-weight: 700; color: #1e293b; }
.mock-meta { font-size: 10px; color: var(--gray-600); }
.mock-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-kpi {
  background: white;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.kpi-b{background:#dbeafe;} .kpi-g{background:#d1fae5;} .kpi-p{background:#ede9fe;} .kpi-a{background:#fef3c7;}
.mock-kpi-label { font-size: 9px; color: var(--gray-400); }
.mock-kpi-val { font-size: 16px; font-weight: 800; color: #1e293b; line-height: 1; }
.mock-bill-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-bill { background: white; border-radius: 10px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.mock-bill-title { font-size: 10px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.mock-bill-val { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.mock-bill-bar { height: 4px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.mock-bill-bar-fill { height: 100%; border-radius: 99px; }
.bar-red{width:20%;background:#ef4444;} .bar-purple{width:10%;background:#7c3aed;} .bar-blue{width:60%;background:#4361ee;} .bar-green{width:45%;background:#2ec4b6;}
.mock-ql-title { font-size: 11px; font-weight: 700; color: #4361ee; margin-bottom: 8px; }
.mock-ql-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mock-ql-btn { background: #fee2e2; border-radius: 6px; padding: 6px 4px; font-size: 9px; font-weight: 600; color: #991b1b; text-align: center; }

/* Hero Pills */
.hero-pill {
  position: absolute;
  background: var(--mock-kpi-bg);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1a1d2e;
  box-shadow: 0 4px 20px rgba(30,58,138,.15);
  white-space: nowrap;
  z-index: 10;
  transition: box-shadow .3s, transform .3s;
}
.hero-pill:hover { box-shadow: 0 16px 40px rgba(67,97,238,.35); transform: translateY(-4px) !important; animation-play-state: paused; }
.hero-pill .pd { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

@keyframes floatSoft { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes floatSoftDelay { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes floatSoftDelay2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.hp1{top:60px;left:-150px;animation:floatSoft 3.5s ease-in-out infinite 0s;}
.hp2{top:180px;left:-170px;animation:floatSoftDelay 3.5s ease-in-out infinite 0.7s;}
.hp3{bottom:180px;left:-160px;animation:floatSoftDelay2 3.5s ease-in-out infinite 1.4s;}
.hp4{top:60px;right:20px;animation:floatSoft 3.5s ease-in-out infinite 0s;}
.hp5{top:40px;right:280px;animation:floatSoftDelay 3.5s ease-in-out infinite 0.5s;}
.hp6{top:60px;right:500px;animation:floatSoftDelay2 3.5s ease-in-out infinite 1s;}

/* ══════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════ */
.stats-strip {
  position: relative;
  overflow: hidden;
  padding: 72px 64px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #dbeafe 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-heading {
  text-align: center;
  margin-bottom: 52px;
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text-primary);
}
.stats-heading span {
  background: linear-gradient(90deg, var(--app-amber), #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid rgba(30,58,138,.12);
  border-radius: 20px;
  overflow: hidden;
}
.stat-item {
  text-align: center;
  padding: 36px 20px;
  border-right: 1px solid rgba(30,58,138,.1);
  background: rgba(255,255,255,.5);
  transition: background .25s, transform .25s;
  cursor: default;
}
.stat-item:hover { background: rgba(245,158,11,.06); transform: translateY(-4px); }
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 36px; margin-bottom: 14px; display: block; transition: transform .3s; }
.stat-item:hover .stat-icon { transform: scale(1.2) rotate(-5deg); }
.stat-num {
  font-size: clamp(20px, 2.5vw, 42px);
  font-weight: 800;
  color: var(--app-amber);
  line-height: 1;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}
.stat-desc { font-size: 12px; color: var(--gray-400); line-height: 1.5; max-width: 120px; margin: 0 auto; }

/* ══════════════════════════════════════════
   SECTIONS COMMON
══════════════════════════════════════════ */
section { padding: 96px 64px; }
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--app-amber);
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.section-sub { color: var(--gray-400); font-size: 16px; line-height: 1.75; max-width: 540px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--gray-400); line-height: 1.8; font-size: 15.5px; margin-bottom: 14px; }
.city-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.city-chip {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--city-chip-bg);
  border: 1px solid var(--city-chip-b);
  font-size: 12px;
  color: var(--app-amber);
  font-weight: 600;
  transition: all .2s;
  cursor: default;
}
.city-chip:hover { transform: translateY(-2px) scale(1.05); background: rgba(245,158,11,.15); }
.about-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpi-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(30,58,138,.07);
  transition: all .3s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--app-blue), var(--app-amber));
  opacity: 0;
  transition: opacity .3s;
}
.kpi-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: 0 20px 48px rgba(67,97,238,.15); }
.kpi-card:hover::before { opacity: 1; }
.kpi-card .kn {
  font-size: 38px;
  font-weight: 800;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--app-sky), var(--app-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kpi-card .kl { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
#features { background: rgba(30,58,138,.03); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(30,58,138,.07);
  transition: all .3s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  border-radius: 0 0 20px 20px;
  transition: opacity .3s;
}
.feat-card:nth-child(3n+1)::after { background: linear-gradient(90deg, var(--app-blue), var(--app-sky)); }
.feat-card:nth-child(3n+2)::after { background: linear-gradient(90deg, var(--app-amber), #fbbf24); }
.feat-card:nth-child(3n)::after   { background: linear-gradient(90deg, var(--app-green), #34d399); }
.feat-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: 0 20px 48px rgba(67,97,238,.12); }
.feat-card:hover::after { opacity: 1; }
.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.feat-card:hover .feat-icon { transform: scale(1.15) rotate(-5deg); }
.fi-blue{background:rgba(67,97,238,.15);border:1px solid rgba(67,97,238,.25);}
.fi-amber{background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.25);}
.fi-green{background:rgba(46,196,182,.12);border:1px solid rgba(46,196,182,.25);}
.fi-purple{background:rgba(124,58,237,.12);border:1px solid rgba(124,58,237,.25);}
.feat-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.feat-card p { font-size: 13.5px; color: var(--gray-400); line-height: 1.7; }

/* ══════════════════════════════════════════
   PRODUCTS / ERP
══════════════════════════════════════════ */
.erp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.erp-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(30,58,138,.07);
  transition: all .3s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
.erp-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(67,97,238,.12); }
.erp-card .ei { font-size: 26px; margin-bottom: 12px; display: block; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.erp-card:hover .ei { transform: scale(1.2) translateY(-2px); }
.erp-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.erp-card p { font-size: 12.5px; color: var(--gray-400); line-height: 1.65; }
.view-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--app-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
.view-file-link:hover { color: var(--app-amber); gap: 10px; border-bottom-color: var(--app-amber); transform: translateX(3px); }

/* ══════════════════════════════════════════
   APP SHOWCASE
══════════════════════════════════════════ */
#app-showcase {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 60%, #dbeafe 100%);
  padding: 96px 64px;
  position: relative;
  overflow: hidden;
}
#app-showcase::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.showcase-title-block { text-align: center; margin-bottom: 52px; }
.showcase-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.showcase-phone-wrap { position: relative; width: 260px; flex-shrink: 0; }
.showcase-phone { width: 260px; height: 520px; position: relative; }
.phone-frame {
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 36px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,255,255,0.1);
  overflow: hidden;
}
.phone-camera {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #0a0a0a;
  border-radius: 50%;
  z-index: 15;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}
.phone-camera::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: #1a3a5c;
  border-radius: 50%;
  opacity: 0.6;
}
.phone-screen {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-radius: 28px;
  overflow: hidden;
}
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(67,97,238,.15) 0%, rgba(124,58,237,.1) 25%, rgba(46,196,182,.08) 50%, rgba(245,158,11,.05) 75%, rgba(67,97,238,.1) 100%);
  animation: gradientShift 8s ease infinite;
  pointer-events: none;
}
@keyframes gradientShift {
  0%   { opacity:.5; transform:translateX(-10%) translateY(-10%); }
  50%  { opacity:1;  transform:translateX(10%) translateY(10%); }
  100% { opacity:.5; transform:translateX(-10%) translateY(-10%); }
}
.phone-slide { position: absolute; top:0; left:0; width:100%; height:100%; opacity:0; transition:opacity .5s ease-in-out; }
.phone-slide.active { opacity: 1; }
.phone-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.phone-home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  z-index: 10;
}
.phone-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.phone-dot.active { width: 20px; border-radius: 3px; background: var(--app-blue); }
.phone-dot:hover { background: var(--app-blue); }

.phone-glow { position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none; z-index:-1; }
.phone-glow span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,.25);
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  animation: ringPulse 3s ease-in-out infinite;
}
.phone-glow span:nth-child(1){ width:320px;height:320px; animation-delay:0s; }
.phone-glow span:nth-child(2){ width:460px;height:460px;border-color:rgba(124,58,237,.15); animation-delay:.5s; }
.phone-glow span:nth-child(3){ width:600px;height:600px;border-color:rgba(124,58,237,.08); animation-delay:1s; }
@keyframes ringPulse {
  0%,100% { opacity:1; transform:translate(-50%,-50%) scale(1); }
  50%      { opacity:.5; transform:translate(-50%,-50%) scale(1.03); }
}

.showcase-badges-left,
.showcase-badges-right { display: flex; flex-direction: column; gap: 22px; padding: 0 40px; }
.showcase-badges-left .showcase-badge:first-child  { transform: translateY(-55px) translateX(-10px); }
.showcase-badges-left .showcase-badge:nth-child(2) { transform: translateX(-60px); }
.showcase-badges-left .showcase-badge:last-child   { transform: translateY(55px) translateX(-10px); }
.showcase-badges-right .showcase-badge:first-child  { transform: translateY(-55px) translateX(10px); }
.showcase-badges-right .showcase-badge:nth-child(2) { transform: translateX(60px); }
.showcase-badges-right .showcase-badge:last-child   { transform: translateY(55px) translateX(10px); }

.showcase-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  border: 1px solid rgba(59,130,246,0.5);
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(29,78,216,0.4);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.badge-check {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Badge tooltips */
.showcase-badges-left .showcase-badge .badge-description {
  position: absolute;
  right: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: normal;
  white-space: normal;
  width: 220px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  line-height: 1.5;
  pointer-events: none;
}
.showcase-badges-left .showcase-badge .badge-description::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent #1e293b;
}
.showcase-badges-left .showcase-badge:hover .badge-description { opacity:1; visibility:visible; right:calc(100% + 10px); }

.showcase-badges-right .showcase-badge .badge-description {
  position: absolute;
  left: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: normal;
  white-space: normal;
  width: 220px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  line-height: 1.5;
  pointer-events: none;
}
.showcase-badges-right .showcase-badge .badge-description::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent #1e293b transparent transparent;
}
.showcase-badges-right .showcase-badge:hover .badge-description { opacity:1; visibility:visible; left:calc(100% + 10px); }

.showcase-badges-left .showcase-badge:first-child .badge-description  { background:#8b5cf6; }
.showcase-badges-left .showcase-badge:first-child .badge-description::after  { border-left-color:#8b5cf6; }
.showcase-badges-left .showcase-badge:nth-child(2) .badge-description { background:#dc2626; width:200px; }
.showcase-badges-left .showcase-badge:nth-child(2) .badge-description::after { border-left-color:#dc2626; }
.showcase-badges-left .showcase-badge:last-child .badge-description   { background:#10b981; }
.showcase-badges-left .showcase-badge:last-child .badge-description::after   { border-left-color:#10b981; }
.showcase-badges-right .showcase-badge:first-child .badge-description  { background:#8b5cf6; }
.showcase-badges-right .showcase-badge:first-child .badge-description::after  { border-right-color:#8b5cf6; }
.showcase-badges-right .showcase-badge:nth-child(2) .badge-description { background:#dc2626; width:200px; }
.showcase-badges-right .showcase-badge:nth-child(2) .badge-description::after { border-right-color:#dc2626; }
.showcase-badges-right .showcase-badge:last-child .badge-description   { background:#10b981; }
.showcase-badges-right .showcase-badge:last-child .badge-description::after   { border-right-color:#10b981; }

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
#testimonials {
  background: linear-gradient(180deg, rgba(67,97,238,.03) 0%, transparent 100%);
  padding-bottom: 0;
}
.testimonials-slider-container { position:relative; max-width:1500px; margin:0 auto; overflow:hidden; padding:20px 0 60px; }
.testimonials-slider { display:flex; transition:transform 0.5s ease-in-out; gap:0; }
.testi-slide { flex:0 0 100%; display:grid; grid-template-columns:repeat(2,1fr); gap:22px; padding:0 10px; }
.testi-slide .testi-card { height:100%; display:flex; flex-direction:column; }
.testi-slide .testi-card blockquote { flex:1; }
.testi-slide .testi-author { margin-top:auto; }
.testi-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(30,58,138,.07);
  transition: all .3s cubic-bezier(.22,1,.36,1);
}
.testi-card:hover { transform:translateY(-4px); border-color:var(--border-hover); box-shadow:0 16px 40px rgba(67,97,238,.12); }
.stars { color:var(--app-amber); font-size:14px; margin-bottom:16px; letter-spacing:2px; }
.testi-card blockquote { font-size:15px; line-height:1.8; color:var(--gray-400); font-style:italic; margin-bottom:24px; }
.testi-author { display:flex; align-items:center; gap:12px; }
.testi-av {
  width:42px; height:42px; border-radius:12px;
  background:linear-gradient(135deg, var(--app-blue), var(--app-green));
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15px; color:white; flex-shrink:0;
}
.testi-name { font-weight:700; font-size:14px; color:var(--text-primary); }
.testi-role { font-size:12px; color:var(--gray-400); margin-top:2px; }
.slider-dots { display:flex; justify-content:center; gap:12px; margin-top:36px; }
.dot {
  width:10px; height:10px; border-radius:50%; background:var(--gray-400);
  cursor:pointer; transition:all .3s ease; border:none; padding:0;
}
.dot.active { width:28px; border-radius:5px; background:var(--app-blue); }
.dot:hover { background:var(--app-blue); transform:scale(1.2); }

/* ══════════════════════════════════════════
   VIDEOS
══════════════════════════════════════════ */
#videos { background:var(--body-bg); padding:60px 64px 96px; }
.video-tabs {
  display:flex; justify-content:center; align-items:center; gap:0;
  margin-bottom:44px; background:var(--toggle-bg); border:1px solid var(--border);
  border-radius:12px; padding:5px; width:fit-content; margin-left:auto; margin-right:auto;
  max-width: 100%;
}
.vtab {
  padding:10px 32px; border-radius:9px; font-size:14px; font-weight:700;
  cursor:pointer; color:var(--gray-400); transition:all .2s;
  border:none; background:none; font-family:inherit; letter-spacing:.5px;
}
.vtab.on { background:var(--app-blue); color:white; box-shadow:0 4px 16px rgba(67,97,238,.4); }
.video-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.video-card {
  border-radius:16px; overflow:hidden;
  background:rgba(255,255,255,.9); border:1px solid var(--border);
  box-shadow:0 2px 12px rgba(30,58,138,.07);
  transition:all .3s cubic-bezier(.22,1,.36,1);
}
.video-card:hover { transform:translateY(-6px); border-color:var(--border-hover); box-shadow:0 20px 48px rgba(67,97,238,.15); }
.video-thumb {
  position:relative; aspect-ratio:16/9; background:#1a1d2e;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; overflow:hidden;
}
.video-thumb-inner {
  width:100%; height:100%; background:linear-gradient(135deg,#1e293b,#0f172a);
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:12px; position:relative;
}
.video-thumb-inner::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at center, rgba(67,97,238,.15) 0%, transparent 70%);
}
.play-btn {
  width:56px; height:56px; border-radius:50%; background:var(--app-blue);
  display:flex; align-items:center; justify-content:center; font-size:20px;
  box-shadow:0 8px 32px rgba(67,97,238,.5);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  position:relative; z-index:1; color:white;
}
.video-card:hover .play-btn { transform:scale(1.15); box-shadow:0 16px 48px rgba(67,97,238,.6); }
.video-label { font-size:12px; color:var(--gray-400); font-weight:600; position:relative; z-index:1; letter-spacing:.5px; }
.video-info { padding:16px 18px; }
.video-title { font-size:14px; font-weight:700; margin-bottom:6px; line-height:1.4; color:var(--text-primary); }
.video-meta { font-size:12px; color:var(--gray-400); }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; }
.contact-left .section-sub { margin-bottom:44px; }
.c-item { display:flex; align-items:flex-start; gap:14px; margin-bottom:24px; transition:transform .25s; text-decoration:none; color:inherit; }
.c-item:hover { transform:translateX(4px); }
.c-icon {
  width:42px; height:42px; border-radius:12px; flex-shrink:0;
  background:var(--badge-bg); border:1px solid var(--badge-border);
  display:flex; align-items:center; justify-content:center; font-size:17px;
}
.c-text strong { display:block; font-size:14px; font-weight:700; margin-bottom:3px; color:var(--text-primary); }
.c-text span { font-size:13px; color:var(--gray-400); line-height:1.6; }
.social-row { display:flex; gap:10px; margin-top:32px; flex-wrap:wrap; }
.soc-btn {
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.9); border:1px solid var(--border); border-radius:10px; transition:all .25s;
}
.soc-btn img { width:20px; height:20px; }
.soc-btn:hover { border-color:rgba(67,97,238,.4); background:var(--badge-bg); transform:translateY(-3px); box-shadow:0 8px 20px rgba(67,97,238,.2); }
.form-card {
  background:rgba(255,255,255,.9); border:1px solid rgba(30,58,138,.15);
  border-radius:24px; padding:44px;
  box-shadow:0 4px 24px rgba(30,58,138,.1);
}
.form-card h3 { font-size:22px; font-weight:800; margin-bottom:6px; color:var(--text-primary); }
.form-sub { font-size:14px; color:var(--gray-400); margin-bottom:28px; }
.toggle-tabs {
  display:flex; gap:4px; background:var(--toggle-bg); border-radius:10px;
  padding:4px; margin-bottom:28px;
}
.tab-btn {
  flex:1; padding:9px; border-radius:8px; text-align:center;
  font-size:13px; font-weight:700; cursor:pointer; color:var(--gray-400);
  transition:all .2s; border:none; background:none; font-family:inherit;
}
.tab-btn.on { background:var(--app-blue); color:white; }
.frow { margin-bottom:14px; }
label {
  display:block; font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.6px; color:var(--gray-400); margin-bottom:6px;
}
input[type=text],input[type=email],input[type=tel] {
  width:100%; padding:12px 15px;
  background:rgba(255,255,255,.9); border:1px solid rgba(30,58,138,.2);
  border-radius:10px; color:var(--text-primary); font-size:14px;
  font-family:inherit; outline:none; transition:all .2s;
  -webkit-appearance: none;
}
input:focus { border-color:var(--app-sky); background:rgba(58,134,255,.06); box-shadow:0 0 0 3px rgba(58,134,255,.1); }
input::placeholder { color:var(--gray-600); }
.btn-demo {
  width:100%; padding:15px; margin-top:6px; border-radius:12px; border:none;
  cursor:pointer; background:linear-gradient(135deg, var(--app-blue), var(--app-sky));
  color:white; font-size:15px; font-weight:800;
  box-shadow:0 8px 32px rgba(67,97,238,.4);
  transition:all .25s; font-family:inherit; position:relative; overflow:hidden;
  -webkit-appearance: none;
}
.btn-demo::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,.12) 0%,transparent 60%); opacity:0; transition:opacity .25s; }
.btn-demo:hover { transform:translateY(-2px); box-shadow:0 16px 48px rgba(67,97,238,.55); }
.btn-demo:hover::after { opacity:1; }
.app-btns { display:flex; justify-content:center; align-items:center; gap:14px; margin-top:15px; flex-wrap:wrap; }
.app-btns a { display:flex; align-items:center; justify-content:center; height:52px; transition:transform .2s,filter .2s; }
.app-btns a:hover { transform:translateY(-3px); filter:brightness(1.1); }
.app-btns img { height:50px; width:auto; display:block; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background:var(--footer-bg); padding:36px 64px;
  display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--border); flex-wrap:wrap; gap:16px;
}
.f-logo { font-weight:800; font-size:17px; display:flex; align-items:center; gap:8px; color:var(--text-primary); }
.f-copy { font-size:13px; color:var(--gray-400); }
.f-links { display:flex; gap:24px; flex-wrap:wrap; }
.f-links a { font-size:13px; color:var(--gray-400); text-decoration:none; transition:color .2s; }
.f-links a:hover { color:var(--app-blue); }

/* ══════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════ */
.reveal { opacity:0; transform:translateY(32px); transition:opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity:1; transform:none; }
.reveal-r { opacity:0; transform:translateX(32px); transition:opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal-r.in { opacity:1; transform:none; }

.feat-grid .feat-card:nth-child(1){transition-delay:0s}
.feat-grid .feat-card:nth-child(2){transition-delay:.08s}
.feat-grid .feat-card:nth-child(3){transition-delay:.16s}
.feat-grid .feat-card:nth-child(4){transition-delay:.24s}
.feat-grid .feat-card:nth-child(5){transition-delay:.32s}
.feat-grid .feat-card:nth-child(6){transition-delay:.4s}
.feat-grid .feat-card:nth-child(7){transition-delay:.48s}
.feat-grid .feat-card:nth-child(8){transition-delay:.56s}
.feat-grid .feat-card:nth-child(9){transition-delay:.64s}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Device Coverage:
   ≥1400px  → Desktop XL (Zenbook Fold landscape, Nest Hub Max)
   1200–1400px → Desktop L
   1024–1200px → Tablet landscape (iPad Pro, Surface Pro 7)
   900–1024px  → Tablet portrait (iPad Air, Surface Duo)
   768–900px   → Large mobile / small tablet
   600–768px   → Mobile L (Galaxy S20 Ultra, Pixel 7)
   540–600px   → Mobile M (iPhone 12/14, Galaxy A51)
   480–540px   → Mobile S (iPhone XR)
   360–480px   → Mobile XS (iPhone SE, Galaxy S8+)
   <360px      → Mobile XXS (smallest phones)
══════════════════════════════════════════ */

/* ── ≥1400px – Desktop XL ── */
@media (min-width: 1400px) {
  .showcase-badges-left,
  .showcase-badges-right { padding: 0 40px; }
}

/* ── 1200–1399px ── */
@media (max-width: 1399px) {
  .showcase-badges-left,
  .showcase-badges-right { padding: 0 24px; }
}

/* ── ≤1200px ── */
@media (max-width: 1200px) {
  nav { padding: 0 24px; }
  .phone-pill { display: none; }
  .erp-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(30,58,138,.1); }
  .stat-item:nth-child(5) { border-top: 1px solid rgba(30,58,138,.1); }
  .stat-item:nth-child(6) { border-top: 1px solid rgba(30,58,138,.1); border-right: none; }
}

/* ── ≤1024px – Tablet Landscape (iPad Pro, Surface Pro 7) ── */
@media (max-width: 1024px) {
  section { padding: 72px 40px; }
  #home { padding: 0 0 0 40px; }
  .stats-strip { padding: 60px 40px; }
  #app-showcase { padding: 72px 40px; }
  #videos { padding: 60px 40px 72px; }
  footer { padding: 28px 40px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Reset showcase badge transforms on tablet landscape */
  .showcase-badges-left .showcase-badge:first-child,
  .showcase-badges-left .showcase-badge:nth-child(2),
  .showcase-badges-left .showcase-badge:last-child,
  .showcase-badges-right .showcase-badge:first-child,
  .showcase-badges-right .showcase-badge:nth-child(2),
  .showcase-badges-right .showcase-badge:last-child { transform: none; }
  .showcase-badges-left,
  .showcase-badges-right { padding: 0 20px; gap: 14px; }
  .showcase-badge { padding: 12px 20px; font-size: 13px; }
}

/* ── ≤900px – Tablet Portrait + Large Mobile ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none !important; }
  .hamburger { display: flex; }

  .nav-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .btn-login {
    display: inline-block !important;
    padding: 7px 16px;
    font-size: 13px;
  }

  #home {
    grid-template-columns: 1fr;
    padding: 40px 24px 60px;
    min-height: auto;
    text-align: center;
  }
  .hero-left { padding: 20px 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  h1 { margin-top: 0; }
  .hero-right { display: none; }

  .stats-strip { padding: 52px 24px; }
  .stats-heading { margin-bottom: 36px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }

  #about { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; text-align: center; }
  .city-wrap { justify-content: center; }
  .about-kpis { grid-template-columns: repeat(2, 1fr); }

  section { padding: 60px 24px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .erp-grid { grid-template-columns: 1fr 1fr; }

  #app-showcase { padding: 60px 24px; }
  .showcase-inner { flex-direction: column; align-items: center; gap: 32px; padding: 0; }
  .showcase-badges-left,
  .showcase-badges-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 10px;
    width: 100%;
  }
  .showcase-badges-left .showcase-badge,
  .showcase-badges-right .showcase-badge {
    transform: none !important;
    padding: 10px 18px;
    font-size: 12px;
  }
  .showcase-badges-left { order: 1; }
  .showcase-phone-wrap { order: 2; }
  .showcase-badges-right { order: 3; }

  .testi-slide { grid-template-columns: 1fr; gap: 16px; }
  #videos { padding: 60px 24px 72px; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  #contact { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  footer { flex-direction: column; align-items: center; gap: 16px; padding: 28px 24px; text-align: center; }
  .f-links { justify-content: center; }
}

/* ── ≤768px – Galaxy S8+, Pixel 7, Samsung Galaxy A51 ── */
@media (max-width: 768px) {
  .topbar { font-size: 11px; padding: 6px 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(30,58,138,.1); border-top: 1px solid rgba(30,58,138,.1); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid rgba(30,58,138,.1); }
  .stat-item:nth-child(5) { border-right: 1px solid rgba(30,58,138,.1); border-top: 1px solid rgba(30,58,138,.1); }
  .stat-item:nth-child(6) { border-right: none; border-top: 1px solid rgba(30,58,138,.1); }
  .stat-item { padding: 24px 16px; }
  .stat-icon { font-size: 28px; margin-bottom: 10px; }
  .stat-num { font-size: 26px; }
  .stat-desc { font-size: 11px; }

  .feat-grid { grid-template-columns: 1fr; gap: 14px; }
  .feat-card { padding: 22px; text-align: center; }
  .feat-icon { margin: 0 auto 16px; }

  .erp-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 28px 20px; }
  .form-card h3 { font-size: 18px; }
  .tab-btn { font-size: 12px; padding: 8px 6px; }
  .kpi-card { padding: 20px 16px; }
  .kpi-card .kn { font-size: 30px; }
  .video-grid { grid-template-columns: 1fr; gap: 16px; }
  .testi-card { padding: 22px 18px; }
  .testi-card blockquote { font-size: 14px; }
  .showcase-badge { padding: 9px 16px; font-size: 11px; gap: 8px; }
  .badge-check { width: 22px; height: 22px; font-size: 11px; }
  .badge-description { display: none !important; }
  .app-btns { gap: 10px; }
  .app-btns a { height: 44px; }
  .app-btns img { height: 44px; }
}

/* ── ≤600px – iPhone 12/14 Pro, Samsung Galaxy S20 ── */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .erp-grid { grid-template-columns: 1fr; }
  .video-tabs { width: 100%; }
  .vtab { padding: 10px 12px; font-size: 12px; flex: 1; text-align: center; }
  h1 { font-size: clamp(26px, 7vw, 36px); }
}

/* ── ≤540px – iPhone XR, SE 2nd gen ── */
@media (max-width: 540px) {
  h1 { font-size: clamp(24px, 7.5vw, 32px); letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-trust { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .trust-divider { display: none; }
  .badge { font-size: 11px; padding: 5px 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { padding: 40px 16px; }
  .stats-heading { margin-bottom: 28px; }
  section { padding: 48px 16px; }
  #app-showcase { padding: 48px 16px; }
  #videos { padding: 40px 16px 56px; }
  .section-header { margin-bottom: 36px; }
  .section-sub { font-size: 14px; }
  .showcase-badge { padding: 8px 14px; font-size: 11px; }
  .badge-check { width: 18px; height: 18px; font-size: 10px; }
  .showcase-phone { width: 220px; height: 440px; }
  .showcase-phone-wrap { width: 220px; }
  .form-card { padding: 22px 14px; }
  .f-links { gap: 12px; }
  .f-links a { font-size: 12px; }
  footer { padding: 20px 16px; }
  .testi-card { padding: 18px 14px; }
  .slider-dots { margin-top: 24px; }
}

/* ── ≤480px – iPhone SE (375px wide), Galaxy S8+ ── */
@media (max-width: 480px) {
  h1 { font-size: clamp(22px, 8vw, 28px); }
  .hero-sub { font-size: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 18px 12px; }
  .stat-icon { font-size: 24px; }
  .stat-num { font-size: 22px; }
  .stat-desc { font-size: 10px; max-width: 100px; }
  .about-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-card { padding: 16px 12px; border-radius: 14px; }
  .kpi-card .kn { font-size: 26px; }
  .kpi-card .kl { font-size: 11px; }
  .feat-grid { gap: 12px; }
  .feat-card { padding: 18px 16px; }
  .feat-card h3 { font-size: 15px; }
  .erp-grid { gap: 12px; }
  .erp-card { padding: 18px 16px; }
  .video-card { border-radius: 12px; }
  .play-btn { width: 44px; height: 44px; font-size: 16px; }
  .form-card { border-radius: 18px; }
  .city-chip { font-size: 11px; padding: 4px 10px; }
  .c-icon { width: 36px; height: 36px; font-size: 15px; }
  .c-text strong { font-size: 13px; }
  .c-text span { font-size: 12px; }
  .soc-btn { width: 36px; height: 36px; }
  .soc-btn img { width: 16px; height: 16px; }
  .mobile-nav-links a { font-size: 15px; padding: 10px 14px; }
  .mobile-login { font-size: 14px; padding: 12px; }
  .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 14px; }
}

/* ── ≤375px – iPhone SE 1st gen, narrow phones ── */
@media (max-width: 375px) {
  nav { padding: 0 14px; height: 60px; }
  .mobile-menu { top: 60px; }
  .mobile-menu.at-top {
  top: 100px;
  }
  .logo { font-size: 17px; }
  .logo-img { width: 32px; height: 32px; }
  .btn-login { padding: 6px 14px; font-size: 12px; }
  .badge { font-size: 10px; padding: 4px 12px; }
  h1 { font-size: clamp(20px, 8vw, 24px); }
  .trust-num { font-size: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 20px; }
  .stat-icon { font-size: 22px; }
  .kpi-card .kn { font-size: 24px; }
  .showcase-phone { width: 200px; height: 400px; }
  .showcase-phone-wrap { width: 200px; }
  .form-card h3 { font-size: 16px; }
  .btn-demo { font-size: 14px; padding: 13px; }
  .f-logo { font-size: 15px; }
  section { padding: 40px 14px; }
  #app-showcase { padding: 40px 14px; }
  #videos { padding: 36px 14px 48px; }
  footer { padding: 18px 14px; }
  .erp-grid { grid-template-columns: 1fr; }
  .feat-card { padding: 16px 14px; }
}

/* ── ≤320px – Very small screens ── */
@media (max-width: 320px) {
  h1 { font-size: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 18px; }
  .topbar { font-size: 10px; }
  .mobile-nav-links a { font-size: 14px; padding: 9px 12px; }
}

/* ══════════════════════════════════════════
   SPECIFIC DEVICE FIXES
══════════════════════════════════════════ */

/* Galaxy Z Fold 5 – Unfolded (≈884px) */
@media (min-width: 820px) and (max-width: 900px) {
  #home {
    grid-template-columns: 1fr;
    padding: 40px 40px 60px;
    text-align: left;
  }
  .hero-actions { justify-content: flex-start; }
  .hero-trust { justify-content: flex-start; }
  .hero-sub { margin-left: 0; }
  .hero-right { display: none; }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .erp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Surface Duo (540px each pane) */
@media (min-width: 540px) and (max-width: 720px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .erp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* Nest Hub (1024×600) */
@media (min-width: 1000px) and (max-width: 1024px) and (max-height: 640px) {
  #home { min-height: auto; padding: 30px 40px 40px; }
  nav { height: 58px; }
  .hero-left { padding: 30px 0; }
  h1 { font-size: 36px; }
  .hero-right { display: none; }
}

/* Nest Hub Max (1280×800) */
@media (min-width: 1200px) and (max-width: 1280px) and (max-height: 820px) {
  #home { min-height: auto; }
}

/* iPad Mini / Air Portrait (768px) */
@media (min-width: 744px) and (max-width: 820px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .erp-grid { grid-template-columns: repeat(2, 1fr); }
  #home { padding: 40px 32px 60px; }
}

/* ══════════════════════════════════════════
   TOUCH IMPROVEMENTS
══════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .feat-card:hover,
  .kpi-card:hover,
  .erp-card:hover,
  .testi-card:hover,
  .video-card:hover,
  .stat-item:hover,
  .city-chip:hover,
  .soc-btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-login:hover,
  .btn-demo:hover,
  .c-item:hover,
  .view-file-link:hover { transform: none; }
  .feat-card:hover { box-shadow: 0 8px 24px rgba(67,97,238,.1); }
  /* Larger touch targets */
  .hamburger { width: 44px; height: 44px; }
  .phone-dot { width: 10px; height: 10px; padding: 5px; box-sizing: content-box; }
  .dot { width: 14px; height: 14px; padding: 4px; box-sizing: content-box; }
  .vtab { padding: 12px 24px; }
  .soc-btn { width: 44px; height: 44px; }
  .btn-primary, .btn-ghost { padding: 14px 24px; }
  input[type=text], input[type=email], input[type=tel] { padding: 14px 15px; font-size: 16px; } /* Prevents iOS zoom */
}

/* ══════════════════════════════════════════
   PRINT
══════════════════════════════════════════ */
@media print {
  nav, .topbar, .hamburger, .mobile-menu, .hero-right,
  .stats-strip, #app-showcase, #videos, .btn-primary,
  .btn-ghost, .btn-login, .btn-demo, .app-btns { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  #home { grid-template-columns: 1fr; min-height: auto; padding: 20px; }
  section { padding: 20px; break-inside: avoid; }
  h1 { font-size: 28pt; }
  h2 { font-size: 20pt; }
}

