/* ============================================================
   SHARED CSS for /services/*.html pages
   Theme color is set per-page via --theme / --theme-2 / --theme-glow
   ============================================================ */

:root {
  --bg:        #0A0A12;
  --bg-2:      #11111C;
  --surface:   #161624;
  --surface-2: #1E1E2E;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --ink:       #FFFFFF;
  --ink-soft:  #B8B8C8;
  --ink-mute:  #6F6F86;
  --accent:    #8B5CF6;
  --accent-2:  #22D3EE;
  --accent-3:  #F472B6;
  --sf-blue:   #00A1E0;
  --hs-orange: #FF7A59;
  /* Default theme = purple-cyan (overridden per page) */
  --theme:     #8B5CF6;
  --theme-2:   #22D3EE;
  --theme-glow:rgba(139,92,246,0.22);
  --sans:      'Inter', system-ui, sans-serif;
  --display:   'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--theme); color: white; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 760px) { .wrap { padding: 0 20px; } }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.display-1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.display-2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
.display-3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }

.grad-theme {
  background: linear-gradient(120deg, #fff 0%, #fff 30%, var(--theme) 65%, var(--theme-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad {
  background: linear-gradient(120deg, #fff 0%, #fff 35%, var(--accent) 65%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--theme);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--theme);
  box-shadow: 0 0 0 4px var(--theme-glow);
}
.eyebrow.cyan { color: var(--accent-2); }
.eyebrow.cyan::before { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34,211,238,0.2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--theme) 0%, color-mix(in oklab, var(--theme) 70%, #000) 100%);
  color: #fff;
  box-shadow: 0 6px 20px -8px var(--theme-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -6px var(--theme-glow), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- NAV ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,18,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav.top .row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: #fff; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: conic-gradient(from 220deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  position: relative;
}
.logo-mark::after { content: ""; position: absolute; inset: 6px; background: var(--bg); border-radius: 4px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > a, .nav-links > .nav-group > .nav-trigger {
  font-size: 14px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer;
}
.nav-links a:hover, .nav-links .nav-trigger:hover { color: #fff; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta > a:first-child { font-size: 14px; color: var(--ink-soft); }
.nav-cta > a:first-child:hover { color: #fff; }

.nav-group { position: relative; }
.nav-group::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  width: 360px; height: 18px;
  transform: translateX(-50%);
  pointer-events: none;
}
.nav-group:hover::after, .nav-group:focus-within::after { pointer-events: auto; }
.nav-trigger svg { width: 12px; height: 12px; opacity: 0.5; transition: transform .2s ease; }
.nav-group:hover .nav-trigger svg, .nav-group:focus-within .nav-trigger svg { transform: rotate(180deg); }
.nav-pop {
  position: absolute;
  top: 100%; left: 50%;
  margin-top: 6px;
  transform: translateX(-50%) translateY(-6px);
  min-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .18s;
  z-index: 60;
}
.nav-group:hover .nav-pop, .nav-group:focus-within .nav-pop {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear 0s;
}
.nav-pop-item {
  display: flex; gap: 12px; padding: 12px;
  border-radius: 12px;
  align-items: flex-start;
  transition: background .15s ease;
}
.nav-pop-item:hover { background: rgba(255,255,255,0.04); }
.nav-pop-item .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  display: grid; place-items: center; color: var(--accent);
  flex-shrink: 0;
}
.nav-pop-item .icon.orange {
  background: rgba(255,122,89,0.12);
  border-color: rgba(255,122,89,0.25);
  color: var(--hs-orange);
}
.nav-pop-item .icon svg { width: 16px; height: 16px; }
.nav-pop-item .t { font-size: 14px; font-weight: 600; color: #fff; }
.nav-pop-item .d { font-size: 12px; color: var(--ink-mute); margin-top: 2px; line-height: 1.4; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta > a:first-child { display: none; }
  nav.top .row { height: 64px; }
}

/* ---------- MOBILE MENU ---------- */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  align-items: center; justify-content: center;
  color: #fff; margin-left: 8px; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .ic-x { display: none; }
body.menu-open .menu-toggle .ic-burger { display: none; }
body.menu-open .menu-toggle .ic-x { display: block; }
.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(10,10,18,0.98);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 49; padding: 96px 24px 48px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .2s ease, transform .25s ease;
  overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-drawer { opacity: 1; pointer-events: auto; transform: translateY(0); }
.md-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.md-section:last-of-type { border-bottom: none; }
.md-section h5 {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-mute); margin: 0 0 14px; font-weight: 500;
}
.md-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 12px; border-radius: 12px; color: #fff;
  font-family: var(--display); font-weight: 600;
  font-size: 18px; letter-spacing: -0.01em;
  transition: background .15s ease;
  text-decoration: none;
}
.md-link:hover { background: rgba(255,255,255,0.04); }
.md-link.sub { font-size: 15px; font-weight: 500; padding: 10px 12px; color: var(--ink-soft); }
.md-link .md-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  display: grid; place-items: center; color: var(--accent);
  flex-shrink: 0;
}
.md-link .md-ico.orange {
  background: rgba(255,122,89,0.12);
  border-color: rgba(255,122,89,0.25);
  color: var(--hs-orange);
}
.md-link .md-ico svg { width: 18px; height: 18px; }
.md-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.md-cta .btn { justify-content: center; width: 100%; }
@media (max-width: 1080px) { .menu-toggle { display: inline-flex; } }
@media (min-width: 1081px) { .mobile-drawer { display: none; } }

/* ---------- BREADCRUMB ---------- */
.crumb {
  padding: 28px 0 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
}
.crumb a:hover { color: var(--ink-soft); }
.crumb .sep { padding: 0 10px; opacity: 0.4; }
.crumb .cur { color: var(--ink-soft); }

/* ---------- HERO ---------- */
.svc-hero {
  position: relative; padding: 64px 0 100px; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, var(--theme-glow) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.12) 0%, transparent 45%),
    linear-gradient(135deg, #0E0E1A 0%, #0A0A12 40%, #1A0F1F 100%);
}
.svc-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(135deg, color-mix(in oklab, var(--theme) 30%, transparent) 0 1px, transparent 1px 240px);
  pointer-events: none; z-index: 0;
}
.svc-hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding-top: 24px;
}
@media (max-width: 1080px) { .svc-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.svc-hero h1 { margin-top: 20px; }
.svc-hero .sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 20px 0 28px;
  line-height: 1.6;
}
.svc-hero .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.iso-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .iso-stats { grid-template-columns: 1fr; gap: 10px; }
}
.iso-stats .ist {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(20,20,32,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.07);
}
.iso-stats .ist .k {
  font-family: var(--display); font-weight: 700; color: #fff;
  font-size: 22px; letter-spacing: -0.02em; line-height: 1;
}
.iso-stats .ist .k .small { font-size: 0.7em; opacity: 0.75; margin-left: 3px; }
.iso-stats .ist .l {
  font-size: 11px; color: var(--ink-mute);
  font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- SECTION SHELL ---------- */
.s { padding: 96px 0; position: relative; }
.s-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.s-head h2 { margin-top: 18px; }
.s-head p { color: var(--ink-soft); font-size: 17px; margin: 18px auto 0; max-width: 60ch; }
.s-head.left { text-align: left; margin: 0 0 48px; }

/* ---------- WHY CARDS (4-up) ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1080px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  padding: 28px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .2s ease, border-color .2s ease;
}
.why-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.why-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--theme) 30%, transparent) 0%, color-mix(in oklab, var(--theme-2) 20%, transparent) 100%);
  border: 1px solid color-mix(in oklab, var(--theme) 40%, transparent);
  display: grid; place-items: center; color: var(--theme);
  margin-bottom: 18px;
}
.why-card .ico svg { width: 22px; height: 22px; }
.why-card .k {
  font-family: var(--display); font-weight: 700; font-size: 30px; color: #fff;
  letter-spacing: -0.02em; line-height: 1;
}
.why-card .k .pct { font-size: 0.6em; opacity: 0.7; }
.why-card h4 { font-size: 15.5px; color: #fff; margin-top: 8px; letter-spacing: -0.01em; }
.why-card p { font-size: 13.5px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 10px; max-width: 880px; margin: 0 auto; }
details.faq {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color .2s ease, background .2s ease;
}
details.faq[open] { border-color: var(--line-2); background: rgba(255,255,255,0.05); }
details.faq > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--display); font-weight: 600; font-size: 16.5px; color: #fff;
  letter-spacing: -0.01em;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+"; font-family: var(--mono); font-size: 22px; color: var(--ink-mute); font-weight: 300; line-height: 1;
  transition: transform .2s ease;
}
details.faq[open] > summary::after { content: "−"; }
details.faq > p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 14px 0 0; }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; text-align: center; }
.cta-inner {
  max-width: 720px; margin: 0 auto;
  background:
    radial-gradient(ellipse at center top, var(--theme-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 56px 48px;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--theme) 25%, var(--theme-2) 75%, transparent);
  opacity: 0.7;
}
.cta-inner h2 { margin-top: 22px; }
.cta-inner p { color: var(--ink-soft); margin: 18px auto 0; max-width: 52ch; font-size: 16px; }
.cta-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- FOOTER ---------- */
footer { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 980px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--ink-mute); font-size: 13.5px; margin: 16px 0 18px; max-width: 36ch; }
.foot-col h5 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-mute); margin: 0 0 16px; font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13.5px; color: var(--ink-soft); }
.foot-col a:hover { color: #fff; }
.foot-bot {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.04em; text-transform: uppercase;
  flex-wrap: wrap; gap: 12px;
}
.foot-badges { display: flex; gap: 12px; }
.foot-badge { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; }

/* ---------- JOURNEY / FUNNEL (numbered horizontal steps, themed) ---------- */
.journey {
  display: grid;
  grid-template-columns: repeat(var(--journey-cols, 4), 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 1080px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .journey { grid-template-columns: 1fr; }
}
.journey-step {
  position: relative;
  padding: 28px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  transition: transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.journey-step:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--theme) 40%, transparent); }
.journey-step::before {
  counter-increment: js-step;
  content: counter(js-step, decimal-leading-zero);
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.journey { counter-reset: js-step; }
.journey-step .step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--theme), color-mix(in oklab, var(--theme) 60%, #000));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px -8px var(--theme-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.journey-step h3 {
  font-size: 17px; color: #fff; margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.journey-step p {
  font-size: 13.5px; color: var(--ink-soft);
  line-height: 1.55; margin: 0 0 16px;
  flex: 1;
}
.journey-step .tag-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.journey-step .tag-row span {
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-soft);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
