/* ============================================================
   B2B — Business Air Intelligence
   ============================================================ */

/* Sub-nav — pill style */
.sub-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.sub-nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.sub-nav-link:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.07); }
.sub-nav-link.active { background: #ffffff; color: #0d0d1a; font-weight: 700; }
.sub-nav-icon { display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex-shrink: 0; }
.back-link {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: var(--white-50);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.back-link:hover { color: var(--white-80); }

/* ============================================================
   SENSE CARD — FoSen sensor with live readings
   ============================================================ */
.card-visual--sense {
  background: radial-gradient(ellipse at 50% 38%, rgba(0,173,241,0.08) 0%, transparent 70%);
}
.sense-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
/* Concentric sensor rings */
.sense-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,173,241,0.25);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: sense-ring-pulse 3s ease-in-out infinite;
}
.sr1 { width: 70px;  height: 70px;  animation-delay: 0s; }
.sr2 { width: 105px; height: 105px; animation-delay: 0.5s; }
.sr3 { width: 140px; height: 140px; animation-delay: 1s; }
@keyframes sense-ring-pulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.6;  }
}
.sense-core {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, rgba(0,173,241,0.3) 0%, rgba(0,173,241,0.05) 100%);
  border: 1.5px solid rgba(0,173,241,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0,173,241,0.2);
}
.sense-label {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.sense-readings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
  background: rgba(6,3,17,0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  width: 168px;
}
.sense-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sense-key {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 600;
  color: var(--white-30);
}
.sense-val {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  transition: opacity 0.3s;
}
.sense-live {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-primary);
  font-size: 9px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  animation: data-flicker 2s infinite;
}

/* ============================================================
   PURIFY CARD — particle flow through purifier
   ============================================================ */
.card-visual--purify {
  background: radial-gradient(ellipse at 50% 50%, rgba(0,173,241,0.04) 0%, transparent 70%);
}
.purify-scene {
  position: absolute;
  inset: 0;
}
/* Particles */
.ptcl {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.ptcl--d {
  background: rgba(237,0,140,0.75);
  box-shadow: 0 0 6px rgba(237,0,140,0.4);
  animation: ptcl-dirty 2.5s linear infinite;
}
.ptcl--c {
  background: rgba(0,173,241,0.75);
  box-shadow: 0 0 6px rgba(0,173,241,0.4);
  animation: ptcl-clean 2.5s linear infinite;
}
@keyframes ptcl-dirty {
  0%   { left: 82%; opacity: 0; }
  12%  { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { left: 52%; opacity: 0; }
}
@keyframes ptcl-clean {
  0%   { left: 48%; opacity: 0; }
  12%  { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { left: 18%; opacity: 0; }
}
/* Purifier device */
.purifier {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 108px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0,173,241,0.12);
}
.purifier-top,
.purifier-bot {
  font-family: var(--font-primary);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.purifier-fan {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fan-spin 2s linear infinite;
  box-shadow: 0 0 8px rgba(0,173,241,0.3);
}
@keyframes fan-spin { to { transform: rotate(360deg); } }
.fan-cross {
  width: 16px;
  height: 2px;
  background: var(--cyan);
  position: relative;
}
.fan-cross::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 16px;
  background: var(--cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Labels and auto badge */
.purify-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.purify-label--l { left: 8%;  color: var(--cyan); }
.purify-label--r { right: 8%; color: var(--magenta); }
.purify-auto {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-primary);
  font-size: 9px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0,173,241,0.12);
  border: 1px solid rgba(0,173,241,0.25);
  border-radius: 6px;
  padding: 3px 7px;
  letter-spacing: 0.08em;
  animation: data-flicker 3s infinite;
}

/* ============================================================
   CERTIFY CARD — hexagon badge with rotating glow
   ============================================================ */
.card-visual--certify {
  background: radial-gradient(ellipse at 50% 45%, rgba(0,173,241,0.06) 0%, transparent 65%);
}
.certify-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hex-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-glow {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: conic-gradient(from 0deg, var(--cyan), var(--magenta), var(--cyan));
  animation: hex-spin 4s linear infinite;
}
@keyframes hex-spin { to { transform: rotate(360deg); } }
.hex-body {
  position: absolute;
  inset: 5px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hex-icon {
  font-size: 30px;
  color: var(--cyan);
  font-weight: 700;
  font-family: var(--font-primary);
}
.cert-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.cert-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--cyan);
}
.cert-sparkles { position: absolute; inset: 0; pointer-events: none; }
.spark {
  position: absolute;
  font-size: 12px;
  color: var(--cyan);
  animation: spark-fade 2.5s ease-in-out infinite;
}
@keyframes spark-fade {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%       { opacity: 0.8; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .sub-nav { display: none; }
  .back-link { font-size: 12px; }
  .site-header-bar { position: relative; }
  .mobile-menu-link { gap: 10px; }
}
