/* Chain landing — brutalist-modern black system */
:root {
  --bg: #000000;
  --fg: #f4f4f5;
  --muted: #8a8a93;
  --dim: #3a3a42;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.055);
  --accent: #e8e8ec;
  --ok: #7dffa5;
  --warn: #ffd27a;
  --flag: #ff8f8f;
  --in: #7dd3fc;
  --out: #fca5a5;
  --display: "Inter", "Geist Sans", ui-sans-serif, system-ui, sans-serif;
  --sans: "Geist Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  --max: 72rem;
}

.landing-body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--sans);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "ss01" on, "calt" on;
  letter-spacing: -0.01em;
}

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

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-space {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.landing-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.82) 100%);
}

.landing-rings {
  display: none;
}

.landing-ring {
  display: none;
}

.landing-nav,
.landing-main,
.landing-foot {
  position: relative;
  z-index: 1;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  background: transparent;
}

.landing-nav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.landing-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
}

.landing-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.landing-brand-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}

.landing-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-top-cta,
.landing-top-login {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 560;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: transparent;
}

.landing-top-cta:hover,
.landing-top-login:hover {
  background: rgba(255, 255, 255, 0.06);
}

.landing-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 5rem;
}

.landing-hero {
  min-height: min(86vh, 46rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.landing-graph-demo {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  align-self: flex-end;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: #d4d4d8;
}

.landing-hero-stat span {
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.landing-hero-stat em {
  font-style: normal;
  color: #8a8a93;
  font-weight: 500;
}

.landing-hero-viz {
  position: relative;
  width: 100%;
  height: min(52vh, 24rem);
  min-height: 280px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
  box-shadow: none;
}

.landing-hero-viz canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 13px;
}

.landing-kicker {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 560;
}

.landing-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 7.5rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.92;
  color: #fff;
  font-optical-sizing: auto;
  position: relative;
  z-index: 1;
}

.landing-lead {
  margin: 0.85rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

/* Static gray gradient — no shine animation */
.landing-lead-shine {
  display: inline-block;
  color: #9f9f9f;
  background: linear-gradient(to right, #868686 0%, #c4c4c4 45%, #868686 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Uiverse star CTA — dalbrechtmartin */
.landing-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border-radius: 100px;
  border: none;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0px 0px 8px 0px rgb(255, 255, 255);
  transition: all 0.3s ease-in-out;
  overflow: visible;
  z-index: 1;
  isolation: isolate;
}

.landing-btn:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 0 80px #ffffff8c;
}

.landing-btn .star-1,
.landing-btn .star-2,
.landing-btn .star-3,
.landing-btn .star-4,
.landing-btn .star-5,
.landing-btn .star-6 {
  position: absolute;
  display: block;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01);
}

.landing-btn .star-1 {
  top: 20%;
  left: 20%;
  width: 16px;
  transition: all 0.8s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

.landing-btn .star-2 {
  top: 45%;
  left: 45%;
  width: 10px;
}

.landing-btn .star-3 {
  top: 40%;
  left: 40%;
  width: 4px;
}

.landing-btn .star-4 {
  top: 20%;
  left: 40%;
  width: 6px;
}

.landing-btn .star-5 {
  top: 25%;
  left: 45%;
  width: 10px;
}

.landing-btn .star-6 {
  top: 5%;
  left: 50%;
  width: 4px;
}

.landing-btn .star-1 svg,
.landing-btn .star-2 svg,
.landing-btn .star-3 svg,
.landing-btn .star-4 svg,
.landing-btn .star-5 svg,
.landing-btn .star-6 svg {
  display: block;
  width: 100%;
  height: auto;
}

.landing-btn:hover .star-1 {
  top: -20%;
  left: -20%;
  width: 14px;
  filter: drop-shadow(0 0 8px #fffdef);
  z-index: 2;
}

.landing-btn:hover .star-2 {
  top: 35%;
  left: -25%;
  width: 10px;
  filter: drop-shadow(0 0 8px #fffdef);
  z-index: 2;
}

.landing-btn:hover .star-3 {
  top: 80%;
  left: -10%;
  width: 7px;
  filter: drop-shadow(0 0 8px #fffdef);
  z-index: 2;
}

.landing-btn:hover .star-4 {
  top: -25%;
  left: 105%;
  width: 14px;
  filter: drop-shadow(0 0 8px #fffdef);
  z-index: 2;
}

.landing-btn:hover .star-5 {
  top: 30%;
  left: 115%;
  width: 10px;
  filter: drop-shadow(0 0 8px #fffdef);
  z-index: 2;
}

.landing-btn:hover .star-6 {
  top: 80%;
  left: 105%;
  width: 7px;
  filter: drop-shadow(0 0 8px #fffdef);
  z-index: 2;
}

.landing-btn .fil0 {
  fill: #fffdef;
}

@media (prefers-reduced-motion: reduce) {
  .landing-btn,
  .landing-btn .star-1,
  .landing-btn .star-2,
  .landing-btn .star-3,
  .landing-btn .star-4,
  .landing-btn .star-5,
  .landing-btn .star-6 {
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }
}


.landing-btn-ghost.learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: 0.92rem;
  font-family: inherit;
  width: 12rem;
  height: auto;
  color: inherit;
}

.landing-btn-ghost.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 1.625rem;
  box-sizing: border-box;
}

.landing-btn-ghost.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #ffffff;
}

.landing-btn-ghost.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.landing-btn-ghost.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #ffffff;
  border-right: 0.125rem solid #ffffff;
  transform: rotate(45deg);
}

.landing-btn-ghost.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.landing-btn-ghost.learn-more:hover .circle {
  width: 100%;
  background: transparent;
}

.landing-btn-ghost.learn-more:hover .circle .icon.arrow {
  background: #ffffff;
  transform: translate(1rem, 0);
}

.landing-btn-ghost.learn-more:hover .button-text {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .landing-btn-ghost.learn-more .circle,
  .landing-btn-ghost.learn-more .circle .icon,
  .landing-btn-ghost.learn-more .circle .icon.arrow,
  .landing-btn-ghost.learn-more .button-text {
    transition: none;
  }
}

.landing-section {
  padding: 3.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.landing-section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.landing-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #fff;
}

.landing-section-id {
  font-size: 0.72rem;
  color: var(--muted);
}

.landing-section-lead,
.landing-demo-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Bento */
.landing-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
}

.bento-cell {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  text-decoration: none;
  color: inherit;
  min-height: 10.5rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bento-cell:hover {
  border-color: var(--line-strong);
  background: var(--glass-strong);
  transform: translateY(-2px);
}

.bento-wide {
  grid-column: span 8;
}

.bento-id {
  font-size: 0.68rem;
  color: var(--muted);
}

.bento-cell h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.bento-cell p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}

.bento-viz {
  display: flex;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
}

.bento-stat {
  flex: 1;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.bento-stat em {
  display: block;
  font-style: normal;
  font-size: 1.05rem;
  color: #fff;
}

.bento-stat span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bento-chips {
  list-style: none;
  margin: auto 0 0;
  padding: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bento-chips li {
  font-size: 0.68rem;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: #c8c8d0;
}

/* Panels / table / timeline */
.landing-panel {
  margin-top: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  overflow: hidden;
}

.landing-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  color: #cfcfd6;
}

.landing-table-wrap {
  overflow-x: auto;
}

.landing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.landing-table th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: lowercase;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

.landing-table td {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d8d8de;
  white-space: nowrap;
}

.landing-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.dir {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dir.in { color: var(--in); }
.dir.out { color: var(--out); }

.edge-ok,
.edge-warn,
.edge-flag {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.edge-ok { color: var(--ok); }
.edge-warn { color: var(--warn); }
.edge-flag { color: var(--flag); }

.landing-timeline-panel {
  margin-top: 0.75rem;
}

.landing-timeline {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  position: relative;
}

.landing-timeline li {
  --seg-fill: 0;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 0.95rem 1rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-timeline li:last-child {
  border-bottom: 0;
}

.tl-rail {
  position: relative;
  display: flex;
  justify-content: center;
  width: 1.25rem;
  min-height: 100%;
  padding-top: 0.35rem;
  align-self: stretch;
}

/* Dim track connecting dots */
.tl-rail::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  bottom: -1.15rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.landing-timeline li:last-child .tl-rail::before {
  display: none;
}

/* Glowing fill grows as you scroll between steps */
.tl-rail::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 2px;
  height: calc((100% + 1.15rem) * var(--seg-fill));
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff 0%, #e4e4e7 100%);
  border-radius: 2px;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.7),
    0 0 14px rgba(255, 255, 255, 0.4),
    0 0 22px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.landing-timeline li:last-child .tl-rail::after {
  display: none;
}

.tl-dot {
  position: relative;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.landing-timeline li.is-complete .tl-dot {
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 0 10px rgba(255, 255, 255, 0.65),
    0 0 18px rgba(255, 255, 255, 0.3);
}

.landing-timeline li.is-active .tl-dot {
  background: #fff;
  transform: scale(1.2);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.16),
    0 0 14px rgba(255, 255, 255, 0.85),
    0 0 28px rgba(255, 255, 255, 0.45);
  animation: tl-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes tl-dot-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.16),
      0 0 14px rgba(255, 255, 255, 0.85),
      0 0 28px rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(255, 255, 255, 0.1),
      0 0 20px rgba(255, 255, 255, 1),
      0 0 36px rgba(255, 255, 255, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-timeline li.is-active .tl-dot {
    animation: none;
  }
}

.landing-timeline li.is-active strong,
.landing-timeline li.is-complete strong {
  color: #fff;
}

.landing-timeline strong {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.landing-timeline p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Feature modules */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.landing-modules .landing-section-lead {
  margin-bottom: 0.5rem;
}

.modules-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .modules-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 1.5rem;
  }
}

.modules-chapter {
  margin-top: 1rem;
  padding: 1.35rem 1.25rem 1.45rem;
  scroll-margin-top: 5.5rem;
}

@media (min-width: 900px) {
  .modules-chapter {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.landing-feature-head {
  margin-bottom: 0.7rem;
}

.feature-code {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.landing-feature h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.landing-feature-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.landing-feature > p,
.modules-chapter > p {
  margin: 0.75rem 0 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #bdbdc6;
}

.landing-feature-hook {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #e4e4e9;
  max-width: 36rem;
}

.landing-feature-points {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.landing-feature-points li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.15rem;
  border-left: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #d4d4dc;
  font-weight: 500;
}

.landing-feature-points li strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}

.landing-feature-blocks {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.2rem;
}

@media (min-width: 840px) {
  .landing-feature-blocks {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-feature-blocks:has(> :nth-child(2):last-child) {
    grid-template-columns: 1.2fr 1fr;
  }
}

.landing-feature-blocks h4 {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #c8c8d0;
}

.landing-feature-blocks p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.landing-feature-blocks ul {
  margin: 0;
  padding: 0 0 0 1.05rem;
  display: grid;
  gap: 0.35rem;
}

.landing-feature-blocks li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.landing-feature-tabs {
  list-style: none !important;
  padding: 0.4rem 0 0.55rem !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(8.8rem, 1fr));
  gap: 0.35rem !important;
}

.landing-feature-tabs li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #d0d0d6;
  padding: 0.38rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

/* Sticky demo stage */
.modules-stage {
  display: none;
}

@media (min-width: 900px) {
  .modules-stage {
    display: block;
    position: sticky;
    top: 5.25rem;
    align-self: start;
    height: calc(100vh - 6rem);
    max-height: 42rem;
  }
}

.modules-stage-sticky {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.modules-stage-head {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.modules-stage-head .mono {
  font-size: 0.72rem;
  color: var(--muted);
}

.modules-stage-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0.85rem;
}

.mod-scene {
  position: absolute;
  inset: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.mod-scene[data-active="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.mod-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  color: #c8c8d0;
}

.mod-input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.mod-input-label {
  font-size: 0.65rem;
  color: var(--muted);
}

.mod-input {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #e8e8ec;
}

.mod-caret {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 1px;
  background: #fff;
  opacity: 0;
}

.mod-scene.is-typing .mod-caret {
  opacity: 1;
  animation: mod-blink 0.9s step-end infinite;
}

@keyframes mod-blink {
  50% { opacity: 0; }
}

.mod-chain-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  opacity: 0.35;
  transition: opacity 0.35s ease, box-shadow 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.mod-chain-chip.is-on {
  opacity: 1;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.mod-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.mod-mini-card {
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mod-mini-card.is-in {
  opacity: 1;
  transform: none;
}

.mod-mini-card.is-glow {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.18);
}

.mod-mini-card strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 560;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.mod-mini-card span {
  font-size: 0.78rem;
  color: #e8e8ec;
}

.mod-mini-card .ok {
  color: var(--ok);
}

.mod-risk-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-top: auto;
}

.mod-risk-meter {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  overflow: visible;
}

.mod-risk-meter::before {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.mod-risk-meter svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.mod-risk-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.mod-risk-fill {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  transition: stroke-dashoffset 0.8s ease;
}

.mod-risk-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.mod-risk-factors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.mod-risk-factors li {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-size: 0.8rem;
}

.mod-risk-factors li.is-in {
  opacity: 1;
  transform: none;
}

.mod-hops {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding-left: 1.1rem;
  flex: 1;
}

.mod-hop-rail {
  position: absolute;
  left: 0.25rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.mod-hop-fill {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #fff, #c8c8d0);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  transition: height 0.45s ease;
}

.mod-hop {
  display: grid;
  grid-template-columns: 2.4rem 2rem 1fr auto auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mod-hop.is-in {
  opacity: 1;
  transform: none;
}

.mod-hop-flag.is-hot {
  border-color: rgba(255, 143, 143, 0.45);
  box-shadow: 0 0 14px rgba(255, 143, 143, 0.2);
}

.mod-pathfinder {
  margin-top: auto;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  opacity: 0;
  transition: opacity 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.mod-pathfinder.is-on {
  opacity: 1;
  color: #e8e8ec;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
  animation: mod-path-pulse 1.6s ease-in-out infinite;
}

@keyframes mod-path-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 18px rgba(255, 255, 255, 0.28); }
}

.mod-graph-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.mod-graph-viz {
  flex: 1;
  min-height: 14rem;
  height: auto !important;
}

.mod-entity-chip {
  align-self: flex-end;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 143, 143, 0.4);
  color: var(--flag);
  font-size: 0.68rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mod-entity-chip.is-on {
  opacity: 1;
  transform: none;
}

.mod-report-tabs {
  display: flex;
  gap: 0.15rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  position: relative;
}

.mod-report-tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.45rem 0.55rem;
  cursor: default;
  position: relative;
  transition: color 0.25s ease;
}

.mod-report-tabs button.is-active {
  color: #fff;
}

.mod-report-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: -1px;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.65);
  transform-origin: center;
  animation: mod-tab-underline 0.35s ease;
}

@keyframes mod-tab-underline {
  from {
    transform: scaleX(0.35);
    opacity: 0.4;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mod-report-tabs button.is-active::after {
    animation: none;
  }
}

.mod-report-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.68rem;
  color: var(--muted);
  flex-shrink: 0;
}

.mod-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mod-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  transition: width 0.25s linear;
}

.mod-scene[data-scene="report"] {
  overflow: hidden;
}

.mod-report-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: stretch;
  overflow: hidden;
}

.mod-skel {
  height: 0.65rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  opacity: 1;
  transition: opacity 0.35s ease;
  margin-bottom: 0.4rem;
}

.mod-skel.short { width: 62%; }

.mod-scene.is-playing .mod-skel {
  animation: mod-skel 1.2s ease infinite;
}

@keyframes mod-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.mod-report-body.is-filled .mod-skel {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.mod-panel {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.mod-report-body.is-filled .mod-panel {
  display: flex;
  position: absolute;
  inset: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 0.8, 0.28, 1),
    opacity 0.35s ease;
}

.mod-panel[data-panel="risk"] {
  overflow: visible;
}

/* Resting off-stage */
.mod-report-body.is-filled .mod-panel.is-from-right {
  transform: translateX(18%);
  opacity: 0;
}

.mod-report-body.is-filled .mod-panel.is-from-left {
  transform: translateX(-18%);
  opacity: 0;
}

.mod-report-body.is-filled .mod-panel.is-exit-left {
  transform: translateX(-14%);
  opacity: 0;
  z-index: 1;
}

.mod-report-body.is-filled .mod-panel.is-exit-right {
  transform: translateX(14%);
  opacity: 0;
  z-index: 1;
}

.mod-report-body.is-filled .mod-panel.is-on {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .mod-report-body.is-filled .mod-panel {
    transition: opacity 0.2s ease;
  }

  .mod-report-body.is-filled .mod-panel.is-from-right,
  .mod-report-body.is-filled .mod-panel.is-from-left,
  .mod-report-body.is-filled .mod-panel.is-exit-left,
  .mod-report-body.is-filled .mod-panel.is-exit-right {
    transform: none;
  }
}

.mod-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.mod-panel-head strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.mod-panel-head .mono,
.mod-range {
  font-size: 0.62rem;
  color: var(--muted);
}

.mod-mini-btns {
  display: inline-flex;
  gap: 0.25rem;
}

.mod-mini-btns i {
  font-style: normal;
  padding: 0.15rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #c8c8d0;
}

/* Transactions panel */
.mod-tx-filters {
  display: inline-flex;
  gap: 0.3rem;
}

.mod-tx-filters span {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.62rem;
  color: var(--muted);
}

.mod-tx-filters span.is-on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.mod-tx-list {
  display: grid;
  gap: 0.4rem;
  overflow: auto;
  min-height: 0;
}

.mod-tx-card {
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mod-tx-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.mod-tx-top time {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--muted);
}

.mod-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.mod-badge.out { color: #fbbf24; }
.mod-badge.in { color: #4ade80; }
.mod-badge.ok { color: #4ade80; }

.mod-tx-hash {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  color: #a1a1aa;
}

.mod-tx-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  color: #d4d4d8;
}

.mod-tx-cp {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
}

.mod-tx-cp em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}

.mod-tx-cp span {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: #7dd3fc;
}

/* Social network panel */
.mod-sn-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.45rem;
  min-height: 0;
  flex: 1;
}

.mod-sn-canvas {
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    #050505;
  background-size: 14px 14px, 14px 14px, auto;
  overflow: hidden;
}

.mod-sn-svg {
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  display: block;
}

.mod-sn-edge {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.2;
}

.mod-sn-node.subject {
  fill: #2dd4bf;
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.55));
}

.mod-sn-node.peer {
  fill: #1e293b;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.2;
}

.mod-sn-label {
  position: absolute;
  font-size: 0.52rem;
  color: #a1a1aa;
  pointer-events: none;
}

.mod-sn-label.subject-l {
  color: #99f6e4;
}

.mod-sn-side {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.45rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.mod-sn-side-h {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.mod-sn-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.35rem;
  font-size: 0.58rem;
  color: #d4d4d8;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mod-sn-row span:first-child {
  color: #7dd3fc;
}

/* Activity timeline panel */
.mod-atl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.58rem;
  color: var(--muted);
}

.mod-atl-legend .dot,
.mod-atl-legend .line {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.mod-atl-legend .dot.teal { background: #2dd4bf; }
.mod-atl-legend .dot.orange { background: #fb923c; }
.mod-atl-legend .line.orange {
  width: 0.7rem;
  height: 2px;
  border-radius: 1px;
  background: #fb923c;
}

.mod-atl-chart {
  position: relative;
  height: 5.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.45rem 0.55rem 1.1rem;
}

.mod-atl-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 100%;
  gap: 0.75rem;
}

.mod-atl-cluster {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  height: 100%;
  flex: 1;
  justify-content: center;
}

.mod-atl-cluster .bar {
  width: 0.55rem;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  align-self: flex-end;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mod-panel.is-on .mod-atl-cluster .bar {
  transform: scaleY(1);
}

.mod-atl-cluster .bar.teal { background: #2dd4bf; }
.mod-atl-cluster .bar.orange { background: #fb923c; }

.mod-atl-cluster em {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.52rem;
  color: var(--muted);
}

.mod-atl-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  width: 84%;
  height: 70%;
  pointer-events: none;
  opacity: 0.9;
}

.mod-atl-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
}

.mod-atl-donut {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
}

.mod-atl-donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mod-atl-donut .trk {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
}

.mod-atl-donut .seg {
  fill: none;
  stroke-width: 4;
  stroke-linecap: butt;
}

.mod-atl-donut .seg.teal { stroke: #2dd4bf; }
.mod-atl-donut .seg.orange { stroke: #fb923c; }

.mod-atl-donut span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  color: #e8e8ec;
}

.mod-atl-days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.22rem;
}

.mod-atl-days li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.58rem;
  color: #c8c8d0;
}

.mod-atl-days li span:first-child::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.35rem;
  background: #2dd4bf;
  border-radius: 2px;
  vertical-align: middle;
}

/* Risk score green → red */
.mod-risk-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  height: 100%;
  min-height: 0;
}

.mod-risk-gauge {
  --risk-glow: #22c55e;
  position: relative;
  width: 7.2rem;
  height: 7.2rem;
  flex-shrink: 0;
  overflow: visible;
  isolation: isolate;
}

/* Soft radial halo — avoid SVG drop-shadow (clips to a square) */
.mod-risk-gauge::before {
  content: "";
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--risk-glow) 42%, transparent) 0%,
    color-mix(in srgb, var(--risk-glow) 18%, transparent) 38%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.mod-risk-gauge svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.mod-risk-g-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.mod-risk-g-fill {
  fill: none;
  stroke: var(--risk-glow);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
  transition: stroke 0.05s linear;
}

.mod-risk-g-core {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.1rem;
}

.mod-risk-g-num {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--risk-glow);
  transition: color 0.05s linear;
}

.mod-risk-g-lbl {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mod-risk-side {
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.mod-risk-bar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mod-risk-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px currentColor;
  transition: width 0.05s linear, background 0.05s linear;
}

.mod-risk-bar-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.55rem;
  color: var(--muted);
}

.mod-risk-factor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.mod-risk-factor-list li {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #d4d4d8;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mod-risk-factor-list li.is-in {
  opacity: 1;
  transform: none;
}

.mod-risk-factor-list li.flag { color: var(--flag); }
.mod-risk-factor-list li.warn { color: var(--warn); }

.mod-pdf-card {
  margin-top: 0.35rem;
  align-self: flex-end;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #e8e8ec;
  font-size: 0.72rem;
  font-style: normal;
  font-synthesis: none;
  /* No transform/rotate — some browsers kept a residual tilt after the peel animation. */
  transform: none;
  rotate: none;
  translate: none;
  position: relative;
  top: 2.75rem;
  opacity: 0;
  transition: top 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  z-index: 3;
}

.mod-pdf-card.is-out {
  transform: none;
  rotate: none;
  translate: none;
  top: 0;
  opacity: 1;
}

.mod-pdf-card span {
  display: inline-block;
  transform: none;
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .mod-atl-cluster .bar {
    transform: scaleY(1);
  }
}

.modules-stage-rail {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.85rem 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.modules-stage-rail li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.modules-stage-rail li::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: -50%;
  right: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.modules-stage-rail li:first-child::before {
  display: none;
}

.modules-stage-rail li.is-complete::before,
.modules-stage-rail li.is-active::before {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.modules-stage-rail .tl-dot {
  position: relative;
  z-index: 1;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.modules-stage-rail li.is-complete .tl-dot,
.modules-stage-rail li.is-active .tl-dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 10px rgba(255, 255, 255, 0.55);
}

.modules-stage-rail .mono {
  font-size: 0.58rem;
  color: var(--muted);
}

.modules-stage-rail li.is-active .mono {
  color: #e8e8ec;
}

.mod-mobile-preview {
  display: none;
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  min-height: 11rem;
  overflow: hidden;
  position: relative;
}

.mod-mobile-preview .mod-scene {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
  padding: 0.75rem;
  pointer-events: none;
  min-height: 11rem;
}

@media (max-width: 899px) {
  .mod-mobile-preview {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mod-scene,
  .mod-mini-card,
  .mod-hop,
  .mod-risk-factors li,
  .mod-pdf-card,
  .mod-entity-chip,
  .mod-chain-chip,
  .mod-pathfinder {
    transition: none !important;
    animation: none !important;
  }

  .mod-scene.is-typing .mod-caret {
    animation: none;
    opacity: 0;
  }
}

.landing-demo {
  margin-top: 2rem;
  padding: 1.4rem 1.25rem 1.5rem;
  max-width: 40rem;
  scroll-margin-top: 5.5rem;
}

.landing-demo-form {
  display: grid;
  gap: 1rem;
}

.landing-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.landing-fields label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 560;
  color: #c8c8d0;
}

.landing-fields label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.landing-field-full {
  grid-column: 1 / -1;
}

.landing-fields input,
.landing-fields textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.55);
  color: var(--fg);
  font: inherit;
  font-size: 0.92rem;
}

.landing-fields input:focus,
.landing-fields textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.landing-fields textarea {
  resize: vertical;
  min-height: 6rem;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.landing-demo-err {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 143, 143, 0.35);
  background: rgba(255, 143, 143, 0.08);
  color: #ffc9c9;
  font-size: 0.9rem;
}

.landing-demo-ok {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 255, 165, 0.3);
  background: rgba(125, 255, 165, 0.06);
  color: #c8ffd9;
  font-size: 0.98rem;
  line-height: 1.45;
}

.landing-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 2.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .bento-cell,
  .bento-wide {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .landing-fields {
    grid-template-columns: 1fr;
  }

  .bento-cell,
  .bento-wide {
    grid-column: span 12;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .landing-hero-stat {
    align-self: flex-start;
  }

  .landing-hero-viz {
    height: 18rem;
    min-height: 240px;
  }

  .landing-timeline li {
    grid-template-columns: 1.25rem 1fr;
  }

  .landing-timeline li > div {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-space {
    opacity: 0.85;
  }

  .bento-cell {
    transition: none;
  }
}

/* —— Login (synced with landing black theme) —— */
.login-body {
  min-height: 100vh;
}

.login-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
}

.login-top-brand {
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.login-top-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 520;
}

.login-top-back:hover {
  color: #e8e8ec;
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  place-items: center;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 3rem;
}

.login-panel {
  width: min(26rem, 100%);
  padding: 1.6rem 1.45rem 1.35rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.login-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
}

.login-lead {
  margin: 0.4rem 0 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.login-flash {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 143, 143, 0.35);
  background: rgba(255, 143, 143, 0.08);
  color: #ffc9c9;
  font-size: 0.88rem;
}

.login-form {
  display: grid;
  gap: 0.95rem;
}

.login-field {
  display: grid;
  gap: 0.35rem;
}

.login-field > span {
  font-size: 0.78rem;
  font-weight: 560;
  color: #c8c8d0;
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.55);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}

.login-field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.login-field input::placeholder {
  color: #6b6b74;
}

.login-pw {
  position: relative;
}

.login-pw input {
  padding-right: 2.75rem;
}

.login-pw-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 8px;
}

.login-pw-toggle:hover {
  color: #e8e8ec;
  background: rgba(255, 255, 255, 0.06);
}

.login-pw-toggle .pw-ico-hide {
  display: none;
}

.login-pw-toggle.is-revealed .pw-ico-show {
  display: none;
}

.login-pw-toggle.is-revealed .pw-ico-hide {
  display: block;
}

.login-captcha-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.login-captcha-img {
  border-radius: 6px;
  border: 1px solid #c8cdd6;
  background: #fff;
  display: block;
  width: 300px;
  height: 100px;
  max-width: 100%;
  object-fit: contain;
}

.login-captcha-refresh {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #e8e8ec;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.login-captcha-refresh:hover {
  background: rgba(255, 255, 255, 0.06);
}

.login-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.login-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.login-turnstile {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.login-robot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.14));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
  color: #e8e8ec;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.login-robot:hover {
  background: rgba(255, 255, 255, 0.07);
}

.login-robot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.login-robot-box {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(232, 232, 236, 0.55);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  position: relative;
}

.login-robot input:focus-visible + .login-robot-box {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 2px;
}

.login-robot input:checked + .login-robot-box {
  border-color: #60a5fa;
  background: #2563eb;
}

.login-robot input:checked + .login-robot-box::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.05rem;
  width: 0.35rem;
  height: 0.7rem;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.login-robot-text {
  flex: 1 1 auto;
  min-width: 0;
}

.login-robot.is-verifying {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.12);
}

.login-robot.is-verified {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.12);
}

.login-robot.is-error {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
  animation: login-robot-buzz 0.45s ease;
}

.login-robot.is-error .login-robot-box {
  border-color: #f87171;
  background: rgba(127, 29, 29, 0.55);
}

@keyframes login-robot-buzz {
  0%,
  100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-7px);
  }
  30% {
    transform: translateX(7px);
  }
  45% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  90% {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-robot.is-error {
    animation: none;
  }
}

.login-submit {
  width: 100%;
  margin-top: 0.25rem;
  justify-content: center;
}

.login-form.is-blocked input,
.login-form.is-blocked button {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
}
