/* ==========================================================================
   Cybergen — extended service pages (loaded after service.css and ai.css)
   Used by: DLP, Application Security, Cyber Security Review, Security Awareness,
   vCISO, Risk & Maturity, Third-Party Risk, Tabletop, Red & Purple Teaming,
   Identity & PAM, AI Governance.
   ========================================================================== */

/* ---------- Hero visual ---------- */
.sx-hero .ai-dash .body { gap: 14px; }
.sx-flow { border-radius: 12px; background: radial-gradient(ellipse at 50% 50%, rgba(10,74,124,.55), rgba(7,23,54,.9) 70%); border: 1px solid rgba(148,212,244,.12); padding: 6px 4px; }
.sx-flow svg { display: block; width: 100%; height: auto; }
.sx-rows > div { animation: sx-row .6s var(--ease) both; }
.sx-rows > div:nth-child(2) { animation-delay: .5s; } .sx-rows > div:nth-child(3) { animation-delay: .8s; }
.sx-rows > div:nth-child(4) { animation-delay: 1.1s; } .sx-rows > div:nth-child(5) { animation-delay: 1.4s; } .sx-rows > div:nth-child(6) { animation-delay: 1.7s; }
@keyframes sx-row { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.sx-rows .ai-tag { white-space: nowrap; }
.sx-hero .ai-float { animation: sx-float 6s ease-in-out 2s infinite, sx-pop .7s var(--ease) 1.9s both; }
@keyframes sx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sx-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.sx-bars { display: grid; gap: 9px; padding: 4px 2px; }
.sx-bars > div { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; font-size: 11.5px; color: rgba(255,255,255,.8); }
.sx-bars i { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.sx-bars i b { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #0b6aa3, var(--accent)); animation: sx-grow 1.4s var(--ease) both; }
.sx-bars i u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
@keyframes sx-grow { from { width: 0 !important; } }
.sx-legend { display: flex; gap: 16px; font-size: 10.5px; color: rgba(255,255,255,.55); padding: 0 2px; }
.sx-legend span { display: inline-flex; gap: 6px; align-items: center; }
.sx-legend i { width: 14px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #0b6aa3, var(--accent)); }
.sx-legend i.t { width: 2px; height: 10px; background: #fff; }

/* ---------- Intro + hub ---------- */
.sx-intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.sx-intro .lead + .lead { margin-top: 14px; }
.sx-intro .lead { font-size: 17px; }
.sx-quote { margin-top: 26px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--light); border-radius: 0 12px 12px 0; color: var(--navy); font-weight: 600; font-size: 15.5px; line-height: 1.55; }
.sx-hub { position: relative; display: grid; grid-template-columns: 1fr 132px 1fr; gap: 0; align-items: stretch; padding: 26px; border-radius: 24px; background: var(--navy); overflow: hidden; }
.sx-hub::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, #0a4a7c 0%, rgba(3,35,75,.6) 45%, transparent 75%); }
.sx-hub .col { position: relative; display: grid; gap: 14px; align-content: center; }
.sx-hub .node { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #0b2a57; border: 1px solid rgba(148,212,244,.35); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; min-height: 62px; transition: border-color .3s, transform .3s var(--ease), background .3s; }
.sx-hub .node:hover { border-color: var(--accent); background: #0e3468; transform: translateY(-2px); }
.sx-hub .node svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.sx-hub .col.l .node::after, .sx-hub .col.r .node::after { content: ""; position: absolute; top: 50%; width: 22px; height: 0; border-top: 1.5px dashed rgba(148,212,244,.65); animation: sx-dash 1.4s linear infinite; }
.sx-hub .col.l .node::after { left: 100%; }
.sx-hub .col.r .node::after { right: 100%; }
@keyframes sx-dash { to { border-top-color: rgba(148,212,244,.15); } }
.sx-hub .core { position: relative; margin: 0 22px; border-radius: 20px; background: linear-gradient(180deg, #0b6aa3, #005485 55%, #04335e); border: 1.5px solid rgba(148,212,244,.6); display: grid; place-items: center; text-align: center; padding: 16px 8px; color: #fff; box-shadow: 0 0 0 0 rgba(148,212,244,.4); animation: sx-core 3.2s ease-in-out infinite; }
.sx-hub .core svg { width: 34px; height: 34px; color: #fff; margin: 0 auto 10px; }
.sx-hub .core b { display: block; font-size: 12.5px; line-height: 1.35; font-weight: 700; }
.sx-hub .core small { display: block; margin-top: 8px; font-size: 9.5px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
@keyframes sx-core { 0%, 100% { box-shadow: 0 0 0 0 rgba(148,212,244,.35); } 50% { box-shadow: 0 0 0 12px rgba(148,212,244,0); } }
.sx-hub .node { opacity: 0; transform: translateY(10px); }
.sx-hub.in .node { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s, background .3s; }
.sx-hub.in .col.l .node:nth-child(2), .sx-hub.in .col.r .node:nth-child(2) { transition-delay: .15s; }
.sx-hub.in .col.l .node:nth-child(3), .sx-hub.in .col.r .node:nth-child(3) { transition-delay: .3s; }
.sx-hub.in .node:hover { transition-delay: 0s; }

/* ---------- Outcomes (dark) ---------- */
.sx-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.sx-out { position: relative; padding: 30px 28px; border-radius: 18px; background: rgba(7,28,66,.7); border: 1px solid rgba(148,212,244,.22); overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.sx-out:hover { transform: translateY(-4px); border-color: rgba(148,212,244,.55); }
.sx-out .num { position: absolute; right: 18px; top: 4px; font-size: 92px; font-weight: 800; line-height: 1; color: rgba(148,212,244,.08); }
.sx-out .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(148,212,244,.12); color: var(--accent); margin-bottom: 18px; }
.sx-out .ico svg { width: 24px; height: 24px; }
.sx-out h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.sx-out p { color: rgba(255,255,255,.72); font-size: 15px; margin: 0; }

/* ---------- Capabilities ---------- */
.sx-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.sx-cap { position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.sx-cap::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sx-cap:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(0,21,52,.1); border-color: rgba(11,106,163,.3); }
.sx-cap:hover::before { transform: scaleX(1); }
.sx-cap .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.sx-cap .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e6f3fa, #d4ecf6); color: var(--blue); transition: background .35s, color .35s; }
.sx-cap:hover .ico { background: linear-gradient(135deg, var(--blue), #0b6aa3); color: #fff; }
.sx-cap .ico svg { width: 25px; height: 25px; }
.sx-cap .n { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.sx-cap h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.sx-cap p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.sx-cap a { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--blue); display: inline-flex; gap: 6px; align-items: center; }
.sx-cap a svg { width: 14px; height: 14px; transition: transform .25s; }
.sx-cap a:hover svg { transform: translateX(3px); }

/* ---------- Coverage (dark tiles) ---------- */
.sx-cover { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.sx-tile { padding: 26px 22px; border-radius: 16px; background: rgba(11,42,87,.75); border: 1px solid rgba(148,212,244,.2); transition: border-color .3s, transform .3s var(--ease); }
.sx-tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.sx-tile .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(148,212,244,.5); color: var(--accent); margin-bottom: 16px; position: relative; }
.sx-tile .ico::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(148,212,244,.35); animation: sx-ring 3s ease-out infinite; }
@keyframes sx-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.sx-tile .ico svg { width: 20px; height: 20px; }
.sx-tile h3 { color: #fff; font-size: 16.5px; margin-bottom: 8px; }
.sx-tile p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; }
.sx-tile.warn { border-style: dashed; }

/* ---------- Deliverables ---------- */
.sx-deliver { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; margin-top: 10px; }
.sx-stack { position: relative; height: 380px; }
.sx-doc { position: absolute; left: 50%; top: 50%; width: 300px; height: 230px; margin: -115px 0 0 -150px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,21,52,.12); padding: 20px 22px; transition: transform 1s var(--ease); }
.sx-doc .h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sx-doc .h span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--accent); }
.sx-doc .h span svg { width: 18px; height: 18px; }
.sx-doc .h b { font-size: 13px; color: var(--navy); line-height: 1.3; }
.sx-doc i { display: block; height: 8px; border-radius: 99px; background: #e6eef3; margin-bottom: 9px; }
.sx-doc i:nth-of-type(2) { width: 86%; } .sx-doc i:nth-of-type(3) { width: 72%; } .sx-doc i:nth-of-type(4) { width: 92%; } .sx-doc i:nth-of-type(5) { width: 60%; }
.sx-doc em { position: absolute; right: 18px; bottom: 16px; font-style: normal; }
.sx-stack .d1 { transform: rotate(-7deg) translate(-10px, 10px); }
.sx-stack .d2 { transform: rotate(-2deg); }
.sx-stack .d3 { transform: rotate(4deg) translate(10px, -6px); }
.sx-stack .d4 { transform: rotate(9deg) translate(16px, -14px); }
.sx-stack.in .d1 { transform: rotate(-12deg) translate(-110px, 34px); }
.sx-stack.in .d2 { transform: rotate(-4deg) translate(-36px, 6px); }
.sx-stack.in .d3 { transform: rotate(4deg) translate(40px, -20px); }
.sx-stack.in .d4 { transform: rotate(11deg) translate(112px, -44px); }
.sx-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.sx-checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; color: var(--ink); font-weight: 500; }
.sx-checks li svg { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--blue); color: #fff; margin-top: 1px; }

/* ---------- Steps / approach ---------- */
.sx-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.sx-steps::before, .sx-steps::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 3px; border-radius: 3px; }
.sx-steps::before { background: rgba(148,212,244,.18); }
.sx-steps::after { background: linear-gradient(90deg, var(--accent), #fff); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) .3s; }
.sx-steps.in::after { transform: scaleX(1); }
.sx-step { position: relative; text-align: center; }
.sx-step .dot { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: #071c42; border: 2px solid rgba(148,212,244,.35); color: #fff; font-weight: 800; font-size: 18px; transition: border-color .5s, background .5s, box-shadow .5s; }
.sx-steps.in .sx-step .dot { border-color: var(--accent); background: #0b2a57; box-shadow: 0 0 0 8px rgba(148,212,244,.08); }
.sx-steps.in .sx-step:nth-child(2) .dot { transition-delay: .7s; } .sx-steps.in .sx-step:nth-child(3) .dot { transition-delay: 1.2s; } .sx-steps.in .sx-step:nth-child(4) .dot { transition-delay: 1.7s; }
.sx-step h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.sx-step p { color: rgba(255,255,255,.72); font-size: 14.5px; margin: 0 auto; max-width: 260px; }
.sx-step small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 6px; }

/* ---------- Use cases ---------- */
.sx-uses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.sx-use { display: flex; gap: 18px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.sx-use:hover { border-color: rgba(11,106,163,.35); box-shadow: 0 18px 40px rgba(0,21,52,.08); }
.sx-use .ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--accent); }
.sx-use .ico svg { width: 22px; height: 22px; }
.sx-use h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.sx-use p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Interactive scenarios ---------- */
.sx-sim { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; margin-top: 44px; align-items: start; }
.sx-sim [role="tablist"] { display: grid; gap: 12px; }
.sx-sim [role="tab"] { text-align: left; display: grid; gap: 4px; padding: 18px 20px; border-radius: 14px; border: 1.5px solid rgba(148,212,244,.22); background: rgba(7,28,66,.6); color: #fff; cursor: pointer; font: inherit; transition: border-color .3s, background .3s; }
.sx-sim [role="tab"] small { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.sx-sim [role="tab"] b { font-size: 16.5px; }
.sx-sim [role="tab"] span { font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.5; }
.sx-sim [role="tab"][aria-selected="true"] { border-color: var(--accent); background: #0b2a57; box-shadow: inset 4px 0 0 var(--accent); }
.sx-sim [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sx-panel { display: none; border-radius: 18px; background: #fff; color: var(--ink); padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.sx-panel.active { display: block; }
.sx-panel .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.sx-panel .ph b { color: var(--navy); font-size: 15px; }
.sx-panel .ph small { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.sx-panel .ev { font-size: 15px; color: var(--navy); font-weight: 500; padding: 14px 16px; border-radius: 12px; background: var(--light); margin-bottom: 20px; }
.sx-pipe { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: stretch; margin-bottom: 20px; }
.sx-pipe .st { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; animation: sx-step .5s var(--ease) both; }
.sx-pipe .st small { display: block; font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.sx-pipe .st b { font-size: 13.5px; color: var(--navy); line-height: 1.35; display: block; }
.sx-pipe .st:nth-child(3) { animation-delay: .35s; } .sx-pipe .st:nth-child(5) { animation-delay: .7s; }
.sx-pipe .st.res { border-color: transparent; }
.sx-pipe .st.res.crit { background: #fdecec; } .sx-pipe .st.res.crit b { color: #a82424; }
.sx-pipe .st.res.ok { background: #e3f6ec; } .sx-pipe .st.res.ok b { color: #0b5b3a; }
.sx-pipe .st.res.med { background: #fff4d6; } .sx-pipe .st.res.med b { color: #6b5200; }
.sx-pipe .ar { position: relative; align-self: center; height: 2px; background: linear-gradient(90deg, var(--blue-2), var(--accent)); animation: sx-step .4s var(--ease) both .2s; }
.sx-pipe .ar::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.sx-pipe .ar:nth-child(4) { animation-delay: .55s; }
@keyframes sx-step { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sx-panel p { color: var(--muted); font-size: 15px; margin: 0; }
.sx-note { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------- Related services ---------- */
.sx-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 18px; margin-top: 40px; }
.sx-related a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 16px; background: var(--navy); color: #fff; overflow: hidden; transition: transform .3s var(--ease); }
.sx-related a::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(148,212,244,.25), transparent 70%); transition: transform .5s var(--ease); }
.sx-related a:hover { transform: translateY(-4px); }
.sx-related a:hover::after { transform: scale(1.5); }
.sx-related small { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.sx-related b { font-size: 18px; line-height: 1.35; }
.sx-related p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.sx-related span { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.sx-related span svg { width: 14px; height: 14px; }

/* ---------- Responsive ---------- */
.sx-intro > *, .sx-deliver > *, .sx-sim > * { min-width: 0; }
@media (max-width: 1080px) {
  .sx-intro, .sx-deliver { grid-template-columns: 1fr; gap: 44px; }
  .sx-caps { grid-template-columns: 1fr 1fr; }
  .sx-cover { grid-template-columns: 1fr 1fr; }
  .sx-sim { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sx-hub { grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
  .sx-hub .core { grid-column: 1 / -1; order: -1; margin: 0 0 4px; padding: 18px; }
  .sx-hub .col { display: contents; }
  .sx-hub .col.l .node::after, .sx-hub .col.r .node::after { display: none; }
  .sx-hub .node { font-size: 12.5px; padding: 10px 12px; min-height: 0; }
  .sx-outcomes, .sx-caps, .sx-cover, .sx-uses { grid-template-columns: 1fr; }
  .sx-related { grid-template-columns: 1fr; }
  .sx-steps { grid-template-columns: 1fr; gap: 28px; }
  .sx-steps::before, .sx-steps::after { left: 31px; right: auto; top: 32px; bottom: 32px; width: 3px; height: auto; transform-origin: top; }
  .sx-steps::after { transform: scaleY(0); }
  .sx-steps.in::after { transform: scaleY(1); }
  .sx-step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; text-align: left; align-items: start; }
  .sx-step .dot { margin: 0; }
  .sx-step p { margin: 0; max-width: none; }
  .sx-stack { height: 300px; }
  .sx-doc { width: 230px; height: 190px; margin: -95px 0 0 -115px; padding: 16px; }
  .sx-stack.in .d1 { transform: rotate(-10deg) translate(-56px, 26px); }
  .sx-stack.in .d2 { transform: rotate(-3deg) translate(-18px, 6px); }
  .sx-stack.in .d3 { transform: rotate(4deg) translate(20px, -14px); }
  .sx-stack.in .d4 { transform: rotate(9deg) translate(56px, -30px); }
  .sx-pipe { grid-template-columns: 1fr; gap: 0; }
  .sx-pipe .ar { width: 2px; height: 22px; justify-self: center; background: linear-gradient(180deg, var(--blue-2), var(--accent)); }
  .sx-pipe .ar::after { right: -4px; top: auto; bottom: -2px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-rows > div, .sx-hero .ai-float, .sx-pipe .st, .sx-pipe .ar, .sx-bars i b, .sx-hub .core, .sx-tile .ico::after { animation: none !important; }
  .sx-hub .node { opacity: 1; transform: none; }
  .sx-steps::after { transition: none; }
}
/* hero float sits below the table so it never hides a status */
.sx-hero .ai-float { bottom: -34px; right: -18px; }
.sx-hero .ai-caption { margin-top: 48px; text-align: left; }
.sx-hero h1.long { font-size: clamp(34px, 4.4vw, 54px); }
@media (max-width: 760px) { .sx-hero .ai-float { bottom: auto; right: auto; } .sx-hero .ai-caption { margin-top: 10px; } }
@media (max-width: 760px) { .sx-hero .ai-float { margin: 12px 0 0; } }
