/* ==========================================================================
   Texvian IT — HOME 04: CYBERSECURITY (page-specific)
   Built from the same tokens/components as every other homepage. Visual
   distinction from Home 02's dark hero (centered, network graph) and
   Home 03's light hero (browser/product mockup) comes from a full-bleed
   dark hero with a two-column layout and a live "security operations"
   dashboard panel (score ring + threat activity feed) instead of a
   network diagram or product UI. Services, stats, certifications and
   benefits below reuse the shared .nx-card / .nx-stat-card / .nx-benefit-*
   primitives rather than introducing parallel systems.
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */

.nx-hero4 {
  position: relative;
  overflow: hidden;
  background: var(--nx-ink-900);
  padding-top: calc(var(--nx-header-height) + clamp(2.5rem, 2rem + 2vw, 4.5rem));
  padding-bottom: clamp(3rem, 2.4rem + 3vw, 6rem);
}

[data-bs-theme="dark"] .nx-hero4 {
  background: var(--nx-ink-950);
}

.nx-hero4__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nx-hero4__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 0%, transparent 75%);
}

.nx-hero4__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(560px 420px at 90% 10%, color-mix(in srgb, var(--nx-circuit-600) 28%, transparent), transparent 70%),
    radial-gradient(480px 360px at 6% 85%, color-mix(in srgb, var(--nx-red-600) 16%, transparent), transparent 70%);
}

.nx-hero4__row {
  position: relative;
  z-index: 1;
}

.nx-hero4__eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-5);
}

.nx-hero4__eyebrow-row .nx-eyebrow {
  color: var(--nx-circuit-400);
}

.nx-hero4__live {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: var(--nx-ls-wide);
  text-transform: uppercase;
  color: var(--nx-slate-300);
}

.nx-hero4__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nx-circuit-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-circuit-400) 30%, transparent);
  animation: nx-pulse 2.4s ease-in-out infinite;
}

.nx-hero4__title {
  font-size: var(--nx-fs-h1);
  color: var(--nx-white);
  margin-bottom: var(--nx-space-5);
  max-width: 18ch;
}

.nx-hero4__lead {
  color: var(--nx-slate-300);
  max-width: 46ch;
  margin-bottom: var(--nx-space-6);
}

.nx-hero4__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-7);
}

.nx-hero4__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-3);
}

.nx-hero4__badges .badge-status {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--nx-slate-200);
}

.nx-hero4__badges .badge-status {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: var(--nx-ls-wide);
  padding: var(--nx-space-2);
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
}

.nx-hero4__badges .badge-status::before {
  display: none;
}

/* ---------------- Hero visual: SOC dashboard panel ---------------- */
.nx-hero4__visual {
  position: relative;
  padding: var(--nx-space-6);
}

.nx-hero4__panel {
  position: relative;
  z-index: 1;
  background: rgba(15, 20, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg);
  backdrop-filter: blur(6px);
  padding: var(--nx-space-6);
}

.nx-hero4__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--nx-space-6);
  padding-bottom: var(--nx-space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nx-hero4__panel-title {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-xs);
  letter-spacing: var(--nx-ls-wide);
  text-transform: uppercase;
  color: var(--nx-slate-300);
}

/* Score ring */
.nx-hero4__score {
  display: flex;
  align-items: center;
  gap: var(--nx-space-5);
  margin-bottom: var(--nx-space-6);
}

.nx-hero4__ring {
  --pct: 98%;
  --size: 92px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--nx-circuit-400) var(--pct), rgba(255, 255, 255, 0.1) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nx-hero4__ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--nx-ink-900);
}

.nx-hero4__ring-value {
  position: relative;
  z-index: 1;
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-lg);
  font-weight: var(--nx-fw-bold);
  color: var(--nx-white);
}

.nx-hero4__score-label {
  font-size: var(--nx-fs-xs);
  letter-spacing: var(--nx-ls-wide);
  text-transform: uppercase;
  color: var(--nx-slate-400);
  margin-bottom: var(--nx-space-1);
}

.nx-hero4__score-text {
  color: var(--nx-slate-200);
  font-size: var(--nx-fs-sm);
  margin: 0;
}

/* Activity feed */
.nx-hero4__feed {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}

.nx-hero4__feed-row {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  padding: var(--nx-space-3);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--nx-radius-sm);
}

.nx-hero4__feed-dot {
  --size: 8px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  flex-shrink: 0;
}

.nx-hero4__feed-dot--blocked {
  background: var(--nx-red-600);
}

.nx-hero4__feed-dot--watch {
  background: var(--nx-amber-600);
}

.nx-hero4__feed-dot--resolved {
  background: var(--nx-circuit-400);
}

.nx-hero4__feed-text {
  flex: 1;
  font-size: var(--nx-fs-xs);
  color: var(--nx-slate-200);
  font-family: var(--nx-font-mono);
}

.nx-hero4__feed-time {
  font-size: var(--nx-fs-xs);
  color: var(--nx-slate-500);
  font-family: var(--nx-font-mono);
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .nx-hero4__score {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   2. CERTIFICATIONS / COMPLIANCE ROW
   ========================================================================== */

.nx-sec-cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-4);
  margin-top: var(--nx-space-6);
}

.nx-sec-cert {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  padding: var(--nx-space-3) var(--nx-space-4);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border-color);
  border-radius: var(--nx-radius-sm);
  font-size: var(--nx-fs-sm);
  font-weight: var(--nx-fw-semibold);
  color: var(--nx-text-primary);
}

.nx-sec-cert i {
  color: var(--nx-circuit-600);
  font-size: 1.1rem;
}

/* ==========================================================================
   3. THREAT STAT STRIP (dark, full-bleed like the CTA banner)
   ========================================================================== */

.nx-sec-stat-strip {
  background: var(--nx-ink-900);
}

[data-bs-theme="dark"] .nx-sec-stat-strip {
  background: var(--nx-ink-950);
}

.nx-sec-stat-strip .nx-stat-card__value {
  color: var(--nx-white);
}

.nx-sec-stat-strip .nx-stat-card__label {
  color: var(--nx-slate-400);
}