:root {
  --white: #ffffff;
  --ink: #12293f;
  --logo: #2f5274;
  --muted: #557089;
  --line: #c9d8e6;
  --mist: #f1f6fb;
  --current: #0a84ff;
  --wire-w: 5px;
  --gutter: clamp(20px, 5vw, 80px);
  --spine-inset: clamp(26px, 6vw, 96px);
  --cut: 14px;
  --font: 'IBM Plex Sans Hebrew', 'Arial Hebrew', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}

:focus-visible {
  outline: 3px solid var(--current);
  outline-offset: 3px;
}

#page {
  position: relative;
  overflow: clip;
  max-width: 1680px;
  margin-inline: auto;
}

#wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--logo);
  stroke-width: var(--wire-w);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

#wires .rail-base,
#wires .branch {
  stroke: var(--line);
  transition: stroke 0.3s;
}
#wires .branch.live,
#wires .charge {
  stroke: var(--current);
}
#wires .charge {
  stroke-dasharray: 1;
  filter: drop-shadow(0 0 5px rgb(10 132 255 / 0.55));
}
#wires .stub-ring {
  stroke: var(--muted);
  stroke-width: 3px;
}

.pulse {
  stroke: var(--current);
  filter: drop-shadow(0 0 6px rgb(10 132 255 / 0.8));
  pointer-events: none;
}

.bar,
.hero,
.section {
  position: relative;
  z-index: 1;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px var(--gutter) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--logo);
  font-size: 1.375rem;
  font-weight: 500;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
}
nav a {
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}
nav a:hover {
  color: var(--current);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: min(calc(100svh - 96px), 860px);
  padding: 24px var(--gutter) 96px;
}

h1 {
  font-size: clamp(2.25rem, 4.3vw, 4.5rem);
  font-weight: 200;
  line-height: 1.2;
}

.ln {
  display: block;
  white-space: nowrap;
}
.ln-off {
  color: var(--muted);
}

.lede {
  max-width: 46ch;
  margin-top: 20px;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
}

.btn {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 32px;
  border: 0;
  background: var(--logo);
  color: var(--white);
  font: 500 1.0625rem var(--font);
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  transition: background 0.2s;
}

.btn:hover:not(:disabled) {
  background: var(--current);
}
.btn:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: default;
}

.mark {
  color: var(--logo);
}

#logo {
  display: block;
  width: 100%;
  max-width: min(72vh, 380px);
  aspect-ratio: 686 / 730;
  margin-inline: auto;
}
#logo circle {
  transition:
    fill 0.25s,
    stroke 0.25s;
}
#logo circle.near {
  fill: rgb(10 132 255 / 0.22);
  stroke: var(--current);
}

.section {
  padding: 120px var(--gutter) 0;
  padding-inline-start: calc(var(--spine-inset) + clamp(48px, 7vw, 120px));
  scroll-margin-top: 24px;
}

.process {
  padding-top: 150px;
}

#rail {
  position: absolute;
  inset-inline-start: var(--spine-inset);
  top: 0;
  width: 0;
  height: 0;
}

h2 {
  font-size: clamp(1.75rem, 2.9vw, 3rem);
  font-weight: 200;
  line-height: 1.2;
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.1875rem, 1.5vw, 1.4375rem);
  font-weight: 300;
  line-height: 1.3;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.sub {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(64px, 8vw, 120px);
}

.step {
  --reach: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 40px);
  margin-inline-start: calc(var(--reach) * clamp(0px, 7vw, 120px));
  padding-bottom: clamp(56px, 7vw, 104px);
}

.step:nth-child(2) {
  --reach: 1;
}
.step:nth-child(3) {
  --reach: 2;
}
.step:nth-child(4) {
  --reach: 3;
}
.step h3 {
  margin-top: 6px;
}
.step p {
  max-width: 54ch;
  margin-top: 10px;
}

.node {
  flex: none;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: var(--wire-w) solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition:
    border-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.node.lit {
  border-color: var(--current);
  color: var(--current);
  box-shadow: 0 0 0 7px rgb(10 132 255 / 0.12);
}
.node-sm {
  width: 34px;
  height: 34px;
}

.draw {
  stroke-dasharray: 1;
  animation: draw 1.1s cubic-bezier(0.6, 0, 0.2, 1) both;
}
.draw-2 {
  animation-delay: 0.35s;
}
.draw-3 {
  animation-delay: 0.7s;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media (max-width: 899px) {
  :root {
    --wire-w: 4px;
  }
  nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 72px;
  }
  h1 {
    font-size: clamp(1.875rem, 8.4vw, 3.5rem);
  }
  .ln {
    white-space: normal;
  }
  #logo {
    width: 62%;
    margin-inline: auto 0;
  }
  .process {
    padding-top: 110px;
  }
  .section {
    padding-top: 88px;
  }
  .step {
    flex-direction: column;
    gap: 12px;
    margin-inline-start: 0;
  }
  .node {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  .node-sm {
    width: 28px;
    height: 28px;
  }
}

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