/* ═══════════════════════════════════════════════════
   service-page.css — detail pages for each service
   Requires layout.css already loaded (fonts + root vars)
   ═══════════════════════════════════════════════════ */

/* ── BASE ────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }

body.sl-page {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: #07061A;
  color: rgba(255,255,255,.88);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

body.sl-page h1,
body.sl-page h2,
body.sl-page h3,
body.sl-page h4,
body.sl-page h5,
body.sl-page h6 {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  margin: 0;
}

body.sl-page p  { margin: 0; }
body.sl-page a  { color: inherit; }
body.sl-page ul { list-style: none; margin: 0; padding: 0; }

/* ── BACK NAV / BREADCRUMB ───────────────────────── */
/* Sits right below the shared header with no extra gap.
   sp-wrap on the element handles horizontal padding + max-width. */
.sp-breadcrumb {
  display: flex;
  align-items: center;
  height: 46px;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
/* ← arrow prepended to the first (Home) link */
.sp-breadcrumb > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.62);
  font-weight: 600;
}
.sp-breadcrumb > a:first-child::before {
  content: "←";
  font-size: 13px;
  line-height: 1;
  color: #F3B430;
}
.sp-breadcrumb a { color: rgba(255,255,255,.48); text-decoration: none; transition: color .15s; }
.sp-breadcrumb a:hover { color: #F3B430; }
.sp-breadcrumb span { margin: 0 7px; opacity: .3; }

/* ── HERO ────────────────────────────────────────── */
.sp-hero {
  padding: 36px 0 80px;                /* vertical only — inner handles horizontal */
  background: linear-gradient(160deg, #0D0A24 0%, #07061A 70%);
  position:relative;
  overflow:hidden;
}
.sp-hero::before {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom,transparent,rgba(0,0,0,.55) 25%,rgba(0,0,0,.55) 75%,transparent);
  pointer-events:none;
}
/* match sp-wrap exactly so hero text aligns with all other sections */
.sp-hero-inner {
  position:relative;
  max-width:1100px;
  margin:0 auto;
  padding: 0 clamp(16px,6vw,80px);
}

.sp-eyebrow {
  font-family:'JetBrains Mono',monospace;
  font-size:10.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#F3B430;
  margin-bottom:18px;
}
.sp-hero h1 {
  font-family:'Hanken Grotesk',sans-serif;
  font-size:clamp(2.1rem,5vw,3.6rem);
  font-weight:800;
  line-height:1.1;
  letter-spacing:-.025em;
  margin-bottom:20px;
}
.sp-hero h1 em { font-style:normal; color:#F3B430; }
.sp-sub {
  font-size:1.05rem;
  color:rgba(255,255,255,.6);
  max-width:580px;
  line-height:1.75;
  margin-bottom:36px;
}
.sp-hero-ctas { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:52px; }

.sp-btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 24px;
  background:linear-gradient(120deg,#3A309A,#4F44C4);
  color:#fff; border-radius:8px;
  font-weight:600; font-size:.9rem;
  text-decoration:none;
  box-shadow:0 0 20px rgba(79,68,196,.35);
  transition:opacity .2s,box-shadow .2s;
}
.sp-btn-primary:hover { opacity:.85; box-shadow:0 0 28px rgba(79,68,196,.5); }

.sp-btn-ghost {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 24px;
  border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.82); border-radius:8px;
  font-weight:500; font-size:.9rem;
  text-decoration:none;
  transition:border-color .2s,color .2s;
}
.sp-btn-ghost:hover { border-color:#46D2FF; color:#46D2FF; }

.sp-stats { display:flex; gap:44px; flex-wrap:wrap; }
.sp-stat-val { font-size:2rem; font-weight:800; color:#F3B430; display:block; line-height:1; }
.sp-stat-lbl { font-size:.73rem; color:rgba(255,255,255,.45); margin-top:5px; display:block; }

/* ── SHARED SECTION UTILITIES ────────────────────── */
.sp-section { padding:80px 0; }           /* vertical only — sp-wrap handles horizontal */
.sp-bg-alt  { background:#0D0A24; }
.sp-bg-card { background:#130F35; }
/* THE single centering rule — everything lines up with this */
.sp-wrap    { max-width:1100px; margin:0 auto; padding: 0 clamp(16px,6vw,80px); }

.sp-section-head { margin-bottom:48px; }
.sp-section-head .sp-eyebrow { margin-bottom:10px; }
.sp-section-head h2 {
  font-family:'Hanken Grotesk',sans-serif;
  font-size:clamp(1.6rem,3.5vw,2.35rem);
  font-weight:800;
  letter-spacing:-.018em;
  margin-bottom:12px;
}
.sp-section-head p { color:rgba(255,255,255,.58); max-width:600px; line-height:1.72; }

/* ── ARCHITECTURE DIAGRAM ────────────────────────── */
.sp-diagram-wrap {
  background:#0A0820;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:40px 36px;
  overflow-x:auto;
}
.sp-diagram-wrap svg { width:100%; min-width:580px; height:auto; display:block; }

/* ── HOW WE DELIVER GRID ─────────────────────────── */
.sp-deliver-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:20px;
  margin-top:40px;
}
.sp-deliver-card {
  background:#130F35;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  padding:28px 24px;
}
.sp-deliver-num {
  width:36px; height:36px;
  border-radius:8px;
  background:rgba(243,180,48,.12);
  color:#F3B430;
  font-family:'JetBrains Mono',monospace;
  font-size:.8rem;
  font-weight:700;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.sp-deliver-card h4 { font-size:.94rem; font-weight:700; margin-bottom:7px; }
.sp-deliver-card p  { font-size:.82rem; color:rgba(255,255,255,.52); line-height:1.65; }

/* ── USE CASE CARDS ──────────────────────────────── */
.sp-cases-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:24px;
}
.sp-case-card {
  background:#130F35;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:32px 28px;
  position:relative;
  overflow:hidden;
}
.sp-case-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2.5px;
  background:linear-gradient(90deg,#F3B430,#46D2FF);
}
.sp-case-tag {
  display:inline-block;
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#46D2FF;
  background:rgba(70,210,255,.08);
  border:1px solid rgba(70,210,255,.2);
  border-radius:4px;
  padding:3px 8px;
  margin-bottom:14px;
}
.sp-case-card h3 { font-size:1.02rem; font-weight:700; margin-bottom:10px; line-height:1.4; }
.sp-case-card .prob {
  font-size:.82rem;
  color:rgba(255,255,255,.48);
  margin-bottom:12px;
  line-height:1.65;
}
.sp-case-card .sol  {
  font-size:.84rem;
  color:rgba(255,255,255,.72);
  line-height:1.7;
  margin-bottom:22px;
  padding-left:12px;
  border-left:2px solid rgba(243,180,48,.35);
}
.sp-results { display:flex; gap:22px; flex-wrap:wrap; }
.sp-result-val { font-size:1.35rem; font-weight:800; color:#F3B430; display:block; line-height:1; }
.sp-result-lbl { font-size:.68rem; color:rgba(255,255,255,.4); display:block; margin-top:3px; }

/* ── TECH CHIPS ──────────────────────────────────── */
.sp-chips { display:flex; flex-wrap:wrap; gap:9px; margin-top:24px; }
.sp-chip {
  padding:5px 14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:100px;
  font-size:.78rem;
  color:rgba(255,255,255,.7);
  white-space:nowrap;
}
.sp-chip.gold { border-color:rgba(243,180,48,.35); color:#F3B430; }
.sp-chip.cyan { border-color:rgba(70,210,255,.3);  color:#46D2FF; }

/* ── CTA SECTION ─────────────────────────────────── */
.sp-cta {
  padding:80px 0;              /* sp-wrap inside handles horizontal */
  text-align:center;
  background:linear-gradient(160deg,#130F35 0%,#07061A 100%);
  border-top:1px solid rgba(255,255,255,.06);
}
.sp-cta h2 {
  font-size:clamp(1.8rem,4vw,2.7rem);
  font-weight:800;
  letter-spacing:-.02em;
  margin-bottom:12px;
}
.sp-cta p { color:rgba(255,255,255,.55); margin-bottom:32px; font-size:1rem; }
.sp-cta-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media(max-width:768px){
  .sp-diagram-wrap          { padding:20px 12px; }
  .sp-section               { padding:56px 0; }
  .sp-hero                  { padding:28px 0 60px; }
  .sp-wrap, .sp-hero-inner  { padding-left:20px; padding-right:20px; }
  .sp-stats                 { gap:24px; }
  .sp-case-card             { padding:24px 20px; }
}
