/* ReRanDE UI styles
   Scope: shared shell, landing page, demo console, documentation page. */

:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #fbfbf4;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --green-soft: #dff6e6;
  --green: #67b87b;
  --green-deep: #2f8f5b;
  --yellow: #fff4bd;
  --purple: #efe6ff;
  --purple-deep: #7c5cc4;
  --ink: #17211b;
  --muted: #697368;
  --line: #e3e6d7;
  --line-strong: #cdd5c9;
  --blue: #214e72;
  --danger: #a31d1d;
  --warn: #9a6a1d;
  --shadow: 0 22px 60px rgba(44, 61, 48, 0.08);
  --shadow-sm: 0 10px 28px rgba(44, 61, 48, 0.06);
  --container: 1120px;
  --wide-container: 1680px;
  --header-height: 77px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  line-height: 1.56;
}

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

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

[hidden],
.hidden {
  display: none;
}

.container {
  width: min(var(--wide-container), calc(100% - 40px));
  margin: 0 auto;
}

.page {
  overflow: hidden;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.btn-primary {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(23, 33, 27, 0.16);
}

.btn-primary:hover {
  background: #263128;
}

.btn-secondary {
    color: #f1c83a;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(23, 33, 27, 0.16);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
}

.btn-small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
}

/* Shared header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

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

.brand-name {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 850;
}

.brand-tagline {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sigma {
  display: inline-block;
  transform: translateY(0.02em);
}

.nav-links,
.nav-action-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  color: #465248;
  font-size: 0.92rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--purple-deep);
}

.nav-actions {
  display: flex;
  align-items: flex-end;
}

.site-header .btn {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.index-page-body {
  background:
    radial-gradient(circle at 10% 8%, rgba(103, 184, 123, 0.22), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(124, 92, 196, 0.16), transparent 28%),
    radial-gradient(circle at 50% 88%, rgba(255, 244, 189, 0.35), transparent 34%),
    var(--bg);
}

.index-page-body .site-header {
  background: rgba(251, 251, 244, 0.88);
  box-shadow: none;
}

/* Landing page */
.manifesto-landing {
  --m-bg: var(--bg);
  --m-surface: var(--surface);
  --m-green-soft: var(--green-soft);
  --m-green: var(--green);
  --m-green-deep: var(--green-deep);
  --m-yellow: var(--yellow);
  --m-purple: var(--purple);
  --m-purple-deep: var(--purple-deep);
  --m-ink: var(--ink);
  --m-muted: var(--muted);
  --m-line: var(--line);
  width: 100%;
  overflow: visible;
  color: var(--m-ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(103, 184, 123, 0.22), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(124, 92, 196, 0.16), transparent 28%),
    radial-gradient(circle at 50% 88%, rgba(255, 244, 189, 0.35), transparent 34%),
    var(--m-bg);
}

.manifesto-container {
  width: min(95vw, var(--wide-container));
  margin: 0 auto;
}

.manifesto-section,
.manifesto-hero {
  scroll-margin-top: 0;
}

.manifesto-hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: clamp(42px, 5vw, 76px) 0 clamp(50px, 6vw, 92px);
  border-bottom: 1px solid var(--m-line);
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(540px, 1.08fr);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
}

.hero-copy-panel {
  min-width: 0;
  max-width: 1024px;
}

.hero-label,
.section-kicker {
  margin: 0 0 22px;
  color: var(--m-purple-deep);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.8vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto-landing h1,
.manifesto-landing h2,
.manifesto-landing h3,
.manifesto-landing p {
  letter-spacing: 0;
}

.manifesto-landing h1 {
  max-width: 920px;
  margin: 0;
  color: var(--m-ink);
  font-size: clamp(3.6rem, 5.55vw, 7.25rem);
  line-height: 0.93;
  font-weight: 900;
}

.hero-headline {
  display: grid;
  gap: 0.02em;
}

.hero-headline span {
  display: block;
}

.hero-headline span:nth-child(2) {
  color: rgba(23, 33, 27, 0.92);
}

.hero-headline span:nth-child(3) {
  color: rgb(241 200 58);
  border-color: #0b1f31;
}

.headline-accent {
  position: relative;
  width: fit-content;
  color: var(--m-ink);
}

.headline-accent::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.08em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4, #10b981);
  transform-origin: left;
  animation: underlineSweep 1.15s ease-out both;
}

.manifesto-landing h2 {
  max-width: 940px;
  margin: 0;
  color: var(--m-ink);
  font-size: clamp(2.55rem, 5vw, 6.4rem);
  line-height: 0.98;
  font-weight: 900;
}

.manifesto-landing h3 {
  margin: 0;
  color: var(--m-ink);
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  line-height: 1.12;
  font-weight: 850;
}

.hero-statement {
  max-width: 620px;
  margin: clamp(26px, 3vw, 42px) 0 0;
  color: var(--m-ink);
  font-size: clamp(1.25rem, 1.75vw, 2.1rem);
  line-height: 1.15;
  font-weight: 850;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--m-muted);
  font-size: clamp(0.98rem, 1vw, 1.1rem);
  line-height: 1.68;
}

.hero-proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof-points span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(227, 230, 215, 0.9);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--m-ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.hero-proof-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(103, 184, 123, 0.14);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.manifesto-landing .btn {
  border-radius: 999px;
}

.hero-flow,
.linear-pipeline {
  margin-top: clamp(42px, 5vw, 76px);
  border: 1px solid var(--m-line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  align-items: center;
  gap: 14px 34px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(251, 251, 244, 0.76));
}

.flow-node {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 18px 14px;
  border: 1px solid var(--m-line);
  border-radius: 18px;
  background: #fff;
  color: var(--m-ink);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 0.9vw, 1rem);
  font-weight: 800;
  text-align: center;
}

.hero-flow .flow-node:nth-of-type(1) { background: var(--m-green-soft); }
.hero-flow .flow-node:nth-of-type(3) { background: var(--m-yellow); }
.hero-flow .flow-node:nth-of-type(5) { background: var(--m-purple); }
.hero-flow .flow-node:nth-of-type(7) { background: #f9fbf7; }
.hero-flow .flow-node:nth-of-type(9) { background: var(--m-green-soft); }
.hero-flow .flow-node:nth-of-type(11) { background: var(--m-purple); }

.flow-input,
.flow-output {
  color: var(--m-purple-deep);
  border-color: rgba(124, 92, 196, 0.22);
}

.flow-arrow,
.linear-pipeline i,
.horizontal-flow i {
  color: #c2cabd;
  font-style: normal;
  font-size: clamp(1.25rem, 1.7vw, 2.05rem);
  font-weight: 850;
  line-height: 1;
}

.hero-flow .flow-arrow {
  position: absolute;
  transform: translateX(calc(-50% - 2px));
}

.hero-flow .flow-arrow:nth-of-type(2) { left: calc(16.66% + 17px); }
.hero-flow .flow-arrow:nth-of-type(4) { left: calc(33.33% + 11px); }
.hero-flow .flow-arrow:nth-of-type(6) { left: calc(50% + 5px); }
.hero-flow .flow-arrow:nth-of-type(8) { left: calc(66.66% - 1px); }
.hero-flow .flow-arrow:nth-of-type(10) { left: calc(83.33% - 7px); }

.manifesto-section {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: start;
  padding: clamp(36px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--m-line);
}

.manifesto-text {
  background: #fbfbf4;
}

.pipeline-section {
  background: #fffdf4;
}

.deployment-section {
  background: #f8fbff;
}

.modes-section {
  background: #fbf9ff;
}

.pricing-section {
  background: #fbfbf4;
}

.contact-section {
  background: #f7faf8;
}

.manifesto-principle-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.72fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: end;
}

.manifesto-lead {
  max-width: 860px;
}

.manifesto-lead p {
  /*max-width: 760px;*/
  margin: 26px 0 0;
  color: var(--m-muted);
  font-size: clamp(1.08rem, 1.35vw, 1.45rem);
  line-height: 1.65;
  font-weight: 650;
}

.manifesto-proof-panel {
  border: 1px solid rgba(23, 33, 27, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 247, 0.82)),
    radial-gradient(circle at 12% 10%, rgba(103, 184, 123, 0.14), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(124, 92, 196, 0.12), transparent 36%);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.4vw, 34px);
}

.proof-topline {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--m-line);
}

.proof-topline span,
.proof-metrics span,
.proof-route span,
.manifesto-principles span {
  color: var(--m-purple-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-topline strong {
  color: var(--m-ink);
  font-size: clamp(1.35rem, 1.8vw, 2.05rem);
  line-height: 1.1;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.proof-metrics div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.proof-metrics strong {
  color: var(--m-ink);
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.05;
}

.proof-route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid var(--m-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  padding: 10px 14px;
}

.proof-route i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 184, 123, 0.5), rgba(124, 92, 196, 0.45));
}

.manifesto-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(30px, 4.4vw, 64px);
}

.manifesto-principles article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--m-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 1.8vw, 26px);
}

.manifesto-principles article:nth-child(1) {
  background: linear-gradient(180deg, rgba(223, 246, 230, 0.72), rgba(255, 255, 255, 0.78));
}

.manifesto-principles article:nth-child(2) {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(255, 255, 255, 0.78));
}

.manifesto-principles article:nth-child(3) {
  background: linear-gradient(180deg, rgba(239, 230, 255, 0.7), rgba(255, 255, 255, 0.78));
}

.manifesto-principles article:nth-child(4) {
  background: linear-gradient(180deg, rgba(255, 244, 189, 0.58), rgba(255, 255, 255, 0.8));
}

.manifesto-principles h3 {
  margin: 22px 0 0;
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  line-height: 1.12;
}

.manifesto-principles p {
  margin: auto 0 0;
  color: var(--m-muted);
  font-size: clamp(0.92rem, 0.98vw, 1.04rem);
  line-height: 1.55;
  font-weight: 630;
}

.deployment-stack,
.pricing-lines {
  display: grid;
  gap: 22px;
  margin-top: clamp(42px, 6vw, 82px);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comparison-column,
.deployment-flow,
.pricing-lines > .price-plan {
  border: 1px solid var(--m-line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.comparison-column {
  padding: clamp(26px, 3vw, 42px);
  background: var(--m-yellow);
}

.comparison-column.rerande-column {
  background: var(--m-green-soft);
}

.comparison-column h3 {
  margin-bottom: clamp(20px, 2.2vw, 34px);
  font-size: clamp(1.9rem, 3.2vw, 4.2rem);
}

.comparison-column ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-column li {
  color: var(--m-muted);
  font-size: clamp(1.1rem, 1.45vw, 1.6rem);
  line-height: 1.25;
  font-weight: 650;
}

.comparison-column li::before {
  content: "x ";
  color: var(--m-muted);
}

.rerande-column li {
  color: var(--m-ink);
}

.rerande-column li::before {
  content: "+ ";
  color: var(--m-green-deep);
}

.pipeline-comparison {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.pipeline-comparison-head {
  display: grid;
  align-content: center;
  border: 1px solid var(--m-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2.4vw, 30px);
}

.pipeline-comparison-head span {
  color: var(--m-purple-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-comparison-head h3 {
  margin: 18px 0 0;
  color: var(--m-ink);
  font-size: clamp(1.35rem, 2vw, 2.35rem);
  line-height: 1.05;
}

.compact-comparison {
  margin-top: 0;
}

.compact-comparison .comparison-column {
  min-height: 210px;
  padding: clamp(20px, 2vw, 28px);
  border-radius: 24px;
}

.compact-comparison .comparison-column h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
}

.compact-comparison .comparison-column ul {
  gap: 10px;
}

.compact-comparison .comparison-column li {
  font-size: clamp(0.95rem, 1.05vw, 1.12rem);
  line-height: 1.28;
}

.pipeline-intro {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--m-muted);
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  line-height: 1.7;
}

.linear-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 0;
  padding: 28px;
  overflow-x: auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(251, 251, 244, 0.74));
}

.algorithm-step {
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px 38px 26px 24px;
  border: 1px solid var(--m-line);
  background: #fff;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 28px 50%);
  box-shadow: var(--shadow-sm);
}

.algorithm-step:first-child {
  border-radius: 24px 0 0 24px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
}

.algorithm-step:last-child {
  border-radius: 0 24px 24px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 28px 50%);
}

.algorithm-step + .algorithm-step {
  margin-left: -18px;
  padding-left: 42px;
}

.algorithm-step:nth-child(1) { background: var(--m-green-soft); }
.algorithm-step:nth-child(2) { background: var(--m-yellow); }
.algorithm-step:nth-child(3) { background: var(--m-purple); }
.algorithm-step:nth-child(4) { background: #f9fbf7; }
.algorithm-step:nth-child(5) { background: #fff; }

.algorithm-index {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--m-purple-deep);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.algorithm-step h3 {
  margin: 0;
  color: var(--m-ink);
  font-size: clamp(1.25rem, 1.45vw, 1.65rem);
  line-height: 1.08;
}

.algorithm-step p {
  margin: 0;
  color: rgba(23, 33, 27, 0.72);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.5;
}

.deployment-section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.6vw, 4.6rem);
  line-height: 1.02;
}

.workflow-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--m-muted);
  font-size: clamp(0.94rem, 1vw, 1.06rem);
  line-height: 1.58;
}

.deployment-stack {
  grid-template-columns: 1fr;
  margin-top: clamp(24px, 3.4vw, 44px);
}

.deployment-flow {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.deployment-flow:nth-child(1) { background: linear-gradient(135deg, rgba(223, 246, 230, 0.78), rgba(255, 255, 255, 0.78)); }
.deployment-flow:nth-child(2) { background: linear-gradient(135deg, rgba(255, 244, 189, 0.72), rgba(255, 255, 255, 0.8)); }
.deployment-flow:nth-child(3) { background: linear-gradient(135deg, rgba(239, 230, 255, 0.74), rgba(255, 255, 255, 0.8)); }

.workflow-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workflow-head span {
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--m-purple-deep);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 900;
}

.workflow-head h3 {
  margin: 0;
  color: var(--m-ink);
  font-size: clamp(1.08rem, 1.35vw, 1.45rem);
  line-height: 1.12;
}

.horizontal-flow {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.scenario-step {
  position: relative;
  flex: 1 0 170px;
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(227, 230, 215, 0.94);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.scenario-step::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(103, 184, 123, 0.13);
}

.scenario-step strong {
  color: var(--m-ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
}

.scenario-step p {
  margin: 0;
  color: rgba(23, 33, 27, 0.68);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.36;
}

.rerande-step {
  flex-basis: 210px;
  border-color: rgba(124, 92, 196, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 230, 255, 0.72));
  box-shadow: 0 18px 44px rgba(124, 92, 196, 0.13);
}

.rerande-step::before {
  background: var(--m-purple-deep);
  box-shadow: 0 0 0 5px rgba(124, 92, 196, 0.14);
}

.horizontal-flow i {
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  color: rgba(23, 33, 27, 0.36);
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 900;
}

.api-modes-section {
  min-height: auto;
  align-items: center;
  padding: clamp(72px, 7vw, 116px) 0;
  background: #050506;
  color: #f7f7f2;
}

.api-modes-inner {
  display: grid;
  gap: clamp(24px, 3.5vw, 44px);
}

.api-modes-top {
  position: relative;
  min-height: 250px;
  display: grid;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: clamp(34px, 4vw, 56px);
}

.api-kicker {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0 18px;
  color: #f4f4f0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.api-kicker span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #27f5df;
  box-shadow: 0 0 24px rgba(39, 245, 223, 0.8);
}

.api-modes-headline {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.72fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.api-modes-headline h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(4rem, 6.1vw, 7rem);
  font-weight: 620;
  letter-spacing: 0;
  line-height: 0.98;
}

.api-modes-headline p {
  max-width: 620px;
  margin: 0 0 10px;
  color: #a7a7b3;
  font-size: clamp(1.12rem, 1.45vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.38;
}

.mode-label {
  color: #27f5df;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.api-mode-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 30%),
    #08090b;
}

.api-mode-tabs {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.api-tab {
  min-width: 0;
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #8f909c;
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.98rem, 1.25vw, 1.28rem);
  font-weight: 650;
  letter-spacing: 0;
}

.api-tab:last-child {
  border-right: 0;
}

.api-tab.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.api-tab:focus-visible {
  outline: 2px solid #27f5df;
  outline-offset: -4px;
}

.api-mode-content {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) minmax(300px, 0.85fr);
}

.api-mode-copy,
.api-code-window,
.api-output-window {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  padding: clamp(30px, 3.7vw, 56px);
}

.api-output-window {
  border-right: 0;
  background: #101116;
}

.mode-label {
  display: inline-flex;
  margin-bottom: 42px;
  text-transform: none;
}

.api-mode-copy h3 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 570;
  letter-spacing: 0;
  line-height: 1.02;
}

.api-mode-copy p {
  margin: 0;
  color: #a9a9b4;
  font-size: clamp(1rem, 1.18vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
}

.mode-highlights {
  display: grid;
  gap: 18px;
  margin-top: clamp(34px, 4vw, 56px);
}

.mode-highlights div {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
}

.mode-highlights strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.9rem;
}

.mode-highlights span {
  color: #9d9daa;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.42;
}

.api-code-window {
  background:
    radial-gradient(circle at 80% 20%, rgba(39, 245, 223, 0.12), transparent 34%),
    radial-gradient(circle at 30% 80%, rgba(47, 129, 247, 0.18), transparent 36%),
    #0c0d11;
}

.api-code-window pre {
  height: 100%;
  margin: 0;
  white-space: pre-wrap;
}

.api-code-window code {
  color: #f3f4f7;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1.7;
}

.output-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
}

.output-row span {
  color: #9fa0ab;
  font-size: 0.92rem;
  font-weight: 650;
}

.output-row strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

.output-text {
  min-height: 150px;
  margin-top: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #050506;
  padding: 24px;
  color: #d9d9df;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 650;
  line-height: 1.55;
  white-space: pre-wrap;
}

.output-text mark {
  border-radius: 4px;
  background: rgba(39, 245, 223, 0.18);
  color: #fff;
  padding: 2px 5px;
}

.security-section {
  background: #17211b;
  color: #fbfbf4;
}

.security-section .section-kicker {
  color: var(--m-green);
}

.security-section h2 {
  color: #fff;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.security-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d6ddd2;
  font-size: clamp(1.08rem, 1.35vw, 1.45rem);
  font-weight: 650;
  line-height: 1.65;
}

.security-controls {
  display: grid;
  gap: 14px;
}

.security-controls article,
.security-lines article {
  border: 1px solid rgba(251, 251, 244, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  padding: 18px;
}

.security-controls span {
  display: block;
  margin-bottom: 10px;
  color: var(--green-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.security-controls strong,
.security-lines strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.08rem, 1.3vw, 1.35rem);
  line-height: 1.15;
}

.security-controls p,
.security-lines p {
  margin: 10px 0 0;
  color: #d6ddd2;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
}

.security-lines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 5vw, 72px);
}

.security-note,
.pricing-rule {
  max-width: 920px;
  margin: clamp(28px, 4vw, 54px) 0 0;
  color: var(--m-muted);
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  line-height: 1.75;
}

.security-note {
  max-width: none;
  border-top: 1px solid rgba(251, 251, 244, 0.12);
  padding-top: 20px;
  color: #d6ddd2;
}

.pricing-lines {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: clamp(34px, 5vw, 64px);
}

.price-plan {
  position: relative;
  min-height: 440px;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  border: 1px solid #dde4dc;
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(23, 33, 27, 0.055);
}

.price-plan:nth-child(odd) {
  background: #ffffff;
}

.price-plan:nth-child(even) {
  background: #fbfcfb;
}

.plan-head {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6ece6;
}

.plan-head span,
.plan-head strong,
.plan-head em {
  color: var(--m-ink);
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

.plan-head span {
  color: #405044;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.plan-head strong {
  color: #17211b;
  font-family: var(--font-mono);
  font-size: clamp(2.05rem, 2.4vw, 2.8rem);
}

.plan-head em {
  color: #5f6b62;
  font-size: clamp(1.05rem, 1.15vw, 1.24rem);
}

.price-plan p {
  margin: 0;
  color: #536158;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.52;
}

.price-plan ul {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.price-plan li {
  display: flex;
  gap: 9px;
  color: #263128;
  font-size: 0.88rem;
  font-weight: 680;
  line-height: 1.35;
}

.price-plan li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: #7ab28b;
}

.price-plan a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  border: 1px solid #cfd8d0;
  border-radius: 999px;
  margin-top: auto;
  padding: 0 16px;
  background: #ffffff;
  color: #17211b;
  font-size: 0.9rem;
  font-weight: 850;
}

.highlighted-plan {
  border-color: #a9c8b1;
  box-shadow: 0 16px 38px rgba(47, 91, 72, 0.095);
}

.plan-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef7f0;
  color: #2f6f46;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.highlighted-plan .plan-head {
  padding-right: 78px;
}

.enterprise-plan {
  border-color: #cfd8d0;
  background: #f8faf8;
  box-shadow: 0 12px 32px rgba(23, 33, 27, 0.06);
}

.enterprise-plan .plan-head strong {
  color: #17211b;
  font-size: clamp(1.7rem, 2vw, 2.25rem);
}

.enterprise-plan li::before {
  background: #7ab28b;
}

.enterprise-plan a {
  border-color: #17211b;
  background: #17211b;
  color: #ffffff;
}

.pricing-footnote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  border: 1px solid #dde4dc;
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.86);
}

.pricing-footnote span {
  color: #405044;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-footnote p {
  margin: 0;
  color: #536158;
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-section {
  padding-bottom: clamp(80px, 10vw, 150px);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 54px);
}

.contact-copy h2 {
  max-width: 1180px;
  font-size: clamp(2.45rem, 4.6vw, 6rem);
}

.contact-copy p:not(.section-kicker) {
  max-width: 980px;
  margin: 24px 0 0;
  color: var(--m-muted);
  font-size: clamp(1.02rem, 1.18vw, 1.22rem);
  line-height: 1.65;
  font-weight: 650;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--m-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.4vw, 34px);
}

.contact-message {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--m-ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: #fff;
  color: var(--m-ink);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input {
  min-height: 46px;
}

.contact-form textarea {
  min-height: 178px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(103, 184, 123, 0.72);
  box-shadow: 0 0 0 4px rgba(103, 184, 123, 0.14);
}

.contact-form button {
  width: fit-content;
  min-width: 128px;
  grid-column: 1 / -1;
}

.manifesto-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* Demo console */
.demo-page {
  width: min(95vw, var(--wide-container));
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 24px 0 38px;
  overflow: visible;
}

.demo-page .mini {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.94));
  box-shadow: var(--shadow);
}

.demo-page .hero-title {
  max-width: 22ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 850;
  line-height: 1.04;
}

.demo-page .hero-subtitle {
  max-width: 82ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.04vw, 1.12rem);
  line-height: 1.65;
}

.demo-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.input-panel,
.snapshot-panel,
.response-contract-card {
  padding: clamp(18px, 2vw, 26px);
  border-radius: 24px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title,
.block-title {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.panel-title-muted,
.accordion-hint,
.accordion-subhint {
  color: var(--muted);
  font-size: 0.8rem;
}

.panel-badges,
.evidence-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-success {
  color: #176f60;
  background: #edf8f5;
  border-color: #cce9e1;
}

.badge-blue {
  color: var(--blue);
  background: #edf6fb;
  border-color: #d4e7f1;
}

.badge-warn {
  color: var(--warn);
  background: #fff8e9;
  border-color: #f2dba5;
}

.workspace-body,
.editor-shell {
  display: grid;
  gap: 12px;
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.input-counter {
  text-align: right;
}

#spellInput,
.field-control select,
.domain-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

#spellInput {
  min-height: 230px;
  padding: 16px;
  line-height: 1.7;
  resize: vertical;
}

#spellInput:focus,
.field-control select:focus,
.domain-search-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(103, 184, 123, 0.16);
}

.input-limit-hit {
  border-color: var(--danger);
}

.input-limit-warning {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 750;
}

.workspace-controls {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, var(--surface-soft));
}

.field-control {
  display: grid;
  gap: 8px;
  min-width: min(100%, 280px);
}

.field-control span,
.demo-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-control select {
  min-height: 54px;
  padding: 0 44px 0 16px;
  appearance: none;
  font-weight: 750;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-controls .action-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(140px, 0.34fr) minmax(110px, 0.24fr);
  align-items: stretch;
}

.command-run,
.command-copy,
.command-clear {
  width: 100%;
}

.demo-pills {
  display: grid;
  gap: 10px;
}

.demo-pills-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.demo-pills-row-secondary {
  padding-top: 0;
}

.pill,
.pill-soft,
.inline-pill,
.token-pill,
.mini-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.pill {
  cursor: pointer;
}

.pill:hover {
  border-color: var(--green);
  color: var(--green-deep);
  background: #f3fbf6;
}

.pill-soft,
.inline-pill {
  background: var(--surface-soft);
}

.domain-browser {
  display: grid;
  gap: 10px;
}

.domain-browser-toggle {
  width: 100%;
}

.domain-browser-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.domain-browser-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 12px;
  align-items: end;
}

.domain-browser-title {
  font-weight: 850;
}

.domain-browser-copy {
  color: var(--muted);
  font-size: 0.84rem;
}

.domain-search-input {
  min-height: 42px;
  padding: 0 14px;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.domain-option {
  min-height: 38px;
}

.snapshot-list,
.meta-mini,
.corrections-grid,
.token-pill-grid,
.evidence-grid,
.candidate-grid,
.stage-stack,
.rank-list,
.response-domain-list {
  display: grid;
  gap: 8px;
}

.demo-result-section {
  display: none;
}

.demo-results-visible .demo-result-section {
  display: block;
}

.demo-results-visible .kpi-bar,
.demo-results-visible .dual-grid {
  display: grid;
}

.snapshot-row,
.summary-box {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 12px;
  background: #fff;
  color: #334155;
  font-size: 0.86rem;
}

.snapshot-row strong,
.summary-box strong {
  color: var(--ink);
}

.preview-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(223, 246, 230, 0.6), rgba(255, 255, 255, 0.82));
}

.preview-label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-text {
  max-height: 180px;
  margin-top: 4px;
  overflow: auto;
  color: #1e293b;
  font-size: 0.88rem;
  line-height: 1.58;
}

.meta-mini {
  margin-top: 10px;
  color: #334155;
  font-size: 0.8rem;
}

.meta-mini strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.kpi-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
}

.kpi-chip {
  min-height: 70px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
}

.kpi-chip span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-chip strong {
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

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

.response-field {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.response-field.wide {
  grid-column: span 2;
}

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

.response-key {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.response-value {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.response-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.response-text {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.58;
}

.response-domain-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
  background: var(--surface-soft);
}

.response-rank,
.rank-num,
.rank-badge,
.stage-id {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 850;
}

.response-domain-name,
.rank-name,
.rank-score,
.correction-old,
.correction-new,
.candidate-name,
.evidence-term {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.response-domain-score,
.rank-score {
  color: #334155;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 18px;
}

.dual-grid.single-card {
  grid-template-columns: 1fr;
}

.dual-grid.single-card [data-result-card="decision"],
.dual-grid.single-card [data-result-card="preserved"] {
  display: none;
}

.narrow-top {
  align-items: start;
}

.diff-box,
.final-box {
  min-height: 64px;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  line-height: 1.6;
}

.ins-token {
  border-radius: 4px;
  padding: 0 4px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 800;
}

.strong-box,
.winner-banner,
.tag-domain {
  border-color: #d8e7ea;
  background: #eef6f7;
  color: var(--blue);
}

.corrections-grid,
.evidence-grid,
.candidate-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.token-pill-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  max-height: 220px;
  overflow: auto;
}

.correction-card,
.evidence-card,
.candidate-box,
.stage-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 12px;
}

.correction-arrow {
  color: var(--green-deep);
  font-size: 1rem;
}

.correction-meta,
.candidate-meta,
.evidence-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.77rem;
}

.candidate-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.stage-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.stage-title {
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 850;
}

.stage-sub {
  color: var(--muted);
  font-size: 0.79rem;
}

.stage-body {
  display: grid;
  gap: 8px;
}

.simple-pill-row,
.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-bar,
.rank-bar-shell,
.relative-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e1e8e4;
  overflow: hidden;
}

.mini-bar-fill,
.rank-bar-fill,
.relative-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
}

.rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.rank-num.top,
.rank-badge.top {
  background: var(--green-soft);
  color: var(--green-deep);
}

.lock-badge.lock-trigram,
.lock-badge.lock-bigram,
.lock-badge.lock-unigram {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.lock-badge.lock-correction {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.lock-badge.lock-fallback {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

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

.score-table,
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.score-table th,
.score-table td,
.docs-table th,
.docs-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.score-table th,
.docs-table th {
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.accordion-shell {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  list-style: none;
  cursor: pointer;
}

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

.accordion-title-group,
.accordion-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.accordion-title-group {
  flex-direction: column;
  align-items: flex-start;
}

.accordion-chevron {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.accordion-content {
  padding: 0 12px 12px;
}

.accordion-actions,
.json-shell {
  padding: 0 12px 12px;
}

.raw-json,
.sample-code,
.docs-section pre {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0b1f31;
  color: #dceeff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.raw-json {
  min-height: 180px;
  max-height: min(65vh, 640px);
  margin: 0;
  padding: 12px;
}

.empty-state {
  color: var(--muted);
  font-style: italic;
}

.sample-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

/* Documentation */
.docs-page {
  width: min(100% - 40px, 1480px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 0 auto;
  padding: 28px 0 64px;
}

.docs-sidebar,
.docs-hero,
.docs-section {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  max-height: calc(100svh - var(--header-height) - 36px);
  overflow: auto;
  border-radius: 22px;
  padding: 14px;
}

.docs-sidebar-brand {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 14px;
  margin-bottom: 8px;
}

.docs-sidebar-brand span {
  color: var(--purple-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-sidebar-brand strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.1;
}

.docs-sidebar nav {
  display: grid;
  gap: 4px;
}

.docs-sidebar nav a {
  border-radius: 12px;
  padding: 9px 10px;
  color: #4f5a51;
  font-size: 0.88rem;
  font-weight: 800;
}

.docs-sidebar nav a:hover,
.docs-sidebar nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.docs-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.docs-hero,
.docs-section {
  border-radius: 24px;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(26px, 4vw, 48px);
}

.docs-kicker {
  color: var(--purple-deep);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-hero h1 {
  max-width: 760px;
  margin: 14px 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1;
}

.docs-hero p {
  /*max-width: 760px;*/
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.docs-endpoint-card {
  display: grid;
  align-content: center;
  gap: 10px;
  border-radius: 20px;
  padding: 22px;
  background: #17211b;
  color: #fff;
}

.docs-endpoint-card span {
  color: #d6ddd2;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-endpoint-card code,
.docs-section code {
  font-family: var(--font-mono);
}

.docs-endpoint-card code {
  color: var(--green-soft);
  overflow-wrap: anywhere;
}

.docs-section {
  scroll-margin-top: calc(var(--header-height) + 18px);
  padding: clamp(22px, 3vw, 34px);
}

.docs-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.docs-section-head span {
  color: var(--purple-deep);
  font-family: var(--font-mono);
  font-weight: 850;
}

.docs-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.1;
}

.docs-section h3 {
  margin: 24px 0 10px;
  color: var(--ink);
}

.docs-section p {
  color: var(--muted);
  line-height: 1.68;
}

.docs-section pre {
  margin: 16px 0 0;
  padding: 16px;
}

.docs-section pre code {
  color: inherit;
}

.docs-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: #4f5a51;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-endpoint-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 12px;
}

.docs-endpoint-row span {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.docs-endpoint-row code {
  overflow-wrap: anywhere;
}

.docs-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.docs-mode-grid article,
.docs-note-grid article,
.docs-callout {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 16px;
}

.docs-mode-grid h3 {
  margin-top: 0;
}

.docs-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.docs-note-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.docs-note-grid p {
  margin: 0;
  font-size: 0.92rem;
}

.docs-callout {
  color: var(--ink);
}

.docs-callout strong {
  display: block;
  margin-bottom: 8px;
}

.docs-muted-note {
  margin-top: 18px;
  border-left: 3px solid var(--green);
  padding-left: 14px;
}

.docs-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.docs-list li {
  line-height: 1.6;
}

/* Footer */
.app-footer {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.app-footer-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.app-footer-inner strong {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .docs-page {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .docs-sidebar nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .manifesto-principle-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .manifesto-proof-panel {
    max-width: 760px;
  }

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

  .api-modes-headline {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .hero-flow {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .hero-flow .flow-arrow {
    position: static;
    transform: none;
    text-align: center;
  }

  .deployment-stack,
  .pricing-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-input-shell,
  .docs-hero {
    grid-template-columns: 1fr;
  }

  .demo-pills-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .linear-pipeline {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
  }
}

@media (max-width: 980px) {
  .manifesto-landing h1 {
    font-size: clamp(3rem, 12vw, 5.2rem);
  }

  .manifesto-landing h2 {
    font-size: clamp(2.45rem, 10vw, 4.6rem);
  }

  .comparison-grid,
  .pipeline-comparison,
  .api-mode-content,
  .contact-layout,
  .manifesto-principles,
  .security-layout,
  .security-lines,
  .dual-grid,
  .response-grid {
    grid-template-columns: 1fr;
  }

  .api-mode-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .api-mode-copy,
  .api-code-window,
  .api-output-window {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .api-output-window {
    border-bottom: 0;
  }

  .response-field.wide,
  .response-field.full {
    grid-column: auto;
  }

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

@media (max-width: 720px) {
  :root {
    --header-height: 144px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .nav-actions,
  .nav-action-links {
    width: 100%;
  }

  .nav-action-links .btn {
    flex: 1;
  }

  .manifesto-hero {
    min-height: auto;
    padding-top: 48px;
  }

  .manifesto-section {
    padding: 36px 0;
  }

  .hero-flow,
  .linear-pipeline,
  .api-mode-tabs,
  .proof-metrics,
  .deployment-stack,
  .pricing-lines,
  .contact-form,
  .domain-browser-head,
  .workspace-controls,
  .workspace-controls .action-row,
  .demo-pills-row,
  .kpi-bar {
    grid-template-columns: 1fr;
  }

  .proof-route {
    grid-template-columns: 1fr;
    border-radius: 18px;
    justify-items: start;
  }

  .proof-route i {
    width: 2px;
    height: 18px;
  }

  .pricing-footnote {
    grid-template-columns: 1fr;
  }

  .api-tab {
    min-height: 56px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .api-tab:last-child {
    border-bottom: 0;
  }

  .algorithm-step,
  .algorithm-step:first-child,
  .algorithm-step:last-child {
    min-height: auto;
    margin-left: 0;
    border-radius: 20px;
    padding: 22px;
    clip-path: none;
  }

  .horizontal-flow {
    flex-direction: column;
    overflow-x: visible;
  }

  .scenario-step,
  .rerande-step {
    flex-basis: auto;
    min-height: auto;
  }

  .horizontal-flow i,
  .hero-flow .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .manifesto-landing .btn {
    width: 100%;
  }

  .panel-head,
  .accordion-summary,
  .editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    text-align: center;
  }
}

.manifesto-pipeline-visual {
  position: relative;
  min-height: clamp(500px, 38vw, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.manifesto-pipeline-visual::before {
  content: "";
  position: absolute;
  inset: 8% 2% 4% 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 42%, rgba(6, 182, 212, 0.15), transparent 34%),
    radial-gradient(circle at 74% 48%, rgba(124, 58, 237, 0.12), transparent 30%),
    radial-gradient(circle at 36% 64%, rgba(16, 185, 129, 0.14), transparent 32%);
  filter: blur(8px);
}

.manifesto-pipeline-visual svg {
  position: relative;
  z-index: 1;
  width: min(118%, 820px);
  height: auto;
  overflow: visible;
  opacity: 0.96;
}

.knowledge-graph-bg {
  opacity: 0.18;
}

.knowledge-graph-bg circle {
  fill: rgba(23, 33, 27, 0.34);
}

.knowledge-graph-bg path {
  fill: none;
  stroke: rgba(23, 33, 27, 0.24);
  stroke-width: 1.2;
}

.live-label circle {
  fill: var(--green);
  filter: url(#softGlow);
  animation: signalBlink 2.4s ease-in-out infinite;
}

.live-label text {
  fill: var(--purple-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.visual-card rect {
  fill: rgba(255, 255, 255, 0.74);
  stroke: rgba(227, 230, 215, 0.95);
  stroke-width: 1.2;
  filter: url(#softShadow);
}

.input-card rect {
  fill: rgba(223, 246, 230, 0.82);
}

.output-card rect {
  fill: rgba(239, 230, 255, 0.84);
}

.visual-card-label {
  fill: rgba(105, 115, 104, 0.84);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.visual-card-main {
  fill: var(--ink);
  font-size: 25px;
  font-weight: 850;
}

.visual-card-sub {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pipeline-path {
  stroke: url(#rerandeLine);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 16 18;
  filter: url(#softGlow);
  animation: pipelineDash 4.4s linear infinite;
}

.pipeline-path-secondary {
  opacity: 0.58;
  animation-duration: 5.4s;
  animation-direction: reverse;
}

.pipeline-path-tertiary {
  opacity: 0.42;
  stroke-width: 3.5;
  animation-duration: 6.2s;
}

.pipeline-node circle {
  fill: url(#nodeFill);
  stroke: rgba(124, 58, 237, 0.24);
  stroke-width: 1.5;
  filter: url(#softShadow);
}

.pipeline-node text {
  font-size: 12px;
  font-weight: 850;
  text-anchor: middle;
  fill: rgba(23, 33, 27, 0.78);
}

.pipeline-node {
  animation: nodePulse 5.2s ease-in-out infinite;
  transform-origin: center;
}

.node-2 { animation-delay: .4s; }
.node-3 { animation-delay: .8s; }
.node-4 { animation-delay: 1.2s; }

.signal-row rect {
  fill: rgba(255, 244, 189, 0.52);
  stroke: rgba(227, 230, 215, 0.9);
  stroke-width: 1;
  filter: url(#softShadow);
}

.signal-row text {
  fill: rgba(23, 33, 27, 0.72);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.signal-row circle {
  fill: var(--green);
  filter: url(#softGlow);
  animation: signalBlink 2.4s ease-in-out infinite;
}

.floating-label {
  font-size: 14px;
  font-weight: 850;
  text-anchor: middle;
  letter-spacing: .02em;
  fill: rgba(23, 33, 27, 0.48);
}

.confidence-meter text {
  fill: rgba(23, 33, 27, 0.62);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.confidence-meter rect {
  fill: rgba(23, 33, 27, 0.1);
}

.confidence-meter .confidence-fill {
  fill: url(#rerandeLine);
  transform-origin: 584px 394px;
  animation: confidenceGrow 3.8s ease-in-out infinite;
}

@keyframes underlineSweep {
  from { transform: scaleX(0); opacity: 0.3; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes pipelineDash {
  to { stroke-dashoffset: -48; }
}

@keyframes nodePulse {
  0%, 100% { opacity: .86; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}

@keyframes signalBlink {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@keyframes confidenceGrow {
  0%, 100% { transform: scaleX(0.72); }
  50% { transform: scaleX(1); }
}

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .manifesto-pipeline-visual {
    min-height: 360px;
    margin-top: 1rem;
  }

  .manifesto-pipeline-visual svg {
    width: min(100%, 620px);
  }
}

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

/* Clean landing refresh */
.index-page-body {
  background: #ffffff;
}

.index-page-body .site-header {
  border-bottom-color: #edf2f7;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.index-page-body .nav {
  min-height: 74px;
}

.index-page-body .brand-name,
.index-page-body .nav-links,
.index-page-body .site-header .btn {
  color: #14243b;
}

.index-page-body .brand-tagline {
  color: #5f7894;
  letter-spacing: 0.04em;
}

.index-page-body .nav-links {
  gap: 24px;
  font-weight: 760;
}

.index-page-body .nav-links a:hover,
.index-page-body .nav-links a:focus-visible {
  color: #2f8dcc;
}

.index-page-body .site-header .btn,
.manifesto-landing .btn {
  min-height: 44px;
  border-color: #d9e4ee;
  border-radius: 5px;
  background: #ffffff;
  color: #14243b;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 760;
}

.index-page-body .site-header .btn-primary,
.index-page-body .site-header .btn-secondary,
.manifesto-landing .btn-primary,
.manifesto-landing .btn-secondary {
  border-color: #d9e4ee;
  background: #ffffff;
  color: #14243b;
}

.index-page-body .site-header .btn:hover,
.manifesto-landing .btn:hover {
  border-color: #9ec9e8;
  background: #f7fbff;
  transform: none;
}

.manifesto-landing {
  --m-bg: #ffffff;
  --m-surface: #ffffff;
  --m-ink: #14243b;
  --m-muted: #466987;
  --m-line: #e8eef5;
  --m-blue: #2f8dcc;
  --m-blue-soft: #eaf5fc;
  --m-blue-pale: #f6fbff;
  color: var(--m-ink);
  background: #ffffff;
}

.manifesto-container {
  width: min(100% - 48px, 1248px);
}

.manifesto-hero {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(72px, 8vw, 132px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--m-line);
  background: #ffffff;
}

.hero-layout {
  grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
  gap: clamp(38px, 5vw, 78px);
}

.hero-copy-panel {
  max-width: 720px;
}

.hero-label,
.section-kicker {
  margin-bottom: 20px;
  color: #2f8dcc;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.manifesto-landing h1 {
  max-width: 760px;
  color: #14243b;
  font-size: clamp(3.6rem, 5.15vw, 6.55rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.06;
}

.hero-headline {
  display: block;
}

.hero-headline span {
  display: inline;
  color: inherit;
}

.hero-headline span::after {
  content: " ";
}

.hero-headline span:nth-child(2),
.hero-headline span:nth-child(3) {
  color: inherit;
}

.hero-headline .headline-accent {
  color: #2f8dcc;
}

.headline-accent::after {
  display: none;
}

.manifesto-landing h2 {
  max-width: 900px;
  color: #14243b;
  font-size: clamp(2.45rem, 4.5vw, 5.15rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
}

.manifesto-landing h3 {
  color: #14243b;
  font-weight: 680;
  letter-spacing: 0;
}

.hero-statement {
  max-width: 620px;
  margin-top: 26px;
  color: #466987;
  font-size: clamp(1.08rem, 1.28vw, 1.34rem);
  font-weight: 520;
  line-height: 1.56;
}

.hero-statement em {
  color: #14243b;
  font-style: normal;
  font-weight: 680;
}

.hero-copy,
.pipeline-intro,
.workflow-intro,
.pricing-rule,
.contact-copy p:not(.section-kicker),
.manifesto-lead p {
  color: #466987;
  font-weight: 500;
}

.hero-proof-points {
  gap: 8px;
  margin-top: 24px;
}

.hero-proof-points span {
  min-height: 32px;
  border-color: #dce8f2;
  border-radius: 5px;
  background: #ffffff;
  color: #23405f;
  font-size: 0.82rem;
  font-weight: 720;
}

.hero-proof-points span::before {
  background: #2f8dcc;
  box-shadow: none;
}

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

.clean-data-visual {
  min-height: clamp(420px, 42vw, 650px);
  justify-content: flex-end;
}

.data-cloud {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 1.35;
  opacity: 0.98;
}

.data-cloud::before,
.data-cloud::after,
.data-column {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.data-cloud::before {
  background:
    radial-gradient(circle at 16% 46%, rgba(199, 226, 243, 0.8) 0 10px, transparent 11px),
    radial-gradient(circle at 28% 38%, rgba(151, 204, 235, 0.72) 0 9px, transparent 10px),
    radial-gradient(circle at 36% 55%, rgba(55, 145, 203, 0.72) 0 8px, transparent 9px),
    radial-gradient(circle at 47% 44%, rgba(42, 131, 194, 0.86) 0 7px, transparent 8px),
    radial-gradient(circle at 58% 52%, rgba(18, 74, 154, 0.84) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 41%, rgba(38, 145, 205, 0.76) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 58%, rgba(163, 211, 239, 0.7) 0 8px, transparent 9px);
  background-size: 88px 88px, 104px 104px, 72px 72px, 62px 62px, 54px 54px, 78px 78px, 96px 96px;
  filter: blur(0.1px);
  mask-image: radial-gradient(ellipse at 56% 52%, #000 0 54%, rgba(0, 0, 0, 0.46) 68%, transparent 82%);
}

.data-cloud::after {
  background:
    repeating-radial-gradient(circle at 55% 50%, rgba(47, 141, 204, 0.24) 0 4px, transparent 5px 24px),
    radial-gradient(ellipse at 60% 50%, rgba(47, 141, 204, 0.22), transparent 64%);
  transform: scaleX(0.9);
  filter: blur(2px);
  opacity: 0.9;
}

.data-column {
  width: 42%;
  height: 98%;
  inset: 2% auto auto 46%;
  background: repeating-linear-gradient(
    90deg,
    rgba(47, 141, 204, 0.13) 0 7px,
    transparent 7px 19px
  );
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 44%, transparent 72%);
}

.data-column-2 {
  left: 55%;
  width: 31%;
  opacity: 0.7;
}

.data-column-3 {
  left: 35%;
  width: 25%;
  opacity: 0.45;
}

.data-column-4 {
  left: 64%;
  width: 20%;
  opacity: 0.5;
}

.data-column-5 {
  left: 72%;
  width: 14%;
  opacity: 0.38;
}

.data-proof-card {
  position: absolute;
  left: clamp(0px, 4vw, 56px);
  bottom: clamp(20px, 5vw, 86px);
  display: grid;
  gap: 7px;
  max-width: 330px;
  border: 1px solid #dce8f2;
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 54px rgba(20, 36, 59, 0.09);
}

.data-proof-card span {
  color: #2f8dcc;
  font-size: 0.76rem;
  font-weight: 780;
}

.data-proof-card strong {
  color: #14243b;
  font-size: 1.18rem;
  line-height: 1.18;
}

.data-proof-card small {
  color: #5f7894;
  font-size: 0.82rem;
  line-height: 1.4;
}

.hero-flow,
.linear-pipeline,
.comparison-column,
.deployment-flow,
.pricing-lines > .price-plan,
.manifesto-proof-panel,
.manifesto-principles article,
.contact-form,
.pricing-footnote,
.pipeline-comparison-head,
.api-mode-panel,
.security-controls article,
.security-lines article {
  border-color: #e2ebf3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.manifesto-section {
  min-height: auto;
  padding: clamp(70px, 8vw, 124px) 0;
  border-bottom: 1px solid var(--m-line);
  background: #ffffff;
}

.manifesto-text,
.pipeline-section,
.deployment-section,
.modes-section,
.pricing-section,
.contact-section {
  background: #ffffff;
}

.positioning-section,
.ecosystem-section {
  background: #f8fbfe;
}

.manifesto-principles article,
.manifesto-principles article:nth-child(n),
.deployment-flow:nth-child(n),
.comparison-column,
.comparison-column.rerande-column,
.algorithm-step:nth-child(n) {
  background: #ffffff;
}

.proof-topline span,
.proof-metrics span,
.proof-route span,
.manifesto-principles span,
.pipeline-comparison-head span,
.plan-head span,
.pricing-footnote span {
  color: #2f8dcc;
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}

.proof-route,
.proof-metrics div,
.flow-node,
.scenario-step,
.core-feature,
.pipeline-node,
.pipeline-core,
.pipeline-stack .stack-box {
  border-color: #e2ebf3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.hero-flow {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 12px 30px;
  padding: 16px;
}

.flow-node {
  min-height: 68px;
  color: #14243b;
  font-family: var(--font-sans);
}

.hero-flow .flow-node:nth-of-type(n) {
  background: #ffffff;
}

.flow-input,
.flow-output,
.algorithm-index {
  color: #2f8dcc;
  border-color: #bfdcf0;
  background: #f3f9fe;
}

.flow-arrow,
.linear-pipeline i,
.horizontal-flow i {
  color: #a8bfd3;
}

.pipeline-guardrails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
}

.pipeline-guardrails span,
.pipeline-guardrails strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce8f2;
  border-radius: 5px;
  padding: 0 12px;
  background: #ffffff;
  color: #14243b;
  font-size: 0.92rem;
  font-weight: 720;
}

.pipeline-guardrails strong {
  border-color: #b9d9ee;
  background: #f3f9fe;
  color: #2f8dcc;
}

.linear-pipeline {
  gap: 12px;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.algorithm-step,
.algorithm-step:first-child,
.algorithm-step:last-child {
  min-height: 240px;
  border: 1px solid #e2ebf3;
  border-radius: 8px;
  clip-path: none;
  padding: 24px;
}

.algorithm-step + .algorithm-step {
  margin-left: 0;
  padding-left: 24px;
}

.algorithm-step p,
.scenario-step p,
.price-plan p,
.price-plan li {
  color: #466987;
  font-weight: 500;
}

.comparison-column li::before,
.rerande-column li::before {
  color: #2f8dcc;
}

.api-modes-section {
  background: #f8fbfe;
  color: #14243b;
}

.api-modes-top {
  min-height: auto;
  border-bottom-color: #e2ebf3;
}

.api-modes-headline h2,
.api-mode-copy h3,
.output-row strong {
  color: #14243b;
}

.api-modes-headline h2 {
  font-weight: 650;
  letter-spacing: 0;
}

.api-modes-headline p,
.api-mode-copy p,
.mode-highlights span,
.output-row span {
  color: #466987;
}

.api-mode-panel {
  overflow: hidden;
}

.api-mode-tabs {
  min-height: 62px;
  border-bottom-color: #e2ebf3;
}

.api-tab {
  border-right-color: #e2ebf3;
  color: #5f7894;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.api-tab.active {
  background: #f3f9fe;
  color: #14243b;
}

.api-tab:focus-visible {
  outline-color: #2f8dcc;
}

.api-mode-content {
  min-height: 440px;
}

.api-mode-copy,
.api-code-window,
.api-output-window {
  border-right-color: #e2ebf3;
}

.api-code-window,
.api-output-window,
.output-text {
  background: #ffffff;
}

.api-code-window code,
.output-text {
  color: #14243b;
}

.mode-label {
  color: #2f8dcc;
  margin-bottom: 28px;
}

.mode-highlights div,
.output-row {
  border-top-color: #e2ebf3;
  border-bottom-color: #e2ebf3;
}

.mode-highlights strong {
  color: #14243b;
}

.output-text {
  border-color: #e2ebf3;
}

.output-text mark {
  background: #eaf5fc;
  color: #14243b;
}

.security-section {
  background: #14243b;
}

.security-section .section-kicker,
.security-controls span {
  color: #8ed0ff;
}

.security-controls article,
.security-lines article {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.price-plan {
  min-height: 420px;
}

.price-plan a {
  border-radius: 5px;
}

.highlighted-plan,
.enterprise-plan {
  border-color: #b9d9ee;
  background: #f8fbfe;
}

.plan-ribbon {
  border-radius: 5px;
  background: #eaf5fc;
  color: #2f8dcc;
}

.contact-form input,
.contact-form textarea {
  border-color: #dce8f2;
  border-radius: 5px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2f8dcc;
  box-shadow: 0 0 0 4px rgba(47, 141, 204, 0.12);
}

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .clean-data-visual {
    min-height: 360px;
    justify-content: center;
  }

  .data-cloud {
    width: min(100%, 680px);
  }
}

@media (max-width: 980px) {
  .manifesto-landing h1 {
    font-size: clamp(3rem, 11vw, 5rem);
  }

  .manifesto-landing h2 {
    font-size: clamp(2.25rem, 9vw, 4.2rem);
  }

  .api-mode-content,
  .api-modes-headline,
  .pricing-lines {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .manifesto-container {
    width: calc(100% - 28px);
  }

  .manifesto-hero {
    padding-top: 44px;
  }

  .hero-headline span {
    display: inline;
  }

  .clean-data-visual {
    min-height: 290px;
  }

  .data-proof-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 330px);
    margin: -36px auto 0;
  }

  .hero-flow,
  .linear-pipeline,
  .api-mode-tabs {
    grid-template-columns: 1fr;
  }

  .api-mode-copy,
  .api-code-window,
  .api-output-window {
    border-right: 0;
    border-bottom-color: #e2ebf3;
  }

  .api-tab {
    border-right: 0;
    border-bottom-color: #e2ebf3;
  }
}

/* Refined clean hero pass */
.manifesto-hero {
  min-height: calc(100svh - var(--header-height));
  align-items: stretch;
  padding: clamp(86px, 9vw, 150px) 0 clamp(34px, 4vw, 58px);
}

.manifesto-hero .manifesto-container {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100svh - var(--header-height) - clamp(120px, 13vw, 208px));
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-copy-panel {
  max-width: min(100%, 1080px);
}

.hero-label {
  margin-bottom: 18px;
  font-size: 0.86rem;
  font-weight: 650;
}

.manifesto-landing h1 {
  max-width: 1060px;
  font-size: clamp(2.85rem, 3.85vw, 4.75rem);
  font-weight: 390;
  line-height: 1.16;
}

.hero-headline .headline-accent {
  font-weight: 390;
}

.hero-statement {
  max-width: 780px;
  margin-top: 26px;
  font-size: clamp(1rem, 1.12vw, 1.18rem);
  font-weight: 430;
  line-height: 1.62;
}

.hero-statement em {
  font-weight: 620;
}

.hero-copy {
  max-width: 860px;
  margin-top: 22px;
  font-size: clamp(0.96rem, 1vw, 1.06rem);
  font-weight: 430;
  line-height: 1.72;
}

.hero-proof-points span {
  font-weight: 640;
}

.hero-actions .btn {
  font-weight: 650;
}

.clean-data-visual {
  position: absolute;
  z-index: 0;
  inset: clamp(22px, 3vw, 48px) max(-8vw, -120px) clamp(54px, 7vw, 112px) max(-8vw, -120px);
  min-height: 0;
  display: block;
  opacity: 0.92;
  overflow: hidden;
}

.data-cloud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  opacity: 1;
  transform: translateX(6%);
  mask-image:
    linear-gradient(90deg, transparent 0%, transparent 24%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0.68) 64%, #000 88%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.data-cloud::before,
.data-cloud::after {
  border-radius: 0;
}

.data-cloud::before {
  background:
    radial-gradient(circle at 12% 44%, rgba(203, 227, 242, 0.34) 0 8px, transparent 9px),
    radial-gradient(circle at 22% 36%, rgba(148, 202, 235, 0.4) 0 8px, transparent 9px),
    radial-gradient(circle at 36% 50%, rgba(65, 153, 207, 0.5) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 42%, rgba(42, 131, 194, 0.66) 0 7px, transparent 8px),
    radial-gradient(circle at 64% 54%, rgba(17, 78, 156, 0.68) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 40%, rgba(38, 145, 205, 0.56) 0 5px, transparent 6px),
    radial-gradient(circle at 90% 58%, rgba(163, 211, 239, 0.46) 0 8px, transparent 9px);
  background-size: 118px 118px, 136px 136px, 88px 88px, 72px 72px, 64px 64px, 96px 96px, 124px 124px;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 26%, rgba(0, 0, 0, 0.22) 46%, rgba(0, 0, 0, 0.82) 68%, #000 100%);
}

.data-cloud::after {
  background:
    repeating-radial-gradient(circle at 64% 50%, rgba(47, 141, 204, 0.16) 0 4px, transparent 5px 28px),
    radial-gradient(ellipse at 70% 50%, rgba(47, 141, 204, 0.16), transparent 70%);
  transform: none;
  filter: blur(2px);
  opacity: 0.9;
}

.data-column {
  top: 0;
  bottom: 0;
  height: 100%;
  border-radius: 0;
  opacity: 0.45;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.32) 24%, #000 72%, transparent 100%);
}

.data-column-1 { left: 36%; width: 34%; }
.data-column-2 { left: 48%; width: 30%; }
.data-column-3 { left: 58%; width: 24%; }
.data-column-4 { left: 68%; width: 20%; }
.data-column-5 { left: 78%; width: 16%; }

.data-proof-card {
  display: none;
}

.hero-flow {
  position: relative;
  z-index: 1;
  margin-top: clamp(58px, 7vw, 96px);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
}

@media (max-width: 1100px) {
  .clean-data-visual {
    inset: 18px -120px 140px -80px;
    opacity: 0.55;
  }
}

@media (max-width: 720px) {
  .manifesto-hero {
    padding-top: 38px;
  }

  .manifesto-hero .manifesto-container {
    min-height: auto;
  }

  .manifesto-landing h1 {
    font-size: clamp(2.2rem, 9.5vw, 3.25rem);
    line-height: 1.14;
  }

  .hero-statement {
    max-width: 100%;
    font-size: 1rem;
  }

  .clean-data-visual {
    inset: 120px -160px 250px -120px;
    opacity: 0.34;
  }

  .data-proof-card {
    display: none;
  }

  .hero-flow {
    margin-top: 44px;
  }
}

/* Restore dark API modes panel */
.api-modes-section {
  background: #050506;
  color: #f7f7f2;
}

.api-modes-section .api-modes-top {
  min-height: 250px;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.api-modes-section .api-modes-headline h2 {
  color: #ffffff;
  font-size: clamp(4rem, 6.1vw, 7rem);
  font-weight: 620;
  line-height: 0.98;
}

.api-modes-section .api-modes-headline p {
  color: #a7a7b3;
}

.api-modes-section .api-mode-panel {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 30%),
    #08090b;
}

.api-modes-section .api-mode-tabs {
  min-height: 78px;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.api-modes-section .api-tab {
  border-right-color: rgba(255, 255, 255, 0.18);
  color: #8f909c;
  font-size: clamp(0.98rem, 1.25vw, 1.28rem);
}

.api-modes-section .api-tab.active {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.api-modes-section .api-tab:focus-visible {
  outline-color: #27f5df;
}

.api-modes-section .api-mode-content {
  min-height: 520px;
}

.api-modes-section .api-mode-copy,
.api-modes-section .api-code-window,
.api-modes-section .api-output-window {
  border-right-color: rgba(255, 255, 255, 0.14);
}

.api-modes-section .mode-label {
  color: #27f5df;
  margin-bottom: 42px;
}

.api-modes-section .api-mode-copy h3 {
  color: #ffffff;
}

.api-modes-section .api-mode-copy p,
.api-modes-section .mode-highlights span,
.api-modes-section .output-row span {
  color: #a9a9b4;
}

.api-modes-section .mode-highlights div {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.api-modes-section .mode-highlights strong,
.api-modes-section .output-row strong {
  color: #ffffff;
}

.api-modes-section .api-code-window {
  background:
    radial-gradient(circle at 80% 20%, rgba(39, 245, 223, 0.12), transparent 34%),
    radial-gradient(circle at 30% 80%, rgba(47, 129, 247, 0.18), transparent 36%),
    #0c0d11;
}

.api-modes-section .api-code-window code {
  color: #f3f4f7;
}

.api-modes-section .api-output-window {
  background: #101116;
}

.api-modes-section .output-row {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.api-modes-section .output-text {
  border-color: rgba(255, 255, 255, 0.16);
  background: #050506;
  color: #d9d9df;
}

.api-modes-section .output-text mark {
  background: rgba(39, 245, 223, 0.18);
  color: #ffffff;
}

@media (max-width: 980px) {
  .api-modes-section .api-mode-copy,
  .api-modes-section .api-code-window,
  .api-modes-section .api-output-window {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .api-modes-section .api-output-window {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .api-modes-section .api-tab {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .api-modes-section .api-tab:last-child {
    border-bottom: 0;
  }
}

/* =========================================================
   ReRanDE Hero V3 — Fullscreen wide landing composition
   Add to END of rerande.css
   ========================================================= */

.rerande-hero-v3 {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: min(860px, calc(100svh - var(--header-height)));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 62% 44%, rgba(39, 245, 223, 0.18), transparent 28%),
    radial-gradient(circle at 84% 54%, rgba(124, 92, 196, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfbf4 100%);
}

.rerande-hero-v3 .manifesto-container,
.rerande-hero-v3.hero-stage,
.rerande-hero-v3 .hero-stage {
  width: 100%;
  max-width: none;
}

.hero-bg-words {
  position: absolute;
  top: 0;
  right: -8vw;
  bottom: 0;
  left: 76vw;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-words span {
  position: absolute;
  left: 0;
  right: auto;
  color: rgba(23, 33, 27, 0.045);
  font-size: clamp(7rem, 10vw, 13rem);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-bg-words span:nth-child(1) {
  top: 7%;
  left: 0;
}

.hero-bg-words span:nth-child(2) {
  top: 27%;
  left: -3vw;
}

.hero-bg-words span:nth-child(3) {
  top: 49%;
  left: -1vw;
}

.hero-bg-words span:nth-child(4) {
  top: 71%;
  left: 1vw;
}

.hero-copy-v3 {
  position: absolute;
  top: 50%;
  left: 10vw;
  z-index: 5;
  width: min(520px, 29vw);
  transform: translateY(-50%);
}

.hero-copy-v3 .hero-label {
  margin-bottom: 22px;
  color: #2f8f5b;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.hero-headline-v3 {
  margin: 0;
  color: #17211b;
  font-size: clamp(4rem, 4.75vw, 5.85rem);
  line-height: 0.96;
  font-weight: 820;
  letter-spacing: 0;
}

.hero-headline-v3 span {
  display: block;
}

.hero-headline-v3 .headline-accent {
  color: #2f8f5b;
}

.hero-headline-v3 .headline-accent::after {
  display: none;
}

.rerande-hero-v3 .hero-statement {
  max-width: 520px;
  margin: 24px 0 0;
  color: #17211b;
  font-size: clamp(1rem, 1.03vw, 1.24rem);
  line-height: 1.35;
  font-weight: 800;
}

.rerande-hero-v3 .hero-statement strong {
  display: block;
  margin-top: 8px;
  color: #214e72;
  font-weight: 900;
}

.rerande-hero-v3 .hero-proof-points {
  margin-top: 22px;
}

.rerande-hero-v3 .hero-proof-points span {
  min-height: 31px;
  border-color: rgba(33, 78, 114, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: #214e72;
  font-size: 0.74rem;
}

.rerande-hero-v3 .hero-proof-points span::before {
  width: 6px;
  height: 6px;
  background: #2f8f5b;
  box-shadow: none;
}

.rerande-hero-v3 .hero-actions {
  margin-top: 24px;
}

.rerande-hero-v3 .hero-copy {
  max-width: 560px;
  margin-top: 20px;
  color: #52708a;
  font-size: 0.96rem;
  line-height: 1.68;
  font-weight: 650;
}

.hero-product-area {
  position: absolute;
  top: 50%;
  left: 38.5vw;
  z-index: 4;
  width: 39vw;
  height: min(500px, calc(100svh - var(--header-height) - 250px));
  transform: translateY(-50%);
}

.clinical-console-visual {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 4;
  width: clamp(480px, 27vw, 520px);
  transform: translateY(-48%);
}

.console-window{
    background: rgba(255,255,255,0.52);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    border: 1px solid rgba(255,255,255,.45);
}

.console-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(23, 33, 27, 0.08);
  padding: 0 22px;
}

.console-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cfd8d0;
}

.console-topbar strong {
  margin-left: auto;
  color: #697368;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
}


.console-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;

    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.console-block {
    min-height: 112px;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 15px;

    border: 1px solid rgba(255,255,255,0.35);

    background: rgba(255,255,255,0.45);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        0 10px 30px rgba(0,0,0,.05);
}

.console-block.wide {
  grid-column: 1 / -1;
}

.console-label {
  color: #7c5cc4;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-block p {
  margin: 0;
  color: #17211b;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.45;
}

.console-block strong {
  color: #17211b;
  font-size: 1.34rem;
  line-height: 1.05;
}

.console-block small {
  color: #697368;
  font-size: 0.84rem;
  font-weight: 700;
}

.console-block mark {
  border-radius: 8px;
  background: rgba(103, 184, 123, 0.18);
  color: #2f8f5b;
  padding: 2px 7px;
}

.decision-block {
  background:
    linear-gradient(135deg, rgba(223, 246, 230, 0.86), rgba(255,255,255,0.78));
  border-color: rgba(103, 184, 123, 0.28);
}

.reasoning-track {
  position: absolute;
  top: 50%;
  left: clamp(508px, 28.8vw, 552px);
  z-index: 3;
  display: grid;
  gap: 22px;
  width: min(230px, 12.5vw);
  transform: translateY(-50%);
}

.reasoning-track::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: -72px;
  width: 72px;
  background:
    linear-gradient(90deg, rgba(39, 245, 223, 0.18), rgba(47, 143, 91, 0.02));
  border-top: 1px solid rgba(39, 245, 223, 0.22);
  border-bottom: 1px solid rgba(39, 245, 223, 0.22);
}

.reasoning-track article {
  position: relative;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding-left: 54px;
}

.reasoning-track article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(33, 78, 114, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(39, 245, 223, 0.18), transparent 48%),
    rgba(255,255,255,0.9);
  box-shadow: 0 14px 32px rgba(33, 78, 114, 0.1);
}

.reasoning-track article::after {
  content: "";
  position: absolute;
  left: -72px;
  top: 36px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(39, 245, 223, 0.06), rgba(47, 143, 91, 0.46));
}

.reasoning-track span {
  color: #2f8f5b;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reasoning-track article:nth-child(1) span,
.reasoning-track article:nth-child(2) span,
.reasoning-track article:nth-child(3) span {
  color: #7c5cc4;
}

.reasoning-track p {
  margin: 0;
  color: #17211b;
  font-size: 0.82rem;
  line-height: 1.42;
  font-weight: 650;
}

.hero-motto {
  position: absolute;
  left: 64vw;
  bottom: 44px;
  z-index: 7;
  width: min(560px, 30vw);
  min-height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 33, 27, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 28px 80px rgba(23, 33, 27, 0.11),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  text-align: center;
  padding: 12px 28px;
}

.hero-motto strong {
  color: #17211b;
  font-size: clamp(1rem, 1.05vw, 1.28rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-motto span {
  display: block;
  margin-top: 6px;
  color: #52708a;
  font-size: 0.78rem;
  font-weight: 650;
}

/* Hide old pipeline bar if old markup remains */
.rerande-hero-v3 .hero-flow,
.rerande-hero-v3 .hero-flow-v2 {
  display: none;
}

@media (max-width: 1400px) {
  .hero-copy-v3 {
    left: 8vw;
    width: 34vw;
  }

  .hero-product-area {
    left: 42vw;
    width: 52vw;
  }

  .clinical-console-visual {
    width: 500px;
  }

  .reasoning-track {
    left: 530px;
    width: 220px;
  }
}

@media (max-width: 1180px) {
  .rerande-hero-v3 {
    height: auto;
    min-height: calc(100svh - var(--header-height));
  }

  .hero-stage {
    height: auto;
    padding: 64px 0 140px;
  }

  .hero-copy-v3,
  .hero-product-area,
  .hero-motto {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: min(760px, 100%);
    transform: none;
  }

  .hero-copy-v3 {
    margin: 0 auto;
  }

  .hero-product-area {
    height: auto;
    margin: 42px auto 0;
  }

  .clinical-console-visual {
    position: relative;
    top: auto;
    width: 100%;
    transform: none;
  }

  .reasoning-track {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    transform: none;
  }

  .reasoning-track::before,
  .reasoning-track article::after {
    display: none;
  }

  .reasoning-track article {
    min-height: 120px;
    border: 1px solid rgba(23, 33, 27, 0.08);
    border-radius: 20px;
    background: rgba(255,255,255,0.72);
    padding: 18px;
  }

  .reasoning-track article::before {
    position: relative;
    left: auto;
    top: auto;
  }

  .hero-motto {
    margin: 44px auto 0;
  }
}

@media (max-width: 760px) {
  .hero-stage {
    padding: 44px 0 90px;
  }

  .hero-headline-v3 {
    font-size: clamp(3.4rem, 15vw, 4.7rem);
  }

  .rerande-hero-v3 .hero-statement {
    font-size: 1.08rem;
  }

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

  .reasoning-track {
    grid-template-columns: 1fr;
  }

  .hero-motto {
    width: 100%;
    border-radius: 28px;
  }

  .hero-motto strong {
    font-size: 1.7rem;
  }

  .hero-motto span {
    font-size: 0.95rem;
  }

  .hero-bg-words span {
    right: -20vw;
    font-size: clamp(5rem, 28vw, 9rem);
  }
}

/* Hero final: 10vw start, 60vw text area, bounded right words */
.rerande-hero-v3 {
  height: calc(100svh - var(--header-height));
  min-height: 680px;
  display: block;
}

.rerande-hero-v3 .hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.rerande-hero-v3 .hero-copy-v3 {
  position: absolute;
  top: 44%;
  left: 10vw;
  z-index: 3;
  width: 60vw;
  max-width: 60vw;
  transform: translateY(-50%);
}

.rerande-hero-v3 .hero-label {
  margin-bottom: 22px;
}

.rerande-hero-v3 .hero-headline-v3 {
  max-width: 920px;
  font-size: clamp(4.2rem, 5.1vw, 6.1rem);
  line-height: 0.98;
}

.rerande-hero-v3 .hero-statement {
  max-width: 760px;
}

.rerande-hero-v3 .hero-copy {
  max-width: 760px;
}

.rerande-hero-v3 .hero-bg-words {
  left: auto;
  right: 0;
  width: 36vw;
  overflow: hidden;
}

.rerande-hero-v3 .hero-bg-words span {
  left: auto;
  right: 0;
  max-width: 36vw;
  color: rgba(23, 33, 27, 0.045);
  font-size: clamp(6rem, 9.3vw, 12rem);
  line-height: 0.82;
  text-align: right;
}

.rerande-hero-v3 .hero-bg-words span:nth-child(1),
.rerande-hero-v3 .hero-bg-words span:nth-child(2),
.rerande-hero-v3 .hero-bg-words span:nth-child(3),
.rerande-hero-v3 .hero-bg-words span:nth-child(4) {
  left: auto;
  right: 0;
}

.rerande-hero-v3 .hero-bg-words span:nth-child(1) { top: 10%; }
.rerande-hero-v3 .hero-bg-words span:nth-child(2) { top: 31%; }
.rerande-hero-v3 .hero-bg-words span:nth-child(3) { top: 52%; }
.rerande-hero-v3 .hero-bg-words span:nth-child(4) { top: 73%; }

.rerande-hero-v3 .hero-product-area,
.rerande-hero-v3 .hero-motto {
  display: none;
}

.positioning-section .hero-product-area {
  position: relative;
  top: auto;
  left: auto;
  width: min(100%, 980px);
  height: auto;
  margin: 0 0 clamp(42px, 5vw, 76px);
  transform: none;
}

.positioning-section .clinical-console-visual {
  position: relative;
  top: auto;
  width: min(620px, 100%);
  transform: none;
}

.positioning-section .reasoning-track {
  position: relative;
  top: auto;
  left: auto;
  width: min(100%, 940px);
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  transform: none;
}

.positioning-section .reasoning-track::before,
.positioning-section .reasoning-track article::after {
  display: none;
}

.positioning-section .reasoning-track article {
  min-height: 118px;
  border: 1px solid rgba(23, 33, 27, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.positioning-section .reasoning-track article::before {
  position: relative;
  left: auto;
  top: auto;
}

@media (max-width: 1180px) {
  .rerande-hero-v3 {
    height: auto;
    min-height: calc(100svh - var(--header-height));
  }

  .rerande-hero-v3 .hero-stage {
    min-height: calc(100svh - var(--header-height));
    padding: 64px 0;
  }

  .rerande-hero-v3 .hero-copy-v3 {
    position: relative;
    top: auto;
    left: auto;
    width: min(100% - 40px, 760px);
    max-width: min(100% - 40px, 760px);
    margin-left: 10vw;
    transform: none;
  }

  .rerande-hero-v3 .hero-bg-words {
    width: 42vw;
  }
}

@media (max-width: 760px) {
  .rerande-hero-v3 .hero-copy-v3 {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    margin: 0 auto;
  }

  .rerande-hero-v3 .hero-headline-v3 {
    font-size: clamp(3.1rem, 14vw, 4.5rem);
  }

  .rerande-hero-v3 .hero-bg-words {
    width: 58vw;
    opacity: 0.7;
  }

  .positioning-section .reasoning-track {
    grid-template-columns: 1fr;
  }
}

/* Hero final correction: restore right reasoning and motto, keep words inside viewport */
.rerande-hero-v3 .hero-bg-words {
  left: 46vw;
  right: 2vw;
  width: auto;
  overflow: hidden;
}

.rerande-hero-v3 .hero-bg-words span {
  right: 0;
  max-width: none;
  width: 100%;
  font-size: clamp(5rem, 8vw, 9.5rem);
  text-align: right;
}

.rerande-hero-v3 .reasoning-track {
  position: absolute;
  top: 50%;
  right: 10vw;
  left: auto;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 270px;
  margin: 0;
  transform: translateY(-50%);
}

.rerande-hero-v3 .reasoning-track::before {
  display: block;
}

.rerande-hero-v3 .reasoning-track article {
  min-height: 86px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 0 62px;
}

.rerande-hero-v3 .reasoning-track article::before {
  position: absolute;
  left: 0;
  top: 15px;
}

.rerande-hero-v3 .reasoning-track article::after {
  display: block;
}

.rerande-hero-v3 .hero-motto {
  z-index: 7;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 33, 27, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 28px 80px rgba(23, 33, 27, 0.11),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  text-align: center;
  padding: 18px 42px;
}

.rerande-hero-v3 .hero-motto strong {
  color: #17211b;
  font-size: clamp(1.75rem, 2vw, 2.55rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0;
}

.rerande-hero-v3 .hero-motto span {
  display: block;
  margin-top: 6px;
  color: #52708a;
  font-size: 1.05rem;
  font-weight: 350;
}

@media (max-width: 1180px) {
  .rerande-hero-v3 .reasoning-track,
  .rerande-hero-v3 .hero-motto {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(100% - 40px, 760px);
    margin: 34px auto 0;
    transform: none;
  }

  .rerande-hero-v3 .reasoning-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rerande-hero-v3 .reasoning-track::before,
  .rerande-hero-v3 .reasoning-track article::after {
    display: none;
  }

  .rerande-hero-v3 .reasoning-track article {
    min-height: 112px;
    border: 1px solid rgba(23, 33, 27, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    padding: 18px;
  }

  .rerande-hero-v3 .reasoning-track article::before {
    position: relative;
    left: auto;
    top: auto;
  }
}

@media (max-width: 760px) {
  .rerande-hero-v3 .reasoning-track {
    grid-template-columns: 1fr;
  }

  .rerande-hero-v3 .hero-motto {
    border-radius: 28px;
  }

  .rerande-hero-v3 .hero-motto strong {
    font-size: 1.7rem;
  }

  .rerande-hero-v3 .hero-motto span {
    font-size: 0.95rem;
  }
}

/* =========================================================
   Section CSS ownership map
   New section-specific work should stay inside these scopes:
   #intro.section-intro
   #why.section-why
   #positioning.section-positioning
   #how.section-how
   #pipeline.section-pipeline
   #workflows.section-workflows
   #modes.section-modes
   #pricing.section-pricing
   #security.section-security
   #contact.section-contact
   ========================================================= */

#intro.section-intro {}
#why.section-why {}
#positioning.section-positioning {}
#how.section-how {}
#pipeline.section-pipeline {}
#workflows.section-workflows {}
#modes.section-modes {}
#pricing.section-pricing {}
#security.section-security {}
#contact.section-contact {}

/* Hero composition v4: left reasoning, centered main copy, reduced top gap */
.rerande-hero-v3 .hero-copy-v3 {
  top: 36%;
  left: 50%;
  width: min(58vw, 920px);
  max-width: min(58vw, 920px);
  transform: translate(-50%, -50%);
}

.rerande-hero-v3 .hero-headline-v3 {
  max-width: 920px;
  font-size: clamp(3.8rem, 4.75vw, 5.65rem);
}

.rerande-hero-v3 .hero-statement,
.rerande-hero-v3 .hero-copy {
  max-width: 780px;
}

.rerande-hero-v3 .reasoning-track {
  top: 45%;
  left: clamp(18px, 2vw, 42px);
  right: auto;
  width: clamp(210px, 15vw, 270px);
}

.rerande-hero-v3 .reasoning-track::before {
  left: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(39, 245, 223, 0.08), rgba(47, 143, 91, 0.36), rgba(39, 245, 223, 0.08));
  border: 0;
}

.rerande-hero-v3 .reasoning-track article::after {
  left: 18px;
  width: 42px;
}

.rerande-hero-v3 .hero-bg-words {
  left: 62vw;
  right: 2vw;
}

.rerande-hero-v3 .hero-bg-words span {
  font-size: clamp(5.2rem, 7.5vw, 9rem);
}

.rerande-hero-v3 .hero-bg-words span:nth-child(1) { top: 8%; }
.rerande-hero-v3 .hero-bg-words span:nth-child(2) { top: 29%; }
.rerande-hero-v3 .hero-bg-words span:nth-child(3) { top: 50%; }
.rerande-hero-v3 .hero-bg-words span:nth-child(4) { top: 71%; }

@media (max-width: 1180px) {
  .rerande-hero-v3 .hero-copy-v3 {
    left: auto;
    width: min(100% - 40px, 760px);
    max-width: min(100% - 40px, 760px);
    margin: 0 auto;
    transform: none;
  }
}

/* Flow Section */
.rerande-orchestration-section {
  padding: clamp(90px, 8vw, 140px) 0;
  background: #0d1733;
  color: #ffffff;
  overflow: hidden;
}

.rerande-orchestration-copy {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 54px;
}

.rerande-orchestration-copy h2 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 3.4vw, 4.6rem);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.rerande-orchestration-copy h2 span {
  color: #91a6d8;
  font-weight: 600;
}

.rerande-orchestration-board {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  height: 520px;
  margin: 0 auto;
  border-radius: 22px;
  background:
    radial-gradient(circle at 48% 48%, rgba(53, 255, 209, 0.12), transparent 30%),
    radial-gradient(circle at 75% 55%, rgba(104, 76, 255, 0.18), transparent 32%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    #0d1733;
  background-size:
    auto,
    auto,
    20px 20px,
    20px 20px,
    auto;
  overflow: hidden;
}

.workflow-tabs {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(43, 38, 125, 0.84);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  transform: translateX(-50%);
}

.workflow-tabs span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(88, 70, 222, 0.72);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 750;
  white-space: nowrap;
}

.rerande-core-node {
  position: absolute;
  top: 232px;
  left: 50%;
  z-index: 5;
  width: 118px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #2b247f, #151f48);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

.node {
  position: absolute;
  z-index: 4;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.source-node {
  background: #172653;
  border: 1px solid rgba(99, 239, 218, 0.26);
}

.process-node {
  background: #5b3dff;
}

.output-node {
  background: #ffffff;
  color: #102234;
}

.node-audio { left: 76px; top: 188px; }
.node-note { left: 124px; top: 278px; }
.node-user { left: 188px; top: 368px; }

.node-domain { left: 678px; top: 128px; }
.node-lexicon { left: 678px; top: 238px; }
.node-correction { left: 678px; top: 348px; }
.node-audit { left: 452px; top: 102px; }

.node-json { right: 82px; top: 128px; }
.node-reviewed { right: 92px; top: 238px; }
.node-embedding { right: 88px; top: 348px; }
.node-rag { right: 240px; top: 432px; }
.node-ai { right: 72px; top: 432px; }

.workflow-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.workflow-lines path {
  fill: none;
  stroke: rgba(87, 239, 224, 0.38);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
}

.workflow-lines path:nth-child(4),
.workflow-lines path:nth-child(5),
.workflow-lines path:nth-child(6) {
  stroke: rgba(122, 101, 255, 0.62);
}

.workflow-lines path:nth-child(n+7) {
  stroke: rgba(145, 166, 216, 0.38);
}

@media (max-width: 900px) {
  .rerande-orchestration-board {
    height: auto;
    display: grid;
    gap: 14px;
    padding: 22px;
  }

  .workflow-lines {
    display: none;
  }

  .workflow-tabs,
  .rerande-core-node,
  .node {
    position: static;
    transform: none;
  }

  .workflow-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .rerande-core-node {
    width: 100%;
    height: 64px;
  }

  .node {
    width: 100%;
  }
}