:root {
  color-scheme: dark;
  --bg: #090b0e;
  --panel: #101318;
  --panel-2: #151a22;
  --panel-3: #0c0f14;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f8fafc;
  --muted: #a7b3c6;
  --subtle: #68778d;
  --route: #4ade80;
  --cyan: #38bdf8;
  --amber: #f59e0b;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  margin: 0;
  text-rendering: geometricPrecision;
}

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

main {
  overflow: hidden;
}

.hero {
  border-bottom: 1px solid var(--line);
  min-height: 780px;
  overflow: hidden;
  position: relative;
}

.mesh {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 92px 92px;
  inset: 0;
  position: absolute;
}

.nav,
.hero-grid,
.section,
.cta {
  margin: 0 auto;
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.brand,
.nav-links,
.hero-actions {
  align-items: center;
  display: flex;
}

.brand {
  gap: 12px;
  font-size: 16px;
  font-weight: 850;
}

.brand b {
  color: var(--route);
}

.mark {
  height: 38px;
  width: 38px;
}

.mark rect {
  fill: #111318;
  stroke: #2b313d;
}

.mark-line {
  fill: none;
  stroke: #64748b;
  stroke-linecap: round;
  stroke-width: 2.3;
}

.mark-route {
  fill: none;
  stroke: var(--route);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.3;
}

.mark-soft {
  fill: #bbf7d0;
}

.mark-dot {
  fill: #22c55e;
}

.mark-gate {
  fill: #111318;
  stroke: var(--route);
  stroke-width: 3.2;
}

.mark-clock {
  fill: none;
  stroke: #f8fafc;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.nav-links {
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1fr);
  padding: 86px 24px 70px;
}

.eyebrow {
  align-items: center;
  color: var(--route);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  gap: 10px;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.eyebrow span,
.pill i {
  background: var(--route);
  border-radius: 999px;
  display: inline-block;
  height: 7px;
  width: 7px;
}

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

h1 {
  font-size: clamp(48px, 7vw, 82px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 26px;
  max-width: 760px;
}

h2 {
  font-size: clamp(34px, 4.8vw, 56px);
  letter-spacing: 0;
  line-height: 1.03;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

.lead {
  color: #d7e0ee;
  font-size: 18px;
  line-height: 1.72;
  max-width: 650px;
}

.hero-actions {
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 760;
  height: 44px;
  justify-content: center;
  padding: 0 18px;
  white-space: nowrap;
}

.button.small {
  height: 36px;
}

.button.primary {
  background: var(--route);
  border-color: var(--route);
  color: #06130a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.035);
}

.hero-proof {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  overflow: hidden;
}

.hero-proof div,
.principles article,
.cards article,
.steps div,
.matrix div {
  background: var(--panel);
}

.hero-proof div {
  min-height: 118px;
  padding: 18px;
}

.hero-proof b,
.hero-proof span {
  display: block;
}

.hero-proof b {
  color: var(--route);
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 12px;
}

.hero-proof span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.story-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.panel-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.kicker,
.prompt-box small,
.decision-card small {
  color: var(--subtle);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-top strong {
  display: block;
  font-size: 15px;
  margin-top: 4px;
}

.pill {
  align-items: center;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 999px;
  color: var(--route);
  display: inline-flex;
  font-size: 12px;
  gap: 8px;
  padding: 6px 10px;
}

.prompt-box {
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 22px 22px 0;
  padding: 14px 16px;
}

.prompt-box p {
  color: #dbeafe;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  margin: 7px 0 0;
}

.flow {
  display: block;
  margin-top: 8px;
  padding: 0 18px;
  width: 100%;
}

.line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.line.dim {
  stroke: rgba(148, 163, 184, 0.26);
}

.line.active {
  animation: path-flow 7s ease-in-out infinite;
  stroke: url("#activeLine");
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
}

.node {
  fill: #202733;
  stroke: #94a3b8;
  stroke-width: 2;
}

.node.hot {
  fill: var(--route);
  stroke: #bbf7d0;
}

.node.cyan {
  fill: rgba(56, 189, 248, 0.18);
  stroke: var(--cyan);
}

.node.amber {
  fill: rgba(245, 158, 11, 0.18);
  stroke: var(--amber);
}

.flow-labels text {
  fill: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
  text-anchor: middle;
}

.token {
  fill: var(--route);
  filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.58));
  stroke: #bbf7d0;
  stroke-width: 2;
}

.token.alt {
  fill: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.42));
  stroke: #bae6fd;
}

.token.amber {
  fill: var(--amber);
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.42));
  stroke: #fde68a;
}

.decision-card {
  align-items: center;
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 180px 1fr;
  padding: 18px;
}

.decision-card b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  margin-top: 4px;
}

dl {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  overflow: hidden;
}

dl div {
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

dt {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
}

dd {
  font-family: var(--mono);
  margin: 6px 0 0;
}

.section {
  padding: 86px 24px;
}

.section-title {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  margin-bottom: 34px;
}

.section-title.compact {
  display: block;
  max-width: 820px;
}

.section-title h2,
.section-title .eyebrow {
  grid-column: 1;
}

.section-title > p:not(.eyebrow) {
  align-self: end;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.principles,
.cards,
.steps {
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.principles {
  grid-template-columns: repeat(3, 1fr);
}

.principles article,
.cards article {
  min-height: 220px;
  padding: 26px;
}

.principles span {
  color: var(--route);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 38px;
}

.principles p,
.cards p,
.integration p,
.cta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.workflow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  grid-template-columns: repeat(5, 1fr);
}

.steps div {
  min-height: 170px;
  padding: 22px;
}

.steps b,
.steps span {
  display: block;
}

.steps b {
  font-size: 15px;
  margin-bottom: 18px;
}

.steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.cards {
  grid-template-columns: repeat(4, 1fr);
}

.integration {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
}

.matrix {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.matrix div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 150px 1fr;
  padding: 19px 22px;
}

.matrix div:last-child {
  border-bottom: 0;
}

.matrix b {
  color: var(--route);
  font-family: var(--mono);
  font-size: 13px;
}

.matrix span {
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 80px;
  padding: 28px;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 10px;
}

@keyframes path-flow {
  0% {
    opacity: 0;
    stroke-dashoffset: 760;
  }
  12% {
    opacity: 0.86;
  }
  68% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  90%,
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1060px) {
  .hero-grid,
  .section-title,
  .integration,
  .principles,
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .story-panel {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .nav,
  .hero-grid,
  .section,
  .cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .hero-grid {
    padding-top: 66px;
  }

  .hero-proof,
  .decision-card,
  dl,
  .matrix div {
    grid-template-columns: 1fr;
  }

  .panel-top,
  .cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 60px);
  }
}
