/* BHUB Services: design tokens first, then layout and components. */

:root {
  --bg: #0b0f1a;
  --bg-raised: #0e1424;
  --surface: #121a2e;
  --surface-2: #18223b;
  --line: #28324d;
  --line-strong: #3a4769;
  --text: #e6ecff;
  --muted: #9aa6c7;
  --subtle: #7d89ab;
  --teal: #5eead4;
  --indigo: #818cf8;
  --lilac: #a5b4fc;
  --teal-soft: rgba(94, 234, 212, .12);
  --indigo-soft: rgba(129, 140, 248, .15);
  --danger: #fda4af;
  --on-accent: #07101c;
  --grad: linear-gradient(90deg, var(--teal), var(--indigo));

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .6);

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 28px);
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.has-tray { padding-bottom: 84px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--teal); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: var(--on-accent);
  box-shadow: 0 8px 24px -10px rgba(94, 234, 212, .55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(129, 140, 248, .6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
.btn-lg { padding: .85em 1.5em; font-size: 1.02rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.link-btn {
  padding: 2px 4px; border: 0; background: none;
  color: var(--teal); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 15, 26, .9); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; letter-spacing: .02em; text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.brand-name span { color: var(--muted); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: .45em .75em; border-radius: 8px;
  color: var(--muted); font-size: .95rem; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.site-nav a[aria-current] { color: var(--teal); }
.site-nav .btn { margin-left: 6px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: transparent; color: var(--text); font-size: 1.15rem;
  }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .site-nav a:not(.btn) { padding: .85em .25em; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin: 12px 0 0; padding: .85em; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 8vw, 104px);
}
.hero-glow {
  position: absolute; inset: -10% -10% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 48% at 18% 28%, rgba(94, 234, 212, .15), transparent 70%),
    radial-gradient(40% 50% at 82% 22%, rgba(129, 140, 248, .2), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(18, 26, 46, .6);
  color: var(--muted); font-size: .88rem; font-weight: 550;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(94, 234, 212, .18); }
.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.25rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -.03em;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 36em; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 32px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: .93rem;
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .icon { color: var(--teal); }

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 34, 59, .92), rgba(18, 26, 46, .92));
  box-shadow: 0 30px 80px -40px rgba(129, 140, 248, .45), var(--shadow);
}
.hero-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(94, 234, 212, .55), transparent 40%, transparent 60%, rgba(129, 140, 248, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.panel-label {
  margin: 4px 4px 14px;
  color: var(--subtle); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.intents { display: grid; gap: 10px; }
.intent {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(11, 15, 26, .55); color: var(--text); text-align: left;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.intent:hover { border-color: rgba(94, 234, 212, .6); background: rgba(94, 234, 212, .06); transform: translateX(2px); }
.intent-text { display: grid; flex: 1; gap: 2px; }
.intent-text b { font-weight: 650; }
.intent-text small { color: var(--muted); font-size: .88rem; }
.intent-arrow { color: var(--subtle); transition: transform .2s var(--ease), color .2s; }
.intent:hover .intent-arrow { color: var(--teal); transform: translateX(3px); }
.panel-foot { display: block; margin: 16px 4px 2px; color: var(--muted); font-size: .92rem; text-decoration: none; }
.panel-foot span { color: var(--teal); font-weight: 600; }
.panel-foot:hover span { text-decoration: underline; }

/* Tinted icon tile, shared by intents, service cards, the summary and pillars. */
.ticon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal); font-size: 1.2rem;
}
.ticon[data-tone="1"] { background: var(--indigo-soft); color: var(--indigo); }
.ticon[data-tone="2"] { background: linear-gradient(135deg, var(--teal-soft), var(--indigo-soft)); color: var(--lilac); }
.ticon.sm { width: 34px; height: 34px; border-radius: 9px; font-size: 1rem; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
}

@media (max-width: 480px) {
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: 0; }
.section.alt { background: var(--bg-raised); border-top: 1px solid rgba(40, 50, 77, .55); border-bottom: 1px solid rgba(40, 50, 77, .55); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.kicker {
  display: inline-block; margin-bottom: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.section-sub { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.section-sub b { color: var(--text); font-weight: 600; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -13px; z-index: 1;
  width: 10px; height: 10px;
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
}
.step-num {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px;
  background: var(--grad); color: var(--on-accent); font-weight: 800;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }
.step:nth-child(2) { transition-delay: .08s; }
.step:nth-child(3) { transition-delay: .16s; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

/* ---------- Service catalog ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .5em 1em;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted); font-size: .93rem; font-weight: 550;
  transition: color .2s, border-color .2s, background-color .2s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
.tab-count { padding: 0 .5em; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: .78rem; line-height: 1.6; }
.tab[aria-pressed="true"] .tab-count { background: rgba(7, 16, 28, .15); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }

.svc {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease), background-color .2s;
}
.svc:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); }
.svc.is-picked {
  border-color: rgba(94, 234, 212, .7);
  background: linear-gradient(180deg, rgba(94, 234, 212, .07), var(--surface) 60%);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, .3), 0 18px 40px -20px rgba(94, 234, 212, .3);
}
.svc.pop { animation: pop .35s var(--ease) both; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.svc-cat { color: var(--subtle); font-size: .76rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.svc h3 { font-size: 1.15rem; }
.svc-desc { color: var(--muted); font-size: .95rem; }
.svc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.svc-tags-label { color: var(--subtle); font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: .82rem;
}
.chip i {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: var(--on-accent);
  font-style: normal; font-size: .72rem; font-weight: 700;
}
.svc-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: .86rem;
}
.svc-time { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.svc-price { color: var(--teal); font-weight: 600; }
.svc-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 4px; padding: .65em 1em;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .02); color: var(--text); font-size: .95rem; font-weight: 600;
  transition: color .2s, border-color .2s, background-color .2s;
}
.svc-add:hover { border-color: var(--teal); color: var(--teal); }
.svc-add[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--on-accent); }

@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.noscript { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

/* ---------- Request ---------- */

.request-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.form-card { scroll-margin-top: calc(var(--header-h) + 16px); }

@media (max-width: 900px) {
  .request-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.field label, .field legend { display: block; margin-bottom: 7px; padding: 0; font-size: .93rem; font-weight: 600; }
.opt { color: var(--subtle); font-weight: 500; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .75em .9em;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #66729a; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(94, 234, 212, .2); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(253, 164, 175, .2); }
textarea { min-height: 128px; resize: vertical; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.5em; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; top: 50%; right: 1em; pointer-events: none;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
select option { background: var(--surface); color: var(--
