/* ==========================================================================
   CyberCosmos - Service detail pages (services/*.html)
   Palette: navy #0b1f5c / royal #0a5bd8 / sky #1fb5f5  (shares :root vars from styles.css)
   ========================================================================== */
.sp-main { position: relative; z-index: 5; }
.sp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sp-narrow { max-width: 860px; }

/* ---- hero ---- */
.sp-hero {
  padding: 9.5rem 0 4.5rem;
  background:
    radial-gradient(700px 360px at 85% 10%, rgba(31, 181, 245, 0.16), transparent 65%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; align-items: center; }
.sp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.sp-crumbs a { color: var(--logo-blue); text-decoration: none; font-weight: 600; }
.sp-crumbs a:hover { text-decoration: underline; }
.sp-crumbs b { font-weight: 600; color: var(--logo-navy); }
.sp-eyebrow {
  display: inline-block; padding: .35rem .8rem; border-radius: 9999px; margin-bottom: 1rem;
  font: 600 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--logo-blue); background: rgba(10, 91, 216, .08); border: 1px solid rgba(10, 91, 216, .18);
}
.sp-hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.1; font-weight: 800; color: var(--logo-navy); margin-bottom: 1rem; }
.sp-lead { font-size: 1.2rem; line-height: 1.5; font-weight: 600; color: var(--logo-blue); margin-bottom: .85rem; max-width: 40rem; }
.sp-intro { font-size: 1.02rem; line-height: 1.75; color: var(--text-secondary); max-width: 41rem; }
.sp-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.sp-actions-center { justify-content: center; }

.sp-visual { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.sp-orb {
  position: relative; width: min(100%, 300px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #e4f1ff 45%, #cfe5ff 100%);
  box-shadow: 0 30px 70px -30px rgba(10, 91, 216, .5), inset 0 0 0 1px rgba(10, 91, 216, .12);
}
.sp-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(10, 91, 216, .35); animation: sp-spin 28s linear infinite; }
.sp-ring.r2 { inset: -34px; border-style: solid; border-color: rgba(31, 181, 245, .22); animation-duration: 44s; animation-direction: reverse; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-orb-icon {
  width: 46%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 28%;
  color: #fff; background: linear-gradient(135deg, #0a5bd8 0%, #1fb5f5 100%);
  box-shadow: 0 22px 40px -16px rgba(10, 91, 216, .6);
}
.sp-orb-icon svg { width: 52%; height: 52%; }
.sp-best { text-align: center; margin-top: 1.75rem; }
.sp-best small { display: block; margin-bottom: .5rem; font: 600 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sp-best div { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.sp-chip { padding: .4rem .8rem; border-radius: 9999px; font-size: .78rem; font-weight: 600; color: var(--logo-navy); background: #fff; border: 1px solid rgba(10, 91, 216, .16); }

/* ---- generic sections ---- */
.sp-section { padding: 5rem 0; background: #ffffff; }
.sp-section.sp-alt { background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%); }
.sp-head { text-align: center; max-width: 42rem; margin: 0 auto 2.75rem; }
.sp-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--logo-navy); margin-bottom: .6rem; }
.sp-head p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.sp-grid { display: grid; gap: 1.1rem; }
ul.sp-grid { list-style: none; padding: 0; margin: 0; }
.sp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-card {
  background: #fff; border: 1px solid rgba(11, 31, 92, .09); border-radius: 1.1rem; padding: 1.4rem;
  box-shadow: 0 12px 30px -20px rgba(11, 31, 92, .25);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.sp-card:hover { transform: translateY(-3px); border-color: rgba(10, 91, 216, .3); box-shadow: 0 22px 40px -22px rgba(10, 91, 216, .35); }
.sp-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--logo-navy); margin-bottom: .4rem; }
.sp-card p { font-size: .92rem; line-height: 1.6; color: var(--text-secondary); }
.sp-check { display: flex; align-items: flex-start; gap: .85rem; font-weight: 600; color: var(--logo-navy); font-size: .95rem; line-height: 1.45; }
.sp-tick { flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #0a5bd8, #1fb5f5); }
.sp-tick svg { width: .95rem; height: .95rem; }
.sp-num { display: inline-block; margin-bottom: .6rem; font: 700 .8rem/1 var(--font-mono); letter-spacing: .1em; color: var(--logo-sky); }
.sp-note { margin-top: 1.5rem; text-align: center; font-size: .88rem; line-height: 1.6; color: var(--text-muted); max-width: 46rem; margin-inline: auto; }

/* ---- rows (service models etc.) ---- */
.sp-rows { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid rgba(11, 31, 92, .09); border-radius: 1.25rem; overflow: hidden; box-shadow: 0 16px 40px -26px rgba(11, 31, 92, .3); }
.sp-row { display: grid; grid-template-columns: 240px 1fr; gap: 1.25rem; padding: 1.1rem 1.5rem; align-items: center; }
.sp-row + .sp-row { border-top: 1px solid rgba(11, 31, 92, .07); }
.sp-row strong { color: var(--logo-navy); font-weight: 700; }
.sp-row span { color: var(--text-secondary); font-size: .95rem; }

/* ---- compare ---- */
.sp-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sp-compare-col { background: #fff; border: 1px solid rgba(11, 31, 92, .09); border-radius: 1.25rem; padding: 1.75rem; box-shadow: 0 16px 40px -26px rgba(11, 31, 92, .3); }
.sp-compare-col:first-child { border-top: 4px solid #0a5bd8; }
.sp-compare-col:last-child { border-top: 4px solid #10b981; }
.sp-compare-col h3 { font-size: 1.25rem; font-weight: 800; color: var(--logo-navy); }
.sp-compare-col > p { color: var(--text-muted); font-size: .9rem; margin: .25rem 0 1.1rem; }
.sp-compare-col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.sp-compare-col li { display: flex; gap: .7rem; align-items: flex-start; color: var(--logo-navy); font-weight: 600; font-size: .94rem; }
.sp-compare-col:last-child .sp-tick { background: linear-gradient(135deg, #059669, #10b981); }

/* ---- steps ---- */
.sp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; position: relative; }
.sp-step { position: relative; padding: 1.5rem 1.25rem 1.25rem; background: #f4f8ff; border: 1px solid rgba(10, 91, 216, .12); border-radius: 1.1rem; }
.sp-step-n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; margin-bottom: .9rem; font: 700 1rem/1 var(--font-heading); color: #fff; background: linear-gradient(135deg, #0a5bd8, #1fb5f5); box-shadow: 0 10px 20px -8px rgba(10, 91, 216, .55); }
.sp-step h3 { font-size: 1rem; font-weight: 700; color: var(--logo-navy); margin-bottom: .35rem; }
.sp-step p { font-size: .88rem; line-height: 1.6; color: var(--text-secondary); }

/* ---- why ccs ---- */
.sp-why { padding: 3.5rem 0; }
.sp-why h3 { font-size: 1.05rem; font-weight: 700; color: var(--logo-navy); margin-bottom: .4rem; }
.sp-why p { font-size: .92rem; line-height: 1.65; color: var(--text-secondary); }

/* ---- related ---- */
.sp-rel { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid rgba(11, 31, 92, .09); border-radius: 1rem; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.sp-rel:hover { transform: translateY(-3px); border-color: rgba(10, 91, 216, .3); box-shadow: 0 18px 34px -20px rgba(10, 91, 216, .4); }
.sp-rel strong { display: block; font: 600 .92rem/1.3 var(--font-body); color: var(--logo-navy); }
.sp-rel small { display: block; margin-top: .15rem; font-size: .76rem; color: var(--text-muted); }
.sp-rel:hover .mega-icon { background: linear-gradient(135deg, #0a5bd8, #1fb5f5); color: #fff; border-color: transparent; }

/* ---- faq ---- */
.sp-faq-list { display: grid; gap: .75rem; }
.sp-faq { background: #fff; border: 1px solid rgba(11, 31, 92, .09); border-radius: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.sp-faq:hover { border-color: rgba(10, 91, 216, .3); box-shadow: 0 14px 30px -22px rgba(10, 91, 216, .4); }
.sp-faq .faq-trigger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sp-faq h3 { font-size: 1rem; font-weight: 700; color: var(--logo-navy); }
.sp-faq .faq-icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--logo-blue); transition: transform .3s ease; }
.sp-faq .faq-content { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(11, 31, 92, .08); font-size: .93rem; line-height: 1.7; color: var(--text-secondary); }

/* ---- cta band ---- */
.sp-cta { position: relative; padding: 5rem 0; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(700px 320px at 85% 0%, rgba(31, 181, 245, .28), transparent 65%), radial-gradient(600px 320px at 5% 100%, rgba(10, 91, 216, .45), transparent 65%), linear-gradient(180deg, #071538 0%, #0b1f5c 100%); }
.sp-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: .75rem; }
.sp-cta p { color: #b6c6e8; max-width: 38rem; margin: 0 auto; line-height: 1.65; }
.sp-cta .btn-cyber-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.sp-cta .btn-cyber-secondary:hover { background: rgba(31,181,245,.22); border-color: #1fb5f5; color: #fff; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .sp-hero-grid { grid-template-columns: 1fr; }
  .sp-visual { flex-direction: row; justify-content: flex-start; gap: 2rem; flex-wrap: wrap; }
  .sp-orb { width: 200px; }
  .sp-best { text-align: left; }
  .sp-best div { justify-content: flex-start; }
  .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .sp-hero { padding: 7.5rem 0 3rem; }
  .sp-section { padding: 3.5rem 0; }
  .sp-grid-3, .sp-compare { grid-template-columns: 1fr; }
  .sp-row { grid-template-columns: 1fr; gap: .25rem; }
  .sp-steps { grid-template-columns: 1fr; }
  .sp-orb { display: none; }
  .sp-wrap { padding: 0 1.1rem; }
}
@media (min-width: 769px) and (max-width: 1024px) { .sp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .sp-ring { animation: none; } }