/*
  MeshBo Solutions Limited — Redesigned Stylesheet v2
  Dark-first. Single theme toggle (shows next state).
  Mobile: fully centered, responsive layout.
*/

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:    #07111D;
  --bg2:   #0E1D2E;
  --surf:  #142030;
  --surf2: #1A2B3E;
  --bdr:   rgba(0,210,175,.14);
  --ac:    #00D2AF;
  --acdim: rgba(0,210,175,.11);
  --bl:    #4C8BF5;
  --bldim: rgba(76,139,245,.11);
  --fg:    #E8F3FF;
  --fg2:   #95AFBF;
  --fgm:   #4E6B7C;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:    #F0F6FB;
  --bg2:   #E3EEF7;
  --surf:  #FFFFFF;
  --surf2: #EBF3FA;
  --bdr:   rgba(0,140,115,.18);
  --ac:    #00876F;
  --acdim: rgba(0,135,111,.09);
  --bl:    #2462CF;
  --bldim: rgba(36,98,207,.09);
  --fg:    #091929;
  --fg2:   #3A5568;
  --fgm:   #7090A2;
  color-scheme: light;
}

/* ── BASE ───────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

.inner {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ── NAV ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 200;
  border-bottom: 1px solid var(--bdr);
  background: rgba(7,17,29,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background .3s;
}
:root[data-theme="light"] .nav {
  background: rgba(240,246,251,.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px max(24px, env(safe-area-inset-left, 0px));
  max-width: 1160px;
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 34px; height: 34px;
  background: var(--ac);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .3s;
}
.logo-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 18px;
  color: var(--fg); letter-spacing: -.4px; line-height: 1;
}
.logo-wordmark em { font-style: normal; color: var(--ac); }
.logo-sub { font-size: 10px; color: var(--fgm); margin-top: 1px; letter-spacing: .2px; }

.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--fg2);
  transition: color .18s;
  letter-spacing: .1px;
}
.nav-links a:hover { color: var(--fg); }

.nav-end { display: flex; align-items: center; gap: 8px; }

/* ── BUTTONS ────────────────────────────────────────── */

/* Toggle button — shows next state as label */
.btn-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--bdr);
  background: var(--surf);
  color: var(--fg2);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .2px;
  flex-shrink: 0;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.btn-toggle:hover { background: var(--surf2); color: var(--fg); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ac); color: #07111D;
  border: none;
  padding: 9px 18px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: opacity .18s, transform .18s;
  letter-spacing: .1px;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-primary.btn-lg { padding: 12px 26px; font-size: 15px; border-radius: 10px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surf); color: var(--fg);
  border: 1px solid var(--bdr);
  padding: 9px 18px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .18s, transform .18s;
}
.btn-ghost:hover { background: var(--surf2); transform: translateY(-1px); }
.btn-ghost.btn-lg { padding: 12px 26px; font-size: 15px; border-radius: 10px; }

/* ── HAMBURGER ──────────────────────────────────────── */
.menu-btn {
  display: none;
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 1px solid var(--bdr);
  background: var(--surf);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}
.menu-btn span {
  display: block;
  width: 17px; height: 2px;
  background: var(--fg2);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ─────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;
  overflow-y: auto;
}
.mobile-nav.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-top {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top, 20px)) max(24px, env(safe-area-inset-left, 0px)) 16px;
  border-bottom: 1px solid var(--bdr);
}
.mobile-nav-top .menu-btn { display: flex; }

.mobile-nav-links { flex: 1; display: flex; flex-direction: column; }
.mobile-nav-links a {
  display: flex; align-items: center;
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--fg);
  padding: 18px max(24px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--bdr);
  transition: color .18s, background .18s;
}
.mobile-nav-links a:hover { color: var(--ac); background: var(--acdim); }

.mobile-nav-footer {
  padding: 24px max(24px, env(safe-area-inset-left, 0px));
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--bdr);
}
.mobile-toggles { display: flex; gap: 8px; }
.mobile-toggles .btn-toggle { flex: 1; justify-content: center; }
.mobile-demo-btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; border-radius: 10px; }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  padding-block: 80px;
  overflow: hidden;
}
#mesh-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 70% 50%, rgba(0,210,175,.07) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 20% 20%, rgba(76,139,245,.05) 0%, transparent 60%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 52px; align-items: center;
  max-width: 1160px; margin: 0 auto; width: 100%;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--acdim); border: 1px solid var(--bdr); color: var(--ac);
  font-size: 13px; font-weight: 500;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 26px;
}
.pill-dot {
  width: 6px; height: 6px;
  background: var(--ac); border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -2px; margin-bottom: 20px;
  text-wrap: balance;
}
.hero-h1 .hi { color: var(--ac); }

.hero-lead {
  font-size: 18px; color: var(--fg2);
  line-height: 1.65; max-width: 460px; margin-bottom: 36px;
}

.hero-btns {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px;
}

.hero-metrics {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--bdr);
}
.metric-item { display: flex; flex-direction: column; gap: 4px; padding-right: 32px; }
.metric-div { width: 1px; height: 36px; background: var(--bdr); margin-right: 32px; }
.metric-num {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--fg); line-height: 1;
}
.metric-lbl { font-size: 12px; color: var(--fgm); font-weight: 500; }

/* hero stack cards */
.hero-stack { display: flex; flex-direction: column; gap: 14px; }

.hcard {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: 14px;
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  transition: transform .22s, border-color .22s;
}
.hcard:hover { transform: translateY(-3px); border-color: var(--ac); }
.hcard--muted { opacity: .5; }

.hcard-ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 20px; flex-shrink: 0;
}
.ico-teal { background: var(--acdim); }
.ico-blue { background: var(--bldim); }
.ico-grey { background: rgba(78,107,124,.1); }

.hcard-body { flex: 1; min-width: 0; }
.hcard-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.hcard-sub { font-size: 12px; color: var(--fg2); }

.hcard-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  white-space: nowrap; flex-shrink: 0;
}
.tag-live { background: var(--acdim); color: var(--ac); }
.tag-soon { background: rgba(78,107,124,.12); color: var(--fgm); }

/* ── SECTION COMMONS ────────────────────────────────── */
.sec { padding-block: 96px; }

.sec-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--ac); margin-bottom: 10px; text-transform: uppercase;
}
.sec-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 800; letter-spacing: -1.2px;
  line-height: 1.12; margin-bottom: 14px; text-wrap: balance;
}
.sec-lead {
  font-size: 17px; color: var(--fg2);
  max-width: 500px; line-height: 1.65; margin-bottom: 52px;
}

/* ── ABOUT ──────────────────────────────────────────── */
.about-sec { padding-block: 96px; background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}

.about-body {
  font-size: 16px; color: var(--fg2); line-height: 1.75;
  margin-bottom: 16px; max-width: 480px;
}

.about-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 28px; margin-top: 12px;
  border-top: 1px solid var(--bdr);
}
.astat-num {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  color: var(--ac); line-height: 1; margin-bottom: 4px;
}
.astat-lbl { font-size: 12px; color: var(--fgm); font-weight: 500; }

.about-card-stack { display: flex; flex-direction: column; gap: 16px; }

.acard {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: 18px;
  padding: 28px;
}
.acard--mission { border-color: rgba(0,210,175,.22); }
.acard--vision  { border-color: rgba(76,139,245,.22); }
.acard-ico { font-size: 28px; margin-bottom: 14px; }
.acard-h {
  font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700;
  margin-bottom: 10px;
}
.acard-p { font-size: 14px; color: var(--fg2); line-height: 1.7; }

/* ── PRODUCTS ───────────────────────────────────────── */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pcard {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: 20px;
  padding: 30px 28px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.pcard:hover:not(.pcard--soon) {
  border-color: var(--ac);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.pstripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.ps-teal { background: linear-gradient(90deg, #00D2AF, #00A8E8); }
.ps-blue { background: linear-gradient(90deg, #4C8BF5, #9B59B6); }
.ps-mute { background: linear-gradient(90deg, #2D4458, #1A2B3E); }

.pcard-ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 20px;
}

.pcard-name { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 3px; }
.pcard-tag-line { font-size: 12px; color: var(--fgm); margin-bottom: 14px; letter-spacing: .1px; }
.pcard-desc { font-size: 15px; color: var(--fg2); line-height: 1.65; margin-bottom: 22px; flex: 1; }

.pfeats { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.pfeats li { font-size: 14px; color: var(--fg2); display: flex; align-items: baseline; gap: 10px; }
.fdot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.fd-t { background: var(--ac); }
.fd-b { background: var(--bl); }

.pcard-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}

.plink {
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap .18s;
}
.plink:hover { gap: 8px; }
.plink-t { color: var(--ac); }
.plink-b { color: var(--bl); }

.pcard-demo-btn {
  margin-left: auto;
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 7px;
  background: var(--acdim); color: var(--ac);
  border: 1px solid var(--bdr); cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .18s;
}
.pcard-demo-btn:hover { background: rgba(0,210,175,.18); }
.pcard-demo-btn--blue { background: var(--bldim); color: var(--bl); }
.pcard-demo-btn--blue:hover { background: rgba(76,139,245,.18); }

.pcard--soon { opacity: .6; }
.soon-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: var(--surf2); color: var(--fgm);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}

.pcard-notify {
  font-size: 13px; color: var(--fgm); margin-top: auto;
  font-weight: 500;
}

/* ── WHY ────────────────────────────────────────────── */
.why-sec { background: var(--bg2); padding-block: 96px; }

.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wcard {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: 16px;
  padding: 30px;
  transition: border-color .22s, transform .22s;
}
.wcard:hover { border-color: var(--bdr); transform: translateY(-3px); }
.wico { font-size: 30px; margin-bottom: 16px; }
.wh3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.wp { font-size: 14px; color: var(--fg2); line-height: 1.7; }

/* ── STATS ──────────────────────────────────────────── */
.stats-sec { padding-block: 64px; }
.sbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 18px; border: 1px solid var(--bdr);
  background: var(--bdr); overflow: hidden; gap: 1px;
}
.scell { background: var(--surf); padding: 36px 24px; text-align: center; }
.snum {
  font-family: 'Syne', sans-serif; font-size: 38px; font-weight: 800;
  color: var(--ac); font-variant-numeric: tabular-nums;
  line-height: 1; margin-bottom: 8px;
}
.slbl { font-size: 13px; color: var(--fg2); font-weight: 500; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-sec { background: var(--bg2); }

.faq-grid {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--bdr); border-radius: 16px;
  overflow: hidden;
  max-width: 800px;
}

.faq-item { border-bottom: 1px solid var(--bdr); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--fg); background: transparent; border: none; cursor: pointer;
  text-align: left;
  transition: background .18s;
}
.faq-q:hover { background: var(--surf); }
.faq-chevron {
  flex-shrink: 0; color: var(--fgm);
  transition: transform .22s ease;
}
.faq-item[data-open="true"] .faq-chevron { transform: rotate(180deg); }
.faq-item[data-open="true"] .faq-q { background: var(--surf); color: var(--ac); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  background: var(--surf);
}
.faq-item[data-open="true"] .faq-a { max-height: 300px; }
.faq-a p {
  font-size: 14px; color: var(--fg2); line-height: 1.7;
  padding: 0 24px 20px;
}

/* ── CONTACT ────────────────────────────────────────── */
.contact-sec { padding-block: 96px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}

.contact-lead {
  font-size: 16px; color: var(--fg2); line-height: 1.7;
  max-width: 400px; margin-bottom: 36px;
}

.contact-info-list { display: flex; flex-direction: column; gap: 12px; }
.cinfo-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surf); border: 1px solid var(--bdr); border-radius: 12px;
  padding: 16px 18px;
  transition: border-color .18s, transform .18s;
}
.cinfo-item:hover { border-color: var(--ac); transform: translateX(4px); }
.cinfo-ico { font-size: 20px; flex-shrink: 0; }
.cinfo-label { font-size: 11px; font-weight: 600; color: var(--fgm); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.cinfo-val { font-size: 14px; color: var(--fg); font-weight: 500; }

.contact-form-card {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: 20px;
  padding: 32px 28px;
}
.cfcard-h {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800;
  margin-bottom: 6px;
}
.cfcard-sub { font-size: 13px; color: var(--fg2); margin-bottom: 24px; }

.cform-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }

/* ── FIELD ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label { font-size: 13px; font-weight: 600; color: var(--fg2); }
.field label .req { color: var(--ac); margin-left: 3px; }

.field input,
.field select,
.field textarea {
  background: var(--bg); border: 1px solid var(--bdr); border-radius: 10px;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--fg); outline: none; transition: border-color .18s; width: 100%;
}
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea {
  background: var(--bg2);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fgm); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--acdim); }

.field select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234E6B7C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 100px; }

.form-submit {
  background: var(--ac); color: #07111D; border: none;
  width: 100%; padding: 13px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .18s, transform .18s;
}
.form-submit:hover { opacity: .88; transform: translateY(-1px); }

.contact-success { text-align: center; padding: 20px 0; }
.modal-success { text-align: center; padding: 20px 0; }
.success-ico { font-size: 52px; margin-bottom: 16px; }
.success-h { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.success-p { font-size: 14px; color: var(--fg2); line-height: 1.6; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--bdr); padding-block: 56px;
}
.foot-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap; gap: 40px;
  max-width: 1160px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.foot-brand { display: flex; flex-direction: column; gap: 10px; max-width: 240px; }
.foot-copy { font-size: 13px; color: var(--fgm); line-height: 1.6; }

.foot-social { display: flex; gap: 8px; margin-top: 4px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--bdr); background: var(--surf);
  color: var(--fgm); display: grid; place-items: center;
  transition: color .18s, border-color .18s, background .18s;
}
.social-btn:hover { color: var(--ac); border-color: var(--ac); background: var(--acdim); }

.foot-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col-h {
  font-size: 12px; font-weight: 700; color: var(--fg);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 2px;
}
.foot-col a { font-size: 13px; color: var(--fgm); transition: color .18s; }
.foot-col a:hover { color: var(--fg2); }

/* ── MODAL ──────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px max(20px, env(safe-area-inset-left, 0px));
}
.modal[hidden] { display: none; }

.modal-bd {
  position: absolute; inset: 0;
  background: rgba(5,12,22,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-card {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--bdr); border-radius: 20px;
  padding: 36px 32px; width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--bdr); background: var(--surf);
  color: var(--fg2); cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s, color .18s;
}
.modal-close:hover { background: var(--surf2); color: var(--fg); }

.modal-header { margin-bottom: 24px; }
.modal-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--fg2); line-height: 1.5; }

.form-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }

/* ── WHATSAPP FLOAT ─────────────────────────────────── */
.wa-float {
  position: fixed; bottom: max(24px, env(safe-area-inset-bottom, 24px)); right: 24px;
  z-index: 100;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .22s, box-shadow .22s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */

/* ── ≤1024px ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 360px; gap: 36px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .wgrid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .contact-grid { gap: 40px; }
}

/* ── ≤900px ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links   { display: none; }
  .menu-btn    { display: flex; }
  #langBtn     { display: none; }
  #themeBtn    { display: none; }
  #navDemoBtn  { display: none; }

  .hero-inner {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 0 !important;
  }
  .hero-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }
  .hero-lead { text-align: center !important; max-width: 100% !important; }
  .hero-h1   { text-align: center !important; }
  .hero-pill { align-self: center; }
  .hero-stack { display: none !important; }
  .hero { min-height: auto; }
  .hero-btns {
    justify-content: center !important;
    width: 100%;
  }
  .hero-metrics {
    justify-content: center !important;
    border-top: 1px solid var(--bdr);
    width: 100%;
    gap: 0;
  }
  .metric-item { padding: 0 20px; align-items: center; }

  .about-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }

  /* section headings centered on mobile */
  .sec-label { text-align: center; }
  .sec-h2    { text-align: center; }
  .sec-lead  { text-align: center; margin-left: auto; margin-right: auto; }
  .about-stats { justify-content: center; }
  .about-body { text-align: center; }
  .contact-lead { text-align: center; margin-left: auto; margin-right: auto; }
  .faq-grid  { max-width: 100%; }
}

/* ── ≤768px ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sec          { padding-block: 72px; }
  .why-sec      { padding-block: 72px; }
  .stats-sec    { padding-block: 56px; }
  .about-sec    { padding-block: 72px; }
  .contact-sec  { padding-block: 72px; }
  .faq-sec      { padding-block: 72px; }

  .hero { padding-block: 64px; }
  .hero-lead    { font-size: 17px; }
  .hero-metrics { gap: 0; }
  .metric-item  { padding: 0 20px; }

  .sbar         { grid-template-columns: repeat(2, 1fr); }
  .scell        { padding: 28px 20px; }
  .snum         { font-size: 32px; }

  .sec-lead     { font-size: 16px; margin-bottom: 40px; }

  .wgrid        { grid-template-columns: 1fr 1fr; }

  .foot-inner   { flex-direction: column; align-items: flex-start; }
  .foot-brand   { max-width: 100%; }
}

/* ── ≤640px ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .sec          { padding-block: 60px; }
  .why-sec      { padding-block: 60px; }
  .about-sec    { padding-block: 60px; }
  .contact-sec  { padding-block: 60px; }
  .faq-sec      { padding-block: 60px; }
  .stats-sec    { padding-block: 48px; }

  .hero         { padding-block: 52px; min-height: auto; }
  .hero-pill    { font-size: 12px; padding: 4px 12px; max-width: 90vw; }
  .hero-h1      { letter-spacing: -1.2px; margin-bottom: 16px; }
  .hero-lead    { font-size: 16px; margin-bottom: 28px; }
  .hero-btns    { flex-direction: column; width: 100%; }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { width: 100%; justify-content: center; }

  .pgrid        { grid-template-columns: 1fr; }
  .wgrid        { grid-template-columns: 1fr; }

  .wcard        { padding: 24px; }
  .pcard        { padding: 26px 22px; }

  .about-stats  { gap: 20px; }

  .faq-q        { font-size: 14px; padding: 16px 18px; }
  .faq-a p      { padding: 0 18px 16px; }

  .contact-form-card { padding: 24px 20px; }

  .field-row    { grid-template-columns: 1fr; }
  .modal-card   { padding: 28px 22px; }

  .foot-nav     { gap: 32px; }
}

/* ── ≤480px ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .nav-inner    { padding-top: 10px; padding-bottom: 10px; }
  .logo-wordmark { font-size: 16px; }
  .logo-sub     { display: none; }
  .btn-toggle   { font-size: 11px; padding: 0 9px; }

  .hero         { padding-block: 44px; }
  .hero-pill    { white-space: normal; text-align: center; }
  .hero-metrics { flex-direction: row; justify-content: space-around; }
  .metric-div   { display: none; }
  .metric-item  { padding: 0; align-items: center; }

  .snum         { font-size: 28px; }
  .slbl         { font-size: 12px; }
  .scell        { padding: 22px 12px; }

  .modal-card   { padding: 24px 18px; border-radius: 16px; }
  .modal-title  { font-size: 20px; }

  .pcard        { padding: 22px 18px; border-radius: 16px; }
  .pcard-name   { font-size: 20px; }

  .foot-nav     { flex-direction: column; gap: 24px; }
  .wa-float     { width: 48px; height: 48px; right: 16px; }
}

/* ── ≤360px ──────────────────────────────────────────── */
@media (max-width: 360px) {
  .hero-h1      { letter-spacing: -0.8px; }
  .metric-num   { font-size: 18px; }
  .snum         { font-size: 24px; }
  .wh3          { font-size: 16px; }
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ── MOBILE CENTERING FIX ── */
@media (max-width: 900px) {

  /* About section */
  .about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-body {
    text-align: center;
  }
  .about-stats {
    justify-content: center;
  }
  .astat {
    text-align: center;
  }

  /* Why section */
  .wcard {
    text-align: center;
  }
  .wico {
    text-align: center;
  }

  /* Products section */
  .pcard {
    text-align: center;
  }
  .pcard-ico {
    margin-left: auto;
    margin-right: auto;
  }
  .pfeats {
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .pcard-actions {
    justify-content: center;
  }

  /* Contact section */
  .contact-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contact-info-list {
    width: 100%;
  }

  /* Footer */
  .foot-inner {
    align-items: center;
    text-align: center;
  }
  .foot-brand {
    align-items: center;
  }
  .foot-social {
    justify-content: center;
  }
  .foot-nav {
    justify-content: center;
    text-align: center;
  }
  .foot-col {
    align-items: center;
  }

  /* About cards */
  .about-card-stack {
    width: 100%;
  }
  .acard {
    text-align: center;
  }
}

/* ── 640px এর নিচে extra fix ── */
@media (max-width: 640px) {
  .pcard-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .pcard-demo-btn {
    width: 100%;
    text-align: center;
  }
  .contact-form-card {
    text-align: left;
  }
  .cinfo-item {
    text-align: left;
  }
}