:root{
  --paper: #f7f1e8;
  --paper-alt: #f3e7db;
  --panel: #fffaf5;
  --ink: #1d1b1a;
  --ink-soft: #4d4139;
  --ink-faint: #7b655a;
  --line: rgba(89, 124, 176, 0.2);
  --brand-1: #0d4fb3;
  --brand-2: #2d7ae8;
  --brand-3: #74b9ff;
  --brand-4: #dfefff;
  --brand-glow: rgba(45, 122, 232, 0.2);
  --radius: 14px;
  --shadow: 0 0 0 1px rgba(79, 117, 180, 0.14), 0 18px 40px rgba(24, 48, 87, 0.12);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(45, 122, 232, 0.12), transparent 25%),
              radial-gradient(circle at 80% 30%, rgba(116, 185, 255, 0.12), transparent 24%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { position: relative; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-4));
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(41, 173, 255, 0.8);
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3));
  color: #fff;
  box-shadow: 0 10px 28px rgba(45, 122, 232, 0.28);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(122, 233, 255, 0.6); background: rgba(18, 70, 101, 0.2); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* NAV */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav.wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.iconlogo,
.clientflowtextlogo,
.clientflowlogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.iconlogo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 18px rgba(42, 170, 255, 0.35));
}
.iconlogo img,
.clientflowtextlogo,
.clientflowlogo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clientflowtextlogo {
  width: min(100%, 310px);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(65, 215, 255, 0.38)) drop-shadow(0 0 38px rgba(13, 93, 255, 0.22));
}

.clientflowlogo {
  width: min(100%, 400px);
  filter: drop-shadow(0 0 16px rgba(65, 215, 255, 0.35)) drop-shadow(0 0 28px rgba(13, 93, 255, 0.18));
}

.hero-logo-lockup {
  margin-bottom: 18px;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-mobile-hide { }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn-ghost.nav-mobile-hide { display: none; }
}

/* HERO */
.hero { padding: 84px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hero-copy { max-width: 760px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  margin: 20px 0 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-4), var(--brand-2), var(--brand-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

/* SIGNATURE: leak-to-seal flow */
.flow {
  margin-top: 64px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px 30px;
  box-shadow: var(--shadow);
}
.flow-labels-top { display: flex; justify-content: space-between; margin-bottom: 34px; }
.flow-side { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.flow-side.leak { color: var(--red-deep); }
.flow-side.seal { color: var(--green); }
.flow-pipe-row { position: relative; height: 110px; }
.flow-pipe {
  position: absolute; top: 50%; left: 0; right: 0; height: 10px; transform: translateY(-50%);
  border-radius: 6px; overflow: visible;
  background: linear-gradient(to right, rgba(13, 93, 255, 0.12) 0%, rgba(13, 93, 255, 0.12) 48%, rgba(41, 173, 255, 0.18) 52%, rgba(41, 173, 255, 0.18) 100%);
  border: 1px dashed rgba(77, 167, 255, 0.8);
}
.flow-pipe::after {
  content: "";
  position: absolute; top: -1px; bottom: -1px; left: 52%; right: 0;
  border: 1px solid rgba(122, 233, 255, 0.8);
  border-radius: 6px;
}
.seal-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #02070c; display: flex; align-items: center; justify-content: center;
  z-index: 3; box-shadow: 0 0 0 6px rgba(9, 22, 31, 0.9);
}
.seal-mark svg { width: 18px; height: 18px; }
.drip {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-3), var(--brand-1));
  animation: dripfall 2.6s ease-in infinite;
}
@keyframes dripfall {
  0% { transform: translateY(0); opacity: .9; }
  80% { opacity: .5; }
  100% { transform: translateY(46px); opacity: 0; }
}
.pulse {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-3), var(--brand-4));
  top: 50%; transform: translateY(-50%);
  animation: pulsemove 3.4s linear infinite;
  box-shadow: 0 0 0 3px rgba(122, 233, 255, 0.25);
}
@keyframes pulsemove {
  0% { left: 52%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 97%; opacity: 0; }
}
.flow-endpoint {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  display: flex; align-items: center; justify-content: center;
}
.flow-endpoint svg { width: 13px; height: 13px; stroke: #fff; }
.flow-labels-bottom { display: flex; justify-content: space-between; margin-top: 30px; gap: 20px; }
.flow-tag-group { display: flex; gap: 10px; flex-wrap: wrap; }
.flow-tag {
  font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 6px; white-space: nowrap;
}
.flow-tag.bad { background: rgba(13, 93, 255, 0.12); color: #3b7be6; }
.flow-tag.good { background: rgba(122, 233, 255, 0.12); color: #2a6ecf; }
@media (max-width: 700px) {
  .flow-labels-bottom { flex-direction: column; }
  .flow { padding: 30px 20px 24px; }
}

/* SECTION HEADERS */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 16px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* PROBLEM CARDS */
.killers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.killer-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative;
}
.killer-icon {
  width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, rgba(13, 93, 255, 0.22), rgba(65, 215, 255, 0.18));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.killer-icon svg { width: 22px; height: 22px; stroke: var(--brand-3); }
.killer-card h3 { font-size: 19px; margin-bottom: 8px; }
.killer-card p { color: var(--ink-soft); font-size: 15px; }
.killer-line {
  display: flex; align-items: center; gap: 10px; margin-top: 30px;
  font-size: 16px; color: var(--ink-soft); flex-wrap: wrap;
}
.killer-line strong { color: var(--ink); }
@media (max-width: 860px) { .killers { grid-template-columns: 1fr; } }

/* SYSTEM / PIPELINE */
.pipeline { position: relative; }
.pipeline-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.pipeline-track::before {
  content: ""; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.stage {
  position: relative; z-index: 1; padding: 0 16px;
}
.stage:first-child { padding-left: 0; }
.stage:last-child { padding-right: 0; }
.stage-dot {
  width: 13px; height: 13px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--brand-2); margin-bottom: 20px;
  box-shadow: 0 0 12px rgba(41, 173, 255, 0.4);
}
.stage:last-child .stage-dot { border-color: var(--brand-4); background: var(--brand-4); }
.stage-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-3); margin-bottom: 10px; }
.stage:last-child .stage-label { color: var(--ink); }
.stage h3 { font-size: 18.5px; margin-bottom: 10px; }
.stage p { font-size: 14.5px; color: var(--ink-soft); }
.stage-final {
  background: linear-gradient(135deg, rgba(8, 26, 36, 0.95), rgba(12, 43, 63, 0.96));
  color: var(--paper); border-radius: var(--radius); padding: 24px;
  margin-top: -4px;
  border: 1px solid rgba(122, 233, 255, 0.2);
}
.stage-final .stage-label, .stage-final p { color: #C7CDCF; }
.stage-final h3 { color: #fff; }
@media (max-width: 900px) {
  .pipeline-track { grid-template-columns: 1fr; gap: 34px; }
  .pipeline-track::before { display: none; }
  .stage { padding: 0 !important; }
}

/* PROOF / STATS */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 56px; }
.stat-cell { background: var(--panel); padding: 32px 26px; }
.stat-num { font-family: var(--font-mono); font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--ink); }
.stat-num .unit { font-size: 17px; color: var(--brand-3); }
.stat-label { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.t-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.t-card .t-cat { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--red-deep); margin-bottom: 14px; }
.t-card h3 { font-size: 20px; margin-bottom: 16px; }
.t-card blockquote { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 22px; }
.t-foot { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.t-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, rgba(13, 93, 255, 0.2), rgba(122, 233, 255, 0.2)); color: var(--brand-4); font-family: var(--font-mono); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.t-meta { font-size: 13.5px; }
.t-meta .name { font-weight: 600; }
.t-meta .role { color: var(--ink-faint); }
.t-tags { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.t-tag { font-size: 12px; background: rgba(122, 233, 255, 0.12); color: #2b6fca; padding: 4px 10px; border-radius: 20px; font-weight: 500; }
@media (max-width: 780px) { .testimonials { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--brand-3); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); font-size: 15px; margin-top: 14px; max-width: 640px; }

/* FINAL CTA */
.final-cta {
  background: linear-gradient(135deg, rgba(8, 17, 24, 0.96), rgba(12, 37, 52, 0.98));
  color: var(--paper); border-radius: 24px; padding: 72px 48px; text-align: center;
  border: 1px solid rgba(122, 233, 255, 0.18);
}
.final-cta .eyebrow { color: var(--brand-4); }
.final-cta .eyebrow::before { background: linear-gradient(135deg, var(--brand-2), var(--brand-4)); }
.final-cta h2 { font-size: clamp(28px, 4vw, 44px); margin: 18px 0 14px; color: #fff; }
.final-cta p { color: #B9C0C2; max-width: 520px; margin: 0 auto 32px; font-size: 16.5px; }
@media (max-width: 640px) { .final-cta { padding: 52px 26px; } }

/* FOOTER */
footer { padding: 56px 0 40px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.footer-brand {
  flex: 1 1 300px;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.footer-brand p {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 330px;
  margin: 0;
  line-height: 1.6;
}
.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
  padding-top: 6px;
}
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; gap: 10px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
