/* ============================================
   B2BCaptive — Design tokens
   ============================================ */
:root {
  --ink:        #0F1424;
  --ink-soft:   #171D33;
  --paper:      #F7F7F5;
  --paper-dim:  #ECECE8;
  --signal:     #3DDC97;
  --signal-dim: #2AA876;
  --coral:      #FF6B4A;
  --steel:      #8B93A7;
  --steel-light:#AEB4C6;
  --steel-dark: #4A5169;
  --white:      #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --max: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(61,220,151,0.18);
}

p.lede {
  font-size: 1.15rem;
  color: var(--steel-dark);
  max-width: 62ch;
}

/* ============================================
   Signature motif: locked-on reticle brackets
   ============================================ */
.reticle {
  position: relative;
  padding: 28px;
}
.reticle::before,
.reticle::after,
.reticle > .rb1,
.reticle > .rb2 {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--signal);
  transition: all 0.25s ease;
  opacity: 0.55;
}
.reticle::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.reticle::after   { top: 0; right: 0; border-left: none; border-bottom: none; }
.reticle > .rb1    { bottom: 0; left: 0; border-right: none; border-top: none; }
.reticle > .rb2    { bottom: 0; right: 0; border-left: none; border-top: none; }
.reticle:hover::before,
.reticle:hover::after,
.reticle:hover > .rb1,
.reticle:hover > .rb2 { opacity: 1; width: 22px; height: 22px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--coral);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover { background: #ff7f61; transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-dark:hover { background: var(--ink); color: var(--white); }

/* ============================================
   Header / Nav
   ============================================ */
header.site {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo .accent { color: var(--signal); }
.logo .bracket { color: var(--coral); }

nav.links {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav.links a {
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
nav.links a:hover, nav.links a.active { color: var(--white); }
nav.links a.active::after {
  content: '';
  position: absolute;
  bottom: -26px; left: 0; right: 0;
  height: 2px;
  background: var(--signal);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--white); display: block; }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 76px 0 92px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,147,167,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,147,167,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-flex {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.hero-inner { max-width: 560px; flex-shrink: 0; }
.hero p.lede { color: var(--steel-light); }
.hero .cta-row { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
}
.hero-stats .stat-num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--signal);
  font-weight: 500;
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 4px;
}

/* Hero sample-record visual */
.hero-visual {
  background: var(--ink-soft);
  border: 1px solid rgba(61,220,151,0.25);
  border-radius: var(--radius);
  padding: 28px 26px;
  width: 340px;
  flex-shrink: 0;
}
.hv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hv-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.hv-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--signal);
}
.hv-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.hv-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
.hv-val { font-size: 0.95rem; color: var(--white); font-weight: 500; }
.hv-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 16px 0; }
.hv-check {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--steel-light);
  margin-bottom: 10px;
}
.hv-ok { color: var(--signal); font-family: var(--font-mono); font-size: 0.8rem; }
.hv-footnote {
  font-size: 0.72rem;
  color: var(--steel-dark);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-style: italic;
}

/* ============================================
   Sections (generic)
   ============================================ */
section { padding: 96px 0; }
section.dim { background: var(--paper-dim); }
section.ink { background: var(--ink); color: var(--white); }
section.ink p.lede { color: var(--steel-light); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================
   Service cards
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(15,20,36,0.08);
  padding: 40px 32px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--signal); transform: translateY(-3px); }
.card .num {
  font-family: var(--font-mono);
  color: var(--signal-dim);
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: block;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--steel-dark); font-size: 0.97rem; }
.card ul.check { margin-top: 18px; }
.card ul.check li {
  font-size: 0.9rem;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.card ul.check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--signal-dim);
  font-weight: 700;
}

/* ============================================
   Process steps
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; border-top: 2px solid var(--signal); }
.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--signal-dim);
  display: block;
  margin-bottom: 14px;
}

/* ============================================
   Testimonial / CTA banner
   ============================================ */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 18px; }
.cta-banner p.lede { margin: 0 auto 32px; color: var(--steel); }

/* ============================================
   Footer
   ============================================ */
footer.site {
  background: var(--ink);
  color: var(--steel);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
footer.site h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
}
footer.site ul li { margin-bottom: 10px; font-size: 0.92rem; }
footer.site ul li a:hover { color: var(--signal); }
footer.site .logo { margin-bottom: 14px; }
footer.site .foot-desc { font-size: 0.92rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   Page hero (inner pages)
   ============================================ */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,147,167,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,147,167,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 100% at 20% 0%, black 30%, transparent 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero p.lede { color: var(--steel-light); }

/* ============================================
   Forms
   ============================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-dark);
  margin-bottom: 8px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(15,20,36,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(61,220,151,0.15);
}
input.field-invalid {
  border-color: var(--coral);
}
input.field-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255,107,74,0.15);
}
textarea { resize: vertical; min-height: 120px; }

.contact-info-list { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item .eyebrow { margin-bottom: 8px; }
.contact-info-item a, .contact-info-item span.val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--white);
}

/* ============================================
   Blog / Signals
   ============================================ */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(15,20,36,0.1);
  align-items: start;
}
.post-row:hover h3 { color: var(--signal-dim); }
.post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel-dark);
}
.post-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal-dim);
  border: 1px solid var(--signal-dim);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.post-row h3 { margin-bottom: 10px; transition: color 0.2s ease; }
.post-row p { color: var(--steel-dark); font-size: 0.95rem; }

article.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 100px;
}
article.post-body h2 { margin-top: 42px; margin-bottom: 16px; }
article.post-body p { margin-bottom: 20px; color: var(--ink); font-size: 1.05rem; }
article.post-body ul, article.post-body ol { margin: 0 0 20px 22px; }
article.post-body li { margin-bottom: 8px; }
article.post-body blockquote {
  border-left: 3px solid var(--signal);
  padding-left: 20px;
  color: var(--steel-dark);
  font-style: italic;
  margin: 28px 0;
}

/* ============================================
   About page
   ============================================ */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.value-item { padding: 24px 0; border-top: 1px solid rgba(15,20,36,0.12); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .grid-3, .steps, .footer-grid, .about-block, .value-list { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-flex { flex-direction: column; align-items: stretch; }
  .hero-inner { max-width: 100%; }
  .hero-visual { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  nav.links { display: none; }
  .menu-toggle { display: flex; }
  nav.links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--ink);
    padding: 24px 32px 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* ============================================
   Engagement popup (shows after 10s on page)
   ============================================ */
.engage-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,20,36,0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.engage-overlay.show { opacity: 1; pointer-events: auto; }
.engage-box {
  background: var(--ink);
  color: var(--white);
  max-width: 440px;
  width: 100%;
  padding: 40px 36px;
  border-radius: var(--radius);
  position: relative;
  border: 1px solid rgba(61,220,151,0.3);
  transform: translateY(12px);
  transition: transform 0.3s ease;
}
.engage-overlay.show .engage-box { transform: translateY(0); }
.engage-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--steel);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.engage-close:hover { color: var(--white); }
.engage-box h3 { font-size: 1.4rem; margin-bottom: 12px; padding-right: 20px; }
.engage-box p { color: var(--steel); font-size: 0.94rem; margin-bottom: 24px; }
.engage-box .btn { width: 100%; justify-content: center; }

