/* ============================================================
   NEW SERVICE PAGES — shared styles
   Used by: ai-security.html, industrial-ot-cybersecurity.html,
   backup-disaster-recovery.html, digital-risk-protection.html
   ============================================================ */

/* ---------- hero: left-aligned, same as other service pages ---------- */
.pg-hero { text-align: left; }
.pg-hero .kicker { justify-content: flex-start; }
.pg-hero .lead { margin-inline: 0; }
.pg-hero .pg-hero__cta { justify-content: flex-start; }

/* ---------- hero: two-column grid for the pages with a right-side visual ---------- */
.pg-hero .wrap.pg-grid { max-width: 1280px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) {
  .pg-hero .pg-grid { grid-template-columns: 1fr; }
}

/* ---------- hero visual: network hub (AI Security · OT · Backup & DR) ---------- */
.ns-net { display: flex; align-items: center; justify-content: center; }
.ns-net svg { width: 100%; max-width: 480px; height: auto; overflow: visible; }

.ns-net-outer { fill: none; stroke: var(--border); stroke-width: 1; }
.ns-net-line { fill: none; stroke: var(--border); stroke-width: 1.4; }

.ns-net-hub { fill: var(--navy-800); }
.ns-net-hubicon { color: #fff; }
.ns-net-hubglow {
  fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-opacity: .4;
  transform-box: fill-box; transform-origin: center; animation: ns-net-breathe 3.4s var(--ease) infinite;
}

.ns-net-node circle:first-child { fill: #fff; stroke: var(--border); stroke-width: 1.4; }
.ns-net-node use { color: var(--nc, var(--blue)); }
.ns-net-pulse {
  fill: var(--nc, var(--blue));
  transform-box: fill-box; transform-origin: center;
  animation: ns-net-blip 2.6s var(--ease) infinite; animation-delay: var(--nd, 0s);
}

.ns-net-flow { fill: var(--cyan); offset-rotate: 0deg; animation: ns-net-flow 2.4s linear infinite; }

@keyframes ns-net-breathe {
  0%, 100% { transform: scale(1); opacity: .45; }
  50% { transform: scale(1.16); opacity: .12; }
}
@keyframes ns-net-blip {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: .35; }
}
@keyframes ns-net-flow {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---------- hero visual: radar sweep (Digital Risk Protection) ---------- */
.ns-radar { display: flex; align-items: center; justify-content: center; }
.ns-radar svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.ns-ring { fill: none; stroke: var(--border); stroke-width: 1; }
.ns-ring--accent { stroke: var(--cyan); stroke-opacity: .5; }
.ns-tick { stroke: var(--muted); stroke-opacity: .35; stroke-width: 1.6; }
.ns-spoke { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 5; opacity: .7; }
.ns-sweep { transform-box: view-box; transform-origin: 200px 200px; animation: ns-spin 5s linear infinite; }
.ns-sweep path { opacity: .6; }
.ns-sweep-edge { stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(31,182,211,.7)); }
.ns-hub { fill: var(--navy-800); }
.ns-hub-ic { color: #fff; }
.ns-blip { fill: var(--teal); }
.ns-blip--alert { fill: #F04438; }
.ns-blip-pulse {
  fill: none; stroke: currentColor; stroke-width: 1.4;
  transform-box: fill-box; transform-origin: center; animation: ns-radar-blip 2.6s var(--ease) infinite;
}
.ns-blip-pulse--alert { color: #F04438; animation-duration: 1.8s; }
.ns-blip-pulse--ok { color: var(--teal); }
.ns-live-dot { fill: #F04438; animation: ns-live-pulse 1.6s ease-in-out infinite; }
.ns-live-text { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .08em; fill: var(--navy-800); }

@keyframes ns-spin { to { transform: rotate(360deg); } }
@keyframes ns-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ns-radar-blip {
  0% { transform: scale(.6); opacity: .9; }
  75% { opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 1080px) {
  .ns-net svg { max-width: 420px; }
  .ns-radar svg { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-net-flow, .ns-net-hubglow, .ns-net-pulse { animation: none !important; }
  .ns-net-flow { opacity: 0 !important; }
  .ns-sweep, .ns-blip-pulse, .ns-live-dot { animation: none !important; }
  .ns-blip-pulse { opacity: 0 !important; }
}

/* ---------- "What is X" intro: dark pull-quote + sub-service checklist ---------- */
.ns-intro-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 3vw, 28px);
  align-items: stretch; margin-top: clamp(30px, 4.5vw, 56px);
}
.ns-quote {
  position: relative; border-radius: 22px; overflow: hidden;
  padding: clamp(30px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-700) 100%); color: #E8EEF8;
}
.ns-quote__mark {
  position: absolute; top: -0.28em; left: 22px; font-family: var(--display); font-weight: 700;
  font-size: 7rem; line-height: 1; color: rgba(125, 224, 236, .16); pointer-events: none;
}
.ns-quote p {
  position: relative; z-index: 1; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.48; letter-spacing: -0.015em; margin: 0;
}
.ns-quote__foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; margin-top: 24px; font-size: 0.85rem; color: #9FB0CC; }
.ns-quote__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #7DE0EC; flex-shrink: 0; }
.ns-quote__ic svg { width: 17px; height: 17px; }

.ns-checklist {
  border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm);
  padding: clamp(22px, 2.6vw, 30px); list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.ns-checklist li { display: flex; align-items: flex-start; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ns-checklist li:last-child { border-bottom: 0; padding-bottom: 4px; }
.ns-checklist .ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--tint-2); color: var(--violet); margin-top: 1px;
}
.ns-checklist .ic svg { width: 17px; height: 17px; }
.ns-checklist span { font-size: 0.95rem; font-weight: 600; color: var(--navy-700); line-height: 1.4; padding-top: 6px; }

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

/* ---------- Coverage areas: 3-column variant (for 3-item service lists) ---------- */
.process__flow.problem.pf-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .process__flow.problem { grid-template-columns: 1fr; gap: 12px; }
  .process__flow.problem.pf-3 { grid-template-columns: 1fr; }
}

/* ---------- Final CTA: floating trust-note cluster (shared by all 4 new pages) ---------- */
.ns-cluster { position: relative; height: 380px; }
.ns-note {
  position: absolute; width: 220px; border-radius: 16px; padding: 18px 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #E8EEF8; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(18px) rotate(var(--rot, 0deg));
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.reveal.in .ns-note { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); animation: ns-note-float 6s var(--ease) infinite; }
.ns-note:hover { animation-play-state: paused; transform: translateY(-8px) rotate(var(--rot, 0deg)) scale(1.035); box-shadow: 0 36px 74px -28px rgba(0,0,0,.6); border-color: rgba(125,224,236,.4); }
.ns-note__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; background: rgba(125,224,236,.14); color: #7DE0EC; }
.ns-note__ic svg { width: 19px; height: 19px; }
.ns-note b { display: block; font-family: var(--display); font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.ns-note span { font-size: 0.82rem; color: #9FB0CC; line-height: 1.5; }
.ns-note--a { top: 6%; left: 4%; --rot: -4deg; animation-delay: .2s !important; }
.ns-note--b { top: 40%; left: 28%; --rot: 3deg; transition-delay: 140ms; animation-delay: 1.3s !important; }
.ns-note--c { top: 66%; left: 4%; --rot: -2deg; transition-delay: 280ms; animation-delay: 2.4s !important; }

@keyframes ns-note-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-11px) rotate(var(--rot, 0deg)); }
}

@media (max-width: 720px) {
  .ns-cluster { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .ns-note, .reveal.in .ns-note { position: static; width: auto; transform: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-note { transition: none !important; opacity: 1 !important; transform: none !important; }
  .ns-note, .reveal.in .ns-note { animation: none !important; }
}
