:root {
    --ink: #150C26;
    --body-bg: #1E1235;
    --panel: #271843;
    --panel-2: #302050;
    --hairline: #453267;
    --paper: #ECE9E1;
    --paper-dim: #B6ABC9;
    --gold: #E7B24C;
    --gold-dim: #6b5a30;
    --blue: #5A8FEF;
    --sage: #59A87C;
    --coral: #D9634F;
    --display: 'Archivo', sans-serif;
    --body: 'Public Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --wordmark: 'Inter', sans-serif;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

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

  a { color: inherit; text-decoration: none; }
  img, svg { max-width: 100%; display: block; }
  ::selection { background: var(--gold); color: var(--ink); }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  .wrap { 
     max-width: 1180px; 
	 margin: 0 auto; 
	 padding: 0 32px; 
	 padding-bottom: 44px;
  }

  .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
  }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--paper);
  }

  /* ── Nav ─────────────────────────────────────────────────────────────── */

  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(21, 12, 38, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--wordmark);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    color: var(--paper-dim);
  }

  .nav-links a { transition: color .15s; }
  .nav-links a:hover { color: var(--paper); }

  .nav-cta {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    background: var(--gold);
    color: var(--ink);
    padding: 9px 16px;
    border-radius: 6px;
    transition: opacity .15s;
  }
  .nav-cta:hover { opacity: .88; }

  @media (max-width: 720px) {
    .nav-links a:not(.nav-cta) { display: none; }
  }

  /* ── Hero ────────────────────────────────────────────────────────────── */

  .hero {
    padding: 96px 0 64px;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -160px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(160,110,224,0.20), transparent 70%);
    pointer-events: none;
  }

  .hero-inner {
    max-width: 1040px;
    position: relative;
  }

  .hero .eyebrow {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
  }

  .eyebrow-icon { width: 44px; height: 44px; flex-shrink: 0; }

  .hero h1 {
    font-size: clamp(34px, 5.4vw, 58px);
    line-height: 1.08;
    margin-bottom: 22px;
  }

  .hero h1 em { font-style: normal; color: var(--gold); }

  .hero p.sub {
    font-size: 18px;
    color: var(--paper-dim);
    max-width: 560px;
    margin-bottom: 36px;
  }

  .hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

  .btn-primary {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    background: var(--gold);
    color: var(--ink);
    padding: 13px 22px;
    border-radius: 6px;
    transition: transform .15s, opacity .15s;
    display: inline-block;
  }
  .btn-primary:hover { transform: translateY(-1px); opacity: .92; }

  .btn-ghost {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--paper-dim);
    padding: 13px 6px;
    border-bottom: 1px solid var(--hairline);
    transition: color .15s, border-color .15s;
  }
  .btn-ghost:hover { color: var(--paper); border-color: var(--paper-dim); }

  /* ── Pipeline strip (signature element) ─────────────────────────────── */

  .strip-wrap {
    margin-top: 72px;
    padding: 28px 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .strip { display: flex; align-items: center; justify-content: center; gap: 0; min-width: max-content; margin: 0 auto; padding: 0 4px; }

  .stage {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.3;
    color: var(--paper-dim);
    white-space: normal;
    text-align: center;
    max-width: 92px;
    padding: 8px 10px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--panel);
    opacity: 0;
    transform: translateY(6px);
    animation: stageIn .5s ease forwards;
  }

  .stage.wide { max-width: 120px; }

  .gate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 12px;
    margin: 0 6px;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(.6);
    animation: gateIn .5s cubic-bezier(.2,1.4,.4,1) forwards;
  }

  .connector { width: 12px; height: 1px; background: var(--hairline); flex-shrink: 0; }

  @keyframes stageIn { to { opacity: 1; transform: translateY(0); } }
  @keyframes gateIn { to { opacity: 1; transform: scale(1); } }

  @media (prefers-reduced-motion: reduce) {
    .stage, .gate { animation: none; opacity: 1; transform: none; }
  }

  /* ── Pillars ─────────────────────────────────────────────────────────── */

  .pillars { padding: 88px 0; border-top: 1px solid var(--hairline); }
  .pillars-head { max-width: 620px; margin-bottom: 56px; }
  .pillars-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 14px; }

  .pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    overflow: hidden;
  }
  @media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }

  .pillar { background: var(--panel); padding: 36px 30px; }

  .pillar-seal {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 22px;
  }
  .pillar-seal svg { width: 18px; height: 18px; }

  .pillar h3 { font-size: 19px; margin-bottom: 12px; font-weight: 600; }
  .pillar p { font-size: 14.5px; color: var(--paper-dim); }

  /* ── Voice requirements capture ──────────────────────────────────────── */

  .voice { padding: 88px 0; border-top: 1px solid var(--hairline); background: var(--panel); }

  .voice-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  @media (max-width: 860px) { .voice-inner { grid-template-columns: 1fr; } }

  .voice h2 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 18px; }
  .voice p { color: var(--paper-dim); font-size: 15px; margin-bottom: 14px; }

  .transcript {
    background: var(--ink);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 22px 24px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 2;
    color: var(--paper-dim);
    overflow-x: auto;
  }
  .transcript .spk-agent { color: var(--gold); }
  .transcript .spk-user { color: var(--blue); }
  .transcript .line { display: block; margin-bottom: 10px; }
  .transcript .line:last-child { margin-bottom: 0; }
  .transcript .note { color: var(--sage); }

  .voice .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
  .waveform-icon { width: 28px; height: 28px; flex-shrink: 0; }

  .waveform-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .waveform-bars .bar {
    width: 3px;
    border-radius: 2px;
    background: var(--blue);
    animation: barPulse 1.2s ease-in-out infinite;
  }
  .waveform-bars .bar:nth-child(3n) { background: var(--gold); }
  @keyframes barPulse {
    0%, 100% { transform: scaleY(.35); }
    50% { transform: scaleY(1); }
  }
  .waveform-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--paper-dim);
    margin-left: 10px;
    letter-spacing: .04em;
  }

  @media (prefers-reduced-motion: reduce) {
    .waveform-bars .bar { animation: none; transform: scaleY(.7); }
  }

  /* ── Pipeline detail ─────────────────────────────────────────────────── */

  .pipeline-detail { padding: 88px 0; border-top: 1px solid var(--hairline); background: var(--panel); }
  .pd-head { max-width: 640px; margin-bottom: 56px; }
  .pd-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 14px; }
  .pd-head p { color: var(--paper-dim); margin-top: 16px; font-size: 15.5px; }

  .stage-list { display: flex; flex-direction: column; }

  .stage-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .stage-row:last-child { border-bottom: none; }

  .stage-num { font-family: var(--mono); font-size: 12px; color: var(--paper-dim); }

  .stage-row.is-gate .stage-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
  }

  .stage-name { font-family: var(--display); font-weight: 600; font-size: 16px; }
  .stage-row.is-gate .stage-name { color: var(--gold); }

  .stage-desc {
    font-size: 13.5px;
    color: var(--paper-dim);
    font-family: var(--mono);
    text-align: right;
    max-width: 320px;
  }

  @media (max-width: 720px) {
    .stage-row { grid-template-columns: 32px 1fr; }
    .stage-desc { grid-column: 2; text-align: left; max-width: none; margin-top: 4px; }
  }

  /* ── Visual tools (two audiences) ───────────────────────────────────── */

  .tools { padding: 88px 0; border-top: 1px solid var(--hairline); }
  .tools-head { max-width: 640px; margin-bottom: 56px; }
  .tools-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 14px; }
  .tools-head p { color: var(--paper-dim); margin-top: 16px; font-size: 15.5px; }

  .tool-block {
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 30px 32px;
    margin-bottom: 20px;
    background: var(--panel);
  }
  .tool-block:last-child { margin-bottom: 0; }

  .tool-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
  .tool-icon { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
  .tool-name { font-family: var(--display); font-weight: 600; font-size: 18px; }
  .tool-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--paper-dim);
    border: 1px solid var(--hairline);
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: auto;
  }

  .audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border-radius: 8px; overflow: hidden; }
  @media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }

  .audience { background: var(--panel-2); padding: 20px 22px; }
  .audience-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
  }
  .audience.biz .audience-label { color: var(--blue); }
  .audience.ai .audience-label { color: var(--sage); }
  .audience p { font-size: 13.5px; color: var(--paper-dim); }

  /* ── Product preview ─────────────────────────────────────────────────── */

  .preview { padding: 88px 0; border-top: 1px solid var(--hairline); }
  .preview-head { max-width: 620px; margin-bottom: 48px; }
  .preview-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 14px; }

  .card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  @media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

  .opt-card {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 22px 24px;
    transition: border-color .2s;
  }
  .opt-card.rec { border-color: var(--gold); }
  .opt-card:hover { border-color: var(--blue); }

  .opt-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

  .opt-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--panel-2);
    border: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--paper-dim);
  }
  .opt-card.rec .opt-num { background: var(--gold); border-color: var(--gold); color: var(--ink); }

  .opt-rec-badge {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 2px 8px;
    border-radius: 999px;
  }

  .opt-title { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 12px; }

  .opt-badges { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
  .opt-badge { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--paper-dim); }
  .opt-badge.low { color: var(--sage); }
  .opt-badge.med { color: var(--gold); }

  .opt-summary { font-size: 13.5px; color: var(--paper-dim); line-height: 1.55; }

  /* ── Grounding ────────────────────────────────────────────────────────── */

  .grounding { padding: 88px 0; border-top: 1px solid var(--hairline); background: var(--panel); }

  .grounding-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  @media (max-width: 860px) { .grounding-inner { grid-template-columns: 1fr; } }

  .grounding h2 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 18px; }
  .grounding p { color: var(--paper-dim); font-size: 15px; margin-bottom: 14px; }

  .grounding-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .term {
    font-family: var(--mono);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--panel-2);
    border: 1px solid var(--hairline);
    color: var(--paper-dim);
  }

  .snippet {
    background: var(--ink);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 22px 24px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--paper-dim);
    overflow-x: auto;
  }
  .snippet .lbl { color: var(--gold); }
  .snippet .val { color: var(--paper); }

  /* ── CTA band ─────────────────────────────────────────────────────────── */

  .cta-band { padding: 96px 0; text-align: center; border-top: 1px solid var(--hairline); }
  .cta-band h2 { font-size: clamp(28px, 4vw, 42px); max-width: 620px; margin: 0 auto 30px; }

  /* ── Footer ───────────────────────────────────────────────────────────── */

  footer { border-top: 1px solid var(--hairline); padding: 40px 0; }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--paper-dim);
    font-family: var(--mono);
  }

  .footer-links { display: flex; gap: 24px; }
  .footer-links a:hover { color: var(--paper); }

/* ── Shared: sub-page hero banner ───────────────────────────────────────── */

.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--hairline);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--paper-dim);
  margin-bottom: 24px;
  padding-bottom: 24px;
}
.breadcrumb a { color: var(--paper-dim); transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }

.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  margin: 14px 0 18px;
  max-width: 760px;
}

.page-hero .lede {
  font-size: 17px;
  color: var(--paper-dim);
  max-width: 640px;
}

/* ── Shared: nav active state ───────────────────────────────────────────── */

.nav-links a.active { color: var(--gold); }

/* ── Shared: content section wrapper for sub-pages ──────────────────────── */

.content-section { padding: 72px 0; border-top: 1px solid var(--hairline); }
.content-section.no-border { border-top: none; }
.content-section .section-head { max-width: 660px; margin-bottom: 44px; }
.content-section .section-head h2 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 14px; }
.content-section .section-head p { color: var(--paper-dim); margin-top: 14px; font-size: 15.5px; }

/* ── Shared: "learn more" link used on Home page teasers ───────────────── */

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  margin-top: 16px;
  transition: gap .15s;
}
.learn-more:hover { gap: 10px; }

/* ── Shared: two-column prose block (About Us, etc.) ────────────────────── */

.prose { max-width: 720px; }
.prose p { color: var(--paper-dim); font-size: 15.5px; margin-bottom: 18px; }
.prose h3 { font-size: 20px; margin: 32px 0 14px; }

.locale-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--paper-dim);
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  border-radius: 999px;
  margin-top: 8px;
}
.locale-tag svg { width: 14px; height: 14px; color: var(--gold); }

/* ── Shared: simple two-column feature list (About Us pillars, etc.) ───── */

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 720px) { .value-grid { grid-template-columns: 1fr; } }
.value-item { border: 1px solid var(--hairline); border-radius: 10px; padding: 24px 26px; background: var(--panel); }
.value-item h4 { font-family: var(--display); font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.value-item p { font-size: 14px; color: var(--paper-dim); }

/* ── Shared: contact block ───────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.contact-item:last-child { border-bottom: none; }
.contact-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.contact-value { font-size: 15px; color: var(--paper); }
/* ── Contact modal ───────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 20, 0.72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s;
}
.modal-close:hover { color: var(--paper); border-color: var(--paper-dim); }

.modal-box h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-right: 30px;
}
.modal-box .modal-sub {
  font-size: 13.5px;
  color: var(--paper-dim);
  margin-bottom: 24px;
}

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--paper);
  font-family: var(--body);
  font-size: 14px;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 80px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-field { flex: 1; }

.form-submit {
  width: 100%;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 13px 22px;
  cursor: pointer;
  transition: opacity .15s;
  margin-top: 6px;
}
.form-submit:hover { opacity: .9; }
.form-submit:disabled { opacity: .55; cursor: not-allowed; }

.form-error {
  font-size: 13px;
  color: var(--coral);
  margin-top: 10px;
  display: none;
}
.form-error.show { display: block; }

.modal-success {
  text-align: center;
  padding: 20px 0 8px;
  display: none;
}
.modal-success.show { display: block; }
.modal-success .check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 20px;
}
.modal-success h3 { padding-right: 0; }
.modal-success p { color: var(--paper-dim); font-size: 14px; margin-top: 8px; }

.modal-form.hidden { display: none; }
