:root {
  --bg: #05080f;
  --bg-soft: #09111e;
  --panel: rgba(12, 20, 34, 0.78);
  --panel-strong: rgba(15, 26, 44, 0.92);
  --panel-glass: rgba(15, 27, 47, 0.58);
  --text: #eef7ff;
  --muted: #8ca3b6;
  --faint: #53677c;
  --line: rgba(129, 164, 191, 0.18);
  --cyan: #55f6d2;
  --blue: #58a7ff;
  --amber: #ffcf6b;
  --green: #9cff6d;
  --red: #ff627a;
  --violet: #b78cff;
  --shadow: 0 28px 120px rgba(0, 0, 0, 0.52);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-display: "Space Grotesk", "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(85, 246, 210, 0.15), transparent 30vw),
    radial-gradient(circle at 86% 4%, rgba(255, 207, 107, 0.12), transparent 28vw),
    linear-gradient(135deg, #03060b 0%, #07111d 46%, #04070c 100%);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.ambient,
.noise {
  pointer-events: none;
  position: fixed;
  inset: auto;
  z-index: -2;
}

.ambient-one {
  width: 46vw;
  height: 46vw;
  left: -22vw;
  top: 12vh;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(85, 246, 210, 0.18), transparent 65%);
  filter: blur(34px);
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient-two {
  width: 38vw;
  height: 38vw;
  right: -18vw;
  top: 42vh;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(88, 167, 255, 0.15), transparent 66%);
  filter: blur(38px);
  animation: drift 21s ease-in-out infinite alternate-reverse;
}

.noise {
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 10%, black 0%, transparent 80%);
}

.shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  padding: 26px 0 76px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 13, 23, 0.62);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
}

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

.brand {
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 25%, white 0 7%, transparent 8%),
    conic-gradient(from 210deg, var(--cyan), var(--blue), var(--amber), var(--cyan));
  box-shadow: 0 0 30px rgba(85, 246, 210, 0.42);
}

.nav-actions {
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: 180ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.72fr);
  gap: 42px;
  align-items: center;
  padding-top: 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.065em;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 8vw, 8.8rem);
  line-height: 0.84;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.92;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
}

.hero-lede,
.section-heading p,
.story-panel p,
.validation-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.75;
}

.hero-lede {
  max-width: 740px;
}

.hero-actions,
.signal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 32px;
}

.demo-access-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 560px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(85, 246, 210, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(85, 246, 210, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.demo-access-card img {
  width: 112px;
  height: 112px;
  padding: 8px;
  border-radius: 18px;
  background: #eef7ff;
}

.demo-access-card strong {
  display: block;
  margin: 4px 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.demo-access-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.demo-access-label {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button,
.icon-button,
.seg {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.icon-button:hover,
.seg:hover {
  transform: translateY(-2px);
}

.primary {
  color: #03110f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 48px rgba(85, 246, 210, 0.22);
}

.secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.signal-row {
  margin-top: 34px;
  color: var(--muted);
}

.signal-row span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.signal-row strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.mini-preview,
.canvas-card,
.detail-panel,
.story-panel,
.validation-board,
.consumer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(14, 25, 43, 0.84), rgba(6, 12, 21, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.mini-preview::before,
.canvas-card::before,
.detail-panel::before,
.story-panel::before,
.validation-board::before,
.consumer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(85, 246, 210, 0.16), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(255, 207, 107, 0.11), transparent 30%);
}

.mini-preview {
  min-height: 520px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.preview-header,
.canvas-toolbar,
.panel-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-header {
  color: var(--muted);
  font-weight: 800;
}

.live-pill,
.risk-pill,
.panel-status,
.canvas-kicker,
.node-status,
.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-pill {
  padding: 8px 11px;
  color: #051411;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(85, 246, 210, 0.28);
}

.mini-preview svg {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 34px;
  overflow: visible;
}

.mini-line {
  fill: none;
  stroke: url(#miniEdge);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 16 22;
  filter: drop-shadow(0 0 12px rgba(85, 246, 210, 0.75));
  animation: dashTravel 2.1s linear infinite;
}

.mini-line.delay {
  animation-delay: -0.9s;
  opacity: 0.65;
}

.mini-nodes circle {
  fill: rgba(8, 17, 29, 0.95);
  stroke: rgba(85, 246, 210, 0.74);
  stroke-width: 3;
  filter: drop-shadow(0 0 16px rgba(85, 246, 210, 0.48));
  animation: nodeBreath 2.4s ease-in-out infinite alternate;
}

.preview-card {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
}

.status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.map-section,
.explanation-section,
.consumer-section,
.validation-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 32px;
}

.control-strip,
.lineage-workbench,
.story-layout,
.validation-board {
  display: grid;
  gap: 18px;
}

.control-strip {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 15, 26, 0.72);
  backdrop-filter: blur(18px);
}

.segmented,
.playback-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seg {
  padding: 12px 16px;
  color: var(--muted);
  border-radius: 999px;
  background: transparent;
  transition: 180ms ease;
}

.seg.active {
  color: #03110f;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 14px 32px rgba(85, 246, 210, 0.2);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transition: 180ms ease;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.speed-control input {
  width: 96px;
  accent-color: var(--cyan);
}

.lineage-workbench {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
}

.canvas-card,
.detail-panel {
  border-radius: var(--radius-xl);
}

.canvas-card {
  min-width: 0;
}

.canvas-toolbar {
  padding: 22px 24px 8px;
}

.canvas-toolbar h3 {
  margin: 4px 0 0;
}

.canvas-kicker {
  color: var(--cyan);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
}

.legend-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.legend-dot.upstream {
  background: var(--amber);
}

.legend-dot.downstream {
  background: var(--blue);
}

.graph-frame {
  position: relative;
  height: 650px;
  margin: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 20%, rgba(85, 246, 210, 0.1), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(88, 167, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.6), rgba(6, 11, 19, 0.94));
}

.graph-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 82%);
}

.edge-layer,
.lane-layer,
.node-layer {
  position: absolute;
  inset: 0;
}

.edge-layer {
  z-index: 1;
  width: 100%;
  height: 100%;
}

.lane-layer {
  z-index: 0;
}

.node-layer {
  z-index: 2;
}

.lane {
  position: absolute;
  top: 34px;
  bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
}

.lane-label {
  display: none;
}

.edge-path {
  fill: none;
  stroke: rgba(123, 155, 181, 0.27);
  stroke-width: 1.7;
  stroke-linecap: round;
  transition: stroke 160ms ease, stroke-width 160ms ease, opacity 160ms ease;
}

.edge-path.backbone {
  stroke-width: 2.4;
}

.edge-path.is-related {
  stroke: url(#flowGradient);
  stroke-width: 2.9;
  opacity: 1;
  filter: none;
  stroke-dasharray: none;
  animation: none;
}

.edge-path.is-upstream {
  stroke: var(--amber);
}

.edge-path.is-downstream {
  stroke: var(--blue);
}

.edge-path.is-muted {
  opacity: 0.08;
}

.node-card {
  position: absolute;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  width: 118px;
  min-height: 54px;
  padding: 9px;
  border: 1px solid rgba(161, 195, 219, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(85, 246, 210, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(16, 28, 47, 0.92), rgba(7, 13, 23, 0.88));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.node-card:hover,
.node-card.is-selected,
.node-card.is-active {
  transform: translate(-50%, -50%) translateY(-3px) scale(1.035);
}

.node-card.is-selected,
.node-card.is-active {
  border-color: rgba(85, 246, 210, 0.82);
  background:
    radial-gradient(circle at 15% 0, rgba(85, 246, 210, 0.28), transparent 42%),
    linear-gradient(145deg, rgba(17, 36, 58, 0.98), rgba(7, 14, 24, 0.96));
  box-shadow: 0 0 0 1px rgba(85, 246, 210, 0.24), 0 0 38px rgba(85, 246, 210, 0.28), 0 26px 80px rgba(0, 0, 0, 0.48);
}

.node-card.is-downstream {
  border-color: rgba(88, 167, 255, 0.62);
  box-shadow: 0 0 30px rgba(88, 167, 255, 0.13), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.node-card.is-upstream {
  border-color: rgba(255, 207, 107, 0.58);
  box-shadow: 0 0 30px rgba(255, 207, 107, 0.13), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.node-card.is-muted {
  opacity: 0.25;
  filter: grayscale(0.4);
}

.node-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #06120f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 22px rgba(85, 246, 210, 0.28);
  font-size: 0.7rem;
  font-weight: 900;
}

.node-title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.node-meta {
  display: none;
}

.node-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  color: var(--faint);
  font-size: 0;
  letter-spacing: 0;
}

.node-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
}

.node-status::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.node-card.is-selected .node-status,
.node-card.is-active .node-status {
  color: var(--cyan);
}

.minimap {
  display: none;
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 144px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 9, 16, 0.72);
  backdrop-filter: blur(18px);
}

.minimap span {
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(85, 246, 210, 0.38), rgba(88, 167, 255, 0.12));
}

.detail-panel {
  padding: 20px;
}

.detail-panel > * {
  position: relative;
  z-index: 1;
}

.panel-status {
  padding: 8px 10px;
  color: var(--cyan);
  border: 1px solid rgba(85, 246, 210, 0.24);
  background: rgba(85, 246, 210, 0.08);
}

.risk-pill {
  padding: 8px 10px;
  color: var(--amber);
  border: 1px solid rgba(255, 207, 107, 0.25);
  background: rgba(255, 207, 107, 0.08);
}

.detail-panel h3 {
  margin-top: 18px;
  font-size: 1.55rem;
}

.detail-panel p,
.detail-panel li {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.metric-chip {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-chip strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
}

.metric-chip span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-block {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-block h4 {
  margin: 0 0 9px;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.detail-block p,
.detail-block ul {
  margin: 0;
}

.detail-block ul {
  padding-left: 18px;
}

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

.dependency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dep-chip {
  padding: 7px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.72rem;
  font-weight: 800;
}

.story-layout {
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(var(--cyan), rgba(88, 167, 255, 0.4), rgba(255, 207, 107, 0.1));
}

.story-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 16, 28, 0.68);
  cursor: pointer;
  transition: 180ms ease;
}

.story-step:hover,
.story-step.is-active {
  transform: translateX(6px);
  border-color: rgba(85, 246, 210, 0.54);
  background: rgba(13, 28, 47, 0.92);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.28), 0 0 30px rgba(85, 246, 210, 0.08);
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(85, 246, 210, 0.32);
  border-radius: 18px;
  color: var(--cyan);
  background: #07131f;
  font-family: var(--font-display);
  font-weight: 900;
}

.story-step h3 {
  margin: 2px 0 8px;
  font-size: 1.2rem;
}

.story-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.step-chip {
  margin-top: 12px;
  color: var(--amber);
}

.story-panel {
  position: sticky;
  top: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.story-panel > * {
  position: relative;
  z-index: 1;
}

.story-index {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-panel .button {
  margin-top: 16px;
}

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

.consumer-card {
  min-height: 250px;
  padding: 22px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: 180ms ease;
}

.consumer-card:hover {
  transform: translateY(-8px);
  border-color: rgba(85, 246, 210, 0.48);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), 0 0 36px rgba(85, 246, 210, 0.1);
}

.consumer-card > * {
  position: relative;
  z-index: 1;
}

.consumer-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 42px;
  border-radius: 18px;
  color: #051411;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
}

.consumer-card p {
  color: var(--muted);
  line-height: 1.6;
}

.consumer-card .dep-chip {
  color: var(--cyan);
}

.validation-board {
  grid-template-columns: minmax(0, 1fr) 390px;
  padding: 20px;
  border-radius: var(--radius-xl);
}

.validation-flow,
.validation-copy {
  position: relative;
  z-index: 1;
}

.validation-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 18px;
}

.validation-node {
  border: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  position: relative;
  min-height: 170px;
  padding: 16px;
  border: 1px solid rgba(156, 255, 109, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  transition: 180ms ease;
}

.validation-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 12px rgba(156, 255, 109, 0.42);
  animation: dashTravel 1.4s linear infinite;
}

.validation-node.is-active {
  transform: translateY(-6px);
  border-color: rgba(156, 255, 109, 0.58);
  background: radial-gradient(circle at 0 0, rgba(156, 255, 109, 0.16), transparent 42%), rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32), 0 0 32px rgba(156, 255, 109, 0.12);
}

.validation-node.is-active::after {
  height: 3px;
  box-shadow: 0 0 18px rgba(156, 255, 109, 0.76);
}

.validation-node:last-child::after {
  display: none;
}

.validation-node strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.03rem;
}

.validation-node p {
  color: var(--muted);
  line-height: 1.55;
}

.validation-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 44px 0 60px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 820ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 120ms;
}

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

@keyframes dashTravel {
  to {
    stroke-dashoffset: -56;
  }
}

@keyframes nodeBreath {
  to {
    transform: scale(1.05);
  }
}

@keyframes drift {
  to {
    transform: translate3d(5vw, -3vh, 0) scale(1.05);
  }
}

@media (max-width: 1240px) {
  .hero-grid,
  .lineage-workbench,
  .story-layout,
  .validation-board {
    grid-template-columns: 1fr;
  }

  .detail-panel,
  .story-panel {
    position: relative;
    top: auto;
  }

  .graph-frame {
    height: 640px;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1500px);
  }

  .hero {
    min-height: auto;
    padding-bottom: 44px;
  }

  .topbar,
  .control-strip,
  .canvas-toolbar,
  .preview-header,
  .panel-topline,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .nav-actions,
  .segmented,
  .playback-controls {
    flex-wrap: wrap;
  }

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

  .demo-access-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.7rem);
  }

  .mini-preview {
    min-height: auto;
  }

  .control-strip {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .graph-frame {
    height: 600px;
    overflow-x: auto;
  }

  .edge-layer,
  .lane-layer,
  .node-layer {
    min-width: 1120px;
  }

  .node-card {
    width: 126px;
  }

  .io-grid,
  .metric-grid,
  .consumer-grid {
    grid-template-columns: 1fr;
  }

  .story-step {
    grid-template-columns: 44px 1fr;
  }

  .step-number {
    width: 44px;
    height: 44px;
  }
}
