/* =========================================================
   ReRanDE Clean Hero — infrastructure-first, no spellchecker card
   Add to END of rerande.css
   ========================================================= */

.rerande-hero-clean {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: 860px;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 34, 52, 0.08);
  background:
    radial-gradient(circle at 76% 44%, rgba(39, 245, 223, 0.11), transparent 30%),
    radial-gradient(circle at 90% 62%, rgba(124, 92, 196, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfdf8 100%);
}

.rerande-hero-clean .hero-clean-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  height: 100%;
}

/* Background REASON / RESOLVE / ANALYZE / DECIDE */

.hero-bg-words-clean {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-words-clean span {
  position: absolute;
  right: 3vw;
  color: rgba(16, 34, 52, 0.038);
  font-size: clamp(4.5rem, 8.4vw, 12rem);
  font-weight: 950;
  line-height: 0.84;
  letter-spacing: -0.085em;
  white-space: nowrap;
}

.hero-bg-words-clean span em {
  color: rgba(138, 234, 84, 0.32);
  font-style: normal;
}

.hero-bg-words-clean span:nth-child(1) {
  top: 10%;
  right: 5vw;
}

.hero-bg-words-clean span:nth-child(2) {
  top: 27%;
  right: 10vw;
}

.hero-bg-words-clean span:nth-child(3) {
  top: 45%;
  right: 6vw;
}

.hero-bg-words-clean span:nth-child(4) {
  top: 64%;
  right: 13vw;
}

/* Soft animated aurora */

.hero-aurora-clean {
  position: absolute;
  top: -22%;
  right: -18%;
  z-index: 2;
  width: 64vw;
  height: 118%;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(18px);
}

.hero-aurora-clean span {
  position: absolute;
  display: block;
  width: 28vw;
  height: 110vh;
  border-radius: 999px;
  transform-origin: center;
  mix-blend-mode: multiply;
  animation: rerandeAuroraDrift 14s ease-in-out infinite alternate;
}

.hero-aurora-clean span:nth-child(1) {
  top: -10%;
  right: 30%;
  background: linear-gradient(
    180deg,
    rgba(111, 180, 255, 0.30),
    rgba(39, 245, 223, 0.18),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(-28deg);
}

.hero-aurora-clean span:nth-child(2) {
  top: -6%;
  right: 8%;
  background: linear-gradient(
    180deg,
    rgba(255, 186, 72, 0.34),
    rgba(255, 92, 167, 0.25),
    rgba(124, 92, 196, 0.18),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(-15deg);
  animation-delay: -5s;
}

@keyframes rerandeAuroraDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-24deg) scale(1);
  }
  100% {
    transform: translate3d(-28px, 24px, 0) rotate(-18deg) scale(1.08);
  }
}

/* Left copy */

.hero-clean-copy {
  position: absolute;
  top: 44%;
  left: 9vw;
  z-index: 8;
  width: min(760px, 43vw);
  transform: translateY(-50%);
}

.hero-clean-copy .hero-label {
  margin: 0 0 28px;
  color: #2f8f5b;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.82vw, 0.94rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hero-clean-title {
  margin: 0;
  max-width: 860px;
  color: #102234;
  font-size: clamp(4.3rem, 5.45vw, 7.4rem);
  line-height: 0.92;
  font-weight: 820;
  letter-spacing: -0.078em;
}

.hero-clean-title span {
  display: block;
}

.hero-clean-title span:last-child {
  color: #2f8f5b;
}

.hero-clean-statement {
  max-width: 720px;
  margin-top: 34px;
}

.hero-clean-statement p {
  margin: 0;
  color: #17211b;
  font-size: clamp(1.25rem, 1.42vw, 1.74rem);
  line-height: 1.34;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.hero-clean-statement p + p {
  margin-top: 5px;
}

.hero-clean-statement strong {
  color: #214e72;
  font-weight: 920;
}

.hero-clean-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-clean-pills span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(33, 78, 114, 0.15);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.72);
  color: #214e72;
  font-size: 0.78rem;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.hero-clean-pills span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2f8f5b;
}

.hero-clean-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* Infrastructure map */

.language-layer-map {
  position: absolute;
  top: 46%;
  left: 51vw;
  z-index: 6;
  width: min(760px, 43vw);
  height: 500px;
  transform: translateY(-50%);
}

.layer-map-label {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  border: 1px solid rgba(47, 143, 91, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.68);
  color: #2f8f5b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  backdrop-filter: blur(14px);
}

.map-column {
  position: absolute;
  z-index: 7;
  display: grid;
  gap: 14px;
}

.map-inputs {
  left: 0;
  top: 118px;
}

.map-process {
  left: 50%;
  top: 82px;
  transform: translateX(-50%);
}

.map-outputs {
  right: 0;
  top: 118px;
}

.map-core {
  position: absolute;
  left: 35%;
  top: 50%;
  z-index: 8;
  transform: translate(-50%, -50%);
}

.core-ring {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(16, 34, 52, 0.10);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 42%, rgba(223, 246, 230, 0.94), rgba(255, 255, 255, 0.68));
  box-shadow:
    0 28px 80px rgba(16, 34, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.core-ring strong {
  color: #102234;
  font-size: 1.05rem;
  font-weight: 950;
}

.core-ring span {
  color: #52708a;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.map-node {
  min-width: 172px;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-radius: 16px;
  padding: 12px 15px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.map-node span {
  color: #7c5cc4;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-node strong {
  color: #102234;
  font-size: 0.98rem;
  font-weight: 880;
  letter-spacing: -0.025em;
}

.map-node.soft {
  border: 1px solid rgba(16, 34, 52, 0.08);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 44px rgba(16, 34, 52, 0.06);
}

.map-node.active {
  border: 1px solid rgba(47, 143, 91, 0.20);
  background: rgba(223, 246, 230, 0.54);
  box-shadow: 0 18px 52px rgba(47, 143, 91, 0.10);
}

.map-node.active span {
  color: #2f8f5b;
}

.layer-map-lines {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: visible;
}

.layer-map-lines path {
  fill: none;
  stroke: rgba(47, 143, 91, 0.26);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 7 10;
  animation: rerandeLineFlow 5.5s linear infinite;
}

.layer-map-lines path:nth-child(4),
.layer-map-lines path:nth-child(5),
.layer-map-lines path:nth-child(6),
.layer-map-lines path:nth-child(7) {
  stroke: rgba(124, 92, 196, 0.22);
}

.layer-map-lines path:nth-child(n+8) {
  stroke: rgba(33, 78, 114, 0.20);
}

@keyframes rerandeLineFlow {
  to {
    stroke-dashoffset: -68;
  }
}

/* Motto */

.hero-clean-motto {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 9;
  width: min(980px, 66vw);
  min-height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 34, 52, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 28px 88px rgba(16, 34, 52, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  text-align: center;
  padding: 18px 44px;
}

.hero-clean-motto h3 {
  margin: 0;
  color: #17211b;
  font-size: clamp(1.8rem, 2.25vw, 2.9rem);
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: -0.055em;
}

.hero-clean-motto span {
  display: block;
  margin-top: 8px;
  color: #52708a;
  font-size: clamp(0.96rem, 1vw, 1.12rem);
  font-weight: 650;
}

/* Remove older hero visuals if still present */

.rerande-hero-clean .hero-flow,
.rerande-hero-clean .hero-flow-v2,
.rerande-hero-clean .hero-flow-card,
.rerande-hero-clean .hero-process-list,
.rerande-hero-clean .clinical-console-visual,
.rerande-hero-clean .reasoning-track {
  display: none;
}

/* Responsive */

@media (max-width: 1280px) {
  .hero-clean-copy {
    left: 6vw;
    width: min(660px, 44vw);
  }

  .language-layer-map {
    left: 50vw;
    width: min(700px, 46vw);
  }

  .map-node {
    min-width: 150px;
  }

  .hero-clean-title {
    font-size: clamp(4rem, 5.1vw, 6.2rem);
  }
}

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

  .rerande-hero-clean .hero-clean-stage {
    height: auto;
    padding: 72px 0 140px;
  }

  .hero-clean-copy,
  .language-layer-map,
  .hero-clean-motto {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: min(860px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .language-layer-map {
    height: 560px;
    margin-top: 54px;
  }

  .hero-clean-motto {
    margin-top: 54px;
  }

  .hero-aurora-clean {
    width: 100vw;
    right: -50vw;
    opacity: 0.34;
  }
}

@media (max-width: 720px) {
  .rerande-hero-clean .hero-clean-stage {
    padding: 52px 0 92px;
  }

  .hero-clean-title {
    font-size: clamp(3.4rem, 15vw, 4.6rem);
  }

  .hero-clean-statement p {
    font-size: 1.08rem;
  }

  .language-layer-map {
    height: auto;
    display: grid;
    gap: 14px;
  }

  .layer-map-label,
  .map-column,
  .map-core {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .map-column {
    display: grid;
    gap: 10px;
  }

  .map-node {
    width: 100%;
  }

  .core-ring {
    width: 100%;
    height: 72px;
    border-radius: 22px;
  }

  .layer-map-lines {
    display: none;
  }

  .hero-clean-motto {
    border-radius: 30px;
    padding: 22px;
  }

  .hero-clean-motto h3 {
    font-size: 1.75rem;
  }

  .hero-bg-words-clean span {
    right: -20vw;
    font-size: clamp(4.5rem, 22vw, 7rem);
  }
}

/* Intro v5: left manifesto words + overlapping hero copy + right workflow map */

#intro.section-intro.rerande-hero-clean {
  min-height: 760px;
}

#intro.section-intro .hero-clean-copy {
  top: 43%;
  left: clamp(54px, 8vw, 132px);
  z-index: 9;
  width: min(760px, 41vw);
  max-width: 780px;
  transform: translateY(-50%);
  text-align: left;
}

#intro.section-intro .hero-clean-copy .hero-label {
  margin-bottom: 18px;
  color: #2f8f5b;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.78vw, 0.92rem);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

#intro.section-intro .hero-clean-title {
  font-size: clamp(4.2rem, 5.65vw, 7.6rem);
  /* line-height: 0.9;*/
  font-weight: 760;
  letter-spacing: -0.066em;
  text-wrap: balance;
}

#intro.section-intro .hero-clean-title span:last-child {
  position: relative;
  display: inline-block;
  color: #2f8f5b;
  font-weight: 820;
}

#intro.section-intro .hero-clean-title span:last-child::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.06em;
  bottom: 0.01em;
  z-index: -1;
  height: 0.18em;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 244, 189, 0), rgba(255, 218, 87, 0.86) 14%, rgba(255, 193, 58, 0.72) 72%, rgba(255, 244, 189, 0));
  transform: rotate(-1.5deg);
  filter: blur(0.4px);
}

#intro.section-intro .hero-clean-statement {
  max-width: 700px;
  margin-top: 28px;
}

#intro.section-intro .hero-clean-statement p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 1.45vw, 1.82rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.026em;
}

#intro.section-intro .hero-clean-statement strong {
  color: #214e72;
  font-family: var(--font-sans);
  font-size: 0.98em;
  font-weight: 900;
  letter-spacing: -0.035em;
}

#intro.section-intro .language-layer-map {
  display: none;
}

#intro.section-intro .hero-workflow-panel {
  position: absolute;
  top: 51%;
  right: clamp(20px, 2.5vw, 48px);
  left: clamp(760px, 45vw, 900px);
  z-index: 7;
  width: auto;
  transform: translateY(-50%);
}

#intro.section-intro .hero-orchestration-copy {
  width: 100%;
  margin: 0 0 18px;
}

#intro.section-intro .hero-orchestration-copy h2 {
  max-width: 760px;
  margin-left: auto;
  color: #102234;
  font-size: clamp(1.55rem, 2.05vw, 2.55rem);
  line-height: 1.02;
  font-weight: 720;
  letter-spacing: -0.045em;
  text-align: right;
}

#intro.section-intro .hero-workflow-panel .rr-diagram__board {
  min-height: 0;
  height: min(680px, 70vh);
  border-radius: 28px;
}

#intro.section-intro .hero-workflow-panel .rr-diagram__col {
  width: clamp(210px, 15vw, 270px);
}

#intro.section-intro .hero-workflow-panel .rr-diagram__col--left {
  left: clamp(24px, 2.2vw, 40px);
  top: clamp(26px, 3vh, 38px);
}

#intro.section-intro .hero-workflow-panel .rr-diagram__col--right {
  right: clamp(24px, 2.2vw, 40px);
  top: clamp(58px, 6vh, 80px);
}

#intro.section-intro .hero-workflow-panel .rr-node-list--left {
  gap: clamp(7px, 0.9vh, 10px);
}

#intro.section-intro .hero-workflow-panel .rr-node-list--right {
  gap: clamp(9px, 1.15vh, 13px);
}

#intro.section-intro .hero-workflow-panel .rr-node {
  min-height: clamp(42px, 5.3vh, 56px);
  padding-inline: 14px;
}

#intro.section-intro .hero-workflow-panel .rr-node span {
  font-size: clamp(0.8rem, 0.78vw, 0.98rem);
}

#intro.section-intro .hero-workflow-panel .rr-diagram__core-wrap {
  width: clamp(260px, 18vw, 330px);
}

#intro.section-intro .hero-workflow-panel .rr-core {
  border-radius: 28px;
}

#intro.section-intro .hero-orchestration-copy h2 span {
  display: block;
  margin-top: 5px;
  color: #52708a;
  font-size: 0.55em;
  font-weight: 680;
  letter-spacing: -0.02em;
}

#intro.section-intro .hero-orchestration-board {
  width: 100%;
  height: min(430px, 46vh);
  margin: 0;
  border: 1px solid rgba(16, 34, 52, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 143, 91, 0.14), transparent 30%),
    radial-gradient(circle at 78% 50%, rgba(124, 92, 196, 0.12), transparent 34%),
    linear-gradient(rgba(16, 34, 52, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 52, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.62);
  background-size: auto, auto, 22px 22px, 22px 22px, auto;
  box-shadow: 0 28px 90px rgba(16, 34, 52, 0.08);
  overflow: hidden;
}

#intro.section-intro .hero-workflow-grid {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(160px, 0.92fr) minmax(160px, 0.82fr) minmax(170px, 0.96fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: center;
  padding: clamp(20px, 2.2vw, 34px);
}

#intro.section-intro .workflow-lane {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 12px;
}

#intro.section-intro .lane-label {
  color: #52708a;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#intro.section-intro .workflow-lane article {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(16, 34, 52, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px 15px;
  box-shadow: 0 18px 42px rgba(16, 34, 52, 0.055);
  backdrop-filter: blur(16px);
}

#intro.section-intro .workflow-lane small {
  color: #7c5cc4;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#intro.section-intro .workflow-lane strong {
  color: #102234;
  font-size: clamp(0.88rem, 0.9vw, 1.08rem);
  line-height: 1.12;
  font-weight: 850;
}

#intro.section-intro .workflow-destinations article {
  border-color: rgba(47, 143, 91, 0.16);
  background: rgba(241, 251, 244, 0.78);
}

#intro.section-intro .workflow-core {
  position: relative;
  z-index: 5;
  min-height: 246px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(47, 143, 91, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(223, 246, 230, 0.88), rgba(255, 255, 255, 0.76));
  box-shadow:
    0 26px 80px rgba(47, 143, 91, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  text-align: center;
  backdrop-filter: blur(18px);
}

#intro.section-intro .workflow-core > span {
  color: #2f8f5b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#intro.section-intro .workflow-core strong {
  color: #102234;
  font-size: clamp(1.5rem, 1.9vw, 2.2rem);
  line-height: 1;
  font-weight: 900;
}

#intro.section-intro .core-steps {
  width: min(100%, 172px);
  display: grid;
  gap: 7px;
}

#intro.section-intro .core-steps i {
  min-height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #214e72;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 760;
}

#intro.section-intro .hero-workflow-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#intro.section-intro .hero-workflow-lines path {
  fill: none;
  stroke: rgba(47, 143, 91, 0.3);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-dasharray: 7 10;
}

#intro.section-intro .hero-workflow-lines path:nth-child(n+4) {
  stroke: rgba(124, 92, 196, 0.3);
}

/* legacy intro map styles disabled for the moved workflow map */
#intro.section-intro .map-column,
#intro.section-intro .map-core {
  position: absolute;
  z-index: 9;
  width: min(166px, 29%);
  transform: translate(-50%, -50%);
}

#intro.section-intro .core-ring {
  position: relative;
  width: 100%;
  height: 118px;
  justify-items: center;
  text-align: center;
  border-radius: 28px;
  padding: 0 18px;
}

#intro.section-intro .map-node {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 70px;
  border-radius: 16px;
  padding: 12px 14px;
  gap: 5px;
}

#intro.section-intro .map-node span {
  font-size: 0.62rem;
}

#intro.section-intro .map-node strong {
  font-size: 0.93rem;
}

#intro.section-intro .core-ring strong {
  font-size: 1.16rem;
}

#intro.section-intro .core-ring span {
  max-width: 16ch;
  font-size: 0.7rem;
}

#intro.section-intro .layer-map-lines {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: visible;
}

#intro.section-intro .layer-map-lines path {
  fill: none;
  stroke: rgba(47, 143, 91, 0.3);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
}

#intro.section-intro .layer-map-lines path:nth-child(n+4) {
  stroke: rgba(124, 92, 196, 0.26);
}

#intro.section-intro .hero-clean-motto {
  display: none;
}

@media (max-width: 1180px) {
  #intro.section-intro .hero-clean-copy {
    position: relative;
    top: auto;
    left: auto;
    width: min(760px, calc(100% - 40px));
    max-width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    transform: none;
  }

  #intro.section-intro .language-layer-map {
    position: relative;
    width: min(760px, calc(100% - 40px));
    height: 520px;
    margin: 46px auto 0;
    padding: 0;
    transform: none;
  }
}


/* top diagram*/

.rr-hero--diagram {
  --rr-bg: #f8fbfa;
  --rr-surface: rgba(255, 255, 255, 0.74);
  --rr-surface-strong: rgba(255, 255, 255, 0.88);
  --rr-border: rgba(16, 34, 52, 0.10);
  --rr-text: #102234;
  --rr-text-soft: #52708a;
  --rr-green: #2f8f5b;
  --rr-green-soft: rgba(47, 143, 91, 0.10);
  --rr-blue: #335cad;
  --rr-purple: #7c5cc4;
  --rr-shadow-lg: 0 36px 100px rgba(16, 34, 52, 0.10);
  --rr-shadow-md: 0 18px 46px rgba(16, 34, 52, 0.08);
  --rr-radius-xl: 26px;
  --rr-radius-lg: 18px;
  --rr-radius-pill: 999px;
  --rr-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --rr-font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 80% 20%, rgba(111, 180, 255, 0.10), transparent 24%),
    radial-gradient(circle at 84% 36%, rgba(255, 170, 88, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--rr-bg) 100%);
  border-bottom: 1px solid rgba(16, 34, 52, 0.06);
  font-family: var(--rr-font-sans);
}

.rr-hero__inner {
  position: relative;
  z-index: 3;
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(72px, 8vw, 112px) 0 clamp(72px, 8vw, 120px);
}

.rr-hero__copy {
  position: relative;
  z-index: 4;
  max-width: 760px;
  margin-bottom: 40px;
}

.rr-hero__eyebrow {
  margin: 0 0 18px;
  color: var(--rr-green);
  font-family: var(--rr-font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rr-hero__title {
  margin: 0;
  color: var(--rr-text);
  font-size: clamp(2.8rem, 4.9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 800;
  max-width: 13ch;
}

.rr-hero__lede {
  margin: 22px 0 0;
  max-width: 60ch;
  color: var(--rr-text-soft);
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  line-height: 1.6;
  font-weight: 550;
}

.rr-hero__bg-words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.rr-hero__bg-words span {
  position: absolute;
  right: 4vw;
  font-size: clamp(4.5rem, 9vw, 11rem);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.09em;
  color: rgba(16, 34, 52, 0.035);
  white-space: nowrap;
}

.rr-hero__bg-words em {
  color: rgba(138, 234, 84, 0.28);
  font-style: normal;
}

.rr-hero__bg-words span:nth-child(1) { top: 6%; }
.rr-hero__bg-words span:nth-child(2) { top: 23%; right: 8vw; }
.rr-hero__bg-words span:nth-child(3) { top: 40%; right: 5vw; }
.rr-hero__bg-words span:nth-child(4) { top: 58%; right: 10vw; }

.rr-hero__aurora {
  position: absolute;
  inset: -8% -12% auto auto;
  width: 64vw;
  height: 120%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.62;
  filter: blur(20px);
}

.rr-hero__aurora-ribbon {
  position: absolute;
  display: block;
  width: 24vw;
  min-width: 260px;
  height: 120vh;
  border-radius: 999px;
  transform-origin: center;
  animation: rrAuroraDrift 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.rr-hero__aurora-ribbon--a {
  top: -10%;
  right: 26%;
  background: linear-gradient(
    180deg,
    rgba(111, 180, 255, 0.30),
    rgba(71, 217, 255, 0.16),
    rgba(255,255,255,0)
  );
  transform: rotate(-24deg);
}

.rr-hero__aurora-ribbon--b {
  top: -14%;
  right: 12%;
  background: linear-gradient(
    180deg,
    rgba(255, 171, 76, 0.32),
    rgba(249, 113, 181, 0.22),
    rgba(255,255,255,0)
  );
  transform: rotate(-17deg);
  animation-delay: -5s;
}

.rr-hero__aurora-ribbon--c {
  top: -8%;
  right: -1%;
  background: linear-gradient(
    180deg,
    rgba(198, 171, 255, 0.24),
    rgba(111, 180, 255, 0.16),
    rgba(255,255,255,0)
  );
  transform: rotate(-12deg);
  animation-delay: -8s;
}

@keyframes rrAuroraDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(-22deg) scale(1);
    opacity: 0.52;
  }
  to {
    transform: translate3d(-18px, 26px, 0) rotate(-15deg) scale(1.06);
    opacity: 0.70;
  }
}

.rr-diagram {
  position: relative;
  z-index: 4;
}

.rr-diagram__board {
  position: relative;
  min-height: 660px;
  border: 1px solid var(--rr-border);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.68)),
    linear-gradient(135deg, rgba(223,246,230,0.16), rgba(255,255,255,0.36));
  box-shadow: var(--rr-shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.rr-diagram__board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(16,34,52,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,34,52,0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
  pointer-events: none;
}

.rr-diagram__col {
  position: absolute;
  z-index: 3;
  width: 252px;
}

.rr-diagram__col--left {
  left: 36px;
  top: 34px;
}

.rr-diagram__col--right {
  right: 36px;
  top: 78px;
}

.rr-diagram__col-label {
  margin: 0 0 14px;
  color: var(--rr-text-soft);
  font-family: var(--rr-font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rr-node-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.rr-node-list--left {
  gap: 10px;
}

.rr-node-list--right {
  gap: 12px;
}

.rr-node {
  min-height: 56px;
  display: flex;
  align-items: center;
  border-radius: var(--rr-radius-lg);
  padding: 0 16px;
  background: var(--rr-surface);
  border: 1px solid rgba(16, 34, 52, 0.08);
  box-shadow: var(--rr-shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rr-node span {
  color: var(--rr-text);
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.rr-node--source {
  justify-content: flex-start;
}

.rr-node--source::before,
.rr-node--output::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 50%;
}

.rr-node--source::before {
  background: var(--rr-green);
  box-shadow: 0 0 0 5px rgba(47, 143, 91, 0.10);
}

.rr-node--output::before {
  background: var(--rr-blue);
  box-shadow: 0 0 0 5px rgba(51, 92, 173, 0.10);
}

.rr-diagram__core-wrap {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 308px;
  transform: translate(-50%, -50%);
}

.rr-core {
  border-radius: 30px;
  padding: 22px 22px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,251,250,0.82));
  border: 1px solid rgba(16, 34, 52, 0.10);
  box-shadow:
    0 32px 90px rgba(16, 34, 52, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.86);
  text-align: center;
}

.rr-core__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--rr-radius-pill);
  background: rgba(47, 143, 91, 0.08);
  color: var(--rr-green);
  font-family: var(--rr-font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rr-core__title {
  margin: 14px 0 4px;
  color: var(--rr-text);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 850;
}

.rr-core__tagline {
  margin: 0;
  color: var(--rr-text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 620;
}

.rr-core__steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rr-core__steps li {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(16, 34, 52, 0.08);
  background: rgba(255,255,255,0.86);
}

.rr-core__steps span {
  color: var(--rr-purple);
  font-family: var(--rr-font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rr-diagram__svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.rr-diagram__svg path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 7 10;
  animation: rrDash 7.5s linear infinite;
  vector-effect: non-scaling-stroke;
}

.rr-flow--right path {
  animation-duration: 8.4s;
}

@keyframes rrDash {
  to {
    stroke-dashoffset: -68;
  }
}

.rr-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1199px) {
  .rr-hero__inner {
    width: min(1100px, calc(100% - 32px));
  }

  .rr-diagram__board {
    min-height: 0;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .rr-diagram__col,
  .rr-diagram__core-wrap {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    transform: none;
  }

  .rr-diagram__core-wrap {
    grid-column: 1 / -1;
    order: 1;
    max-width: 420px;
    margin-inline: auto;
  }

  .rr-diagram__col--left {
    order: 2;
  }

  .rr-diagram__col--right {
    order: 3;
  }

  .rr-diagram__svg {
    display: none;
  }

  .rr-hero__bg-words span {
    font-size: clamp(4rem, 9vw, 8rem);
  }
}

@media (max-width: 767px) {
  .rr-hero__inner {
    width: min(100%, calc(100% - 24px));
    padding: 52px 0 72px;
  }

  .rr-hero__title {
    max-width: 11ch;
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .rr-hero__lede {
    font-size: 1rem;
  }

  .rr-diagram__board {
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 24px;
    padding: 18px;
  }

  .rr-diagram__core-wrap,
  .rr-diagram__col--left,
  .rr-diagram__col--right {
    order: initial;
  }

  .rr-core__steps {
    grid-template-columns: 1fr 1fr;
  }

  .rr-hero__bg-words {
    display: none;
  }

  .rr-hero__aurora {
    opacity: 0.34;
    right: -34%;
    width: 88vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-hero__aurora-ribbon,
  .rr-diagram__svg path {
    animation: none !important;
  }
}

@media (max-width: 1180px) {
  #intro.section-intro .hero-workflow-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(960px, calc(100% - 40px));
    margin: 46px auto 0;
    transform: none;
  }

  #intro.section-intro .hero-workflow-panel .rr-diagram__board {
    height: auto;
    min-height: 0;
  }
}
