/* ===========================================================
   Automat3 AI — site styles
   Dark theme · shared across all pages
   =========================================================== */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #0e0e10;
  --surface-hover: #161618;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --text-muted: #9a9a9e;
  --text-dim: #6b6b70;
  --radius: 18px;
  --maxw: 1180px;
  --nav-h: 84px;

  /* product accent colors (from the real site) */
  --c-librarian: #3b82f6;
  --c-procurer:  #ef4444;
  --c-concierge: #d4a017;
  --c-marketer:  #a855f7;
  --c-manager:   #22c55e;
  --c-analyst:   #6366f1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 16px 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-light { background: #fff; color: #000; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,255,255,.18); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #fff; }

/* ---------- Logo wordmark (real AUTOMAT3 mark) ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 22px; width: auto; display: block; }

/* ---------- Nav ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--text-muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: #fff; border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; background: rgba(0,0,0,.96);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
  display: none; flex-direction: column; padding: 22px 28px 30px; gap: 6px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--border); color: #e6e6e6; }
.mobile-menu .btn { margin-top: 16px; }
.mobile-menu .btn-light { color: #000; border-bottom: 0; }  /* keep pill text solid black */

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h);
  position: relative; overflow: hidden; text-align: center;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 3; width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px; background: rgba(255,255,255,.02);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.hero h1 {
  font-size: clamp(46px, 8vw, 100px); font-weight: 800; line-height: 0.98; letter-spacing: -2px;
  margin: 0 auto 30px; max-width: 14ch;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #fff 30%, #8b93ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: clamp(17px, 2vw, 21px); color: var(--text-muted); max-width: 620px; margin: 0 auto 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Phil + pixel field ---------- */
.pixel-field {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.phil {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  width: 92px; opacity: .92; animation: philFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(139,147,255,.25));
}
.phil svg { width: 100%; height: auto; }
.pixel-ico {
  position: absolute; width: 30px; opacity: .5; color: #cfd2ff;
  animation: drift 9s ease-in-out infinite;
}
.pixel-ico svg { width: 100%; height: auto; }
@keyframes philFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-16px); }
}
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-22px) rotate(4deg); }
}

/* ---------- Section heading ---------- */
.sec { padding: 120px 0; }
.sec-label { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.sec-title { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; max-width: 760px; }
.sec-title .grad { background: linear-gradient(120deg,#fff,#8b93ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head { margin-bottom: 64px; }
.page-hero { padding: calc(var(--nav-h) + 90px) 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(40px,7vw,84px); font-weight: 800; letter-spacing: -2px; line-height: 1; }
.page-hero h1 .grad { background: linear-gradient(120deg,#fff,#8b93ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: var(--text-muted); font-size: 19px; margin-top: 22px; }

/* ---------- Home solution cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; transition: all .3s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(139,147,255,.10), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-6px); background: var(--surface-hover); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); margin-bottom: 24px;
}
.card .ico svg { width: 26px; height: 26px; stroke: #fff; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.3px; }
.card p { color: var(--text-muted); font-size: 15.5px; }
.cards-foot { margin-top: 44px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; font-size: 16px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Product app cards (Solutions page) — dark, on-brand ---------- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app {
  --accent: #fff;
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 32px 30px; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.app::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--accent); }
.app::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(420px circle at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%);
}
.app:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.app > * { position: relative; z-index: 1; }

.app-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-ico {
  width: 56px; height: 56px; border-radius: 15px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}
.app-ico svg { width: 28px; height: 28px; stroke: var(--accent); }
.app-titles { display: flex; flex-direction: column; gap: 5px; }
.app-cat { font-size: 11px; font-weight: 700; letter-spacing: 1.3px; color: var(--accent); }
.app-name { font-size: 25px; font-weight: 800; letter-spacing: -.5px; color: #fff; line-height: 1; }
.app-desc { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin-bottom: 22px; }

.app-skilled-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.app-skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.app-skills li {
  font-size: 12.5px; color: #e2e2e8; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); padding: 7px 13px; border-radius: 999px;
}

/* reserved slot for a usage example (added per product later) */
.app-example {
  margin-top: auto; border-radius: 14px; padding: 18px 20px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border));
}
.app-example .ex-label {
  display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; color: var(--accent); margin-bottom: 9px;
}
.app-example .ex-label::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.app-example .ex-body { font-size: 14px; line-height: 1.55; color: var(--text-muted); min-height: 40px; }

/* ---------- Featured (full-width) product card ---------- */
.app-featured { grid-column: 1 / -1; }
.app-featured .app-top { gap: 16px; }

/* ---------- Lead-gen demo ---------- */
.app-example--demo { margin-top: 8px; }
.demo-intro { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 6px 0 18px; max-width: 70ch; }
.demo-pick { font-size: 13.5px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.demo-pick strong { color: var(--accent); }

.demo-senders { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.demo-sender {
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: var(--text-muted); background: rgba(255,255,255,.03);
  border: 1px solid var(--border); padding: 9px 16px; border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.demo-sender:hover { color: #fff; border-color: var(--border-strong); }
.demo-sender[aria-selected="true"] {
  color: #fff; background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lead {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 16px;
  animation: leadIn .35s ease both;
}
@keyframes leadIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lead-head { display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.lead-biz { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.lead-meta { font-size: 12px; color: var(--text-dim); }
.lead-msg { flex: 1 1 auto; }
.lead-subject { font-size: 12.5px; font-weight: 600; color: #e2e2e8; margin-bottom: 8px; }
.lead-subject span { color: var(--text-dim); font-weight: 500; }
.lead-body { font-size: 13px; line-height: 1.6; color: var(--text-muted); white-space: pre-line; }
.lead-channel {
  align-self: flex-start; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--accent); background: none; border: 0; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px;
}
.lead-channel:hover { text-decoration: underline; }
.lead[data-mode="sms"] { background: color-mix(in srgb, var(--accent) 7%, var(--bg-soft)); }
.lead[data-mode="sms"] .lead-subject { display: none; }

.demo-foot { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.demo-more {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: #000; background: #fff;
  border: 0; padding: 11px 22px; border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.demo-more:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,255,255,.16); }
.demo-disclaimer { font-size: 11.5px; color: var(--text-dim); margin-top: 16px; }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .demo-foot { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
}

/* ---------- Concierge demo (chat replay + CRM trail) ---------- */
.conc-stage { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: stretch; }

.conc-phone {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
}
.conc-head {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02);
}
.conc-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.conc-avatar svg { width: 16px; height: 16px; stroke: var(--accent); }
.conc-id { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.conc-biz { font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conc-status { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.conc-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.conc-clock {
  margin-left: auto; flex: none; font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 4px 11px; border-radius: 999px;
}

.conc-chat {
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  min-height: 300px; max-height: 380px; overflow-y: auto; flex: 1 1 auto; scroll-behavior: smooth;
}
.conc-msg {
  max-width: 84%; padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.55; animation: leadIn .3s ease both;
}
.conc-msg[data-who="cust"] {
  align-self: flex-end; color: #f2f2f5; border-bottom-right-radius: 4px;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.conc-msg[data-who="ai"] {
  align-self: flex-start; color: var(--text-muted); border-bottom-left-radius: 4px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
}
.conc-msg[data-who="event"] {
  align-self: center; max-width: 95%; text-align: center;
  background: none; border: 1px dashed var(--border-strong);
  color: var(--text-dim); font-size: 11.5px; padding: 6px 14px; border-radius: 999px;
}
.conc-typing { display: inline-flex; gap: 4px; align-items: center; min-height: 18px; }
.conc-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim);
  animation: concBlink 1s infinite;
}
.conc-typing i:nth-child(2) { animation-delay: .15s; }
.conc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes concBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.conc-trail {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 18px 16px; display: flex; flex-direction: column;
}
.conc-trail-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}
.conc-trail ol { list-style: none; display: flex; flex-direction: column; }
.conc-step {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 0;
  font-size: 12.5px; line-height: 1.45; color: var(--text-dim); transition: color .35s;
}
.conc-step .dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 1px;
  border: 1.5px solid var(--border-strong); transition: all .35s;
  display: flex; align-items: center; justify-content: center;
}
.conc-step .dot svg { width: 9px; height: 9px; stroke: var(--accent); opacity: 0; transition: opacity .35s; }
.conc-step.done { color: #e2e2e8; }
.conc-step.done .dot {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.conc-step.done .dot svg { opacity: 1; }

.conc-outcome {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--accent);
  opacity: 0; transition: opacity .5s;
}
.conc-outcome.show { opacity: 1; }

@media (max-width: 900px) {
  .conc-stage { grid-template-columns: 1fr; }
  .conc-chat { min-height: 240px; }
}

/* ---------- Procurer demo (vendor quotes + PO approval) ---------- */
.proc-stage { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: stretch; }

.proc-quotes { display: flex; flex-direction: column; gap: 10px; }
.proc-trigger {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; line-height: 1.5; color: #e2e2e8;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 12px; padding: 11px 14px; min-height: 44px;
  opacity: 0; transition: opacity .4s;
}
.proc-trigger.show { opacity: 1; }
.proc-trigger::before {
  content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
  font-size: 12px; font-weight: 800; color: var(--accent);
  border: 1.5px solid var(--accent);
}

.proc-vendors { display: flex; flex-direction: column; gap: 10px; }
.proc-vendor {
  position: relative; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 15px; animation: leadIn .3s ease both;
  transition: border-color .4s, opacity .4s, background .4s;
}
.proc-vendor .pv-row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.proc-vendor .pv-name { font-size: 13.5px; font-weight: 700; color: #fff; }
.proc-vendor .pv-price { font-size: 14px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.proc-vendor .pv-row2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 3px; }
.proc-vendor .pv-detail { font-size: 12px; color: var(--text-muted); }
.proc-vendor .pv-score {
  font-size: 11.5px; font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.proc-vendor .pv-hist { font-size: 11.5px; color: var(--text-dim); margin-top: 7px; }
.proc-vendor.pending .pv-detail { color: var(--text-dim); }
.proc-vendor.pending .pv-price, .proc-vendor.pending .pv-score { visibility: hidden; }
.proc-vendor.pending .pv-hist { animation: concBlink 1.1s infinite; }
.proc-vendor.win {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-soft));
}
.proc-vendor.win .pv-score { color: var(--accent); border-color: var(--accent); }
.proc-vendor.lose { opacity: .55; }
.pv-badge {
  position: absolute; top: -9px; right: 12px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 10px;
  animation: leadIn .3s ease both;
}
.pv-why { font-size: 11.5px; color: var(--accent); font-weight: 600; margin-top: 7px; }

.proc-side { display: flex; flex-direction: column; gap: 12px; }
.proc-doc {
  flex: 1 1 auto; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 17px 18px; font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s;
}
.proc-doc.show { opacity: 1; transform: none; }
.po-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px; color: var(--text-dim);
  padding-bottom: 10px; border-bottom: 1px dashed var(--border-strong);
}
.po-head .po-num { color: var(--accent); font-size: 12px; letter-spacing: .5px; }
.po-vendor { font-size: 12.5px; color: #e2e2e8; font-weight: 600; margin: 11px 0 9px; }
.po-item { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; color: var(--text-muted); padding: 4px 0; }
.po-item span:last-child { color: #e2e2e8; font-weight: 600; white-space: nowrap; }
.po-total {
  display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #fff;
  margin-top: 7px; padding-top: 9px; border-top: 1px dashed var(--border-strong);
}
.po-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 9px; }
.po-budget {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #4ade80;
  margin-top: 11px; padding: 8px 11px; border-radius: 9px;
  background: rgba(74, 222, 128, .07); border: 1px solid rgba(74, 222, 128, .25);
}

.proc-approve {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px;
  opacity: 0; transition: opacity .45s;
}
.proc-approve.show { opacity: 1; }
.pa-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); line-height: 1.4; }
.pa-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.pa-status[data-state="wait"]::before { background: var(--accent); animation: concBlink 1s infinite; }
.pa-status[data-state="done"] { color: #e2e2e8; }
.pa-status[data-state="done"]::before { background: #4ade80; animation: none; }
.pa-btn {
  flex: none; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: #000; background: #fff; border: 0; padding: 10px 20px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, opacity .3s;
  animation: paPulse 1.6s infinite;
}
.pa-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,255,255,.16); }
.pa-btn[disabled] { display: none; }
@keyframes paPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  60% { box-shadow: 0 0 0 9px transparent; }
}

.proc-outcome {
  font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--accent);
  opacity: 0; transition: opacity .5s;
}
.proc-outcome.show { opacity: 1; }

@media (max-width: 900px) {
  .proc-stage { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .proc-approve { flex-direction: column; align-items: stretch; text-align: center; }
  .pa-status { justify-content: center; }
}

/* ---------- Librarian demo (ask your documents) ---------- */
.lib-stage { max-width: 780px; }

.lib-bar {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 13px 19px; min-height: 48px;
}
.lib-bar svg { width: 17px; height: 17px; flex: none; stroke: var(--accent); }
.lib-input { font-size: 14px; color: #fff; line-height: 1.4; min-height: 19px; }
.lib-caret {
  width: 2px; height: 16px; flex: none; background: var(--accent);
  animation: libCaret 1s steps(1) infinite;
}
@keyframes libCaret { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }

.lib-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.lib-chip {
  font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: left;
  color: var(--text-muted); background: transparent;
  border: 1px dashed var(--border-strong); padding: 8px 14px; border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.lib-chip::before { content: "? "; color: var(--accent); font-weight: 800; }
.lib-chip:hover { color: #fff; border-color: var(--accent); }
.lib-chip[aria-selected="true"] {
  color: #fff; border-style: solid;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.lib-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--text-dim); min-height: 18px; margin-top: 14px;
}
.lib-status.busy { animation: concBlink 1.1s infinite; }

.lib-answer { margin-top: 6px; }
.lib-result {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 17px 19px; animation: leadIn .35s ease both;
}
.lib-a { font-size: 13.5px; line-height: 1.65; color: #e2e2e8; }

.lib-sources { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.lib-src {
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 9px; padding: 7px 12px; animation: leadIn .3s ease both;
}
.lib-src svg { width: 13px; height: 13px; flex: none; stroke: var(--accent); }
.lib-src .ls-name { font-size: 12px; font-weight: 600; color: #fff; }
.lib-src .ls-meta { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

.lib-filed {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--text-dim); margin-top: 12px;
}
.lib-filed svg { width: 12px; height: 12px; flex: none; stroke: var(--text-dim); }

.lib-result.nf { border-style: dashed; border-color: var(--border-strong); }
.lib-result.nf .lib-a { color: var(--text-muted); }
.lib-flag {
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 8px 16px; border-radius: 999px; margin-top: 13px;
  transition: background .2s, color .2s;
}
.lib-flag:hover:not([disabled]) { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #fff; }
.lib-flag[disabled] { cursor: default; color: #4ade80; background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .3); }

@media (max-width: 640px) {
  .lib-src { width: 100%; }
  .lib-src .ls-meta { margin-left: auto; }
}

/* ---------- Analyst demo (plain-English question → chart) ---------- */
.ana-card {
  max-width: 780px; margin-top: 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s;
}
.ana-card.show { opacity: 1; transform: none; }
.ana-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ana-title { font-size: 13.5px; font-weight: 700; color: #fff; }
.ana-meta { font-size: 11px; color: var(--text-dim); }
.ana-kpi { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--accent); margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.ana-kpi small { font-size: 12.5px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; margin-left: 8px; }

.ana-chart { margin-top: 14px; }
.ana-bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.ana-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.ana-bar .ab-val { font-size: 10.5px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ana-bar .ab-fill {
  width: 100%; max-width: 54px; border-radius: 6px 6px 2px 2px;
  background: color-mix(in srgb, var(--accent) 38%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  height: 0%; transition: height .8s cubic-bezier(.22, 1, .36, 1);
}
.ana-bar.hot .ab-fill { background: var(--accent); border-color: var(--accent); }
.ana-bar.hot .ab-val { color: #fff; }
.ana-bar .ab-lbl { font-size: 10.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ana-bar.hot .ab-lbl { color: var(--accent); font-weight: 700; }

.ana-line { width: 100%; height: 130px; display: block; }
.ana-line .al-path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ana-line .al-area { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; }
.ana-line .al-dot { fill: var(--accent); }
.ana-line.draw .al-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: anaDraw 1.4s ease forwards; }
@keyframes anaDraw { to { stroke-dashoffset: 0; } }
.ana-line-lbls { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-dim); margin-top: 5px; }

.ana-insight {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.6; color: #e2e2e8;
  margin-top: 15px; padding: 11px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  opacity: 0; transition: opacity .45s;
}
.ana-insight.show { opacity: 1; }
.ana-insight::before { content: "→"; color: var(--accent); font-weight: 800; flex: none; }

/* ---------- Manager demo (morning briefing) ---------- */
.mgr-brief {
  max-width: 780px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px;
}
.mgr-head { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.mgr-head-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.mgr-head-ico svg { width: 17px; height: 17px; stroke: var(--accent); }
.mgr-head-txt { display: flex; flex-direction: column; line-height: 1.35; }
.mgr-title { font-size: 13.5px; font-weight: 700; color: #fff; }
.mgr-meta { font-size: 11.5px; color: var(--text-dim); }

.mgr-sec { margin-top: 15px; animation: leadIn .35s ease both; }
.mgr-sec-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 9px; }
.mgr-sec[data-kind="attention"] .mgr-sec-label { color: var(--accent); }
.mgr-sec[data-kind="ontrack"] .mgr-sec-label,
.mgr-sec[data-kind="week"] .mgr-sec-label { color: var(--text-dim); }

.mgr-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 7px;
  font-size: 12.5px; line-height: 1.55; color: var(--text-muted);
  animation: leadIn .3s ease both;
}
.mgr-item .mi-txt { flex: 1 1 auto; min-width: 0; }
.mgr-item .mi-txt strong { color: #e2e2e8; font-weight: 600; }
.mgr-sec[data-kind="attention"] .mgr-item {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.mgr-sec[data-kind="ontrack"] .mgr-item,
.mgr-sec[data-kind="week"] .mgr-item { padding: 5px 2px; margin-bottom: 2px; }
.mgr-item .mi-ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.mgr-item .mi-ico svg { width: 16px; height: 16px; }
.mgr-sec[data-kind="attention"] .mi-ico svg { stroke: var(--accent); }
.mgr-sec[data-kind="ontrack"] .mi-ico svg { stroke: #4ade80; }
.mgr-sec[data-kind="week"] .mi-ico svg { stroke: var(--text-dim); }

.mgr-act {
  flex: none; font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: #fff; background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.mgr-act:hover:not([disabled]) { background: var(--accent); color: #04130a; }
.mgr-act[disabled] {
  cursor: default; color: #4ade80;
  background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .3);
}

.mgr-outcome {
  font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--accent);
  margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border);
  opacity: 0; transition: opacity .5s;
}
.mgr-outcome.show { opacity: 1; }

@media (max-width: 640px) {
  .ana-bars { gap: 5px; }
  .mgr-item { flex-wrap: wrap; }
  .mgr-act { margin-left: 26px; }
}

/* ---------- Agent quick-nav (solutions page) ---------- */
.agent-nav-wrap {
  position: sticky; top: var(--nav-h); z-index: 60;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.agent-nav {
  display: flex; gap: 8px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 11px 28px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
@media (min-width: 760px) {
  .agent-nav { justify-content: center; }
}
.agent-nav::-webkit-scrollbar { display: none; }
.agent-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); padding: 8px 15px; border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.agent-nav a .an-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transition: box-shadow .25s; }
.agent-nav a:hover { color: #fff; border-color: var(--border-strong); transform: translateY(-1px); }
.agent-nav a.active {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.agent-nav a.active .an-dot { box-shadow: 0 0 9px var(--accent); }

/* anchor jumps land below the fixed header + sticky bar */
.app[id] { scroll-margin-top: calc(var(--nav-h) + 70px); }

/* Tabbed solutions: show only the selected agent card, one at a time.
   The active card fades in cleanly each time its tab is chosen. */
.apps--tabbed > .app { display: none; }
.apps--tabbed > .app.is-active {
  display: block;
  animation: tabIn .45s ease both;
}
@keyframes tabIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .apps--tabbed > .app.is-active { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .agent-nav { padding: 10px 16px; }
  .agent-nav a { padding: 7px 13px; font-size: 12px; }
}

/* ---------- Flow diagram (home) ---------- */
.flow-diagram {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  max-width: 920px; margin: 0 auto 72px; flex-wrap: nowrap;
}
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 150px; text-align: center; flex: 0 0 auto; }
.flow-node .orb {
  width: 74px; height: 74px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.flow-node .orb svg { width: 30px; height: 30px; stroke: #fff; }
.flow-node.active .orb { border-color: #8b93ff; box-shadow: 0 0 34px rgba(139,147,255,.35); transform: translateY(-4px); }
.flow-node .lbl { font-size: 15px; font-weight: 700; }
.flow-node .sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.flow-conn {
  flex: 1 1 auto; min-width: 36px; height: 2px; margin-top: 36px; position: relative;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.16));
}
.flow-conn::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: #8b93ff; box-shadow: 0 0 12px #8b93ff; transform: translateY(-50%); animation: flowDot 2.6s linear infinite;
}
.flow-conn.d1::after { animation-delay: .65s; }
.flow-conn.d2::after { animation-delay: 1.3s; }
@keyframes flowDot {
  0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}

/* ---------- Disabled button ---------- */
.btn:disabled, .btn[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ---------- Flow / steps ---------- */
.flow { border-top: 1px solid var(--border); background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 60px; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; background: rgba(255,255,255,.015); }
.step .num { font-size: 14px; font-weight: 700; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 18px; }
.step h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-box {
  border: 1px solid var(--border); border-radius: 28px; padding: 80px 40px;
  background: radial-gradient(600px circle at 50% 0%, rgba(139,147,255,.14), transparent 60%), var(--surface);
}
.cta h2 { font-size: clamp(32px,5vw,56px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 36px; }
.cta p.lead { color: var(--text-muted); font-size: 19px; margin-bottom: 38px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; margin-top: 40px; color: var(--text-muted); font-size: 16px; }
.cta-contacts a { display: inline-flex; align-items: center; gap: 9px; }
.cta-contacts a:hover { color: #fff; }
.cta-contacts svg { width: 18px; height: 18px; stroke: var(--text-dim); }

/* ---------- Contact form ---------- */
.form-wrap { max-width: 720px; margin: 40px auto 0; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .5px; color: var(--text-muted); }
.field label .req { color: #8b93ff; }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 16px; color: #fff; font-family: inherit; font-size: 15px; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: #8b93ff; background: #131316;
}
.field textarea { resize: vertical; min-height: 120px; }
.consent { grid-column: 1/-1; display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 14px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: #8b93ff; }
.form-actions { grid-column: 1/-1; }
.form-actions .btn { width: 100%; }
.form-note { grid-column:1/-1; font-size: 12.5px; color: var(--text-dim); text-align: center; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--nav-h) + 70px) 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px,5vw,52px); font-weight: 800; letter-spacing: -1px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15.5px; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: #8b93ff; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot .copy { color: var(--text-dim); font-size: 14px; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { color: var(--text-muted); font-size: 14px; }
.foot-links a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .steps, .apps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost, .nav-cta .btn-light { display: none; }  /* free space so the hamburger is reachable */
  .menu-toggle { display: inline-flex; }
  /* hero: top-align content and clear the decorations off the buttons */
  .hero { align-items: flex-start; padding-top: calc(var(--nav-h) + 28px); }
  .hero-inner { padding-bottom: 130px; }
  .pixel-ico { display: none; }
  .phil { bottom: 5%; width: 56px; }
  .sec { padding: 84px 0; }
  .cta-box { padding: 56px 24px; }
  .flow-diagram { flex-direction: column; align-items: center; gap: 0; }
  .flow-node { width: 100%; max-width: 260px; }
  .flow-node.active .orb { box-shadow: 0 0 18px rgba(139,147,255,.25); transform: none; }  /* tame glow so it doesn't bleed */
  .flow-conn { width: 2px; height: 64px; min-width: 0; margin: 0; flex: 0 0 auto; }
  .flow-conn::after {
    left: 50%; top: 0; width: 7px; height: 7px;
    transform: translate(-50%, -50%); box-shadow: 0 0 8px #8b93ff;
    animation: flowDotV 2.6s linear infinite;
  }
  /* dot stays well inside its own line — never touches the orbs */
  @keyframes flowDotV { 0% { top: 14%; opacity: 0; } 22% { opacity: 1; } 78% { opacity: 1; } 100% { top: 86%; opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
