/* ============================================================
   SB COLD CHAIN — STYLE.CSS
   Corporate Trust Design System
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- DESIGN TOKENS ---- */
:root {
  /* Palette */
  --primary:        #0092C8;   /* Sky Blue — "B" in logo */
  --primary-dark:   #006EA8;   /* Deeper sky blue */
  --secondary:      #163C80;   /* Dark Navy — "S" in logo */
  --accent:         #10B981;   /* Emerald 500 */
  --bg:             #F8FAFC;   /* Slate 50 — page background */
  --surface:        #FFFFFF;   /* Card / form surfaces */
  --text:           #0F172A;   /* Slate 900 */
  --text-muted:     #64748B;   /* Slate 500 */
  --border:         #E2E8F0;   /* Slate 200 */

  /* Hero / CTA dark bg */
  --hero-bg:        #0d1e4a;   /* Deep navy */
  --hero-bg-2:      #060d26;

  /* Gradients */
  --grad:           linear-gradient(135deg, #163C80, #0092C8);
  --grad-text:      linear-gradient(135deg, #163C80, #0092C8);

  /* Colored shadows — the signature of Corporate Trust */
  --shadow-card:    0 4px 20px -2px rgba(0, 146, 200, 0.10);
  --shadow-hover:   0 12px 32px -4px rgba(0, 146, 200, 0.18),
                    0 4px 12px -2px rgba(0, 146, 200, 0.10);
  --shadow-btn:     0 4px 14px 0   rgba(0, 146, 200, 0.35);
  --shadow-btn-lg:  0 8px 24px 0   rgba(0, 146, 200, 0.40);

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 9999px;

  /* Motion */
  --ease:   0.2s ease-out;
  --ease-lg: 0.5s ease-out;
}

/* ---- BASE ---- */
html {
  scroll-behavior: smooth;
  /* Prevent horizontal scroll from any overflowing child (blobs, absolute elements, etc.).
     Setting on html is required — body alone doesn't stop it on iOS Safari. */
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.section       { padding: 56px 0; width: 100%; }
.section-alt   { background: var(--surface); }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* White version for dark sections */
.gradient-text-light {
  background: linear-gradient(135deg, #7EC8E8, #B8E4F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SECTION HEADERS ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  background: rgba(0, 146, 200, 0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
  border: 1px solid rgba(0, 146, 200, 0.18);
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.625rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  max-width: 540px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

/* Primary — gradient pill */
.btn-primary {
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-lg);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 146, 200, 0.4);
}

/* Secondary — white with border */
.btn-secondary {
  background: var(--surface);
  color: #475569;
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: #cbd5e1;
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

/* WhatsApp enquiry buttons */
.btn-whatsapp { gap: 7px; }
.btn-whatsapp:hover {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35) !important;
}

/* Ghost — for dark hero bg */
.btn-ghost {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* White button for dark CTA section */
.btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Ghost white for dark CTA section */
.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* Size modifiers */
.btn-lg  { padding: 15px 32px; font-size: 1rem; }
.btn-sm  { padding: 9px 18px; font-size: 0.85rem; border-radius: var(--r-pill); }
.btn-full { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

/* Arrow icon micro-interaction */
.btn .fa-arrow-right {
  transition: transform var(--ease);
}
.btn:hover .fa-arrow-right {
  transform: translateX(3px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding var(--ease);
}

/*
 * IMPORTANT: backdrop-filter is applied via ::before, NOT on .navbar itself.
 * If backdrop-filter were on .navbar, it would create a new containing block
 * for position:fixed descendants — trapping .nav-links.open inside the navbar's
 * ~60px height instead of covering the full viewport.
 */
.navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  pointer-events: none;
  transition: background var(--ease), box-shadow var(--ease);
}

/* Transparent over the dark hero */
.navbar:not(.scrolled):not(.menu-open) .nav-links a { color: rgba(255,255,255,0.80); }
.navbar:not(.scrolled):not(.menu-open) .nav-cta     {
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  box-shadow: none;
}

/* Scrolled: white glass — blur lives on ::before, not on navbar */
.navbar.scrolled {
  padding: 12px 0;
}
.navbar.scrolled::before {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,146,200,0.07);
}
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-cta     { background: var(--grad); color: #fff; border: none; box-shadow: var(--shadow-btn); }

/* Menu open: dark solid background (no blur needed — nearly opaque) */
.navbar.menu-open::before {
  background: rgba(6, 13, 38, 0.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.navbar.menu-open .nav-logo img { filter: brightness(0) invert(1) !important; }

.nav-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--ease);
}
.navbar.scrolled .nav-logo img { filter: none; }

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(0,146,200,0.08);
  color: var(--primary) !important;
}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary) !important;
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 22px;
  font-size: 0.88rem;
  border-radius: var(--r-pill);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  /* No extra padding here — mobile overrides set explicit size */
  padding: 6px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--ease);
}
.navbar.scrolled .hamburger span  { background: var(--text); }

/* When menu is open: ALWAYS show white spans so X is visible over the dark overlay */
.hamburger.open span              { background: #fff !important; }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* .navbar.menu-open visual styles handled in the ::before block above */

/* Mobile-menu close button (hidden on desktop) */
.nav-close {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;   /* blobs with negative offsets must never widen the page */
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--hero-bg-2) 0%, var(--hero-bg) 60%, #163C80 100%);
  overflow: hidden;   /* clips blobs that extend beyond the hero bounds */
}

/* Atmospheric blur orbs — the "soft blobs" from the spec */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobPulse 6s ease-in-out infinite;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: rgba(0, 146, 200, 0.30);
  top: -120px; right: -60px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  background: rgba(22, 60, 128, 0.22);
  bottom: -100px; left: -80px;
  animation-delay: -2s;
}
.hero-blob-3 {
  width: 350px; height: 350px;
  background: rgba(16, 185, 129, 0.10);
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
  animation-delay: -4s;
}
@keyframes blobPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

/* Two-column grid layout */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 140px 24px 80px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---- Hero copy (left) ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 146, 200, 0.16);
  border: 1px solid rgba(126, 200, 232, 0.25);
  color: #7EC8E8;
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7EC8E8;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.12);
}

/* ---- Hero visual (right) — isometric dashboard ---- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* perspective container for 3-D transform */
  perspective: 2000px;
}

.hero-iso-wrap {
  transform: rotateX(5deg) rotateY(-12deg);
  transform-style: preserve-3d;
  transition: transform var(--ease-lg);
}
.hero-visual:hover .hero-iso-wrap {
  transform: rotateX(2deg) rotateY(-7deg);
}

.iso-card {
  width: 380px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* Title bar chrome */
.iso-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.iso-dots { display: flex; gap: 6px; }
.iso-dot  { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.iso-name {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.iso-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.08em;
}
.iso-blink {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Dashboard body */
.iso-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

.iso-zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.iso-zone {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.iso-zone-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.iso-zone-temp {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.iso-zone-temp.freeze { color: #93c5fd; }
.iso-zone-temp.warn-temp { color: #fcd34d; }

.iso-pill {
  font-size: 0.60rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  align-self: flex-start;
}
.iso-pill.ok   { background: rgba(52,211,153,0.18); color: #34d399; }
.iso-pill.warn { background: rgba(251,191,36,0.18);  color: #fbbf24; }

/* Mini chart */
.iso-chart {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.iso-chart-lbl {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.iso-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
}
.iso-bar {
  flex: 1;
  height: var(--h);
  background: rgba(165,180,252,0.35);
  border-radius: 3px 3px 0 0;
  transition: background var(--ease);
}
.iso-bar-active { background: #4DB8E8; }

/* Sensors footer */
.iso-footer {
  display: flex;
  gap: 8px;
}
.iso-sensor {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.iso-sensor.ok   { background: rgba(52,211,153,0.14); color: #6ee7b7; }
.iso-sensor.warn { background: rgba(251,191,36,0.14);  color: #fcd34d; }

/* Floating badge cards */
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,146,200,0.22);
  min-width: 195px;
  z-index: 10;
}
.hero-float-alert {
  top: -18px;
  right: -24px;
  animation: floatCard 3.5s ease-in-out infinite;
}
.hero-float-ok {
  bottom: -18px;
  left: -24px;
  animation: floatCard 3.5s ease-in-out infinite;
  animation-delay: -1.75s;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.float-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.float-warn    { background: rgba(251,191,36,0.15); color: #d97706; }
.float-success { background: rgba(16,185,129,0.12); color: #059669; }

.float-body { display: flex; flex-direction: column; gap: 2px; }
.float-body strong { font-size: 0.80rem; font-weight: 700; color: var(--text); }
.float-body span   { font-size: 0.72rem; color: var(--text-muted); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.30);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.bounce { animation: bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* 2×2 card grid */
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  box-shadow: var(--shadow-card);
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,146,200,0.2);
}
.about-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(0,146,200,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.about-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.about-card p  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* Featured gradient card */
.about-card.card-grad {
  background: var(--grad);
  border: none;
  box-shadow: 0 8px 28px rgba(0,146,200,0.35);
}
.about-card.card-grad .about-card-icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.about-card.card-grad h4,
.about-card.card-grad p { color: rgba(255,255,255,0.9); }
.about-card.card-grad p { color: rgba(255,255,255,0.72); }

/* Right text column */
.about-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.about-text p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-list {
  margin-top: 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.check-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,146,200,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  box-shadow: var(--shadow-card);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,146,200,0.2);
}

/* Featured card — gradient border */
.product-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 8px 40px rgba(0,146,200,0.18);
}
.product-card.featured:hover {
  box-shadow: 0 16px 48px rgba(0,146,200,0.26);
}

.product-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--grad);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(0,146,200,0.4);
}

.product-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(0,146,200,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.product-tag {
  display: inline-block;
  background: rgba(0,146,200,0.08);
  color: var(--primary);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  margin-left: 4px;
  vertical-align: middle;
}
.product-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.product-specs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0 6px;
}
.product-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
}
.product-specs .fa-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.60rem;
  flex-shrink: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,146,200,0.2);
}

/* Icon container: spec says bg-indigo-50 + text-indigo-600, NOT full gradient */
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(0,146,200,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  min-width: 148px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
  box-shadow: var(--shadow-card);
}
.industry-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,146,200,0.2);
  background: var(--surface);
}
.industry-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(0,146,200,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.industry-item span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: flex;
  justify-content: center;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(0,146,200,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-detail p { font-size: 0.94rem; color: var(--text); line-height: 1.55; }

.contact-social { display: flex; gap: 10px; margin-top: 4px; }
.contact-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: transform var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.contact-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Form card */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}
.req { color: var(--primary); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0, 146, 200, 0.12);
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

.product-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.product-row {
  display: grid;
  grid-template-columns: 1fr 90px 36px;
  gap: 8px;
  align-items: center;
}
.product-row select,
.product-row input[type="number"] {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
  outline: none;
  width: 100%;
}
.product-row select:focus,
.product-row input[type="number"]:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0, 146, 200, 0.12);
}
.remove-row-btn {
  width: 36px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  flex-shrink: 0;
}
.remove-row-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}
.add-product-btn {
  margin-top: 2px;
  align-self: flex-start;
}

/* ============================================================
   DARK CTA BAND
   ============================================================ */
.cta-dark {
  position: relative;
  background: linear-gradient(135deg, #0d1e4a 0%, #060d26 100%);
  padding: 96px 0;
  overflow: hidden;
  text-align: center;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-blob-1 {
  width: 480px; height: 480px;
  background: rgba(0,146,200,0.28);
  top: -160px; right: -80px;
}
.cta-blob-2 {
  width: 380px; height: 380px;
  background: rgba(22,60,128,0.20);
  bottom: -120px; left: -60px;
}

.cta-inner {
  position: relative;
  z-index: 2;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.60);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060d26;
  color: rgba(255,255,255,0.60);
  padding: 72px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 270px;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  transition: var(--ease);
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-links h5 {
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--ease), padding-left var(--ease);
}
.footer-links a:hover {
  color: #7EC8E8;
  padding-left: 4px;
}
.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.80rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-btn);
  opacity: 0;
  pointer-events: none;
  transition: var(--ease);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover   { transform: translateY(-3px); box-shadow: var(--shadow-btn-lg); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--hero-bg);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  border-left: 4px solid var(--accent);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner        { grid-template-columns: 1fr; }
  .hero-visual       { display: none; }          /* hide on tablet — too cramped */
  .hero-content      { max-width: 680px; margin: 0 auto; text-align: center; }
  .hero-badge        { justify-content: center; }
  .hero-cta-group    { justify-content: center; }
  .hero-stats        { justify-content: center; }
  .hero-subtitle     { margin-left: auto; margin-right: auto; }
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
  .about-grid        { gap: 48px; }
}

@media (max-width: 768px) {
  .section              { padding: 72px 0; }
  .hero-inner           { padding: 120px 20px 60px; }
  .navbar               { padding: 12px 0; }
  .nav-links, .nav-cta  { display: none; }

  /* Reduce nav-container gap on mobile — logo + hamburger only */
  .nav-container        { gap: 0; }

  /* Hamburger: exact 44×44 touch target, flush with container edge.
     Zero padding so the icon visually aligns with the container's right edge
     rather than floating 11px inward. */
  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: -4px; /* compensate container padding so icon aligns visually */
    align-items: center;
    justify-content: center;
  }

  /* Full-screen overlay */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0; /* inset fallback */
    background: rgba(6, 13, 38, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 999;
    /* Slide in from top */
    animation: menuSlideIn 0.25s ease-out forwards;
  }
  @keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Close button inside open overlay */
  .nav-links.open .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .nav-links.open .nav-close:hover { background: rgba(255,255,255,0.20); }

  /* Nav links inside open overlay */
  .nav-links.open li { width: 100%; text-align: center; }
  .nav-links.open a {
    display: block;
    width: 100%;
    padding: 16px 40px;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    border-radius: 0;
    background: transparent !important; /* suppress the hover/active indigo bg inside overlay */
    transition: color 0.15s ease;
  }
  .nav-links.open a:hover,
  .nav-links.open a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .about-grid        { grid-template-columns: 1fr; gap: 40px; }
  .about-visual      { order: 2; }
  .about-text        { order: 1; }
  .products-grid     { grid-template-columns: 1fr; }
  .features-grid     { grid-template-columns: 1fr; }
  .contact-grid      { justify-content: stretch; }
  .contact-form      { padding: 28px 20px; }
  .form-row          { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats        { gap: 20px; justify-content: center; }
  .stat-divider      { display: none; }
}

@media (max-width: 480px) {
  .hero-cta-group    { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { justify-content: center; }
  .cta-buttons       { flex-direction: column; align-items: stretch; padding: 0 16px; }
  .cta-buttons .btn  { justify-content: center; }
  .industries-grid   { gap: 12px; }
  .industry-item     { min-width: calc(50% - 6px); padding: 20px 16px; }
  .section-title     { font-size: 1.7rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
