/* ==========================================================
   EXPLOREBITS: Design System
   Product-first software company · Bangladesh
   ========================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-bengali-bengali-400-normal.woff2') format('woff2'),
       url('/assets/fonts/NotoSansBengali-Regular.ttf') format('truetype');
  unicode-range: U+0980-09FF;
}

@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-bengali-bengali-500-normal.woff2') format('woff2'),
       url('/assets/fonts/NotoSansBengali-Regular.ttf') format('truetype');
  unicode-range: U+0980-09FF;
}

@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-bengali-bengali-600-normal.woff2') format('woff2'),
       url('/assets/fonts/NotoSansBengali-Regular.ttf') format('truetype');
  unicode-range: U+0980-09FF;
}

@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-bengali-bengali-700-normal.woff2') format('woff2'),
       url('/assets/fonts/NotoSansBengali-Regular.ttf') format('truetype');
  unicode-range: U+0980-09FF;
}

/* --- Tokens --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0891b2;
  --secondary-dark: #0e7490;
  --secondary-light: #cffafe;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-lighter: #1e293b;

  --text-heading: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-on-dark: #e2e8f0;
  --text-on-dark-muted: #94a3b8;

  --border: #e2e8f0;
  --border-dark: rgba(255,255,255,0.08);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 8px 24px rgba(37,99,235,0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 99px;

  --font-display: 'Plus Jakarta Sans', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1600px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(3.25rem, 5.5vw, 4.75rem);
  --card-pad: clamp(1.15rem, 1.6vw, 1.65rem);
  --grid-gap: clamp(1rem, 1.8vw, 1.5rem);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; min-height: 100vh; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}
main { width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text-heading); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul,ol { list-style: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* --- Animations --- */
.anim {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.anim.visible { opacity: 1; transform: translateY(0); }

/* --- Gradient Text --- */
.grad-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.3s var(--ease);
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,0.25); }
.btn-outline {
  background: transparent; color: var(--text-heading);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--bg-card); border-color: var(--primary); color: var(--primary); }
.btn-outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.btn-lg { padding: 0.9rem 1.85rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* --- Badge / Pill --- */
.badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.badge-blue { background: var(--primary-light); color: var(--primary-dark); }
.badge-teal { background: var(--secondary-light); color: var(--secondary-dark); }
.badge-dark { background: rgba(255,255,255,0.06); color: var(--text-on-dark); border: 1px solid var(--border-dark); }
.badge-coming { background: #fef3c7; color: #92400e; }
.badge-live { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-preview { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; display: inline-flex; align-items: center; gap: 0.3em; }
.badge-preview svg { width: 0.85em; height: 0.85em; }


/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: padding 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { padding: 0.5rem 0; background: rgba(15,23,42,0.96); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-logo { height: 24px; width: auto; }
.nav-brand-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.nav-links { display: flex; gap: clamp(1rem, 1.8vw, 1.75rem); }
.nav-links a { color: var(--text-on-dark-muted); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-drawer-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.nav-phone { color: var(--text-on-dark-muted); font-size: 0.82rem; font-weight: 500; }
.nav-phone:hover { color: #fff; }

/* Hamburger */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 26px; height: 20px; position: relative; z-index: 1001;
}
.mobile-toggle span {
  display: block; width: 100%; height: 2px; background: #fff;
  position: absolute; left: 0; transition: all 0.3s var(--ease);
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }
.mobile-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
body.nav-open { overflow: hidden; }

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


/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 740px);
  display: flex; align-items: center;
  padding: clamp(5.5rem, 10vw, 6.75rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--bg-dark); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; mix-blend-mode: luminosity; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.97) 0%, rgba(15,23,42,0.75) 50%, rgba(15,23,42,0.9) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  color: #fff; letter-spacing: -0.03em; margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  color: var(--text-on-dark-muted); margin-bottom: 1.75rem;
  line-height: 1.7; max-width: 36rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; min-width: 0; }
.hero-visual-frame {
  width: 100%; max-width: 520px; padding: 3px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(37,99,235,0.4), rgba(8,145,178,0.2));
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.hero-visual-frame img {
  width: 100%; border-radius: calc(var(--radius-xl) - 3px);
  aspect-ratio: 10 / 7; object-fit: cover;
}


/* ==========================================================
   SECTIONS
   ========================================================== */
.section { width: 100%; padding: var(--section-y) 0; background: var(--bg-card); }
.section-compact { padding-top: clamp(1.75rem, 3vw, 2.5rem); padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.section-compact-top { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.section-muted {
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-soft { background: #f1f5f9; }
.grid-center { text-align: center; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.badge-slot { margin-bottom: 0.45rem; display: inline-block; }

/* Social Proof Bar */
.social-proof-bar {
  background: var(--bg-dark-lighter);
  border-bottom: 1px solid var(--border-dark);
  padding: 1.25rem 0;
}
.proof-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem);
}
.proof-item {
  color: var(--text-on-dark-muted); font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.4rem;
}
.proof-item strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }

/* Client Logos Strip */
.client-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border-dark);
}
.client-logo-item {
  background: white; padding: 8px 16px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 12px;
  filter: grayscale(100%); opacity: 0.9;
  transition: all 0.3s var(--ease);
}
.client-logo-item:hover { filter: grayscale(0%); opacity: 1; }
.client-logo-item img {
  height: 44px; width: auto; object-fit: contain;
}
.client-text {
  display: flex; flex-direction: column; justify-content: center;
}
.client-name {
  font-size: 1.05rem; font-weight: 800; color: var(--text-heading);
  letter-spacing: -0.02em; white-space: nowrap; line-height: 1.1;
}
.client-category {
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem;
}
.client-anon {
  font-size: 0.9rem; font-weight: 600; color: var(--text-on-dark-muted);
  padding: 0.6rem 1.25rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-dark);
  display: flex; align-items: center; gap: 0.4rem;
}

/* Process / FAQ helpers used on services */
.process-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--card-pad);
}
.process-card h3,
.process-card h4 { color: var(--primary); margin-bottom: 0.4rem; font-size: 1.1rem; }
.process-card p { margin: 0; color: var(--text-body); font-size: 0.9rem; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.faq-card {
  background: var(--bg-dark-lighter); border: 1px solid #334155;
  border-radius: var(--radius-lg); padding: var(--card-pad);
}
.faq-card h3,
.faq-card h4 { margin-bottom: 0.65rem; color: #fff; font-size: 1.05rem; }
.faq-card p { color: var(--text-on-dark-muted); margin: 0; font-size: 0.9rem; }
.faq-card-wide { grid-column: 1 / -1; }
.client-line {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem;
}
.story-image {
  width: 100%; border-radius: var(--radius-lg); object-fit: cover;
  aspect-ratio: 4 / 3;
}
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--text-on-dark-muted); }

.section-header { text-align: center; max-width: 42rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-header .badge { margin-bottom: 0.65rem; }
.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  margin-bottom: 0.65rem; letter-spacing: -0.02em;
}
.section-header p { font-size: clamp(0.95rem, 1.3vw, 1.05rem); }

/* Category pills row */
.category-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.category-pill {
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; cursor: default;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-body); transition: all 0.2s;
}
.category-pill:hover { border-color: var(--primary); color: var(--primary); }


/* ==========================================================
   CARDS
   ========================================================== */

/* Product Card: 4-up on wide desktops for featured sets */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--card-pad);
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  min-width: 0;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
}
.product-card-header {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
}
.product-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-title-link:hover h3 {
  color: var(--primary);
}
.product-card-header h3 {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.product-badge-row { margin-bottom: 0.65rem; }
.product-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.7rem; flex-shrink: 0;
  transition: transform 0.25s var(--ease);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.product-icon img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
}
.product-card-header .product-icon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0;
}
.product-card-header .product-icon img { border-radius: 11px; }
.product-card:hover .product-icon {
  transform: translateY(-2px) scale(1.05);
}
.product-preview-img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-md); margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease);
}
.product-card:hover .product-preview-img {
  transform: scale(1.02);
}

.product-card h3 { font-size: 1.1rem; margin-bottom: 0; }
.product-card .product-desc { font-size: 0.88rem; color: var(--text-muted); flex-grow: 1; }
.product-features {
  list-style: none; padding: 0; margin: 0.75rem 0 0 0;
  display: flex; flex-direction: column; gap: 0.4rem;
  border-top: 1px dashed var(--border); padding-top: 0.75rem;
}
.product-features li {
  font-size: 0.82rem; color: var(--text-body);
  position: relative; padding-left: 1.1rem; line-height: 1.35;
}
.product-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 700; font-size: 0.78rem;
}

.product-card-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.product-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.product-card-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* --- Product Card as direct navigation trigger --- */
.product-card[data-preview] {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card[data-preview]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}
.product-card[data-preview]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Image zoom cursor cue */
.product-card .product-preview-img {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.product-card .product-preview-img:hover {
  opacity: 0.95;
}

/* --- Pure Image Zoom Lightbox (Zero Clipping & Full Resolution) --- */
.product-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.product-modal.open { display: flex; }
.product-modal-backdrop {
  position: absolute; inset: 0; background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
}
.product-modal-panel {
  position: relative; z-index: 1; width: 100%; max-width: 1280px;
  background: transparent; border: none; box-shadow: none;
  overflow: visible; display: flex; flex-direction: column; align-items: center;
}
.product-modal-close {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 30;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.75); color: #ffffff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.product-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  transform: scale(1.1);
}

.product-modal-body {
  width: 100%; display: flex; justify-content: center;
}
.minimal-zoom-wrapper {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; cursor: zoom-out;
}
.minimal-zoom-content {
  display: flex; flex-direction: column; align-items: center;
  cursor: default; max-width: 95vw;
}
.minimal-zoom-img {
  max-width: 100%;
  max-height: calc(85vh - 70px);
  width: auto;
  height: auto;
  object-fit: contain !important;
  display: block;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.minimal-zoom-bar {
  margin-top: 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  padding: 0.45rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.minimal-zoom-meta {
  display: flex; align-items: center; gap: 0.6rem;
}
.minimal-zoom-meta .product-icon {
  width: 24px; height: 24px; margin: 0; flex-shrink: 0;
}
.minimal-zoom-title {
  color: #ffffff; font-size: 0.95rem; font-weight: 700;
}
.minimal-zoom-sep {
  color: #64748b; font-size: 0.8rem;
}
.minimal-zoom-cat {
  color: #94a3b8; font-size: 0.82rem; font-weight: 500;
}
.minimal-zoom-actions {
  display: flex; align-items: center; gap: 0.6rem;
}
.minimal-zoom-actions .btn {
  padding: 0.35rem 0.85rem; font-size: 0.82rem; border-radius: 99px;
}
.minimal-zoom-actions .btn-outline-light {
  color: #e2e8f0; border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}
.minimal-zoom-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15); border-color: #ffffff; color: #ffffff;
}

@media (max-width: 767px) {
  .product-modal { display: none !important; }
}
}

/* --- Product Detail Pages: Breadcrumbs & Hero Browser Chrome --- */
.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.25rem;
}
.product-breadcrumbs a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.product-breadcrumbs a:hover {
  text-decoration: underline;
  color: #7dd3fc;
}
.product-breadcrumbs .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
}
.product-breadcrumbs .breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

.hero-browser-frame {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}
.hero-browser-chrome {
  padding: 0.65rem 1rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-browser-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hero-browser-dot.dot-red { background: #ff5f56; }
.hero-browser-dot.dot-yellow { background: #ffbd2e; }
.hero-browser-dot.dot-green { background: #27c93f; }
.hero-browser-caption {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-browser-frame img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .product-modal-panel {
    max-height: 94vh;
    overflow-y: auto;
  }
  .lightbox-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .lightbox-header-actions {
    margin-right: 0;
    width: 100%;
  }
  .lightbox-header-actions .btn {
    width: 100%;
    text-align: center;
  }
  .lightbox-media {
    padding: 0.5rem;
  }
  .lightbox-img {
    max-height: 50vh;
  }
  .lightbox-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .lightbox-actions {
    flex-direction: column;
    width: 100%;
  }
  .lightbox-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Service Card: 4-up matches four offerings */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--card-pad);
  transition: all 0.35s var(--ease); box-shadow: var(--shadow-sm);
  min-width: 0; display: flex; flex-direction: column;
}
.service-card > .btn { margin-top: auto; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,0.15); }
.service-card .svc-icon {
  width: 44px; height: 44px; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: transform 0.3s;
}
.service-card:hover .svc-icon { transform: scale(1.08) rotate(-3deg); }
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); }
.service-card p + p { margin-top: 0.55rem; }
.service-card p + .svc-list { margin-top: 0.85rem; }
.service-card .svc-link {
  display: inline-block; margin-top: 0.85rem;
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
}
.service-card .svc-link:hover { text-decoration: underline; }
.svc-list {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin: 0 0 1.25rem;
}
.svc-list li {
  position: relative; padding-left: 1.05rem;
  font-size: 0.86rem; color: var(--text-body); line-height: 1.45;
}
.svc-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
.tier-table {
  display: flex; flex-direction: column; gap: 0.65rem;
  margin: 0 0 1.1rem; padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.tier-name { font-size: 0.85rem; font-weight: 700; color: var(--text-heading); }
.tier-price { font-size: 0.92rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.tier-scope { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; line-height: 1.4; }

/* Project Card */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.35s var(--ease); box-shadow: var(--shadow-sm);
  min-width: 0;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card-img { height: auto; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-card-img img { transform: scale(1.06); }
.project-card-body { padding: 1.25rem 1.35rem 1.4rem; }
.project-card-body h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.project-card-body p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 0.7rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.project-tags span {
  padding: 0.18rem 0.45rem; border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 600;
  background: var(--primary-light); color: var(--primary-dark);
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.85rem 0.75rem;
  align-items: start;
}
.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  transition: color 0.2s; text-align: center; min-width: 0;
}
.tech-item:hover { color: var(--text-heading); }
.tech-icon {
  width: 100%; max-width: 56px; aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: #ffffff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease); box-shadow: var(--shadow-sm);
  padding: 10px;
}
.tech-icon img {
  width: 28px; height: 28px; object-fit: contain;
  transition: transform 0.25s var(--ease);
}
.tech-item:hover .tech-icon {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tech-item:hover .tech-icon img {
  transform: scale(1.12);
}

/* Diff Card (why choose us) */
.diff-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.75rem, 4vw, 3rem); align-items: center;
}
.diff-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 1.25rem 1rem; text-align: center;
}
.stat-num { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.2rem); font-weight: 800; color: #fff; }
.stat-label { font-size: 0.78rem; color: var(--text-on-dark-muted); margin-top: 0.25rem; }
.diff-points { display: flex; flex-direction: column; gap: 1.1rem; }
.diff-point { display: flex; gap: 0.9rem; }
.diff-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(37,99,235,0.15); color: #60a5fa;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.diff-point h3,
.diff-point h4 { font-size: 0.95rem; color: #fff; margin-bottom: 0.2rem; }
.diff-point p { font-size: 0.85rem; color: var(--text-on-dark-muted); }
.diff-title { margin-bottom: 0.5rem; }
.diff-lead { color: var(--text-on-dark-muted); margin-bottom: 1.15rem; }

/* Testimonial */
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 48rem; margin: 0 auto; text-align: center;
}
.testimonial-card blockquote { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--text-body); line-height: 1.7; font-style: italic; margin-bottom: 1.1rem; }
.testimonial-card cite { font-size: 0.88rem; font-style: normal; color: var(--text-muted); font-weight: 500; }


/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
  padding: clamp(3rem, 5vw, 4.25rem) 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.1) 0%, transparent 60%);
}
.cta-inner { position: relative; z-index: 1; max-width: 38rem; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); color: #fff; margin-bottom: 0.85rem; }
.cta-inner p { font-size: 1.02rem; color: var(--text-on-dark-muted); margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }


/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3rem); align-items: start;
}
.contact-info h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: 0.65rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.15rem; margin-bottom: 1.5rem; }
.contact-method { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-method svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-method strong { display: block; font-size: 0.85rem; color: var(--text-heading); }
.contact-method a, .contact-method span { font-size: 0.88rem; color: var(--text-muted); }
.contact-method a:hover { color: var(--primary); }
.contact-note {
  background: var(--primary-light); border-radius: var(--radius-md);
  padding: 1rem 1.15rem; font-size: 0.85rem; color: var(--text-body);
  border-left: 3px solid var(--primary);
}

/* Legal pages (Privacy, Terms) */
.legal-content { max-width: 42rem; margin: 0 auto; }
.legal-content .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--text-body); margin-bottom: 0.9rem; }
.legal-content ul { margin: 0 0 0.9rem; padding-left: 1.1rem; list-style: disc; }
.legal-content li { color: var(--text-body); margin-bottom: 0.4rem; line-height: 1.6; }
.legal-content a { color: var(--primary); text-decoration: underline; }

/* Form */
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: clamp(1.35rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-md);
}
/* Contextual lead pre-fill banner */
.lead-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.lead-context-content {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-heading);
}
.lead-context-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.lead-product-title {
  color: var(--primary);
  font-weight: 700;
}
.lead-product-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.lead-clear-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.lead-clear-btn:hover {
  color: var(--text-heading);
  border-color: var(--primary);
  background: #ffffff;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-heading); margin-bottom: 0.3rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem;
  background: var(--bg-page); color: var(--text-heading);
  transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1); background: #fff;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1em;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-hint {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
/* Honeypot: off-screen, not display:none, so it still "exists" for bots
   that auto-fill every field, but is invisible and unreachable for people. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile { margin-bottom: 1rem; display: flex; justify-content: center; }
.form-status {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status-success { color: #16a34a; font-weight: 600; }
.form-status-error { color: #dc2626; font-weight: 600; }
.form-status-warning { color: #b45309; font-weight: 600; }


/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--bg-dark); color: var(--text-on-dark-muted);
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 1.35rem; border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2.25rem;
}
.footer-brand-col .footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem; }
.footer-brand-col .footer-logo img { height: 22px; width: auto; }
.footer-brand-col .footer-logo span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.25rem; }
.footer-brand-col > p { font-size: 0.85rem; max-width: 28rem; }
.footer-col h3,
.footer-col h4 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.85rem; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a, .footer-col ul li span { font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.25rem; border-top: 1px solid var(--border-dark); font-size: 0.78rem;
  gap: 0.75rem;
}
.footer-legal a:hover { color: #fff; }


/* ==========================================================
   PAGE HERO (inner pages)
   ========================================================== */
.page-hero {
  padding: clamp(6rem, 12vw, 7.5rem) 0 clamp(2.25rem, 4vw, 3.25rem);
  background: var(--bg-dark);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(37,99,235,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 20%, rgba(8,145,178,0.06) 0%, transparent 50%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  color: #fff; margin-bottom: 0.65rem; letter-spacing: -0.02em;
}
.page-hero p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-on-dark-muted); max-width: 40rem; margin: 0 auto;
}


/* ==========================================================
   PRODUCT ECOSYSTEM PAGE
   ========================================================== */
.category-nav {
  position: sticky; top: 64px; z-index: 500;
  background: rgba(15,23,42,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}
.category-nav-inner {
  display: flex; gap: 0.4rem; overflow-x: auto;
  padding: 0.65rem 0; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1120px) {
  .category-nav-inner { justify-content: center; }
}
.category-nav-inner a {
  flex-shrink: 0; white-space: nowrap;
  color: var(--text-on-dark-muted); font-size: 0.82rem; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.category-nav-inner a svg {
  width: 15px; height: 15px; flex-shrink: 0;
}
.category-nav-inner a:hover,
.category-nav-inner a:focus-visible,
.category-nav-inner a.active {
  color: #fff; border-color: var(--primary); background: rgba(37,99,235,0.2);
}
.vertical-section { margin-bottom: clamp(2rem, 4vw, 3rem); scroll-margin-top: 120px; }
.vertical-header {
  margin-bottom: 1.25rem;
}
.vertical-header h2 {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin: 0 0 0.25rem 0;
}
.vertical-header h2 svg {
  width: 24px; height: 24px; flex-shrink: 0; color: var(--primary);
}
.category-subtitle {
  font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.4;
}
.vertical-icon { font-size: 1.3rem; }

.product-eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}

/* Project detail on case-studies page */
.project-detail {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 1.35rem; transition: all 0.4s var(--ease); box-shadow: var(--shadow-sm);
}
.project-detail:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-detail-img { min-height: 0; height: 100%; overflow: hidden; }
.project-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.project-detail-body {
  padding: clamp(1.35rem, 2.5vw, 2.15rem);
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.project-detail-body h2,
.project-detail-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.45rem); margin-bottom: 0.5rem; }
.project-detail-body p { margin-bottom: 0.85rem; }
.project-detail-body .project-desc h3 {
  font-size: 0.92rem; margin: 0.85rem 0 0.35rem; color: var(--primary);
}
.project-detail-body .project-desc h3:first-child { margin-top: 0.35rem; }
.outcome-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.outcome-pills span { padding: 0.22rem 0.55rem; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 600; background: var(--primary-light); color: var(--primary-dark); }
.related-product-note {
  margin-top: 1rem; padding-top: 0.85rem; border-top: 1px dashed var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}
.related-product-note a { color: var(--primary); font-weight: 600; }


/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Large tablet / small laptop */
@media (max-width: 1100px) {
  .product-grid,
  .service-grid,
  .project-grid,
  .product-eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-phone { display: none; }
}

/* Tablet */
@media (max-width: 900px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: min(300px, 86vw); height: 100dvh;
    background: var(--bg-dark); flex-direction: column;
    padding: 4.5rem 1.35rem 2rem; gap: 0.35rem;
    border-left: 1px solid var(--border-dark);
    transition: right 0.35s var(--ease); z-index: 999;
    overflow-y: auto;
  }
  .nav-links.active { right: 0; }
  .nav-links a {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.5rem;
    font-size: 1.05rem;
    min-height: 44px;
    box-sizing: border-box;
  }
  .nav-drawer-cta {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-dark);
    width: 100%;
  }
  .nav-drawer-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    min-height: 44px;
    box-sizing: border-box;
  }
  .nav-right .btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 1.75rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: 2; }
  .hero-visual-frame { max-width: 460px; }

  .diff-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .diff-stats { order: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-detail { grid-template-columns: 1fr; }
  .project-detail-img { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Phone / large phone: keep 2-col density where cards are short */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 5.5rem 0 2.5rem;
  }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .section-header { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
  .category-row { justify-content: flex-start; }

  .product-grid,
  .service-grid,
  .project-grid,
  .product-eco-grid,
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }

  .product-card,
  .service-card { padding: 0.95rem; }
  .product-card h3,
  .service-card h3 { font-size: 0.98rem; }
  .product-card .product-desc,
  .service-card p,
  .product-desc p { font-size: 0.8rem; }
  .product-preview-img { margin-bottom: 0.65rem; }
  .badge-coming { font-size: 0.65rem; padding: 0.18rem 0.45rem; }
  .product-icon,
  .service-card .svc-icon { width: 44px; height: 44px; margin-bottom: 0.65rem; border-radius: 12px; }
  .product-icon img { border-radius: 12px; }
  .project-card-body { padding: 0.95rem; }
  .project-card-body h3 { font-size: 0.95rem; }
  .project-card-body p { font-size: 0.78rem; }

  .tech-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .diff-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .project-detail-body { padding: 1.15rem; }
}

/* Narrow phones: single column for readability */
@media (max-width: 420px) {
  .product-grid,
  .service-grid,
  .project-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .product-eco-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim {
    opacity: 1; transform: none; transition: none;
  }
  .product-card, .service-card, .project-card, .project-detail,
  .btn, .tech-icon, .product-icon, .product-preview-img, .project-card-img img {
    transition: none;
  }
  .product-card:hover, .service-card:hover, .project-card:hover, .project-detail:hover {
    transform: none;
  }
}
