/* =========================================================
   BLACKX — brand website layer (dark-first, blue)
   Extends style.css + reuses nexus.css mockup frame.
   ========================================================= */

/* ---------- BlackX brand tokens (blue) ---------- */
body.blackx {
  --brand: #3b82f6;
  --brand-2: #60a5fa;
  --brand-ink: #2563eb;
  --brand-soft: rgba(59,130,246,.12);
  --brand-glow: rgba(59,130,246,.22);
  --grad: linear-gradient(120deg, #60a5fa 0%, #3b82f6 55%, #93c5fd 100%);
  --grad-text: linear-gradient(100deg, #60a5fa 0%, #3b82f6 52%, #93c5fd 100%);
  --shadow-brand: 0 14px 34px -12px rgba(59,130,246,.42);
  --accent: #3b82f6; --accent-2: #60a5fa;
  --accent-grad: linear-gradient(120deg, #60a5fa 0%, #3b82f6 55%, #93c5fd 100%);
  --accent-grad-text: linear-gradient(100deg, #60a5fa 0%, #3b82f6 52%, #93c5fd 100%);
  --accent-soft: rgba(59,130,246,.12);
}
[data-theme="dark"] body.blackx, body.blackx[data-theme="dark"] { --brand: #60a5fa; --brand-2: #7cb2fb; }
body.blackx .hero-aurora {
  background: radial-gradient(38% 50% at 30% 40%, rgba(59,130,246,.20), transparent 62%),
              radial-gradient(44% 54% at 72% 32%, rgba(96,165,250,.17), transparent 62%),
              radial-gradient(48% 40% at 52% 76%, rgba(147,197,253,.16), transparent 62%);
}
body.blackx .cta-band { background: linear-gradient(135deg, #2563eb, #3b82f6 55%, #60a5fa); }
body.blackx ::selection { background: rgba(59,130,246,.28); color: #fff; }
/* Badge uses the exact same blue as the X + primary buttons, so the logo,
   wordmark and theme all read as one consistent brand colour (no purple/navy). */
body.blackx .logo-badge { background: linear-gradient(150deg, #60a5fa 0%, #3b82f6 100%); box-shadow: 0 9px 22px -6px rgba(59,130,246,.5), inset 0 1px 0 rgba(255,255,255,.4); }

/* The BlackX wordmark: the X is bigger + the same brand blue as the badge */
.bx-mark { display: inline-flex; align-items: baseline; }
.bx-mark .x { color: #3b82f6; font-size: 1.16em; font-weight: 900; letter-spacing: -.05em; position: relative; top: .04em; }
[data-theme="dark"] .bx-mark .x, body.blackx[data-theme="dark"] .bx-mark .x { color: #60a5fa; }

/* Nav brand small caption */
.bx-cap small { letter-spacing: .12em; }

/* ---------- Dark nav capsule (BlackX = always a dark bar, both themes) ---------- */
body.blackx .nav-links { background: rgba(15, 23, 42, .9); border-color: rgba(255,255,255,.1); box-shadow: 0 12px 34px -14px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); }
body.blackx .nav-links a { color: rgba(255,255,255,.7); }
body.blackx .nav-links a:hover { color: #fff; background: rgba(255,255,255,.09); }
body.blackx .nav-links a.active,
body.blackx .nav-links a.nav-dd-trigger.active { color: #0b1220; background: #fff; }
body.blackx .nav-links a.nav-brand:hover { color: #93c5fd; }
body.blackx .nav-links a.nav-brand.nx:hover { color: #34d399; }

/* ---------- Hero: revenue/pipeline board mockup ---------- */
.bx-board .nx-app-body { grid-template-columns: 1fr; }
.bx-stage-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.bx-stage { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; }
.bx-stage .s-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.bx-stage .s-n { font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.bx-stage .s-sub { font-size: 10.5px; color: var(--brand); font-weight: 700; margin-top: 2px; }
.bx-chart { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding: 6px 2px 0; }
.bx-chart .bar { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); opacity: .9; }
.bx-chart .bar:last-child { background: var(--grad); box-shadow: 0 0 0 2px var(--brand-soft); }

/* ---------- Engine: the 6-step system (visual journey) ---------- */
.bx-engine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px){ .bx-engine { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px){ .bx-engine { grid-template-columns: 1fr; } }
.bx-eng { position: relative; padding: 28px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s; }
.bx-eng:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--brand) 52%, var(--border)); box-shadow: 0 26px 52px -26px var(--brand-glow); }
.bx-eng::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, var(--brand-soft), transparent 55%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.bx-eng:hover::before { opacity: 1; }
.bx-eng::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 108px; height: 108px; border-radius: 50%; background: var(--brand-soft); pointer-events: none; transition: transform .5s var(--ease-out); }
.bx-eng:hover::after { transform: scale(1.4); }
/* Gradient icon chip (same blue as the logo) */
.bx-eng .eng-ic { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(150deg, #60a5fa, #3b82f6); color: #fff; box-shadow: 0 12px 26px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.35); margin-bottom: 20px; transition: transform .45s var(--ease-out); }
.bx-eng:hover .eng-ic { transform: scale(1.08) rotate(-4deg); }
.bx-eng .eng-ic svg { width: 26px; height: 26px; }
.bx-eng .en { position: relative; z-index: 1; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 9px; }
.bx-eng h3 { position: relative; z-index: 1; font-size: 1.18rem; font-weight: 760; letter-spacing: -.02em; margin-bottom: 9px; }
.bx-eng p { position: relative; z-index: 1; color: var(--text-2); font-size: .93rem; line-height: 1.55; }
/* Flow arrow connecting steps in a row (desktop only) */
.bx-eng .eng-flow { display: none; }
@media (min-width: 901px){
  .bx-eng:not(:nth-child(3n)) .eng-flow { display: grid; place-items: center; position: absolute; top: 40px; right: -25px; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg, #60a5fa, #3b82f6); color: #fff; z-index: 6; box-shadow: 0 8px 20px -6px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.35); }
  .bx-eng .eng-flow svg { width: 15px; height: 15px; }
}

/* ---------- Big stat band ---------- */
.bx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px){ .bx-stats { grid-template-columns: 1fr 1fr; } }
.bx-stat { text-align: center; padding: 26px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.bx-stat .n { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.bx-stat .l { color: var(--text-2); font-size: .9rem; margin-top: 10px; font-weight: 500; }

/* ---------- "Who it's for" audience cards ---------- */
.bx-for { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px){ .bx-for { grid-template-columns: 1fr; } }
.bx-for .item { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s; }
.bx-for .item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 46%, var(--border)); box-shadow: 0 20px 42px -22px var(--brand-glow); }
.bx-for .item::after { content: ""; position: absolute; right: -32px; top: -32px; width: 92px; height: 92px; border-radius: 50%; background: var(--brand-soft); pointer-events: none; }
.bx-for .item .ic { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(150deg, #60a5fa, #3b82f6); color: #fff; display: grid; place-items: center; margin-bottom: 15px; box-shadow: 0 10px 22px -9px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.35); flex: none; transition: transform .4s var(--ease-out); }
.bx-for .item:hover .ic { transform: scale(1.08) rotate(-4deg); }
.bx-for .item .ic svg { width: 22px; height: 22px; }
.bx-for .item b { position: relative; z-index: 1; font-size: 1.02rem; font-weight: 730; letter-spacing: -.01em; margin-bottom: 6px; }
.bx-for .item small { position: relative; z-index: 1; color: var(--text-2); font-size: .88rem; line-height: 1.5; font-weight: 400; }

/* ---------- Pipeline mockup summary strip ---------- */
.bx-pipe-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.bx-pipe-sum > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; }
.bx-pipe-sum .v { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.bx-pipe-sum .v.up { color: #14A800; }
.bx-pipe-sum .k { display: block; font-size: 10px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }

/* Gradient check chips on feature lists (matches the engine icon chips) */
body.blackx .nx-feat-list li .fi { background: linear-gradient(150deg, #60a5fa, #3b82f6); color: #fff; box-shadow: 0 8px 18px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.35); }

/* ---------- Upwork trust chip ---------- */
.bx-uw { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 650; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; }
.bx-uw .g { width: 20px; height: 20px; border-radius: 6px; background: #14A800; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 12px; }

/* =========================================================
   SERVICE PAGES (multi-page build)
   ========================================================= */

/* Compact inner-page hero */
.bx-phero { position: relative; overflow: hidden; padding: clamp(118px, 15vh, 172px) 0 clamp(38px, 5vw, 60px); }
.bx-phero .eyebrow { justify-content: flex-start; }
.bx-phero .lead { max-width: 620px; }
.bx-crumbs { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--text-3); margin-bottom: 20px; }
.bx-crumbs a { color: var(--text-3); }
.bx-crumbs a:hover { color: var(--brand); }
.bx-crumbs span { opacity: .5; }

/* Service pillar cards (home teaser + services hub) */
.bx-svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px){ .bx-svc-grid { grid-template-columns: 1fr; } }
.bx-svc { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease-out), border-color .4s; }
.bx-svc:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand) 42%, var(--border)); }
.bx-svc::after { content: ""; position: absolute; right: -44px; top: -44px; width: 130px; height: 130px; border-radius: 50%; background: var(--brand-soft); pointer-events: none; }
.bx-svc .svc-ic { position: relative; width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(145deg, var(--brand-soft), color-mix(in srgb, var(--brand) 5%, var(--surface))); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.bx-svc .svc-ic svg { width: 26px; height: 26px; }
.bx-svc .svc-n { font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); margin-bottom: 9px; }
.bx-svc h3 { font-size: 1.34rem; font-weight: 780; letter-spacing: -.025em; margin-bottom: 11px; }
.bx-svc > p { color: var(--text-2); font-size: .96rem; margin-bottom: 18px; }
.bx-svc ul { list-style: none; display: grid; gap: 9px; margin: 0 0 24px; }
.bx-svc ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.bx-svc ul li svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 2px; }
.bx-svc .svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); font-size: .95rem; }
.bx-svc .svc-more svg { width: 17px; height: 17px; transition: transform .3s var(--ease-out); }
.bx-svc:hover .svc-more svg { transform: translateX(5px); }

/* "What's included" checklist (service detail pages) */
.bx-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 30px; }
@media (max-width: 640px){ .bx-incl { grid-template-columns: 1fr; } }
.bx-incl li { list-style: none; display: flex; gap: 13px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--border); font-size: .95rem; color: var(--text-2); line-height: 1.5; }
.bx-incl li b { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
.bx-incl li .ck { width: 24px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; margin-top: 1px; }
.bx-incl li .ck svg { width: 14px; height: 14px; }

/* Outcome / metric tiles */
.bx-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 820px){ .bx-out { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px){ .bx-out { grid-template-columns: 1fr; } }
.bx-out .t { padding: 24px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.bx-out .t .big { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.bx-out .t .cap { color: var(--text-2); font-size: .88rem; margin-top: 9px; }

/* Numbered process rail (service pages) */
.bx-rail { display: grid; gap: 14px; }
.bx-rail .row { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: border-color .35s, transform .35s var(--ease-out); }
.bx-rail .row:hover { border-color: color-mix(in srgb, var(--brand) 38%, var(--border)); transform: translateX(4px); }
.bx-rail .row .rn { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.bx-rail .row h3 { font-size: 1.12rem; font-weight: 740; letter-spacing: -.02em; margin-bottom: 6px; }
.bx-rail .row p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 520px){ .bx-rail .row { grid-template-columns: 1fr; gap: 12px; } }

/* Channel / logo chips */
.bx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bx-chips .c { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .88rem; color: var(--text-2); }
.bx-chips .c svg { width: 16px; height: 16px; color: var(--brand); }
