/* Veraxsys marketing site — enterprise dark theme
   Design tokens per docs/superpowers/specs/2026-06-06-veraxsys-website-design.md */

:root {
  --bg: #0A0E14;
  --bg-elev: #0D1219;
  --bg-footer: #080B10;
  --border: #1E2730;
  --hair: #1C2530;
  --hair-soft: #161D26;
  --text: #F4F6F8;
  --text-body: #9AA7B4;
  --text-muted: #7D8A98;
  --text-dim: #64748B;
  --link: #CBD5E1;
  --accent: #0B548A;
  --accent-hi: #4D92C4;
  --accent-hover: #0e69ad;
  --maxw: 1180px;
  --pad-x: 32px;
  --r: 5px;
  --font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-hi); font-weight: 600; margin: 0 0 18px;
}
h1, h2, h3 { color: var(--text); letter-spacing: -0.02em; font-weight: 700; margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; }
h2.sec { font-size: clamp(24px, 3vw, 30px); line-height: 1.14; margin: 0 0 16px; max-width: 620px; }
.ser { font-family: var(--serif); font-style: italic; font-weight: 400; color: #cfe0ee; }
p.body { color: var(--text-body); font-size: 16px; line-height: 1.6; max-width: 620px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: var(--r); font-weight: 600;
  font-size: 14.5px; padding: 12px 24px; transition: background .15s, border-color .15s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--link); border-bottom: 1px solid #2c3a47; border-radius: 0; padding: 12px 4px; }
.btn-ghost:hover { color: #fff; border-color: var(--accent-hi); }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,0.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair-soft);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 52px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--link); font-weight: 500; }
nav.main a:hover { color: #fff; }
nav.main .btn-primary { padding: 9px 17px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

/* ---------- Sections ---------- */
section { padding: 64px 0; border-top: 1px solid var(--hair-soft); }
section.hero { border-top: 0; padding: 0; }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: 0; }
.hero-copy { padding: 64px var(--pad-x) 64px 0; }
.hero-copy .sub { color: var(--text-body); font-size: 16px; line-height: 1.55; max-width: 440px; margin: 18px 0 28px; }
.hero-copy .works { font-size: 12.5px; color: var(--text-dim); margin-top: 26px; }
.hero-shot { position: relative; height: 460px; overflow: hidden; display: flex; align-items: center; }

/* Browser-frame for product screenshots */
.frame { border: 1px solid #2a3744; border-radius: 8px; overflow: hidden; box-shadow: 0 28px 56px -22px rgba(0,0,0,0.7); background: var(--bg-elev); }
.frame .chrome { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: #0b1017; border-bottom: 1px solid var(--hair); }
.frame .chrome .d { width: 8px; height: 8px; border-radius: 50%; background: #2c3a47; }
.frame .chrome .t { margin-left: 8px; font-size: 11px; color: var(--text-muted); }
.frame img { display: block; width: 100%; height: auto; }
.hero-shot .frame { position: absolute; left: 0; width: 780px; max-width: none; border-radius: 8px 0 0 8px; border-right: 0; }
.hero-shot .fade { position: absolute; top: 0; right: 0; bottom: 0; width: 90px; background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; }

/* ---------- System wall ---------- */
.wall { text-align: center; padding: 28px 0; border-top: 1px solid var(--hair-soft); }
.wall .lbl { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.wall .row { display: flex; justify-content: center; gap: 38px; flex-wrap: wrap; font-weight: 700; font-size: 15px; color: #54616f; }

/* ---------- Hairline column grids ---------- */
.cols { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--hair); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols .col { padding: 20px 22px 0 0; border-right: 1px solid var(--hair); }
.cols .col:last-child { border-right: 0; padding-right: 0; }
.cols .col h4 { font-size: 14.5px; color: #cdd6df; margin: 0 0 6px; }
.cols .col p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ---------- Mechanism ---------- */
.mech { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 32px; }
.steps .step { padding: 18px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 70px 1fr; gap: 14px; }
.steps .step:first-child { border-top: 0; }
.steps .step .k { font-size: 11px; letter-spacing: 0.1em; color: var(--accent-hi); font-weight: 700; padding-top: 3px; }
.steps .step h4 { margin: 0 0 4px; font-size: 15.5px; }
.steps .step p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.triple { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.triple span { font-size: 11.5px; color: #9cc6e6; border: 1px solid #214763; border-radius: 4px; padding: 6px 12px; font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 26px; }
.stats .st { padding: 4px 24px 4px 0; border-right: 1px solid var(--hair); }
.stats .st:last-child { border-right: 0; }
.stats .big { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.stats .big .u { color: var(--accent-hi); }
.stats .lbl { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.disc { font-size: 11px; color: #54616f; margin-top: 18px; font-style: italic; }

/* ---------- Quote ---------- */
.quote blockquote { margin: 0; max-width: 720px; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.4; color: #dbe3ea; font-weight: 500; letter-spacing: -0.01em; }
.quote .attr { margin-top: 18px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- Audiences ---------- */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 26px; }
.aud .a { padding: 0 24px 0 0; border-right: 1px solid var(--hair); }
.aud .a:last-child { border-right: 0; }
.aud .a .t { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hi); font-weight: 600; margin-bottom: 8px; }
.aud .a h4 { font-size: 15.5px; margin: 0 0 6px; }
.aud .a p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ---------- Final CTA ---------- */
.endcta h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 12px; }
.endcta p { color: var(--text-body); font-size: 16px; max-width: 500px; margin: 0 0 24px; }
.endcta .small { margin-left: 18px; color: var(--text-body); font-size: 13.5px; }

/* ---------- Footer ---------- */
footer.site { background: var(--bg-footer); border-top: 1px solid var(--border); padding: 44px 0 28px; }
footer .top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
footer .brand img { height: 40px; width: auto; display: block; margin-bottom: 14px; }
footer .brand .tag { font-size: 12.5px; color: var(--text-muted); max-width: 240px; line-height: 1.5; }
footer .col h5 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 12px; }
footer .col a { display: block; font-size: 13.5px; color: #aab4be; margin-bottom: 9px; }
footer .col a:hover { color: #fff; }
footer .bot { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--hair-soft); font-size: 12px; color: #54616f; flex-wrap: wrap; gap: 10px; }

/* ---------- Forms (pilot/contact) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: #B8C2CC; margin-bottom: 6px; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  width: 100%; background: #11171F; border: 1px solid #3A4754; border-radius: var(--r);
  color: var(--text); font-family: var(--font); font-size: 14px; padding: 11px 13px;
}
.field input::placeholder, .field textarea::placeholder { color: #6B7787; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgba(77,146,196,0.25); }
.field textarea { resize: vertical; min-height: 92px; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }
.form-status { font-size: 14px; margin-top: 14px; }
.form-status.ok { color: #4fae73; }
.form-status.err { color: #d9756b; }

/* lists used on inner pages */
.pilot-list { list-style: none; padding: 0; margin: 18px 0 0; max-width: 640px; }
.pilot-list li { padding: 10px 0; border-top: 1px solid var(--hair); color: var(--text-body); font-size: 14.5px; }
.pilot-list li:first-child { border-top: 0; }
.pilot-list li b { color: var(--text); }

/* anchored inner sections */
.anchor-pad { scroll-margin-top: 90px; }

/* ---------- Product imagery: alternating feature rows + gallery ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 30px; }
.feature-row + .feature-row { margin-top: 56px; }
.feature-row.reverse .feature-media { order: -1; }
figure.shot { margin: 0; }
figure.shot figcaption { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }
.feature-copy .eyebrow { margin-bottom: 12px; }
.feature-copy h3 { font-size: 21px; margin: 0 0 10px; letter-spacing: -0.015em; }
.feature-copy p { color: var(--text-body); font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 460px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.gallery figure.shot figcaption { margin-top: 12px; }
.gallery .cap-t { color: var(--text); font-weight: 600; font-size: 13.5px; }

/* ---------- The value thread (cyan spine + nodes + travelling pulse) ---------- */
:root { --thread: #67e8f9; --thread-soft: rgba(103,232,249,0.45); }
.thread { position: relative; margin-top: 40px; }
.thread-line { position: absolute; left: 23px; top: 18px; bottom: 92px; width: 2px;
  background: linear-gradient(180deg, rgba(103,232,249,0.04), var(--thread-soft) 10%, var(--thread-soft) 90%, rgba(103,232,249,0.04));
  box-shadow: 0 0 14px rgba(103,232,249,0.32); border-radius: 2px; }
.thread-pulse { position: absolute; left: 19px; width: 10px; height: 10px; border-radius: 50%;
  background: #d6f6fc; box-shadow: 0 0 14px 5px rgba(103,232,249,0.85), 0 0 30px 10px rgba(103,232,249,0.35);
  animation: threadPulse 7s linear infinite; will-change: top, opacity; z-index: 2; }
@keyframes threadPulse {
  0% { top: 18px; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; }
  100% { top: calc(100% - 92px); opacity: 0; }
}
.thread-row { position: relative; padding: 26px 0 26px 64px; }
.thread-node { position: absolute; left: 15px; top: 30px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--thread); box-shadow: 0 0 0 5px rgba(103,232,249,0.10), 0 0 18px 3px rgba(103,232,249,0.6); z-index: 1; }
.thread-row .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.thread-row .t { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--thread); font-weight: 600; margin-bottom: 8px; }
.thread-row h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.015em; }
.thread-row p { color: var(--text-body); font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; max-width: 460px; }
.thread-end { position: relative; padding: 6px 0 0 64px; }
.thread-end .thread-node { top: 0; background: #fff; box-shadow: 0 0 0 5px rgba(103,232,249,0.14), 0 0 22px 5px rgba(103,232,249,0.7); }
.thread-end p { margin: 0; font-size: 18px; color: #dbe3ea; font-weight: 500; }
.thread-end p .ser { color: var(--thread); }
@media (prefers-reduced-motion: reduce) { .thread-pulse { animation: none; opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --pad-x: 20px; }
  nav.main { display: none; }
  nav.main.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--bg-elev); padding: 20px var(--pad-x); border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 0 24px; }
  .hero-shot { height: auto; padding-bottom: 40px; }
  .hero-shot .frame { position: relative; width: 100%; border-radius: 8px; border-right: 1px solid #2a3744; }
  .hero-shot .fade { display: none; }
  .cols-3, .mech, .stats, .aud, .form-grid { grid-template-columns: 1fr; }
  .cols .col, .stats .st, .aud .a { border-right: 0; border-top: 1px solid var(--hair); padding: 18px 0 0; }
  .cols .col:first-child, .aud .a:first-child { border-top: 0; }
  footer .top { grid-template-columns: 1fr 1fr; }
  .feature-row, .gallery, .thread-row .inner { grid-template-columns: 1fr; gap: 22px; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-row + .feature-row { margin-top: 40px; }
  .thread-line { left: 19px; }
  .thread-pulse { left: 15px; }
  .thread-row { padding-left: 52px; }
  .thread-end { padding-left: 52px; }
}

/* ---------- Scroll reveal (added by app.js; absent = content stays visible) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Value model (ROI levers) ---------- */
.levers { margin-top: 30px; border-top: 1px solid var(--hair); }
.lever { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--hair); }
.lever .lv-k { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent-hi); line-height: 1; padding-top: 2px; }
.lever .lv-body h4 { font-size: 17px; margin: 0 0 10px; color: var(--text); }
.lever .lv-metric { color: var(--text-body); font-size: 14.5px; line-height: 1.55; margin: 0 0 10px; max-width: 760px; }
.lever .lv-metric b { color: var(--text); }
.lever .lv-math { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 0; max-width: 760px;
  padding: 12px 16px; background: var(--bg-elev); border: 1px solid var(--hair); border-left: 2px solid var(--accent); border-radius: var(--r); }
.lever .lv-math .mlbl { display: inline-block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hi); font-weight: 700; margin-right: 8px; }
.lever .lv-math .fig { color: #7fd0a0; font-weight: 700; }

/* ---------- PMO/IT hand-off note ---------- */
.handoff { margin: 30px 0 0; padding: 16px 20px; background: var(--bg-elev); border: 1px solid var(--hair);
  border-radius: var(--r); font-size: 13.5px; line-height: 1.55; color: var(--text-muted); max-width: 720px; }
.handoff b { color: var(--text); }
.handoff a { color: var(--accent-hi); border-bottom: 1px solid #2c3a47; }
.handoff a:hover { color: #fff; border-color: var(--accent-hi); }

@media (max-width: 860px) {
  .lever { grid-template-columns: 1fr; gap: 8px; }
  .lever .lv-k { font-size: 24px; }
}

/* ---------- Business-case calculator ---------- */
:root { --val-pos: #7fd0a0; }
.calc { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(0,0,0,0.7); }
.calc-inputs { padding: 28px 30px; border-right: 1px solid var(--hair); background: var(--bg-elev); }
.calc-out { padding: 28px 30px; background: #0b1017; }
.calc-h { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-hi); font-weight: 700; margin: 0 0 22px; }
.calc-scope { color: var(--text-dim); text-transform: none; letter-spacing: 0; font-weight: 500; }
.ctrl { margin: 0 0 20px; }
.ctrl label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--text-body); margin-bottom: 9px; gap: 12px; }
.ctrl .cval { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 3px; background: #223040; outline: none; cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-hi); border: 3px solid #0b1017; box-shadow: 0 0 0 1px var(--accent-hi); }
.calc input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-hi); border: 3px solid #0b1017; }
.calc input[type=range]:focus { box-shadow: 0 0 0 3px rgba(77,146,196,0.22); }
.calc-adv { margin-top: 4px; border-top: 1px solid var(--hair); padding-top: 16px; }
.calc-adv summary { font-size: 12.5px; color: var(--accent-hi); cursor: pointer; margin-bottom: 18px; font-weight: 600; list-style: revert; }
.orow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--hair); }
.orow:first-of-type { border-top: 0; padding-top: 0; }
.orow .ol b { display: block; font-size: 14px; color: var(--text); }
.orow .ol span { font-size: 11.5px; color: var(--text-dim); }
.orow .ov { font-size: 18px; font-weight: 700; color: var(--val-pos); font-variant-numeric: tabular-nums; white-space: nowrap; }
.orow.total { border-top: 1px solid #2a3744; margin-top: 4px; padding-top: 18px; }
.orow.total .ol b { font-size: 15px; }
.orow.total .ov.big { font-size: clamp(26px, 3.4vw, 32px); letter-spacing: -0.01em; }
.orow.roi .ov { color: var(--accent-hi); }
.calc-cta { margin-top: 22px; width: 100%; text-align: center; }
.calc-note { font-size: 11px; color: var(--text-dim); margin: 14px 0 0; line-height: 1.5; font-style: italic; }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--hair); }
}

/* ---------- Current-page nav highlight ---------- */
nav.main a.active { color: #fff; position: relative; }
nav.main a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent-hi); border-radius: 2px; }
@media (max-width: 860px) {
  nav.main a.active { color: var(--accent-hi); }
  nav.main a.active::after { display: none; }
}
