/* ==========================================================================
   BHARATEDGE — COMMUNICATION SYSTEMS SOLUTION PAGE
   Scope: communication-systems.html only. Loaded after css/solutions-template.css
   (breadcrumb, hero badge, FAQ, buttons, CTA reused). All selectors are
   namespaced `.cmx-`; nothing shared is modified.
   ========================================================================== */

.sol-page .cmx-sec { padding: 120px 0; position: relative; overflow: hidden; }
@media (max-width: 768px) { .sol-page .cmx-sec { padding: 84px 0; } }
.cmx-head { max-width: 760px; margin: 0 0 56px; }
.cmx-head h2 { color: var(--secondary); font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.18; text-wrap: balance; }
.cmx-head p { margin-top: 16px; max-width: 640px; color: var(--gray); font-size: 17px; line-height: 1.75; }
.cmx-on-dark .cmx-head h2 { color: #fff; }
.cmx-on-dark .cmx-head p { color: rgba(226, 240, 252, .74); }

/* ---------- 1. HERO: communication hub ---------- */
.sol-page .cmx-hero {
  position: relative; overflow: hidden; isolation: isolate; padding: 164px 0 92px; color: #fff;
  background:
    radial-gradient(ellipse 820px 600px at 80% 42%, rgba(20, 100, 145, .42), transparent 62%),
    radial-gradient(ellipse 600px 420px at 6% 100%, rgba(245, 158, 11, .08), transparent 65%),
    linear-gradient(165deg, #0b3c5d 0%, #072b42 50%, #04101c 100%);
}
.cmx-hero .sol-hero-grid { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 74% 46%, #000 30%, transparent 86%); mask-image: radial-gradient(ellipse 70% 80% at 74% 46%, #000 30%, transparent 86%); }
.cmx-hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.cmx-hero .sol-hero-inner { max-width: 600px; }
.cmx-hero h1 { margin-bottom: 20px; color: #fff; font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; line-height: 1.1; letter-spacing: -.012em; }
.cmx-hero h1 span { display: block; }
.cmx-hero h1 span + span { color: rgba(226, 240, 252, .82); }
.cmx-tagline { margin-bottom: 20px; padding-left: 16px; border-left: 3px solid var(--accent); color: #fff; font-size: clamp(15px, 1.4vw, 17.5px); font-weight: 500; line-height: 1.55; }
.cmx-hero .sol-hero-lede { margin-bottom: 36px; }
.cmx-hub-stage { position: relative; justify-self: end; width: min(100%, 540px); }
.cmx-hub-stage::before { content: ""; position: absolute; inset: 10%; background: radial-gradient(circle, rgba(245, 158, 11, .14), transparent 66%); filter: blur(26px); z-index: -1; }
.cmx-hub { width: 100%; height: auto; display: block; overflow: visible; }
.cmx-hub .h-ring { stroke: rgba(148, 197, 230, .28); stroke-width: 1.4; stroke-dasharray: 3 7; }
.cmx-hub .h-link { stroke: rgba(148, 197, 230, .5); stroke-width: 2; stroke-linecap: round; }
.cmx-hub .h-flow { stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 3 14; }
.cmx-hub .h-core { fill: #08304a; stroke: var(--accent); stroke-width: 2; }
.cmx-hub .h-core-in { fill: rgba(245, 158, 11, .1); stroke: rgba(245, 158, 11, .4); stroke-width: 1; }
.cmx-hub .h-pulse { fill: none; stroke: rgba(245, 158, 11, .5); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cmx-hub .h-hub { fill: #fff; font-family: "IBM Plex Sans", Arial, sans-serif; font-size: 12.5px; font-weight: 700; }
.cmx-hub .h-nc { fill: #08304a; stroke: rgba(148, 197, 230, .75); stroke-width: 1.8; }
.cmx-hub .h-ic { stroke: #e2f0fc; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cmx-hub .h-lbl { fill: #fff; font-family: "IBM Plex Sans", Arial, sans-serif; font-size: 14.5px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .cmx-hub .h-node { opacity: 0; animation: cmxIn .6s ease-out forwards; animation-delay: calc(.2s + var(--i) * .14s); }
  .cmx-hub .h-flow { animation: cmxFlow 1.7s linear infinite; animation-delay: calc(var(--i) * -.3s); }
  .cmx-hub .h-pulse { animation: cmxPulse 3.6s ease-out infinite; }
  .cmx-hub .h-pulse-2 { animation-delay: 1.8s; }
}
@keyframes cmxIn { to { opacity: 1; } }
@keyframes cmxFlow { to { stroke-dashoffset: -34; } }
@keyframes cmxPulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@media (max-width: 960px) {
  .sol-page .cmx-hero { padding: 140px 0 72px; }
  .cmx-hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .cmx-hub-stage { justify-self: center; width: min(100%, 460px); }
}

/* ---------- 2. CHANNELS (tabs) ---------- */
.cmx-chan { background: linear-gradient(180deg, #fff 0%, #f3f8fc 100%); }
.cmx-tabs { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.cmx-tablist { display: grid; gap: 8px; }
.cmx-tablist[hidden] { display: none; }
.cmx-tablist button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--secondary); text-align: left; cursor: pointer; font: inherit; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition); }
.cmx-tablist button i { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #eaf2f9; color: var(--primary); font-size: 15px; transition: background var(--transition), color var(--transition); }
.cmx-tablist button span { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.cmx-tablist button small { display: block; margin-top: 2px; color: var(--gray); font-size: 13px; font-weight: 400; }
.cmx-tablist button:hover { border-color: rgba(245, 158, 11, .6); }
.cmx-tablist button[aria-selected="true"] { border-color: var(--accent); background: #fff8eb; box-shadow: inset 4px 0 0 var(--accent); }
.cmx-tablist button[aria-selected="true"] i { background: var(--accent); color: #071827; }
.cmx-panels { min-width: 0; }
.cmx-panel { padding: 40px 40px 38px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.cmx-panel + .cmx-panel { margin-top: 20px; }
.cmx-panel[hidden] { display: none; }
.cmx-panel h3 { color: var(--secondary); font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; }
.cmx-panel > p { margin: 12px 0 22px; max-width: 56ch; color: var(--gray); font-size: 16.5px; line-height: 1.75; }
.cmx-panel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-bottom: 30px; }
.cmx-panel li { position: relative; padding-left: 22px; color: var(--dark); font-size: 15px; line-height: 1.55; }
.cmx-panel ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 11px; height: 2px; background: var(--accent); }
.cmx-path { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 0; border-top: 1px dashed rgba(11, 60, 93, .25); }
.cmx-path li { position: relative; padding: 8px 14px; margin-right: 34px; border: 1px solid rgba(11, 60, 93, .22); border-radius: 8px; background: #f3f8fc; color: var(--primary); font-size: 13.5px; font-weight: 600; }
.cmx-path li::before { display: none; }
.cmx-path li:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 34px; height: 2px; background: repeating-linear-gradient(90deg, rgba(217, 130, 8, .8) 0 5px, transparent 5px 9px); }
@media (prefers-reduced-motion: no-preference) {
  .cmx-panel:not([hidden]) .cmx-path li { animation: cmxLight .9s ease-out both; animation-delay: calc(var(--k, 0) * .28s + .2s); }
  .cmx-path li:nth-child(2) { --k: 1; } .cmx-path li:nth-child(3) { --k: 2; } .cmx-path li:nth-child(4) { --k: 3; } .cmx-path li:nth-child(5) { --k: 4; }
}
@keyframes cmxLight { 0% { background: #f3f8fc; border-color: rgba(11, 60, 93, .22); } 35% { background: #fff1d6; border-color: var(--accent); } 100% { background: #f3f8fc; border-color: rgba(11, 60, 93, .22); } }
@media (max-width: 960px) {
  .cmx-tabs { grid-template-columns: 1fr; gap: 20px; }
  .cmx-tablist { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .cmx-tablist[hidden] { display: none; }
  .cmx-tablist button { flex: 0 0 auto; width: auto; padding: 10px 14px; scroll-snap-align: start; }
  .cmx-tablist button small { display: none; }
  .cmx-tablist button i { width: 32px; height: 32px; }
  .cmx-tablist button span { white-space: nowrap; font-size: 14px; }
}
@media (max-width: 640px) {
  .cmx-panel { padding: 26px 22px 24px; }
  .cmx-panel ul { grid-template-columns: 1fr; }
  .cmx-path li { margin-right: 24px; }
  .cmx-path li:not(:last-child)::after { width: 24px; }
}

/* ---------- 3. CONTROL ROOM ---------- */
.cmx-ctl {
  color: #fff;
  background:
    repeating-linear-gradient(0deg, var(--blueprint-line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--blueprint-line) 0 1px, transparent 1px 44px),
    linear-gradient(165deg, #0b3c5d 0%, #072b42 55%, #04101c 100%);
}
.cmx-ctl-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.cmx-art-wrap { padding: 28px; border: 1px solid rgba(148, 197, 230, .28); border-radius: 12px; background: rgba(4, 16, 28, .5); }
.cmx-art { width: 100%; height: auto; display: block; }
.cmx-art * { stroke: rgba(170, 212, 238, .78); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.cmx-art .a { stroke: var(--accent); }
.cmx-art circle.a { fill: rgba(245, 158, 11, .22); }
@media (prefers-reduced-motion: no-preference) { .cmx-art path.a { stroke-dasharray: 5 9; animation: cmxFlow 1.8s linear infinite; } }
.cmx-ctl .cmx-head { margin-bottom: 28px; }
.cmx-ticks { display: grid; gap: 14px; }
.cmx-ticks li { position: relative; padding-left: 26px; color: #e2f0fc; font-size: 16px; line-height: 1.6; }
.cmx-ticks li::before { content: ""; position: absolute; left: 0; top: .7em; width: 13px; height: 2px; background: var(--accent); }
.cmx-ticks a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .cmx-ctl-layout { grid-template-columns: 1fr; gap: 36px; } .cmx-art-wrap { padding: 18px; } }

/* ---------- 4. LAYER STACK ---------- */
.cmx-stack { background: #f3f8fc; }
.cmx-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: center; }
.cmx-layer { width: var(--w); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 22px 30px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; background: #fff; }
.cmx-layer:nth-child(2) { border-left-color: #d98208; }
.cmx-layer:last-child { background: var(--secondary); border-color: var(--secondary); border-left-color: var(--accent); }
.cmx-layer h3 { color: var(--secondary); font-size: 18px; font-weight: 700; }
.cmx-layer p { color: var(--gray); font-size: 15px; line-height: 1.65; }
.cmx-layer:last-child h3 { color: #fff; }
.cmx-layer:last-child p { color: rgba(226, 240, 252, .78); }
@media (max-width: 900px) { .cmx-layer { width: 100% !important; grid-template-columns: 1fr; padding: 18px 20px; } }

/* ---------- 5. LIFECYCLE: a conversation ---------- */
.cmx-life { color: #fff; background: linear-gradient(165deg, #0b3c5d 0%, #072b42 55%, #04101c 100%); }
.cmx-thread { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.cmx-thread::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(148, 197, 230, .28); }
.cmx-msg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; }
.cmx-msg-n { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; background: #072b42; color: var(--accent); font-family: var(--mono); font-size: 15px; font-weight: 600; }
.cmx-bubble { position: relative; grid-row: 1; padding: 20px 24px 22px; border: 1px solid rgba(148, 197, 230, .3); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.cmx-bubble h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cmx-bubble p { color: rgba(226, 240, 252, .78); font-size: 15px; line-height: 1.7; }
.cmx-msg:nth-child(odd) .cmx-bubble { grid-column: 1; border-top-right-radius: 4px; margin-right: 8px; }
.cmx-msg:nth-child(even) .cmx-bubble { grid-column: 3; border-top-left-radius: 4px; margin-left: 8px; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); }
@media (max-width: 760px) {
  .cmx-thread::before { left: 19px; margin: 0; }
  .cmx-msg { grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; }
  .cmx-msg-n { grid-column: 1; }
  .cmx-msg:nth-child(n) .cmx-bubble { grid-column: 2; margin: 0; border-top-left-radius: 4px; border-top-right-radius: 14px; }
}

/* ---------- 6. INDUSTRIES: an editorial list ---------- */
.cmx-ind { background: #fff; }
.cmx-ind .cmx-head { margin-bottom: 36px; }
.cmx-ind-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.cmx-ind-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: baseline; padding: 26px 8px; border-bottom: 1px solid var(--border); transition: background var(--transition), padding var(--transition); }
.cmx-ind-list li:hover { background: #fff8eb; padding-left: 20px; }
.cmx-ind-list h3 { color: var(--secondary); font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; line-height: 1.25; }
.cmx-ind-list p { color: var(--gray); font-size: 15.5px; line-height: 1.7; }
@media (max-width: 760px) { .cmx-ind-list li { grid-template-columns: 1fr; gap: 4px; padding: 20px 4px; } .cmx-ind-list li:hover { padding-left: 12px; } }
@media (prefers-reduced-motion: reduce) { .cmx-ind-list li, .cmx-ind-list li:hover { transition: none; } }

/* ---------- 7. WHY ---------- */
.cmx-why { background: linear-gradient(180deg, #f3f8fc 0%, #e9f1f8 100%); }
.cmx-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--accent); }
.cmx-why-item { padding: 28px 26px 8px 0; }
.cmx-why-item + .cmx-why-item { padding-left: 26px; border-left: 1px solid rgba(11, 60, 93, .2); }
.cmx-why-item h3 { color: var(--secondary); font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.cmx-why-item p { color: var(--gray); font-size: 15px; line-height: 1.75; }
.cmx-scope { display: flex; gap: 12px; align-items: flex-start; margin-top: 44px; color: var(--gray); font-size: 14.5px; line-height: 1.65; }
.cmx-scope i { margin-top: 4px; color: var(--primary); }
@media (max-width: 960px) {
  .cmx-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmx-why-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .cmx-why-item:nth-child(n+3) { padding-top: 28px; border-top: 1px solid rgba(11, 60, 93, .2); margin-top: 20px; }
}
@media (max-width: 560px) {
  .cmx-why-grid { grid-template-columns: 1fr; }
  .cmx-why-item, .cmx-why-item + .cmx-why-item, .cmx-why-item:nth-child(3) { padding: 22px 0 8px; border-left: 0; margin-top: 0; }
  .cmx-why-item + .cmx-why-item { border-top: 1px solid rgba(11, 60, 93, .2); }
}

.sol-page .cmx-faq { padding: 110px 0; }
.cmx-faq .cmx-head { margin: 0 auto 48px; text-align: center; }
.cmx-faq .cmx-head h2 { margin: 0; }
