/* ============================================================
   InfraBit Systems — Corporate Enterprise Design System v5.6
   Professional. Structured. Authoritative. Cyan Brand Identity.
   Full Responsive Layout Engine & Component Architecture
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:        #0a0a0a;
  --white:        #ffffff;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-300:     #cbd5e1;
  --gray-400:     #94a3b8;
  --gray-500:     #64748b;
  --gray-600:     #475569;
  --gray-700:     #334155;
  --gray-800:     #1e293b;
  --gray-900:     #0f172a;

  /* ── InfraBit Cyan Color System ──────────────────────────── */
  --brand-cyan:        #00c7db;
  --brand-cyan-dark:   #0891b2;
  --brand-cyan-deep:   #0e7490;
  --brand-cyan-light:  #38e1f0;
  --brand-cyan-glow:   rgba(0, 199, 219, 0.28);
  --brand-cyan-subtle: rgba(0, 199, 219, 0.08);
  --brand-cyan-border: rgba(8, 145, 178, 0.25);

  --accent:       #0f172a;
  --accent-mid:   #1e293b;
  --accent-light: #0891b2;
  --gold:         #0891b2;
  --gold-light:   #38e1f0;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #64748b;
  --text-inverse:   #ffffff;

  --border:       #e2e8f0;
  --border-dark:  #1e293b;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl:  0 16px 64px rgba(0,0,0,0.14);

  --container: 1200px;
  --nav-h:     72px;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
@media (max-width: 1024px) {
  html { font-size: 14.5px; }
}
@media (max-width: 640px) {
  html { font-size: 14px; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
}

/* ── DOM State Locks (Scroll-Locking) ──────────────────────── */
body.nav-open,
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

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

/* ── Performance: Content Visibility for below-fold sections ── */
.section:not(.above-fold),
footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
h1 { font-size: clamp(1.7rem, 3.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
h3 { font-size: clamp(1.08rem, 1.5vw, 1.35rem); }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
p  { color: var(--text-secondary); line-height: 1.7; overflow-wrap: break-word; word-wrap: break-word; }
li, td, th, .card-title, .card-desc, .trouble-dir-title, .hero-context-title {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-cyan-dark);
}
.mono { font-family: var(--font-mono); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  :root { --nav-h: 64px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

@media (max-width: 768px) {
  .section    { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-2.gap-lg { gap: 80px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.hero-grid > *, .page-hero-grid > *,
.scope-calc-grid > *, .scope-wizard-grid > *, .diff-cols-grid > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-2.gap-lg { gap: 48px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
  .grid-2.gap-lg { gap: 32px; }
}

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Navigation ────────────────────────────────────────────── */
.navbar-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.navbar-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
}
@media (max-width: 480px) {
  .navbar { padding: 0 16px; }
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--black); text-decoration: none;
}
.logo-icon { width: 32px; height: 32px; color: var(--brand-cyan-dark); flex-shrink: 0; }
.logo-wordmark { color: var(--black); font-weight: 700; }
.logo-wordmark span,
.logo-wordmark .text-brand-cyan { color: var(--brand-cyan-dark); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  padding: 8px 12px; border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text-primary); background: var(--gray-100); }
.nav-link.active { color: var(--brand-cyan-dark); font-weight: 600; }

@media (max-width: 1120px) {
  .nav-link {
    font-size: 0.82rem;
    padding: 8px 9px;
  }
}

.mobile-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  color: var(--text-primary); transition: background 0.15s;
}
.mobile-toggle:hover { background: var(--gray-100); }

.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 1050;
  flex-direction: column;
  padding: 80px 24px 32px;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 1.15rem;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border);
}
.mobile-nav .nav-link:last-of-type { border-bottom: none; }
.close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-primary);
}
.close-btn:hover { background: var(--gray-100); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap; text-decoration: none;
  cursor: pointer; font-family: var(--font-sans);
  line-height: 1.2;
}
.btn .arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow-icon {
  transform: translateX(4px);
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary, .btn-cyan {
  background: var(--brand-cyan-dark);
  color: var(--white);
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 4px 14px var(--brand-cyan-glow);
}
.btn-primary:hover, .btn-cyan:hover {
  background: var(--brand-cyan-deep);
  border-color: var(--brand-cyan-deep);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--brand-cyan-subtle);
  border-color: var(--brand-cyan-dark);
  color: var(--brand-cyan-dark);
}

.btn-gold {
  background: var(--brand-cyan-dark);
  color: var(--white);
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 4px 14px var(--brand-cyan-glow);
}
.btn-gold:hover {
  background: var(--brand-cyan-deep);
  border-color: var(--brand-cyan-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--brand-cyan-dark); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ── Tags / Badges ─────────────────────────────────────────── */
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; border: 1px solid;
}
.tag-cyan  { color: var(--brand-cyan-deep); border-color: rgba(0, 199, 219, 0.35); background: var(--brand-cyan-subtle); }
.tag-navy  { color: var(--accent);          border-color: rgba(15, 23, 42, 0.25);   background: rgba(15, 23, 42, 0.04); }
.tag-gold  { color: var(--brand-cyan-deep); border-color: rgba(0, 199, 219, 0.35); background: var(--brand-cyan-subtle); }
.tag-gray  { color: var(--text-muted);      border-color: var(--border);            background: var(--gray-50); }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--gray-50);
  color: var(--text-muted);
}
.badge-cyan {
  color: var(--brand-cyan-deep);
  border-color: rgba(0, 199, 219, 0.35);
  background: var(--brand-cyan-subtle);
}

/* ── Dividers ──────────────────────────────────────────────── */
.divider { width: 48px; height: 3px; background: var(--brand-cyan-dark); margin: 16px 0 24px; }
.divider-gold, .divider-cyan { background: var(--brand-cyan-dark); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  background-color: #fafbfc;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* CAD scan beam — homepage */
.hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -4px;
  width: 1.5px;
  background: var(--brand-cyan-dark);
  box-shadow: 0 0 10px 1px rgba(8, 145, 178, 0.25);
  animation: cad-scan 2.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.hero .container { position: relative; z-index: 1; }

/* Hero 2-column split grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Hero left column */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 16px 0 18px;
}
.hero-title .text-gradient-cyan {
  background: linear-gradient(135deg, var(--brand-cyan-deep) 0%, var(--brand-cyan-dark) 50%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(0.94rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

@media (max-width: 480px) {
  .hero { padding: calc(var(--nav-h) + 24px) 0 40px; }
  .hero-title { font-size: clamp(1.5rem, 5.5vw, 1.95rem); margin: 12px 0 14px; }
  .hero-subtitle { font-size: 0.94rem; margin-bottom: 22px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Hero metric counters */
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.hero-stat-row > div {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  position: relative;
  background: var(--white);
}
.hero-stat-row > div:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .hero-stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stat-row > div:nth-child(1),
  .hero-stat-row > div:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
  .hero-stat-row > div:nth-child(2) {
    border-right: none;
  }
}
@media (max-width: 380px) {
  .hero-stat-row { grid-template-columns: 1fr; }
  .hero-stat-row > div {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .hero-stat-row > div:last-child { border-bottom: none; }
}

/* ── Hero Console (right column) ───────────────────────────── */
.hero-console-wrap {
  position: relative;
  width: 100%;
}
@media (max-width: 1024px) {
  .hero-console-wrap {
    max-width: 600px;
    margin: 0 auto;
  }
}

.hero-console {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(15, 23, 42, 0.06);
  animation: console-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes console-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-console-dots { display: flex; gap: 6px; }
.hero-console-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.hero-console-dots span:nth-child(1) { background: #ef4444; }
.hero-console-dots span:nth-child(2) { background: #f59e0b; }
.hero-console-dots span:nth-child(3) { background: #22c55e; }

.hero-console-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  text-transform: uppercase;
}
.hero-console-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
}
.hero-console-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
  animation: beacon-ripple 2s infinite ease-out;
}

.hero-console-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #f1f5f9;
}

@media (max-width: 640px) {
  .hero-console-body { padding: 12px; font-size: 0.72rem; }
  .hero-console-bar { padding: 8px 12px; }
}

.console-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
}
.console-prompt { color: var(--brand-cyan); font-weight: 700; flex-shrink: 0; }
.console-cmd { color: rgba(255,255,255,0.85); word-break: break-word; }
.console-out {
  color: rgba(255,255,255,0.5);
  padding-left: 16px;
  font-size: 0.74rem;
  word-break: break-word;
}
.console-out.ok   { color: #22c55e; }
.console-out.warn { color: #f59e0b; }
.console-out.cyan { color: var(--brand-cyan-light); }

.console-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--brand-cyan);
  vertical-align: middle;
  margin-left: 2px;
  animation: cursor-blink 1.1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.console-divider {
  height: 1px;
  background: rgba(0, 199, 219, 0.12);
  margin: 10px 0;
}

.console-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.72rem;
}
.console-metric-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.console-metric-val { color: var(--brand-cyan-light); font-weight: 700; }
.console-metric-val.green { color: #22c55e; }

.console-bar-track {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 3px;
  overflow: hidden;
}
.console-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-cyan-dark), var(--brand-cyan));
  transition: width 0.4s ease;
}

/* ── Live System Pulse Indicator ──────────────────────────── */
.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.25);
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 2.2vw, 0.74rem);
  font-weight: 600;
  color: var(--brand-cyan-deep);
  margin-bottom: 20px;
  max-width: 100%;
  word-break: break-word;
}

.pulse-beacon {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  display: inline-block;
  flex-shrink: 0;
}
.pulse-beacon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(0, 199, 219, 0.45);
  animation: beacon-ripple 2s infinite ease-out;
}

@keyframes beacon-ripple {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ── Tech Stack Marquee ────────────────────────────────────── */
.tech-band {
  padding: 52px 0 44px;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.tech-band::before,
.tech-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.tech-band::before {
  left: 0;
  background: linear-gradient(to right, var(--gray-50) 20%, transparent);
}
.tech-band::after {
  right: 0;
  background: linear-gradient(to left, var(--gray-50) 20%, transparent);
}
.tech-band-label {
  text-align: center;
  margin-bottom: 32px;
}
.tech-band-label span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.tech-track-wrap {
  overflow: hidden;
  margin-bottom: 20px;
}
.tech-track-wrap:last-child { margin-bottom: 0; }
.tech-track {
  display: flex;
  gap: 16px;
  width: max-content;
  /* force GPU compositing — no layout thrash */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tech-track.ltr { animation: tech-scroll-ltr 45s linear infinite; }
.tech-track.rtl { animation: tech-scroll-rtl 50s linear infinite; }
.tech-track-wrap:hover .tech-track { animation-play-state: paused; }
/* Keyframes: each track content is duplicated 4× by JS.
   We only scroll one full copy width (25% of total).        */
@keyframes tech-scroll-ltr {
  0%   { transform: translateZ(0) translateX(0); }
  100% { transform: translateZ(0) translateX(-25%); }
}
@keyframes tech-scroll-rtl {
  0%   { transform: translateZ(0) translateX(-25%); }
  100% { transform: translateZ(0) translateX(0); }
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: default;
  user-select: none;
}
.tech-pill:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-deep);
  box-shadow: 0 0 0 3px var(--brand-cyan-subtle);
}
.tech-pill-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tech-pill:hover .tech-pill-icon {
  border-color: var(--brand-cyan);
  transform: scale(1.06);
  box-shadow: 0 2px 6px rgba(0, 199, 219, 0.15);
}
.tech-pill-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

/* ── Live Telemetry Ticker ─────────────────────────────────── */
.telemetry-ticker {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 199, 219, 0.14);
  border-radius: var(--radius-md);
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(248, 250, 252, 0.45);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.telemetry-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.telemetry-val { font-weight: 700; color: #00c7db; }

/* ── Section Headers ───────────────────────────────────────── */
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header .label { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; max-width: 560px; }
.section-header.centered p { margin: 0 auto; }

@media (max-width: 768px) {
  .section-header { margin-bottom: 40px; }
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 12px 30px -10px rgba(8, 145, 178, 0.12);
  transform: translateY(-3px);
}
.card-dark { background: var(--accent); border-color: var(--accent); color: var(--white); }
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.7); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--brand-cyan-subtle);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--brand-cyan-dark);
}
.card-dark .card-icon { background: rgba(0, 199, 219, 0.15); color: var(--brand-cyan-light); }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.card-desc  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }
a.card { display: block; text-decoration: none; color: inherit; }

@media (max-width: 480px) {
  .card { padding: 24px 18px; }
}

/* ── Interactive 4-Layer Architecture Inspector (About) ───── */
.layer-grid-interactive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .layer-grid-interactive { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .layer-grid-interactive { grid-template-columns: 1fr; }
}

.layer-btn {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
}
.layer-btn:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  transform: translateY(-2px);
}
.layer-btn.active {
  border-color: var(--brand-cyan-dark);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 199, 219, 0.1);
}
.layer-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20px; right: 20px;
  height: 3px;
  background: var(--brand-cyan-dark);
  border-radius: 3px 3px 0 0;
}

.layer-inspector-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  transition: opacity 0.25s ease;
}
@media (max-width: 800px) {
  .layer-inspector-panel { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
}

/* ── Interactive Live Latency / Network Node Widget ────────── */
.node-tester-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}
@media (max-width: 640px) {
  .node-tester-box { padding: 18px 14px; margin-top: 24px; }
}

/* ── Founder Showcase ──────────────────────────────────────── */
.founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.founder-card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 12px 30px -10px rgba(8, 145, 178, 0.12);
}
.founder-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.founder-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-cyan-dark);
  box-shadow: 0 4px 18px var(--brand-cyan-glow);
  flex-shrink: 0;
}
.founder-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.founder-stat-item {
  padding: 12px 10px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.founder-stat-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-cyan-dark);
  line-height: 1.1;
}
.founder-stat-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.founder-proj-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.founder-proj-item:hover {
  background: var(--brand-cyan-subtle);
  border-color: rgba(8, 145, 178, 0.35);
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .founder-card { padding: 20px 16px; }
  .founder-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .founder-header { flex-direction: column; text-align: center; gap: 14px; }
}

/* ── Feature List ──────────────────────────────────────────── */
.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-num {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  color: var(--brand-cyan-dark); min-width: 32px; padding-top: 3px;
}
.feature-body h4 { margin-bottom: 6px; font-size: 1rem; }
.feature-body p  { font-size: 0.9rem; }

/* ── Who We Are — Enterprise Systems column hide on mobile ─── */
/* Hidden below 768px — the text column is self-sufficient.    */
@media (max-width: 768px) {
  .enterprise-sys-col {
    display: none;
  }
  /* Tighten feature-row padding on small screens              */
  .feature-row {
    padding: 20px 0;
    gap: 14px;
  }
  .feature-body h4 { font-size: 0.95rem; }
  .feature-body p  { font-size: 0.85rem; }
  /* CTA button goes full-width on mobile                      */
  .who-we-cta {
    display: block;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .feature-row   { padding: 16px 0; gap: 12px; }
  .feature-num   { font-size: 0.7rem; min-width: 28px; }
  .feature-body h4 { font-size: 0.9rem; }
  .feature-body p  { font-size: 0.82rem; }
}

/* ── Stats Block ───────────────────────────────────────────── */
.stat-block { padding: 32px; }
.stat-block .num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; color: var(--black); line-height: 1; }
.stat-block .unit { font-size: 1.2rem; color: var(--brand-cyan-dark); font-weight: 700; }
.stat-block .desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

/* ── Bands ─────────────────────────────────────────────────── */
.band-dark { background: var(--accent); color: var(--white); }
.band-dark h2 { color: var(--white); }
.band-dark p  { color: rgba(255,255,255,0.72); }
.band-dark .label { color: var(--brand-cyan-light); }
.band-dark .divider { background: var(--brand-cyan-dark); }
.band-gray { background: var(--gray-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Timeline ──────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; border-left: 2px solid var(--border); margin-left: 24px; }
.timeline-item { position: relative; padding: 0 0 40px 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -10px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--brand-cyan-dark);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-cyan-dark); }
.timeline-date { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.timeline-item h4 { margin-bottom: 8px; }
.timeline-item p  { font-size: 0.9rem; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 12px 16px; font-size: 0.9rem; font-family: var(--font-sans);
  color: var(--text-primary); background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--brand-cyan-dark); box-shadow: 0 0 0 3px rgba(0, 199, 219, 0.12); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { background: var(--white); }

/* ── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(2, 10, 22, 0.85);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open,
.modal-overlay.active { display: flex; }

.modal-content {
  background: var(--white); border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: var(--shadow-xl);
  -webkit-overflow-scrolling: touch;
}
.modal-content.modal-reader {
  max-width: 760px;
  padding: 48px;
}

@media (max-width: 768px) {
  .modal-overlay { padding: 16px; }
  .modal-content { padding: 28px 20px; border-radius: var(--radius-lg); }
  .modal-content.modal-reader { padding: 32px 20px; }
}

.article-callout {
  padding: 20px 24px;
  background: var(--brand-cyan-subtle);
  border-left: 3px solid var(--brand-cyan-dark);
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.article-callout h4 {
  font-size: 0.95rem;
  color: var(--brand-cyan-deep);
  margin-bottom: 6px;
}
.article-callout p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}
.article-reader-body h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--text-primary);
}
.article-reader-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 1.2rem; color: var(--text-secondary); transition: background 0.15s;
}
.modal-close:hover { background: var(--gray-100); }

/* ── Role Pills & Demo Consoles ────────────────────────────── */
.role-pill {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.role-pill:hover {
  background: var(--gray-100);
  color: var(--text-primary);
  border-color: var(--gray-300);
}
.role-pill.active {
  background: var(--brand-cyan-dark);
  color: var(--white);
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 2px 8px var(--brand-cyan-glow);
}

.role-func-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
}
.role-func-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

#smsRolePreviewBox {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 640px) {
  #smsRolePreviewBox { padding: 18px 14px; gap: 16px; }
  .role-pill { padding: 7px 14px; font-size: 0.78rem; }
}

/* ── Pricing ───────────────────────────────────────────────── */
.price-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border); border-radius: 2px; padding: 4px 10px;
}
.checklist { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.checklist li::before { content: '✓'; font-weight: 700; color: var(--brand-cyan-dark); flex-shrink: 0; margin-top: 1px; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-row {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child  { border-bottom: none; padding-bottom: 0; }
.contact-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  color: var(--brand-cyan-dark); flex-shrink: 0;
}
.contact-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }

/* ── Footer ────────────────────────────────────────────────── */
footer { background: var(--black); color: var(--white); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

footer .logo-wordmark { color: var(--white); }
footer .logo-wordmark span,
footer .logo-wordmark .text-brand-cyan { color: var(--brand-cyan); }
footer .logo-icon { color: var(--brand-cyan); }
footer .logo-desc { color: rgba(255,255,255,0.5); font-size: 0.88rem; max-width: 280px; margin-top: 12px; line-height: 1.7; }

.footer-col h5 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 0.82rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 12px;
}
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.status-dot::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

/* ── Preloader ─────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  z-index: 9999; transition: opacity 0.4s ease;
}
#preloader.hidden, #preloader.fade-out { opacity: 0; pointer-events: none; }
.preloader-logo { width: 36px; height: 36px; color: var(--brand-cyan-dark); }
.preloader-bar { width: 160px; height: 2px; background: var(--gray-200); border-radius: 2px; overflow: hidden; }
.preloader-bar::after { content: ''; display: block; height: 100%; background: linear-gradient(90deg, var(--brand-cyan-dark), var(--brand-cyan)); animation: load-bar 0.9s ease forwards; }
@keyframes load-bar { from { width: 0; } to { width: 100%; } }
.preloader-text { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

/* ── Article cards ─────────────────────────────────────────── */
.article-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 16px; transition: all 0.2s ease;
  cursor: pointer;
}
.article-card:hover { border-color: rgba(8, 145, 178, 0.4); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card:hover .read-link { color: var(--brand-cyan-dark); text-decoration: underline; }
.article-meta { display: flex; align-items: center; justify-content: space-between; }
.read-time { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-mono); }
.article-card h3 { font-size: 1.1rem; line-height: 1.35; }
.article-card p  { font-size: 0.88rem; flex-grow: 1; }
.read-link { font-size: 0.85rem; font-weight: 600; color: var(--brand-cyan-dark); display: flex; align-items: center; gap: 4px; margin-top: auto; }
.read-link:hover { text-decoration: underline; }

/* ── Live links (solutions) ────────────────────────────────── */
.live-links { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 20px; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO — Upgraded v2.0 — Crisp Light Architectural Theme
   Engineering blueprint grid · CAD scan line · beacon pulse · typewriter
   ═══════════════════════════════════════════════════════════════ */

/* ── Base Page Hero Shell ─────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* ── Blueprint Engineering Grid (SVG-drawn, animated) ──────── */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  animation: grid-draw-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: none;
  z-index: 0;
}

@keyframes grid-draw-in {
  0%   { opacity: 0; transform: scale(1.04); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

/* ── CAD Scan Line — single 1.5px laser beam sweeping L→R ──────────── */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -4px;
  width: 1.5px;
  background: var(--brand-cyan-dark);
  box-shadow: 0 0 10px 1px rgba(8, 145, 178, 0.25);
  animation: cad-scan 2.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

@keyframes cad-scan {
  0%   { left: -4px; opacity: 1; }
  85%  { left: 100%; opacity: 0.6; }
  100% { left: 100%; opacity: 0; }
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

/* ── Hero Grid (2-column split on inner pages) ─────────────── */
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 1024px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Operational Status Pill ───────────────────────────────── */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  animation: pill-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes pill-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pulsing beacon dot inside pill */
.hero-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: beacon-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes beacon-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  60%  { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* ── Page Hero Typography ──────────────────────────────────── */
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 18px;
  animation: hero-text-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.page-hero h1 .text-cyan-crisp {
  color: var(--brand-cyan-dark);
  position: relative;
}

/* Animated underscore emphasis line */
.page-hero h1 .text-cyan-crisp::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--brand-cyan-dark);
  margin-top: 4px;
  animation: underline-draw 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
}

@keyframes underline-draw {
  from { width: 0; }
  to   { width: 100%; }
}

.page-hero .hero-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
  animation: hero-text-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Action Buttons ─────────────────────── */
.page-hero .hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: hero-text-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* ── Situational Proof Strip (relatable metrics row) ──────── */
.hero-proof-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 36px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  animation: hero-text-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.hero-proof-item {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  background: var(--white);
}

.hero-proof-item:last-child { border-right: none; }

.hero-proof-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-proof-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 540px) {
  .hero-proof-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-proof-item:nth-child(2) { border-right: none; }
  .hero-proof-item:nth-child(even) { border-right: none; }
  .hero-proof-item:nth-child(3),
  .hero-proof-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

/* ── Right-side Engineering Widget Panel ──────────────────── */
.hero-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04);
  animation: widget-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes widget-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-widget-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.hero-widget-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-widget-dots {
  display: flex;
  gap: 5px;
}

.hero-widget-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.hero-widget-dots span:nth-child(1) { background: #ef4444; }
.hero-widget-dots span:nth-child(2) { background: #f59e0b; }
.hero-widget-dots span:nth-child(3) { background: #22c55e; }

.hero-widget-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-primary);
}

/* Terminal typewriter stream inside widget */
.hero-typewriter-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.hero-typewriter-line .tw-prompt {
  color: var(--brand-cyan-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.hero-typewriter-line .tw-ok    { color: #16a34a; font-weight: 600; }
.hero-typewriter-line .tw-warn  { color: #d97706; }
.hero-typewriter-line .tw-info  { color: var(--text-primary); font-weight: 600; }
.hero-typewriter-line .tw-dim   { color: var(--text-muted); }

.hero-typewriter-line .tw-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--brand-cyan-dark);
  vertical-align: text-bottom;
  animation: cursor-blink 1.1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hw-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

/* Metric gauge rows inside widget */
.hw-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.hw-metric-label { color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.hw-metric-val   { color: var(--text-primary); font-weight: 700; }
.hw-metric-val.ok { color: #16a34a; }

.hw-bar-track {
  height: 3px;
  background: var(--gray-100);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hw-bar-fill {
  height: 100%;
  background: var(--brand-cyan-dark);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: bar-draw 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

@keyframes bar-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Situational Context Cards (the "relatable" cards) ──────── */
.hero-context-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.hero-context-card:hover {
  border-color: var(--gray-300);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.hero-context-card:last-child { margin-bottom: 0; }

.hero-context-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-cyan-dark);
  margin-bottom: 4px;
}

.hero-context-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-context-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── Division Quick-Jump Matrix (services) ─────────────────── */
.hero-division-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-division-card {
  display: block;
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.hero-division-card:hover {
  border-color: var(--gray-300);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.hero-division-icon {
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: block;
}

.hero-division-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hero-division-price {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--brand-cyan-dark);
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ── SLA Guarantee Grid (contact) ─────────────────────────── */
.hero-sla-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-sla-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
}

.hero-sla-row:hover {
  border-color: var(--gray-300);
  background: var(--white);
}

.hero-sla-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan-dark);
  flex-shrink: 0;
}

.hero-sla-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hero-sla-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Deployment Status Board (solutions) ─────────────────── */
.hero-deploy-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-deploy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 10px;
}

.hero-deploy-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-deploy-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.hero-deploy-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: beacon-pulse 2.2s ease-in-out infinite;
}

.status-dot.green  { background: #16a34a; color: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
.status-dot.cyan   { background: var(--brand-cyan-dark); color: var(--brand-cyan-dark); box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.5); }
.status-dot.amber  { background: #f59e0b; color: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }

.hero-deploy-status.ok   { color: #16a34a; }
.hero-deploy-status.info { color: var(--brand-cyan-dark); }

/* ── Featured Article Spotlight (insights) ─────────────────── */
.hero-article-spot {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.hero-article-spot-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-article-spot-body {
  padding: 20px;
}

.hero-article-spot-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.hero-article-spot-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-article-spot-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-article-spot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-cyan-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-cyan-dark);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.hero-article-spot-link:hover {
  color: var(--brand-cyan-deep);
  border-color: var(--brand-cyan-deep);
}

/* ── Typewriter micro-animation for hero situations ─────────── */
@keyframes tw-line-appear {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tw-l1 { animation: tw-line-appear 0.3s ease 0.8s both; }
.tw-l2 { animation: tw-line-appear 0.3s ease 1.1s both; }
.tw-l3 { animation: tw-line-appear 0.3s ease 1.4s both; }
.tw-l4 { animation: tw-line-appear 0.3s ease 1.7s both; }
.tw-l5 { animation: tw-line-appear 0.3s ease 2.0s both; }
.tw-l6 { animation: tw-line-appear 0.3s ease 2.3s both; }
.tw-l7 { animation: tw-line-appear 0.3s ease 2.6s both; }
.tw-l8 { animation: tw-line-appear 0.3s ease 2.9s both; }

@media (max-width: 768px) {
  .page-hero { padding: calc(var(--nav-h) + 32px) 0 40px; }
  .page-hero h1 { font-size: clamp(1.5rem, 5.5vw, 2.05rem); }
  .hero-proof-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-division-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .page-hero { padding: calc(var(--nav-h) + 28px) 0 36px; }
  .hero-sla-grid { gap: 8px; }
}

/* ── Utilities ─────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 0; }
.text-muted        { color: var(--text-muted); }
.text-accent       { color: var(--accent-light); }
.text-brand-cyan,
.text-cyan         { color: var(--brand-cyan-dark) !important; }
.card-dark .text-brand-cyan,
footer .text-brand-cyan { color: var(--brand-cyan) !important; }
.text-gold         { color: var(--brand-cyan-dark); }
.text-white        { color: var(--white); }
.text-center       { text-align: center; }
.text-gradient-cyan {
  background: linear-gradient(135deg, var(--brand-cyan-deep) 0%, var(--brand-cyan-dark) 50%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.w-full { width: 100%; }

/* ── Floating WhatsApp Button ──────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: #15803d;
}
.whatsapp-float svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

@media (max-width: 480px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 44px; height: 44px; }
  .whatsapp-float svg { width: 22px; height: 22px; }
}


/* ── Smart Form Fill ───────────────────────────────────────── */
.smart-fill-banner {
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-cyan-border);
  background: linear-gradient(135deg, rgba(0,199,219,0.07) 0%, rgba(0,199,219,0.03) 100%);
  overflow: hidden;
  animation: smart-banner-in 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes smart-banner-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.smart-fill-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
}
.smart-fill-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-cyan-subtle);
  border: 1px solid var(--brand-cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-cyan-dark);
}
.smart-fill-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.smart-fill-text strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 700;
}
.smart-fill-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.smart-fill-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-sans);
}
.smart-fill-clear:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-deep);
}

/* Animated glow on auto-filled fields */
.form-control.sf-filled {
  border-color: var(--brand-cyan) !important;
  background: linear-gradient(to bottom, rgba(0,199,219,0.04), var(--surface)) !important;
  animation: sf-field-pop 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes sf-field-pop {
  0%   { box-shadow: 0 0 0 0px var(--brand-cyan-glow); }
  50%  { box-shadow: 0 0 0 5px var(--brand-cyan-glow); }
  100% { box-shadow: 0 0 0 3px var(--brand-cyan-subtle); }
}

/* Typewriter cursor on message textarea auto-fill */
.sf-typing { caret-color: var(--brand-cyan); }

/* Subject field tag chip (read-only display) */
.sf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand-cyan-subtle);
  border: 1px solid var(--brand-cyan-border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-cyan-deep);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ── Enterprise Product Switcher Tabs ────────────────────────── */
.product-tabs-wrapper {
  margin-bottom: 32px;
}
.product-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.product-tabs-nav {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.product-tab-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex: 1 1 0%;
  min-width: 260px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.product-tab-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.product-tab-btn.active {
  background: var(--white);
  border-color: var(--brand-cyan);
  color: var(--text-primary);
  box-shadow: 0 4px 18px var(--brand-cyan-glow), 0 0 0 1px var(--brand-cyan);
}
.product-tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-cyan-dark));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.product-tab-btn-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
}
.product-tab-btn.active .product-tab-btn-badge {
  background: var(--brand-cyan-subtle);
  border-color: var(--brand-cyan-border);
  color: var(--brand-cyan-deep);
}
.product-tab-btn-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.product-tab-btn-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.product-tab-btn-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.product-tab-pane {
  display: none;
}
.product-tab-pane.active {
  display: block;
  animation: productPaneFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes productPaneFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-future-slot {
  border: 1.5px dashed var(--border);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.product-future-slot:hover {
  border-color: var(--brand-cyan);
  background: linear-gradient(180deg, var(--brand-cyan-subtle) 0%, var(--gray-50) 100%);
}
@media (max-width: 768px) {
  .product-tabs-nav {
    gap: 8px;
    padding: 6px;
  }
  .product-tab-btn {
    min-width: 220px;
  }
}

/* ── Local Production Footprint Showcase (Left-to-Right Fade Showcase, Pauses on Hover) ── */
.footprint-showcase {
  max-width: 1040px;
  margin: 36px auto 0;
  width: 100%;
}

/* Top Controls & Navigation Bar */
.footprint-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.footprint-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.footprint-tabs::-webkit-scrollbar {
  display: none;
}
.footprint-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: var(--font-sans);
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
}
.footprint-tab .tab-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
}
.footprint-tab:hover {
  border-color: var(--brand-cyan);
  color: var(--text-primary);
  background: var(--white);
}
.footprint-tab.active {
  background: var(--brand-cyan-subtle);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 199, 219, 0.15);
}

/* Nav Status Pill & Arrows */
.footprint-nav-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.footprint-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: rgba(0, 199, 219, 0.08);
  border: 1px solid rgba(0, 199, 219, 0.28);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-cyan-dark);
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
}
.footprint-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.footprint-status-pill.is-paused {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.footprint-status-pill.is-paused .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.footprint-arrows {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footprint-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.footprint-arrow-btn:hover {
  background: var(--white);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-dark);
}
.footprint-counter {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 4px;
}

/* The Showcase Stage */
.footprint-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #020f1e;
  border: 1px solid rgba(0, 199, 219, 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  min-height: 520px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}
.footprint-stage:hover {
  border-color: rgba(0, 199, 219, 0.58);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 199, 219, 0.16);
}

/* Left-to-Right Progress Bar */
.footprint-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 25;
}
.footprint-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c7db, #00e5ff);
  box-shadow: 0 0 8px #00c7db;
  transition: width 0.05s linear;
}

/* The Showcase Card Viewport */
.footprint-card-viewport {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  background: #020f1e;
}

/* The Individual Showcase Cards */
.footprint-card {
  display: grid;
  grid-template-columns: 430px 1fr;
  width: 100%;
  min-height: 520px;
  background: #020f1e;
  box-sizing: border-box;
  position: relative;
  will-change: transform, opacity, clip-path;
}

/* JS Transition States (Zero Layout Shift) */
.footprint-card.is-outgoing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.footprint-card.is-incoming {
  position: relative;
  width: 100%;
  z-index: 2;
}
.footprint-card.is-active {
  position: relative;
  width: 100%;
  z-index: 2;
}
.footprint-card.is-hidden {
  display: none !important;
  pointer-events: none;
}

/* Card Media: Browser Mockup Viewport */
.footprint-card-media {
  display: flex;
  flex-direction: column;
  background: #010810;
  border-right: 1px solid rgba(0, 199, 219, 0.22);
  overflow: hidden;
  position: relative;
}
.media-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #031424;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}
.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }
.browser-url {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand-cyan-light);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: 6px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #27c93f;
  background: rgba(39, 201, 63, 0.12);
  border: 1px solid rgba(39, 201, 63, 0.35);
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.media-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background: #010810;
}
.footprint-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.4s ease;
}
.footprint-stage:hover .footprint-img {
  transform: scale(1.02);
}

/* Card Details (Scoped strictly to .footprint-card so global site text is never overwritten) */
.footprint-card-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 34px 28px;
  background: #020f1e;
  color: var(--white);
  box-sizing: border-box;
}
.footprint-card .card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footprint-card .card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footprint-card .location-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-cyan-light);
  font-weight: 700;
  background: rgba(0, 199, 219, 0.12);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(0, 199, 219, 0.3);
}
.footprint-card .card-index-indicator {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.footprint-card .card-body h3 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}
.footprint-card .card-subtitle {
  color: var(--brand-cyan-light);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}
.footprint-card .card-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.footprint-card .card-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.footprint-card .spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(4, 20, 38, 0.95);
  border: 1px solid rgba(0, 199, 219, 0.26);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
}

.footprint-card .card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footprint-card .card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footprint-card .card-actions .btn {
  padding: 9px 16px;
  font-size: 0.8rem;
  min-height: 42px;
}
.footprint-card .card-actions .btn.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}
.footprint-card .card-actions .btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}
.footprint-card .card-inspect-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Quick Dots */
.footprint-mobile-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.fp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fp-dot.active {
  background: var(--brand-cyan);
  width: 22px;
  border-radius: 9999px;
}

/* ── Responsive Breakpoints ──────────────────────────────────── */
@media (max-width: 960px) {
  .footprint-card-viewport {
    min-height: unset;
  }
  .footprint-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .footprint-card-media {
    border-right: none;
    border-bottom: 1px solid rgba(0, 199, 219, 0.22);
  }
  .media-viewport {
    min-height: unset;
    height: 320px;
  }
  .footprint-card-details {
    padding: 24px 22px 20px;
  }
  .footprint-card .card-body h3 {
    font-size: 1.25rem;
  }
  .footprint-card .card-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 720px) {
  .footprint-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 10px;
  }
  .footprint-tabs {
    width: 100%;
    padding-bottom: 4px;
  }
  .footprint-nav-cluster {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .media-viewport {
    height: 270px;
  }
  .footprint-card-details {
    padding: 18px 16px 16px;
  }
  .footprint-card .card-body h3 {
    font-size: 1.15rem;
  }
  .footprint-card .card-subtitle {
    font-size: 0.78rem;
  }
  .footprint-card .card-desc {
    font-size: 0.78rem;
  }
  .footprint-mobile-dots {
    display: flex;
  }
}

@media (max-width: 480px) {
  .media-viewport {
    height: 230px;
  }
  .footprint-card .card-actions {
    flex-direction: column;
  }
  .footprint-card .card-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* ============================================================
   InfraBit Systems — Ultra-Responsive Design Engine v7.5
   Pixel-Perfect Scaling: 320px Ultra-Compact to 4K Ultrawide
   Mobile-First Touch Ergonomics & Safe-Area Inset Architecture
   ============================================================ */

/* ── Global Viewport & Overflow Safety Net ───────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

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

/* ── Container Fluid Padding Across Breakpoints ──────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}

@media (max-width: 1024px) {
  .container {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  :root { --nav-h: 64px; }
}

@media (max-width: 480px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (max-width: 340px) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

/* ── Form Controls: iOS Safari Auto-Zoom Prevention ─────────── */
@media (max-width: 768px) {
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select.form-control,
  textarea.form-control {
    font-size: 16px !important; /* Critical: Stops iOS Safari from auto-zooming viewport */
    line-height: 1.4 !important;
  }
}

/* ── Navbar & Desktop Links Collapsing ───────────────────────── */
@media (max-width: 1060px) and (min-width: 901px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
  .navbar {
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .mobile-toggle {
    display: flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
}

/* ── Mobile Navigation Drawer (100dvh & Notch Safe) ──────────── */
.mobile-nav {
  height: 100vh;
  height: 100dvh;
  padding-top: max(80px, calc(env(safe-area-inset-top) + 64px));
  padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px));
  padding-left: max(24px, calc(env(safe-area-inset-left) + 16px));
  padding-right: max(24px, calc(env(safe-area-inset-right) + 16px));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.mobile-nav .nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* ── Hero Section Fluid Scaling ──────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-console-wrap {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--nav-h) + 24px) 0 40px;
  }
  .hero-title {
    font-size: clamp(1.55rem, 5.5vw, 2.1rem);
    margin: 12px 0 14px;
  }
  .hero-subtitle {
    font-size: clamp(0.92rem, 3vw, 1rem);
    margin-bottom: 22px;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
  .browser-url {
    white-space: normal;
    word-break: break-all;
    text-overflow: unset;
  }
  .diff-compare-tabs {
    flex-wrap: wrap;
  }
  .diff-tab-btn {
    white-space: normal;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }
}

/* ── Hero Stat Row: Clean Adaptive Grid ──────────────────────── */
@media (max-width: 1024px) {
  .hero-stat-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 36px;
  }
  .hero-stat-row > div:nth-child(1),
  .hero-stat-row > div:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
  .hero-stat-row > div:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .hero-stat-row > div {
    padding: 14px 12px;
  }
  .hero-stat-num {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }
  .hero-stat-label {
    font-size: 0.68rem;
  }
}

@media (max-width: 350px) {
  .hero-stat-row {
    grid-template-columns: 1fr;
  }
  .hero-stat-row > div {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .hero-stat-row > div:last-child {
    border-bottom: none;
  }
}

/* ── Console Simulator Safety ────────────────────────────────── */
.console-line,
.console-cmd,
.console-out {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .hero-console-body {
    padding: 12px 14px;
    font-size: 0.72rem;
  }
  .hero-console-bar {
    padding: 8px 12px;
  }
}

/* ── Responsive Grid Breakpoints ─────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .grid-2.gap-lg {
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .grid-2.gap-lg {
    gap: 28px;
  }
}

/* ── Interactive Momentum Filter Bars on Mobile ──────────────── */
@media (max-width: 768px) {
  #serviceFilterBar,
  #solutionFilterBar,
  .product-tabs-nav,
  .footprint-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }
  #serviceFilterBar::-webkit-scrollbar,
  #solutionFilterBar::-webkit-scrollbar,
  .product-tabs-nav::-webkit-scrollbar,
  .footprint-tabs::-webkit-scrollbar {
    display: none;
  }
  .role-pill,
  .product-tab-btn,
  .footprint-tab {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 44px;
  }
}

/* ── Local Footprint Showcase Ultra-Responsive ───────────────── */
@media (max-width: 960px) {
  .footprint-card-viewport {
    min-height: unset;
  }
  .footprint-card {
    grid-template-columns: 1fr !important;
    min-height: unset;
  }
  .footprint-card-media {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 199, 219, 0.22);
  }
  .media-viewport {
    height: clamp(220px, 38vw, 340px) !important;
    min-height: unset;
  }
  .footprint-card-details {
    padding: 24px 20px 20px !important;
  }
}

@media (max-width: 720px) {
  .footprint-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 10px;
  }
  .footprint-nav-cluster {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .media-viewport {
    height: clamp(200px, 48vw, 280px) !important;
  }
  .footprint-card-details {
    padding: 18px 16px 16px !important;
  }
  .footprint-mobile-dots {
    display: flex;
  }
}

@media (max-width: 480px) {
  .media-viewport {
    height: 220px !important;
  }
  .footprint-card .card-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .footprint-card .card-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 46px;
  }
}

/* ── Live Links (Solutions Page Cards) ───────────────────────── */
@media (max-width: 560px) {
  .live-links {
    flex-direction: column;
    gap: 8px;
  }
  .live-links .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ── Pane Header Layout Classes ─────────────────────────────── */
.pane-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.pane-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  align-self: center;
}
.role-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Products Page Architecture Pillars — Full Responsive Fix ─── */

/* ≤768px: Tab switcher header stacks, status text hides to avoid overflow */
@media (max-width: 768px) {
  .product-tabs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .product-tabs-header > div:last-child {
    flex-wrap: wrap;
    gap: 6px;
  }
  /* Suppress the status-dot label text inside tab buttons on small screens */
  .product-tab-btn > .status-dot {
    display: none;
  }
  /* Tab buttons: compact layout, text wraps inside info block */
  .product-tab-btn {
    min-width: 200px;
    padding: 12px 14px;
    gap: 10px;
  }
  .product-tab-btn-title {
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.3;
  }
  .product-tab-btn-sub {
    white-space: normal;
    line-height: 1.3;
    font-size: 0.72rem;
  }
}

/* ≤640px: Pane padding & header rows stack */
@media (max-width: 640px) {
  #product-sms,
  #product-cdacc,
  #product-docustudio,
  .product-tab-pane {
    padding: 20px 16px !important;
  }

  /* Pane header: title + CTA buttons must stack, never collapse */
  .pane-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* CTA button group inside pane header: full-width on mobile */
  .pane-cta-row {
    width: 100% !important;
    align-self: stretch !important;
  }
  .pane-cta-row .btn,
  .pane-cta-row .btn-mpesa {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    min-width: 0;
  }

  /* Role pill selector bar: smaller pills, wrap cleanly */
  .role-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
    white-space: normal;
    line-height: 1.25;
  }

  /* Role function cards grid: 1-col on small screens */
  #smsRolePreviewBox .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Subsystem pillars: 2-col at 640px (already handled by .grid-4), ensure gap is tighter */
  .product-tab-pane .grid-4 {
    gap: 12px;
  }
  .product-tab-pane .grid-3 {
    gap: 12px;
  }

  /* Tab button min-width reduce */
  .product-tab-btn {
    min-width: 170px;
    padding: 10px 12px;
  }

  /* btn-mpesa (DocuStudio buy button): full width on mobile */
  .btn-mpesa {
    width: 100% !important;
    justify-content: center;
  }
}

/* ≤480px: Aggressive stacking for very small phones */
@media (max-width: 480px) {
  #product-sms,
  #product-cdacc,
  #product-docustudio,
  .product-tab-pane {
    padding: 16px 12px !important;
  }

  /* Tab nav: even smaller min-width so 3 tabs fit horizontally */
  .product-tab-btn {
    min-width: 150px;
    gap: 8px;
    padding: 10px 10px;
  }
  .product-tab-btn-badge {
    display: none; /* hide #01/#02/#03 badge to save space */
  }
  .product-tab-btn-title {
    font-size: 0.82rem;
  }
  .product-tab-btn-sub {
    font-size: 0.68rem;
  }

  /* Subsystem pillars: single column */
  .product-tab-pane .grid-4,
  .product-tab-pane .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  /* Inner section labels for pane sub-sections */
  .product-tab-pane .label {
    font-size: 0.65rem;
    margin-bottom: 10px !important;
  }

  /* h2 inside pane: allow clamp to handle it, also fix margin */
  .product-tab-pane h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.8rem) !important;
    margin-bottom: 8px;
    word-break: break-word;
  }

  /* Pane CTA row: stack buttons vertically on tiny phones */
  .pane-cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Feature list items in DocuStudio: wrap cleanly */
  .product-tab-pane .product-features li {
    flex-wrap: wrap;
  }
}

/* ≤420px: 320px safety net */
@media (max-width: 420px) {
  #product-sms,
  #product-cdacc,
  #product-docustudio,
  .product-tab-pane {
    padding: 14px 10px !important;
  }

  /* Products tab nav: ultra compact */
  .product-tab-btn {
    min-width: 130px;
    padding: 9px 8px;
    gap: 6px;
  }
  .product-tab-btn-title {
    font-size: 0.78rem;
  }
  .product-tab-btn-sub {
    display: none; /* hide sub-label on tiny screens */
  }
}

/* ── Contact Page Form & Rows ────────────────────────────────── */
@media (max-width: 640px) {
  .contact-row {
    gap: 12px;
    padding: 14px 0;
  }
  .contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .contact-value {
    font-size: 0.88rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .smart-fill-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .smart-fill-clear {
    align-self: flex-start;
  }
  #contactForm .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

/* ── Modals: Native Bottom Sheet Ergonomics on Mobile ────────── */
@media (max-width: 768px) {
  .modal-overlay {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    align-items: flex-end;
  }
  .modal-content,
  .modal-content.modal-reader {
    max-height: 88dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 28px 18px 24px;
    width: 100%;
  }
  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

/* ── Trust Strip & Bands ─────────────────────────────────────── */
@media (max-width: 640px) {
  .trust-strip {
    flex-direction: column !important;
    text-align: center;
    padding: 20px 16px !important;
    gap: 16px !important;
  }
  .trust-strip > div {
    width: 100%;
    justify-content: center;
  }
  .trust-strip .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Telemetry Ticker ────────────────────────────────────────── */
@media (max-width: 768px) {
  .telemetry-ticker {
    gap: 16px;
    padding: 10px 14px;
    font-size: 0.72rem;
  }
}

/* ── Footer Mobile ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 48px 0 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* ── WhatsApp Floating Action Button (Safe-Area Aware) ───────── */
.whatsapp-float {
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  right: max(24px, calc(env(safe-area-inset-right) + 16px));
  z-index: 999;
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
    right: max(16px, calc(env(safe-area-inset-right) + 12px));
    width: 46px;
    height: 46px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ── Touch Manipulation & Target Sizing ──────────────────────── */
@media (pointer: coarse) {
  button, .btn, .nav-link, .role-pill, .product-tab-btn, .fp-dot, .modal-close {
    touch-action: manipulation;
  }
}

/* ── Focus Rings & Text Overflow Protections ─────────────────── */
:focus-visible {
  outline: 2px solid var(--brand-cyan-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, p, span, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

:target {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ═══════════════════════════════════════════════════════════════
   INTERACTIVE ENGINEERING FEATURES (v2.0)
   Pure professional non-gradient UI components:
   1. Scope & Cost Estimator (.scope-calc-card)
   2. WordPress vs. InfraBit Diff Comparison (.diff-compare-card)
   3. M-PESA Payment Flow Simulator (.mpesa-sim-card)
   4. Direct Engineering Scope Builder (.scope-wizard-card)
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Project Scope & Cost Estimator ──────────────────────── */
.scope-calc-card {
  background: #080c14;
  border: 1px solid rgba(0, 199, 219, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  margin: 32px 0 16px;
}

.scope-calc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 199, 219, 0.08);
  border-bottom: 1px solid rgba(0, 199, 219, 0.16);
}

.scope-calc-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00c7db;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scope-calc-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
}

@media (max-width: 900px) {
  .scope-calc-grid { grid-template-columns: 1fr; }
}

.scope-calc-options {
  padding: 28px;
  border-right: 1px solid rgba(0, 199, 219, 0.12);
}

@media (max-width: 900px) {
  .scope-calc-options { border-right: none; border-bottom: 1px solid rgba(0, 199, 219, 0.12); }
}

.scope-calc-summary {
  padding: 28px;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.calc-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

@media (max-width: 580px) {
  .calc-tier-grid { grid-template-columns: 1fr; }
}

.calc-tier-label {
  display: block;
  position: relative;
  cursor: pointer;
}

.calc-tier-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-tier-box {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.calc-tier-label input:checked + .calc-tier-box {
  border-color: #00c7db;
  background: rgba(0, 199, 219, 0.06);
}

.calc-tier-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.calc-tier-price {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #00c7db;
  font-weight: 600;
}

.calc-addons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-addon-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s;
}

.calc-addon-label:hover {
  border-color: rgba(0, 199, 219, 0.3);
}

.calc-addon-label input {
  margin-right: 10px;
  accent-color: #00c7db;
}

.calc-addon-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-addon-name {
  font-size: 0.82rem;
  color: #f1f5f9;
}

.calc-addon-price {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(0, 199, 219, 0.85);
  font-weight: 600;
}

.calc-total-box {
  border: 1px solid rgba(0, 199, 219, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  background: rgba(0, 199, 219, 0.03);
  margin-bottom: 20px;
}

.calc-total-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(241, 245, 249, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.calc-total-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #00c7db;
  line-height: 1.1;
  margin-bottom: 8px;
}

.calc-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(241, 245, 249, 0.6);
}

.calc-meta-line strong {
  color: #f1f5f9;
  font-family: var(--font-mono);
}

/* ── 2. WordPress Bloat vs. InfraBit Diff Comparison ─────────── */
.diff-compare-card {
  background: #080c14;
  border: 1px solid rgba(0, 199, 219, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 36px 0;
}

.diff-compare-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 199, 219, 0.16);
  background: rgba(0, 199, 219, 0.05);
  overflow-x: auto;
}

.diff-tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: rgba(241, 245, 249, 0.55);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.diff-tab-btn.active {
  color: #00c7db;
  border-bottom-color: #00c7db;
  background: rgba(0, 199, 219, 0.08);
}

.diff-cols-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  .diff-cols-grid { grid-template-columns: 1fr; }
}

.diff-col {
  padding: 28px;
}

.diff-col-wp {
  border-right: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.02);
}

@media (max-width: 768px) {
  .diff-col-wp { border-right: none; border-bottom: 1px solid rgba(239, 68, 68, 0.18); }
}

.diff-col-infrabit {
  background: rgba(0, 199, 219, 0.025);
}

.diff-col-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.diff-col-wp .diff-col-badge {
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.diff-col-infrabit .diff-col-badge {
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.diff-metric-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.diff-metric-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.diff-metric-name {
  font-size: 0.78rem;
  color: rgba(241, 245, 249, 0.6);
}

.diff-metric-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.diff-metric-val.bad  { color: #ef4444; }
.diff-metric-val.good { color: #22c55e; }

/* ── 3. M-PESA Payment Flow Simulator ────────────────────────── */
.mpesa-sim-card {
  background: #080c14;
  border: 1px solid rgba(0, 199, 219, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 36px 0;
}

.mpesa-sim-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(0, 199, 219, 0.16);
}

@media (max-width: 800px) {
  .mpesa-sim-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .mpesa-sim-steps { grid-template-columns: 1fr; }
}

.mpesa-sim-step {
  padding: 18px 16px;
  border-right: 1px solid rgba(0, 199, 219, 0.12);
  background: rgba(255, 255, 255, 0.015);
  position: relative;
  transition: all 0.2s;
}

.mpesa-sim-step:last-child { border-right: none; }

.mpesa-step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(0, 199, 219, 0.7);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.mpesa-step-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.mpesa-step-desc {
  font-size: 0.74rem;
  color: rgba(241, 245, 249, 0.5);
  line-height: 1.45;
  margin: 0;
}

.mpesa-sim-interactive {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(0, 199, 219, 0.03);
}

.mpesa-sim-console {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  background: #05070c;
  border-top: 1px solid rgba(0, 199, 219, 0.12);
  color: rgba(241, 245, 249, 0.75);
}

/* ── 4. Direct Engineering Scope Builder ─────────────────────── */
.scope-wizard-card {
  background: #080c14;
  border: 1px solid rgba(0, 199, 219, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
}

.scope-wizard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 20px 0 24px;
}

@media (max-width: 860px) {
  .scope-wizard-grid { grid-template-columns: 1fr; gap: 16px; }
}

.scope-wizard-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
}

.scope-chip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.scope-chip-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(241, 245, 249, 0.7);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.scope-chip-btn:hover {
  border-color: rgba(0, 199, 219, 0.4);
  color: #f1f5f9;
}

.scope-chip-btn.active {
  border-color: #00c7db;
  background: rgba(0, 199, 219, 0.1);
  color: #00c7db;
  font-weight: 600;
}

.scope-output-box {
  border: 1px solid rgba(0, 199, 219, 0.2);
  border-radius: var(--radius-md);
  background: rgba(0, 199, 219, 0.04);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}




/* ── Mobile Ultra-Responsive Polish for Interactive Features (480px) ──── */
@media (max-width: 480px) {
  /* Scope & Cost Estimator (services.html) */
  .scope-calc-options,
  .scope-calc-summary {
    padding: 18px 14px;
  }
  .calc-addon-label {
    padding: 10px 12px;
  }
  .calc-total-box {
    padding: 16px 14px;
  }
  .scope-calc-summary .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* Architecture Diff Comparison (about.html) */
  .diff-col {
    padding: 18px 14px;
  }
  .diff-tab-btn {
    padding: 10px 14px;
    font-size: 0.72rem;
    min-height: 44px;
  }
  .diff-metric-item {
    padding: 9px 10px;
  }

  /* M-PESA Payment Flow Simulator (solutions.html) */
  .mpesa-sim-step {
    padding: 14px 12px;
  }
  .mpesa-sim-interactive {
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .mpesa-sim-interactive .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .mpesa-sim-console {
    padding: 12px 14px;
    font-size: 0.7rem;
    word-break: break-all;
    overflow-x: auto;
  }

  /* Direct Scope Builder (contact.html) */
  .scope-wizard-card {
    padding: 18px 14px;
  }
  .scope-wizard-col {
    padding: 12px 10px;
  }
  .scope-chip-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 0.76rem;
  }
  .scope-output-box {
    padding: 14px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .scope-output-box .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* CDACC Module Inspector (products/index.html) */
  #cdaccModulePills .role-pill {
    min-height: 44px;
    font-size: 0.76rem;
    padding: 8px 14px;
  }
}

/* ── 320px Small Phone Safety Net ───────────────────────────── */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .hero-title { font-size: clamp(1.38rem, 5.5vw, 1.75rem) !important; }
  .btn { font-size: 0.84rem; padding: 10px 18px; }
  .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
  .hero-proof-strip {
    grid-template-columns: 1fr 1fr !important;
    display: grid !important;
  }
  .hero-proof-num { font-size: 1.1rem; }
  .hero-proof-label { font-size: 0.6rem; }

  /* Products tabs — scroll horizontally even at 320px */
  .product-tabs-nav .product-tab-btn { min-width: 180px; }

  /* Scope calculator collapses nicely */
  .scope-calc-options,
  .scope-calc-summary {
    padding: 14px 10px;
  }
  .calc-tier-title { font-size: 0.82rem; }
  .calc-tier-price { font-size: 0.68rem; }

  /* M-PESA simulator */
  .mpesa-sim-step { padding: 12px 10px; }
  .mpesa-step-title { font-size: 0.8rem; }
  .mpesa-step-desc { font-size: 0.7rem; }

  /* Storefront cards */
  #storefront .sc-name { font-size: 0.95rem; }
  #storefront .sc-price { font-size: 1.3rem; }
  #storefront .sc-cta { font-size: 0.82rem; padding: 10px 12px; }
}

/* ============================================================
   BLOG & ONE-STOP TROUBLESHOOTING HUB UI SYSTEM
   ============================================================ */
.article-filter-btn.active,
.trouble-filter-btn.active {
  background: var(--brand-cyan-dark);
  color: var(--white);
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 2px 10px var(--brand-cyan-glow);
}

.blog-controls-wrapper {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 540px;
}

.blog-search-box input {
  width: 100%;
  padding: 14px 40px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  background: var(--gray-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blog-search-box input:focus {
  background: var(--white);
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 0 0 3px var(--brand-cyan-subtle);
}

/* Quick Symptom Suggestion Chips */
.quick-symptom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-symptom-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 4px;
}

.symptom-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--gray-50);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.16s ease;
  cursor: pointer;
}

.symptom-chip:hover {
  background: var(--brand-cyan-subtle);
  border-color: var(--brand-cyan-dark);
  color: var(--brand-cyan-deep);
}

/* 3-Domain Tabs */
.domain-tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

.domain-tab-btn {
  flex: 1 1 160px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.domain-tab-btn:hover {
  color: var(--text-primary);
}

.domain-tab-btn.active {
  background: var(--white);
  color: var(--brand-cyan-deep);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Full Common Problems Directory Grid */
.trouble-directory {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.trouble-directory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.trouble-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trouble-dir-col {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.trouble-dir-col-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trouble-dir-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trouble-dir-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: all 0.15s ease;
  text-decoration: none;
}

.trouble-dir-item:hover {
  background: var(--white);
  color: var(--brand-cyan-deep);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.trouble-dir-item.active {
  background: var(--brand-cyan-subtle);
  color: var(--brand-cyan-deep);
  font-weight: 700;
  border: 1px solid var(--brand-cyan-border);
  box-shadow: var(--shadow-sm);
}

.trouble-dir-item.is-hidden,
.trouble-dir-col.is-hidden {
  display: none !important;
}

.trouble-dir-arrow {
  color: var(--brand-cyan-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* Single Unified Solution Controller Stage (Compartmentalized Viewport) */
.solution-stage {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  scroll-margin-top: 90px;
}

.solution-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.solution-stage-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.solution-stage-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-match-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.stage-match-tabs.has-matches {
  display: flex;
}

.stage-match-tab {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
  max-width: 100%;
}

.stage-match-tab:hover {
  border-color: var(--brand-cyan-dark);
  color: var(--brand-cyan-deep);
}

.stage-match-tab.active {
  background: var(--brand-cyan-dark);
  color: var(--white);
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 2px 8px var(--brand-cyan-glow);
}

/* Troubleshooting Solution Cards (Compartmentalized: 1 active inside stage) */
.solution-stage .trouble-card {
  display: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  scroll-margin-top: 96px;
}

.solution-stage .trouble-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.solution-stage .trouble-card.is-active {
  display: block;
  animation: productPaneFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.trouble-card {
  padding: 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 96px;
}

.trouble-card:hover {
  border-color: rgba(8, 145, 178, 0.45);
  box-shadow: var(--shadow-md);
}

.trouble-card.is-highlighted {
  border-color: var(--brand-cyan-dark);
  box-shadow: 0 0 0 3px var(--brand-cyan-subtle), var(--shadow-md);
}

.trouble-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.trouble-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trouble-step-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
}

.trouble-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-cyan-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.trouble-step-body {
  min-width: 0;
  flex: 1;
}

.trouble-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--gray-100);
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  word-break: break-word;
}

.trouble-callout {
  padding: 16px 20px;
  background: rgba(0, 199, 219, 0.07);
  border-left: 4px solid var(--brand-cyan-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 20px;
}

@media (max-width: 980px) {
  .trouble-dir-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .blog-controls-wrapper,
  .trouble-directory,
  .trouble-card {
    padding: 20px 16px;
  }
  .solution-stage-header,
  .stage-match-tabs {
    padding: 12px 16px;
  }
  .trouble-matrix {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .trouble-step-item {
    padding: 14px 12px;
    gap: 10px;
  }
  .blog-search-box {
    min-width: 100%;
  }
}
