:root {
  --ink: #12161c;
  --ink-soft: #3a4553;
  --muted: #5c6b7c;
  --paper: #e8edf3;
  --line: rgba(18, 22, 28, 0.12);
  --accent: #0f6b5c;
  --accent-ink: #083f37;
  --signal: #d9480f;
  --hero-min: 100svh;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page {
  min-height: 100svh;
}

.top {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
}

.top a {
  pointer-events: auto;
  text-decoration: none;
}

.top-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.top-host {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero {
  position: relative;
  min-height: var(--hero-min);
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blueprint {
  width: 100%;
  height: 100%;
  display: block;
  color: rgba(18, 22, 28, 0.09);
}

.grid-layer {
  animation: grid-drift 28s linear infinite;
  transform-origin: center;
}

.flow-lines path {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-path 1.8s ease-out forwards;
}

.path-b {
  animation-delay: 0.35s;
}

.nodes .node {
  fill: var(--ink);
  opacity: 0;
  animation: node-in 0.6s ease-out forwards;
}

.n1 { animation-delay: 0.2s; fill: var(--signal); }
.n2 { animation-delay: 0.55s; }
.n3 { animation-delay: 0.9s; fill: var(--accent); }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(232, 237, 243, 0.15) 0%, rgba(232, 237, 243, 0.72) 52%, rgba(232, 237, 243, 0.96) 100%),
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(15, 107, 92, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  opacity: 0;
  transform: translateY(0.8rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  transform: translateY(0.8rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.btn.primary {
  background: var(--ink);
  color: #f4f7fb;
}

.btn.primary:hover {
  background: var(--accent-ink);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(18, 22, 28, 0.28);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: var(--ink);
}

.flow {
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #f3f6fa 0%, var(--paper) 100%);
}

.flow h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.flow-lede {
  margin: 0 0 2.5rem;
  max-width: 36ch;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(0.75rem);
}

.steps li.is-in {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.steps li:nth-child(2).is-in { animation-delay: 0.08s; }
.steps li:nth-child(3).is-in { animation-delay: 0.16s; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  padding-top: 0.15rem;
}

.step-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.step-desc {
  color: var(--ink-soft);
  max-width: 42ch;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot p {
  margin: 0;
}

.foot strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.foot a {
  color: var(--muted);
}

@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .steps li {
    grid-template-columns: 1fr;
    border-top: none;
    border-left: 1px solid var(--line);
    padding: 0 0 0 1.35rem;
  }

  .steps li:first-child {
    border-left: none;
    padding-left: 0;
  }

  .steps li::before {
    grid-row: auto;
    margin-bottom: 0.85rem;
  }
}

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

  .brand,
  .hero-copy h1,
  .lede,
  .cta,
  .steps li {
    opacity: 1;
    transform: none;
  }

  .flow-lines path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .nodes .node {
    opacity: 1;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-in {
  to {
    opacity: 1;
  }
}

@keyframes grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-48px, -48px, 0);
  }
}
