:root {
  color: #181a1f;
  background: #f7f7f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #181a1f;
  --muted: #656b73;
  --line: rgba(24, 26, 31, 0.12);
  --paper: #fffffb;
  --wash: #f7f7f4;
  --accent: #225c54;
  --accent-soft: #e8f0ec;
  --copper: #a85f3c;
  --night: #171b21;
  --matrix: #58f3b2;
  --scroll-progress: 0%;
  --glow-x: 20%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.7), rgba(247, 247, 244, 0.96) 420px),
    var(--wash);
  transition: background-color 300ms ease;
}

body[data-scroll-zone="integrations"],
body[data-scroll-zone="systems"] {
  background:
    radial-gradient(circle at 12% 24%, rgba(88, 243, 178, 0.08), transparent 30%),
    linear-gradient(180deg, #f4f8f5, #eef5f0 46%, #f7f7f4);
}

body[data-scroll-zone="roadmap"],
body[data-scroll-zone="faq"] {
  background:
    radial-gradient(circle at 85% 18%, rgba(168, 95, 60, 0.1), transparent 32%),
    linear-gradient(180deg, #f6f3ed, #f7f7f4);
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.scroll-signal {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: var(--scroll-progress);
  height: 2px;
  background: linear-gradient(90deg, var(--matrix), #f4d7c4);
  box-shadow: 0 0 18px rgba(88, 243, 178, 0.72);
  pointer-events: none;
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 251, 0.88);
  backdrop-filter: blur(18px);
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(88, 243, 178, 0.22);
  background: rgba(255, 255, 251, 0.78);
}

.brand,
.site-header nav,
.hero-actions,
.card-topline,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 760;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--accent);
  font-size: 13px;
}

.site-header nav {
  gap: 4px;
}

.site-header nav a {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-header nav a:hover,
.nav-button {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  padding: clamp(92px, 14vh, 148px) clamp(18px, 5vw, 64px) clamp(34px, 6vw, 58px);
  background:
    radial-gradient(circle at 84% 18%, rgba(111, 176, 162, 0.22), transparent 32%),
    radial-gradient(circle at var(--glow-x) 28%, rgba(88, 243, 178, 0.22), transparent 20%),
    radial-gradient(circle at 20% 88%, rgba(168, 95, 60, 0.28), transparent 34%),
    linear-gradient(135deg, #10141a 0%, #182225 48%, #0d1117 100%);
  color: #fffffb;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 251, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 251, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 82%);
  animation: grid-drift 18s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 251, 0.08) 42%, transparent 48%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 58%);
  transform: translateX(-18%);
  animation: scan 8s ease-in-out infinite;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-ambient span {
  position: absolute;
  display: block;
  width: min(32vw, 380px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 215, 196, 0.72), transparent);
  opacity: 0.72;
  animation: signal-line 7s ease-in-out infinite;
}

.hero-ambient span:nth-child(1) {
  top: 24%;
  right: 8%;
}

.hero-ambient span:nth-child(2) {
  top: 48%;
  right: 18%;
  animation-delay: 1.8s;
}

.hero-ambient span:nth-child(3) {
  top: 70%;
  right: 4%;
  animation-delay: 3.2s;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c6d8d3;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 0;
  color: rgba(255, 255, 251, 0.82);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.48;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 760;
}

.button.primary {
  background: #fffffb;
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 251, 0.34);
  color: #fffffb;
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: end;
  border: 1px solid rgba(255, 255, 251, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(18, 22, 27, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.panel-header,
.signal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.panel-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 251, 0.13);
}

.panel-header span,
.signal-row span {
  color: rgba(255, 255, 251, 0.58);
  font-size: 12px;
  font-weight: 680;
}

.panel-header strong {
  color: #f4d7c4;
  font-size: 13px;
  text-transform: uppercase;
}

.signal-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 251, 0.1);
}

.signal-row strong {
  color: #fffffb;
  font-size: 20px;
}

.panel-chart {
  height: 116px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 18px;
}

.panel-chart span {
  min-height: 24px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #f3c6a8, #6fb0a2);
  transform-origin: bottom;
  animation: bar-pulse 4.4s ease-in-out infinite;
}

.panel-chart span:nth-child(1) {
  height: 42%;
  animation-delay: 0.2s;
}

.panel-chart span:nth-child(2) {
  height: 64%;
  animation-delay: 0.7s;
}

.panel-chart span:nth-child(3) {
  height: 52%;
  animation-delay: 1.1s;
}

.panel-chart span:nth-child(4) {
  height: 78%;
  animation-delay: 0.5s;
}

.panel-chart span:nth-child(5) {
  height: 68%;
  animation-delay: 1.5s;
}

.panel-chart span:nth-child(6) {
  height: 92%;
  animation-delay: 0.9s;
}

.event-stream {
  position: relative;
  height: 34px;
  overflow: hidden;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 251, 0.1);
  color: rgba(255, 255, 251, 0.72);
  font-size: 12px;
  font-weight: 680;
}

.event-stream span {
  position: absolute;
  inset: 11px 0 auto;
  opacity: 0;
  transform: translateY(12px);
  animation: stream-text 9s ease-in-out infinite;
}

.event-stream span:nth-child(2) {
  animation-delay: 3s;
}

.event-stream span:nth-child(3) {
  animation-delay: 6s;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.proof-band div {
  min-height: 98px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 20px clamp(18px, 4vw, 38px);
  border-right: 1px solid var(--line);
}

.proof-band strong {
  color: var(--accent);
  font-size: 29px;
  line-height: 1;
}

.proof-band span,
.section p,
.system-card li,
.roadmap-grid p,
.site-footer span {
  color: var(--muted);
}

.section {
  padding: clamp(54px, 8vw, 94px) clamp(18px, 5vw, 64px);
}

.intro-section,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 7vw, 96px);
  align-items: start;
}

.intro-section p,
.split-section p {
  font-size: 18px;
  line-height: 1.62;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 26px;
}

.rail-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 0;
}

.rail-item {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 4vw, 34px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 251, 0.54);
  transition: background 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

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

.rail-item span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 760;
}

.rail-item strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.rail-item p {
  max-width: 260px;
  margin-bottom: 0;
  line-height: 1.5;
}

.rail-section.is-visible .rail-item {
  background: rgba(255, 255, 251, 0.84);
  box-shadow: inset 0 1px 0 rgba(88, 243, 178, 0.28);
}

.reveal-zone {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

.system-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.system-card,
.integration-grid article,
.roadmap-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.system-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.system-card.featured {
  background: var(--accent-soft);
}

.system-card:hover {
  border-color: rgba(34, 92, 84, 0.32);
  box-shadow: 0 18px 42px rgba(24, 26, 31, 0.08);
  transform: translateY(-2px);
}

.integrations-section {
  padding-top: clamp(48px, 7vw, 82px);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.integration-grid article {
  min-height: 154px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(88, 243, 178, 0.08), transparent 42%),
    rgba(255, 255, 251, 0.88);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.integration-grid article:hover {
  border-color: rgba(88, 243, 178, 0.36);
  box-shadow: 0 18px 42px rgba(24, 26, 31, 0.08);
  transform: translateY(-2px);
}

.integration-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.integration-grid strong {
  font-size: 18px;
  line-height: 1.28;
}

.card-topline {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.status {
  border: 1px solid rgba(34, 92, 84, 0.22);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  padding: 5px 9px;
  font-size: 11px;
}

.system-card p {
  line-height: 1.55;
}

.system-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding-left: 18px;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 48px 48px, 48px 48px;
  }
}

@keyframes scan {
  0%,
  100% {
    opacity: 0.24;
    transform: translateX(-22%);
  }

  50% {
    opacity: 0.54;
    transform: translateX(18%);
  }
}

@keyframes signal-line {
  0%,
  100% {
    opacity: 0;
    transform: translateX(36px) scaleX(0.65);
  }

  42%,
  62% {
    opacity: 0.72;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes bar-pulse {
  0%,
  100% {
    transform: scaleY(0.86);
    opacity: 0.72;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes stream-text {
  0%,
  24% {
    opacity: 0;
    transform: translateY(12px);
  }

  34%,
  58% {
    opacity: 1;
    transform: translateY(0);
  }

  68%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

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

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-grid article {
  min-height: 198px;
  padding: 18px;
  background: linear-gradient(180deg, var(--paper), rgba(255, 255, 251, 0.72));
}

.roadmap-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 760;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 4px 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item[open] {
  border-color: rgba(34, 92, 84, 0.32);
  box-shadow: 0 18px 42px rgba(24, 26, 31, 0.08);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 720;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 760;
  font-size: 22px;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 16px;
  max-width: 70ch;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

@media (max-width: 980px) {
  .site-header,
  .site-header nav,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-band,
  .intro-section,
  .split-section,
  .system-grid,
  .integration-grid,
  .rail-section,
  .roadmap-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-panel {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .site-header nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-header nav a {
    width: 100%;
    padding-inline: 6px;
    text-align: center;
  }

  .hero {
    min-height: 68vh;
  }

  .proof-band,
  .intro-section,
  .split-section,
  .system-grid,
  .integration-grid,
  .rail-section,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .rail-item + .rail-item {
    border-left: 0;
    border-top: 0;
  }
}
