:root {
  --bg: #EDEEF0;
  --panel: #FFFFFF;
  --ink: #14181C;
  --steel: #5B6470;
  --steel-light: #8A929B;
  --line: #D7DADD;
  --signal: #1F9D63;
  --signal-dim: rgba(31, 157, 99, 0.12);

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

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(237, 238, 240, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-dim);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 var(--signal-dim); }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: #262c33; }

.btn--sm {
  background: var(--signal);
  color: #fff;
  padding: 9px 16px;
  font-size: 13px;
}
.btn--sm:hover { background: #1a8757; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--steel-light); }

/* Hero */
.hero { padding: 88px 0 64px; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero__sub {
  color: var(--steel);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero panel / pipeline signature */
.hero__panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px 36px;
}

.panel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-light);
  margin-bottom: 34px;
}

.pipeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
}

.pipeline__line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 7px;
  height: 1px;
  background: var(--line);
}

.pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px 1px var(--signal-dim);
  animation: travel 4.5s linear infinite;
}

@keyframes travel {
  0%   { left: 0%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.pipeline__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.node__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--steel-light);
}

.pipeline__node:nth-child(2) .node__dot,
.pipeline__node:nth-child(3) .node__dot,
.pipeline__node:nth-child(4) .node__dot,
.pipeline__node:nth-child(5) .node__dot {
  border-color: var(--signal);
}

.node__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* Capabilities */
.capabilities { padding: 40px 0 72px; }

.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.06em;
}

.card h3 {
  font-size: 19px;
  margin: 14px 0 8px;
}

.card p {
  color: var(--steel);
  font-size: 14.5px;
  margin: 0;
}

/* How it works */
.how { padding: 40px 0 80px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel-light);
  padding-top: 3px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step p {
  color: var(--steel);
  font-size: 14.5px;
  margin: 0;
  max-width: 60ch;
}

/* Demo */
.demo {
  padding: 40px 0 96px;
  text-align: center;
}

.demo h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.demo__sub {
  color: var(--steel);
  font-size: 15px;
  max-width: 50ch;
  margin: 0 auto 32px;
}

.calendly-inline-widget {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.demo__fallback {
  margin-top: 20px;
  font-size: 14px;
  color: var(--steel);
}

.demo__fallback a {
  color: var(--signal);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark--sm { font-size: 12px; color: var(--steel); }

.footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-light);
}

/* Responsive */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .grid--3 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; }
}

/* Accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .status__dot, .pulse { animation: none; }
  html { scroll-behavior: auto; }
}
