:root {
  color-scheme: light;
  --ink: #101418;
  --ink-soft: #3f4742;
  --muted: #66736d;
  --line: #dbe4df;
  --paper: #f7faf7;
  --white: #ffffff;
  --mint: #d9f3ea;
  --mint-strong: #2f7d68;
  --teal: #82d1c8;
  --blue: #dbeafe;
  --blue-strong: #315f9d;
  --violet: #261e4b;
  --amber: #f6dca5;
  --rose: #f6caca;
  --shadow: 0 22px 70px rgba(16, 20, 24, 0.11);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 247, 0.92);
  border-bottom: 1px solid rgba(219, 228, 223, 0.55);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(16, 20, 24, 0.08);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #1e6e5c;
}

.brand-mark {
  width: 21px;
  height: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  align-items: end;
}

.brand-mark span {
  display: block;
  background: currentColor;
  min-height: 8px;
}

.brand-mark span:nth-child(1) {
  height: 13px;
}

.brand-mark span:nth-child(2) {
  height: 18px;
}

.brand-mark span:nth-child(3) {
  height: 10px;
}

.brand-mark.compact {
  color: var(--white);
  transform: scale(1.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.desktop-nav > a,
.nav-trigger {
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  font-size: 0.93rem;
  font-weight: 620;
}

.desktop-nav > a:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  background: rgba(47, 125, 104, 0.08);
}

.nav-trigger::after,
.mobile-accordion::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.nav-trigger[aria-expanded="true"]::after,
.mobile-accordion[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.55rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 1rem;
  width: min(520px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mega-menu.compact {
  grid-template-columns: 1fr;
  width: 260px;
}

.mega-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu a {
  display: block;
  padding: 0.75rem;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 620;
}

.mega-menu a:hover {
  background: var(--paper);
  color: var(--ink);
}

.menu-kicker {
  display: block;
  margin: 0.2rem 0.75rem 0.35rem;
  color: var(--mint-strong);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.7rem;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 40px;
  padding: 0.7rem 1rem;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.button.dark:hover {
  background: #27302b;
}

.button.subtle {
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
}

.button.subtle:hover {
  background: var(--white);
}

.button.wide {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.section-grid {
  background-image:
    linear-gradient(rgba(16, 20, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 24, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3.2rem);
  padding: clamp(3.2rem, 7vw, 5.6rem) 1.25rem 2.8rem;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  background: linear-gradient(to bottom, rgba(247, 250, 247, 0), var(--paper));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--mint-strong);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow.muted {
  color: #8b625f;
}

.eyebrow.green {
  color: #24815f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.6rem, 8vw, 6rem);
  line-height: 0.9;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.hero-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(47, 125, 104, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 6% -6%;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(130, 209, 200, 0.28), rgba(49, 95, 157, 0.18));
  filter: blur(28px);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(16, 20, 24, 0.08);
  border-radius: 10px;
  box-shadow: 0 28px 90px rgba(16, 20, 24, 0.16);
}

.hero-system {
  position: absolute;
  left: clamp(1rem, 5vw, 4rem);
  bottom: clamp(1rem, 5vw, 3.2rem);
  width: min(330px, 36%);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.82);
  color: var(--white);
  box-shadow: 0 16px 60px rgba(16, 20, 24, 0.22);
  backdrop-filter: blur(16px);
}

.hero-system-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.hero-system-header span,
.system-rail {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  color: #b9cbc8;
}

.hero-system-header strong {
  color: var(--teal);
  font-size: 1.35rem;
}

.system-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.system-rail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.system-meter span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #6bb1ff);
  animation: systemMeter 2.4s ease-in-out infinite;
}

@keyframes systemMeter {
  50% {
    width: 92%;
  }
}

.rail-map {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  height: clamp(250px, 26vw, 330px);
  margin: clamp(2.6rem, 5vw, 3.8rem) auto 0;
}

.hero-visual .rail-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.hero-visual .rail-node.core {
  left: auto;
  right: 7%;
  top: 69%;
  width: 56px;
  height: 56px;
  opacity: 0.92;
}

.hero-visual .rail-chip {
  box-shadow: 0 10px 30px rgba(16, 20, 24, 0.12);
}

.hero-visual .rail-chip.ach {
  left: 8%;
  top: 29%;
}

.hero-visual .rail-chip.wire {
  right: 14%;
  top: 22%;
}

.hero-visual .rail-chip.rtp {
  left: auto;
  right: 10%;
  bottom: 14%;
}

.hero-visual .rail-chip.card {
  left: 34%;
  top: 9%;
}

.hero-visual .rail-chip.fx {
  right: 34%;
  bottom: 7%;
}

.hero-visual .rail-chip.ledger {
  right: 44%;
  top: auto;
  bottom: 16%;
}

.hero-visual .rail-line {
  opacity: 0.85;
}

.rail-node.core {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 3;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 50px rgba(16, 20, 24, 0.2);
}

.rail-chip {
  position: absolute;
  z-index: 2;
  border-radius: 4px;
  padding: 0.42rem 0.7rem;
  background: var(--mint);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(16, 20, 24, 0.04);
  animation: chipFloat 4.8s ease-in-out infinite;
}

.rail-chip.active {
  background: var(--mint-strong);
  color: var(--white);
}

.rail-chip.ach {
  left: 16%;
  top: 50%;
}

.rail-chip.wire {
  right: 12%;
  top: 38%;
}

.rail-chip.rtp {
  left: 37%;
  bottom: 13%;
  animation-delay: 500ms;
}

.rail-chip.card {
  left: 29%;
  top: 20%;
  animation-delay: 900ms;
}

.rail-chip.fx {
  right: 34%;
  bottom: 24%;
  animation-delay: 1300ms;
}

.rail-chip.ledger {
  right: 28%;
  top: 7%;
  animation-delay: 1700ms;
}

.rail-line {
  position: absolute;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 125, 104, 0.45), transparent);
  transform-origin: center;
  animation: railPulse 3s ease-in-out infinite;
}

.rail-line.l1 {
  left: 21%;
  top: 55%;
  width: 29%;
}

.rail-line.l2 {
  left: 50%;
  top: 43%;
  width: 30%;
}

.rail-line.l3 {
  left: 42%;
  top: 34%;
  width: 24%;
  transform: rotate(90deg);
}

.rail-line.l4 {
  left: 36%;
  top: 68%;
  width: 18%;
  transform: rotate(90deg);
}

.rail-line.l5 {
  right: 33%;
  bottom: 31%;
  width: 18%;
}

.rail-line.l6 {
  left: 31%;
  top: 33%;
  width: 20%;
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes railPulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

.logo-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee span {
  min-width: 210px;
  padding: 1.2rem 1.4rem;
  color: rgba(16, 20, 24, 0.62);
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-align: center;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.signal-row {
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.signal-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-card + .signal-card {
  border-left: 1px solid var(--line);
}

.signal-card span {
  color: var(--mint-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
}

.signal-card strong {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
}

.platform-section,
.scale-section,
.products-section,
.pricing-section,
.contact-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 1.25rem 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2,
.docs-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.docs-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.split-module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3vw, 3rem);
  border-radius: 8px;
  background: #eef8f6;
}

.split-module.reverse {
  background: #fff8e7;
}

.control-plane {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 55px rgba(16, 20, 24, 0.05);
}

.control-plane h3 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 600;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.control-grid span {
  min-height: 72px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(47, 125, 104, 0.16);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  background:
    linear-gradient(135deg, rgba(217, 243, 234, 0.78), rgba(255, 255, 255, 0.92)),
    var(--white);
  color: var(--ink-soft);
  font-weight: 740;
}

.status-screen,
.code-screen,
.terminal {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: #203f4c;
  color: var(--white);
  box-shadow: var(--shadow);
}

.status-screen {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.screen-header {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.screen-header span,
.progress-row,
.mini-ledger,
.code-tabs,
.terminal pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.screen-header span,
.progress-row,
.mini-ledger {
  color: #c5d7d4;
  font-size: 0.77rem;
}

.screen-header strong {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.05;
  font-weight: 550;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1.4rem;
}

.meter {
  height: 10px;
  overflow: hidden;
  margin: 0.55rem 0 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.meter span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  animation: meterGrow 1.4s ease both;
}

@keyframes meterGrow {
  from {
    width: 20%;
  }
}

.alert-card {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(246, 202, 202, 0.35);
  background: rgba(16, 20, 24, 0.25);
}

.alert-card strong {
  display: block;
  color: #ffd3d3;
  margin-bottom: 0.3rem;
}

.alert-card p {
  margin: 0;
  color: #d6e3df;
  font-size: 0.9rem;
}

.mini-ledger {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.module-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  font-weight: 600;
}

.module-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--mint-strong);
}

.code-screen {
  overflow: hidden;
  background: #131821;
}

.code-tabs {
  display: flex;
  gap: 0.45rem;
  padding: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: #9aa7a2;
  font-size: 0.73rem;
}

.code-tabs span {
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

.code-tabs .active {
  background: rgba(130, 209, 200, 0.12);
  color: var(--teal);
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

.code-screen pre,
.terminal pre {
  padding: clamp(1rem, 3vw, 1.6rem);
  color: #d8ede7;
  font-size: clamp(0.78rem, 1.5vw, 0.96rem);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  color: var(--ink);
  font-weight: 780;
}

.text-link::after {
  content: "->";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.text-link.light {
  color: var(--white);
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.scale-card,
.pricing-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.45rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.scale-card:hover,
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 125, 104, 0.35);
  box-shadow: 0 16px 45px rgba(16, 20, 24, 0.08);
}

.scale-card span {
  color: var(--mint-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.scale-card h3,
.pricing-card h3,
.product-card h3 {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.1;
}

.scale-card p,
.pricing-card p,
.product-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.metrics {
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding: 0 1.25rem;
}

.metric {
  display: grid;
  gap: 0.8rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.metric strong {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 590;
}

.metric span {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.product-card {
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: 8px;
}

.dark-card {
  background: var(--violet);
  color: var(--white);
}

.dark-card p,
.teal-card p {
  color: rgba(255, 255, 255, 0.78);
}

.teal-card {
  background: #195e5b;
  color: var(--white);
}

.wide-card {
  grid-column: 1 / -1;
  min-height: 410px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 2rem;
  background: #eaf1ff;
}

.ivory-card {
  background: #fff9ed;
  color: var(--ink);
  border: 1px solid rgba(246, 220, 165, 0.55);
}

.blue-card {
  background: #dceeff;
  color: var(--ink);
}

.ledger-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.8rem;
  height: 220px;
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ledger-visual span {
  display: block;
  min-height: 38%;
  background: linear-gradient(to top, var(--teal), rgba(130, 209, 200, 0.22));
  animation: bars 3s ease-in-out infinite;
}

.ledger-visual span:nth-child(2) {
  min-height: 62%;
  animation-delay: 250ms;
}

.ledger-visual span:nth-child(3) {
  min-height: 82%;
  animation-delay: 500ms;
}

.ledger-visual span:nth-child(4) {
  min-height: 48%;
  animation-delay: 750ms;
}

@keyframes bars {
  50% {
    transform: scaleY(0.72);
  }
}

.policy-visual,
.queue-visual {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.policy-visual span,
.policy-visual b,
.queue-visual span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 680;
}

.policy-visual b {
  background: var(--mint);
  color: var(--ink);
}

.queue-visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.queue-visual span {
  background: var(--white);
  color: var(--ink-soft);
  border: 1px solid rgba(49, 95, 157, 0.12);
}

.queue-visual .high {
  background: var(--rose);
  color: #7d2020;
}

.queue-visual .done {
  background: var(--mint);
  color: #1e6e5c;
}

.account-visual {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.account-visual span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.85rem 1rem 0.85rem 2.4rem;
  border: 1px solid rgba(16, 20, 24, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-weight: 720;
}

.account-visual span::before {
  content: "";
  position: absolute;
  left: 1rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--mint-strong);
}

.match-visual {
  position: relative;
  min-height: 210px;
  margin-bottom: 2rem;
  border: 1px solid rgba(49, 95, 157, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(49, 95, 157, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 95, 157, 0.1) 1px, transparent 1px),
    rgba(255, 255, 255, 0.55);
  background-size: 34px 34px;
  overflow: hidden;
}

.match-visual span {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-strong), transparent);
  animation: matchSweep 3.2s ease-in-out infinite;
}

.match-visual span:nth-child(1) {
  top: 28%;
}

.match-visual span:nth-child(2) {
  top: 50%;
  animation-delay: 280ms;
}

.match-visual span:nth-child(3) {
  top: 72%;
  animation-delay: 560ms;
}

.match-visual::before,
.match-visual::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 28%;
  border: 1px solid rgba(49, 95, 157, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
}

.match-visual::before {
  left: 8%;
}

.match-visual::after {
  right: 8%;
}

@keyframes matchSweep {
  50% {
    opacity: 0.28;
    transform: translateX(8px);
  }
}

.docs-section {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 1.25rem 0;
}

.docs-copy {
  max-width: 520px;
}

.terminal {
  overflow: hidden;
  background: #111720;
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.terminal-bar span {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: var(--rose);
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--teal);
}

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

.pricing-card strong {
  margin-top: 1.5rem;
  font-size: 1.4rem;
}

.pricing-card.featured {
  background: var(--ink);
  color: var(--white);
}

.pricing-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 50px rgba(16, 20, 24, 0.06);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfdfb;
  color: var(--ink);
  padding: 0.85rem 0.9rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 3px rgba(47, 125, 104, 0.12);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--mint-strong);
  font-weight: 700;
}

.form-status.is-error {
  color: #8d2727;
}

.stories-section {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin: 0 auto;
  padding: 0 1.25rem clamp(4rem, 8vw, 6rem);
}

.story-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 8px;
  background: #e8f2ff;
  transition: opacity 180ms ease, transform 180ms ease;
}

.story-card.is-changing {
  opacity: 0.55;
  transform: translateY(3px);
}

.story-card p {
  max-width: 880px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.18;
}

.story-card strong {
  display: block;
}

.story-card span {
  color: var(--muted);
}

.story-controls {
  display: flex;
  gap: 0.6rem;
}

.story-controls button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}

.story-controls button::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin: auto;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.story-controls button:first-child::before {
  transform: rotate(-135deg);
}

.story-controls button:last-child::before {
  transform: rotate(45deg);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  padding: clamp(3rem, 6vw, 5rem) max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-brand p {
  max-width: 420px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-columns h2 {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-columns a {
  display: block;
  margin: 0.55rem 0;
  color: var(--muted);
}

.footer-columns a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 170ms;
}

.delay-3 {
  transition-delay: 250ms;
}

@media (max-width: 1060px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .desktop-only,
  .nav-actions .button.subtle {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 73px 0 auto;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-panel {
    display: grid;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .mobile-panel > a,
  .mobile-accordion {
    width: 100%;
    min-height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-weight: 730;
    cursor: pointer;
  }

  .mobile-links {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 180ms ease;
  }

  .mobile-links.is-open {
    grid-template-rows: 1fr;
  }

  .mobile-links > a {
    min-height: 42px;
    padding-left: 1rem;
    color: var(--muted);
  }

  .mobile-links {
    gap: 0.1rem;
  }

  .mobile-links::before,
  .mobile-links::after {
    content: "";
  }
}

@media (max-width: 1180px) {
  .desktop-only {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 3.2rem;
  }

  h1 {
    font-size: clamp(3.7rem, 15vw, 5.2rem);
  }

  .rail-map {
    height: 330px;
  }

  .rail-chip.ach {
    left: 8%;
  }

  .rail-chip.wire {
    right: 5%;
  }

  .rail-chip.card {
    left: 22%;
  }

  .rail-chip.ledger {
    right: 18%;
  }

  .split-module,
  .split-module.reverse,
  .docs-section,
  .wide-card,
  .control-plane {
    grid-template-columns: 1fr;
  }

  .scale-grid,
  .product-grid,
  .pricing-grid,
  .metrics,
  .signal-row {
    grid-template-columns: 1fr;
  }

  .signal-card + .signal-card {
    border-left: 0;
    border-top: 0;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual .rail-map {
    height: 100%;
  }

  .product-card,
  .wide-card {
    min-height: auto;
  }

  .site-footer,
  .stories-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    padding: 0.8rem 1.25rem;
  }

  .brand {
    font-size: 0.82rem;
  }

  .nav-actions .button.dark {
    display: none;
  }

  .hero {
    padding-top: 2.2rem;
    padding-bottom: 1rem;
  }

  h1 {
    font-size: clamp(3.3rem, 13vw, 4.2rem);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1.02rem;
  }

  .hero-meta {
    gap: 0.45rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .hero-system,
  .hero-visual .rail-map {
    display: none;
  }

  .rail-map {
    height: 230px;
    margin-top: 1.8rem;
  }

  .rail-node.core {
    width: 58px;
    height: 58px;
  }

  .rail-chip {
    font-size: 0.66rem;
    padding: 0.34rem 0.52rem;
  }

  .marquee span {
    min-width: 170px;
    font-size: 1rem;
  }

  .field-row,
  .queue-visual,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading h2,
  .docs-copy h2 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .story-controls {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
