:root {
  --cp-bg: #030a0f;
  --cp-bg-soft: #061219;
  --cp-panel: rgba(7, 20, 28, 0.88);
  --cp-panel-strong: rgba(8, 25, 34, 0.96);
  --cp-line: rgba(105, 207, 220, 0.2);
  --cp-line-strong: rgba(70, 225, 194, 0.46);
  --cp-mint: #20d6a4;
  --cp-mint-soft: #7af1d1;
  --cp-cyan: #27c7ef;
  --cp-violet: #9b6cff;
  --cp-text: #f0fbfa;
  --cp-muted: #8aaab5;
  --cp-dim: #55727d;
  --cp-radius: 18px;
}

.capability-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

html,
body,
.page {
  background: var(--cp-bg);
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 18%, rgba(18, 158, 190, 0.09), transparent 28%),
    radial-gradient(circle at 12% 33%, rgba(32, 214, 164, 0.06), transparent 24%),
    linear-gradient(180deg, #030a0f 0, #041016 52%, #030a0f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(67, 161, 171, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 161, 171, 0.035) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.72) 52%, transparent 88%);
}

.molecular-bg {
  opacity: 0.44;
  filter: hue-rotate(12deg) saturate(1.3);
}

.nav {
  min-height: 72px;
  padding: 0 clamp(22px, 3.5vw, 64px);
  gap: 30px;
  border-bottom: 1px solid rgba(111, 179, 192, 0.16);
  background: rgba(3, 10, 15, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(1.08);
}

.nav-logo {
  font-size: 21px;
  letter-spacing: -0.7px;
}

.nav-logo::before {
  width: 12px;
  height: 12px;
  margin-right: 12px;
  border: 1.5px solid var(--cp-mint);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 8px rgba(32, 214, 164, 0.07), 0 0 20px rgba(32, 214, 164, 0.6);
}

.nav-logo .brand-ai,
.footer-logo .brand-ai {
  color: var(--cp-mint);
}

.nav-links {
  gap: 30px;
  margin-left: 34px;
}

.nav-link {
  color: #91aeb5;
  font-size: 14px;
}

.nav-link:hover {
  color: var(--cp-text);
  border-bottom-color: var(--cp-mint);
}

.btn-ghost,
.btn-primary {
  min-height: 42px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.btn-ghost {
  border: 1px solid rgba(117, 170, 183, 0.28);
  background: rgba(7, 20, 28, 0.72);
  color: #d8e9e9;
}

.btn-primary,
.hero-btn-main {
  background: linear-gradient(135deg, #19b989, #20d6a4 58%, #13a98d);
  color: #001810;
  font-weight: 650;
  box-shadow: 0 12px 34px rgba(32, 214, 164, 0.2), inset 0 1px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover,
.hero-btn-main:hover {
  background: linear-gradient(135deg, #66efca, #20d6a4 64%, #18bd9f);
  color: #001810;
  box-shadow: 0 16px 40px rgba(32, 214, 164, 0.3);
}

.nav-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 11px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(117, 170, 183, 0.25);
  border-radius: 10px;
  background: rgba(7, 20, 28, 0.76);
  color: #fff;
}

.nav-menu-toggle span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-control-plane {
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 4vw, 62px) clamp(22px, 3.5vw, 64px) 34px;
  text-align: left;
  background:
    radial-gradient(ellipse 48% 34% at 22% 74%, rgba(40, 180, 241, 0.1), transparent 70%),
    radial-gradient(ellipse 56% 55% at 78% 22%, rgba(24, 196, 181, 0.08), transparent 72%);
}

.hero-control-plane::before {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 32% 110%, rgba(59, 170, 255, 0.2), transparent 42%),
    linear-gradient(178deg, transparent 50%, rgba(24, 107, 161, 0.09) 51%, transparent 69%);
}

.hero-control-plane::after {
  left: 3%;
  right: 3%;
  background: linear-gradient(90deg, transparent, rgba(57, 204, 209, 0.28), transparent);
}

.hero-shell {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.96fr) minmax(650px, 1.44fr);
  gap: clamp(38px, 3.4vw, 56px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.hero-control-plane .hero-badge {
  margin: 0 0 34px;
  padding: 9px 17px;
  border: 1px solid rgba(100, 188, 203, 0.28);
  background: rgba(7, 20, 28, 0.68);
  color: #c5dcdf;
  font-size: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.badge-dot,
.chip-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cp-mint);
  box-shadow: 0 0 14px rgba(32, 214, 164, 0.72);
}

.hero-control-plane h1 {
  max-width: 670px;
  margin: 0 0 26px;
  color: var(--cp-text);
  font-size: clamp(42px, 3.75vw, 58px);
  font-weight: 720;
  line-height: 1.16;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.hero-control-plane h1 .title-line {
  display: block;
  white-space: nowrap;
}

.hero-control-plane h1 .brand {
  margin-bottom: 30px;
  color: var(--cp-mint);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.3em;
}

.hero-control-plane h1 .highlight {
  color: var(--cp-mint);
  background: linear-gradient(100deg, var(--cp-mint), #13bca8 48%, var(--cp-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-control-plane h1 .highlight::after {
  display: none;
}

.hero-control-plane .hero-sub {
  max-width: 610px;
  margin: 0 0 36px;
  color: #8da9b2;
  font-size: 16px;
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-control-plane .hero-btns {
  margin: 0;
  justify-content: flex-start;
  gap: 14px;
}

.hero-control-plane .hero-btn-main,
.hero-control-plane .hero-btn-sec {
  min-height: 50px;
  padding: 14px 30px;
  justify-content: center;
  border-radius: 11px;
  font-size: 15px;
}

.hero-control-plane .hero-btn-sec {
  border: 1px solid rgba(113, 166, 181, 0.32);
  background: rgba(6, 17, 25, 0.62);
  color: #d8e9eb;
}

.hero-control-plane .hero-btn-sec:hover {
  border-color: rgba(32, 214, 164, 0.6);
  background: rgba(12, 35, 42, 0.82);
}

.agent-plane {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(105, 201, 218, 0.38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 48% 40%, rgba(20, 177, 190, 0.09), transparent 36%),
    linear-gradient(145deg, rgba(9, 26, 37, 0.96), rgba(3, 13, 20, 0.96));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.04), 0 0 90px rgba(16, 172, 177, 0.06);
  backdrop-filter: blur(6px);
}

.agent-plane::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(76, 177, 189, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 177, 189, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

.plane-head {
  position: relative;
  z-index: 1;
  min-height: 66px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(100, 176, 188, 0.14);
}

.plane-title,
.plane-chip {
  display: inline-flex;
  align-items: center;
}

.plane-title {
  gap: 11px;
  color: #f2fbfb;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plane-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(39, 199, 239, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(39, 199, 239, 0.14), rgba(32, 214, 164, 0.05));
  color: var(--cp-cyan);
  box-shadow: 0 0 18px rgba(39, 199, 239, 0.1);
}

.plane-chip {
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(98, 171, 185, 0.2);
  border-radius: 20px;
  background: rgba(4, 17, 24, 0.7);
  color: #bed4d8;
  font-size: 11px;
}

.plane-main {
  position: relative;
  z-index: 1;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) 174px;
  gap: 14px;
}

.workflow-map {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(100, 176, 188, 0.12);
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(22, 181, 191, 0.08), transparent 42%);
}

.workflow-map::before,
.workflow-map::after {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  content: "";
  border: 1px dashed rgba(32, 214, 164, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.workflow-map::before {
  width: 248px;
  height: 248px;
}

.workflow-map::after {
  width: 190px;
  height: 190px;
  border-color: rgba(39, 199, 239, 0.1);
}

.flow-node {
  position: absolute;
  z-index: 3;
  width: 136px;
  min-height: 66px;
  padding: 11px 10px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(91, 190, 205, 0.3);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(11, 39, 52, 0.97), rgba(5, 20, 29, 0.97));
  color: #eaf7f7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.03);
}

.flow-node::after {
  position: absolute;
  width: 45px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(32, 214, 164, 0.7), transparent);
}

.flow-node:nth-child(even)::after {
  right: 100%;
  background: linear-gradient(90deg, transparent, rgba(32, 214, 164, 0.7));
}

.flow-node:nth-child(odd)::after {
  left: 100%;
}

.node-1 { left: 12px; top: 12px; }
.node-2 { right: 12px; top: 12px; }
.node-3 { left: 3px; top: 50%; transform: translateY(-50%); }
.node-4 { right: 3px; top: 50%; transform: translateY(-50%); }
.node-5 { left: 12px; bottom: 12px; }
.node-6 { right: 12px; bottom: 12px; }

.flow-node .node-index {
  position: absolute;
  top: 5px;
  left: 8px;
  color: #60808c;
  font-size: 8px;
}

.flow-node .node-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 190, 205, 0.18);
  border-radius: 9px;
  background: rgba(39, 199, 239, 0.07);
  color: #b8f4ff;
  font-size: 15px;
}

.flow-node b,
.flow-node small {
  display: block;
  font-weight: 500;
}

.flow-node b {
  font-size: 10px;
  line-height: 1.3;
}

.flow-node small {
  margin-top: 3px;
  color: #7899a3;
  font-size: 9px;
}

.flow-node > i {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0c6d58;
  color: #8ff6d8;
  font-size: 9px;
  font-style: normal;
  box-shadow: 0 0 0 3px rgba(32, 214, 164, 0.08);
}

.molecule-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 214px;
  height: 214px;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 560px;
  transform: translate(-50%, -50%);
}

.molecule-core::before {
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(23, 178, 187, 0.16), transparent 68%);
  box-shadow: 0 0 70px rgba(22, 181, 191, 0.13);
}

.protein-stage {
  position: relative;
  z-index: 2;
  width: 96%;
  height: 96%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  animation: protein-stage-turn 11s ease-in-out infinite;
}

.protein-stage::after {
  position: absolute;
  inset: -18%;
  z-index: 3;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(156, 255, 236, 0.22) 49%, rgba(86, 203, 255, 0.12) 52%, transparent 60%);
  mix-blend-mode: screen;
  transform: translateX(-125%) rotate(12deg);
  animation: protein-scan 6.5s ease-in-out infinite;
}

.protein-complex {
  width: 100%;
  height: 100%;
  background: #020d18;
  object-fit: contain;
  backface-visibility: hidden;
  will-change: transform;
  filter: saturate(1.08) drop-shadow(0 0 14px rgba(22, 204, 198, 0.26));
  animation: core-breathe 5s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: 3%;
  border: 1px solid rgba(32, 214, 164, 0.17);
  border-radius: 50%;
  will-change: transform;
}

.orbit-a { transform: rotate(18deg) scaleY(0.42); animation: orbit-a-spin 13s linear infinite; }
.orbit-b { transform: rotate(72deg) scaleY(0.42); border-color: rgba(39, 199, 239, 0.16); animation: orbit-b-spin 17s linear infinite; }
.orbit-c { transform: rotate(135deg) scaleY(0.42); border-color: rgba(155, 108, 255, 0.13); animation: orbit-c-spin 21s linear infinite; }

@keyframes core-breathe {
  0%, 100% { transform: translateZ(0) scale(0.98); }
  50% { transform: translateZ(0) scale(1.025); }
}

@keyframes protein-stage-turn {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(-3deg) rotateY(-8deg); }
  50% { transform: translate3d(0, -4px, 16px) rotateX(3deg) rotateY(9deg); }
}

@keyframes protein-scan {
  0%, 18% { opacity: 0; transform: translateX(-125%) rotate(12deg); }
  30% { opacity: 0.78; }
  52% { opacity: 0; transform: translateX(125%) rotate(12deg); }
  100% { opacity: 0; transform: translateX(125%) rotate(12deg); }
}

@keyframes orbit-a-spin {
  to { transform: rotate(378deg) scaleY(0.42); }
}

@keyframes orbit-b-spin {
  to { transform: rotate(-288deg) scaleY(0.42); }
}

@keyframes orbit-c-spin {
  to { transform: rotate(495deg) scaleY(0.42); }
}

.task-rail {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(100, 176, 188, 0.16);
  border-radius: 14px;
  background: rgba(3, 14, 21, 0.72);
}

.rail-title {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e4f5f5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-task {
  position: relative;
  min-height: 42px;
  margin-bottom: 7px;
  padding: 8px 8px 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  border: 1px solid rgba(100, 176, 188, 0.1);
  border-radius: 8px;
  background: rgba(8, 26, 35, 0.58);
  color: #a9c1c7;
  font-size: 9px;
}

.rail-task b {
  color: #d5e7e9;
  font-size: 9px;
  font-weight: 500;
}

.rail-task i {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  border-radius: 3px;
  background: rgba(113, 165, 176, 0.14);
  overflow: hidden;
}

.rail-task i::after {
  width: var(--p);
  height: 100%;
  display: block;
  border-radius: inherit;
  content: "";
  background: linear-gradient(90deg, var(--cp-mint), var(--cp-cyan));
  box-shadow: 0 0 8px rgba(32, 214, 164, 0.4);
}

.rail-link {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 176, 188, 0.14);
  border-radius: 8px;
  color: #849fa7;
  font-size: 9px;
  text-decoration: none;
}

.rail-link:hover {
  border-color: var(--cp-line-strong);
  color: var(--cp-text);
}

.plane-metrics {
  position: relative;
  z-index: 1;
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-width: 0;
  min-height: 70px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(100, 176, 188, 0.17);
  border-radius: 11px;
  background: rgba(7, 25, 34, 0.72);
}

.metric-icon {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 214, 164, 0.28);
  border-radius: 50%;
  background: rgba(32, 214, 164, 0.07);
  color: var(--cp-mint);
}

.metric-evidence .metric-icon {
  border-radius: 9px;
  border-color: rgba(155, 108, 255, 0.28);
  background: rgba(155, 108, 255, 0.08);
  color: var(--cp-violet);
}

.metric b,
.metric small {
  display: block;
  white-space: nowrap;
}

.metric b {
  color: #e3f2f3;
  font-size: 10px;
  font-weight: 580;
}

.metric-running b {
  color: var(--cp-mint);
  text-transform: uppercase;
}

.metric small {
  margin-top: 5px;
  color: #68858f;
  font-size: 8px;
}

.sparkline {
  width: 48px;
  height: 26px;
  margin-left: auto;
  background: linear-gradient(150deg, transparent 42%, var(--cp-violet) 44% 48%, transparent 50%), linear-gradient(25deg, transparent 52%, rgba(155, 108, 255, 0.72) 54% 58%, transparent 60%);
  clip-path: polygon(0 80%, 16% 55%, 34% 72%, 52% 27%, 69% 48%, 84% 18%, 100% 31%, 100% 100%, 0 100%);
  opacity: 0.9;
}

.bars {
  height: 34px;
  margin-left: auto;
  display: flex;
  align-items: end;
  gap: 3px;
}

.bars em {
  width: 3px;
  height: 30%;
  background: var(--cp-cyan);
  box-shadow: 0 0 7px rgba(39, 199, 239, 0.25);
}

.bars em:nth-child(2) { height: 47%; }
.bars em:nth-child(3) { height: 35%; }
.bars em:nth-child(4) { height: 61%; }
.bars em:nth-child(5) { height: 54%; }
.bars em:nth-child(6) { height: 78%; }
.bars em:nth-child(7) { height: 67%; }
.bars em:nth-child(8) { height: 92%; }

.capability-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1540px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.stats.capability-grid {
  justify-content: initial;
}

.capability-grid .stat-item,
.capability-grid .workspace-card {
  min-height: 118px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid rgba(105, 171, 185, 0.23);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 25, 34, 0.88), rgba(4, 15, 22, 0.88));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 16px 44px rgba(0, 0, 0, 0.18);
}

.capability-grid .workspace-card {
  justify-content: space-between;
}

.capability-grid .workspace-top {
  display: contents;
}

.capability-grid .workspace-card > div:last-child {
  flex: 1;
}

.capability-grid .stat-item::after {
  display: none;
}

.capability-grid .stat-icon,
.capability-grid .workspace-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 214, 164, 0.15);
  border-radius: 50%;
  background: rgba(32, 214, 164, 0.08);
  color: var(--cp-mint);
  font-size: 24px;
  box-shadow: inset 0 0 22px rgba(32, 214, 164, 0.04);
}

.capability-glyph {
  width: 34px;
  height: 34px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px currentColor);
  transition: transform 220ms ease, filter 220ms ease;
}

.capability-grid .stat-item:hover .capability-glyph,
.capability-grid .workspace-card:hover .capability-glyph {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 11px currentColor);
}

.capability-grid .stat-num,
.capability-grid .workspace-name {
  margin: 0;
  color: var(--cp-mint);
  font-size: 22px;
  font-weight: 620;
}

.capability-grid .stat-label,
.capability-grid .workspace-desc {
  margin-top: 7px;
  color: #76929b;
  font-size: 11px;
}

.capability-grid .stat-arrow,
.capability-grid .workspace-arrow {
  margin-left: auto;
  color: #64808a;
  font-size: 20px;
}

.capability-grid .brain-card .stat-num,
.capability-grid .brain-card .workspace-name,
.capability-grid .brain-card .stat-icon,
.capability-grid .brain-card .workspace-icon {
  color: var(--cp-cyan);
}

.capability-grid .hpc-card .stat-num,
.capability-grid .hpc-card .workspace-name,
.capability-grid .hpc-card .stat-icon,
.capability-grid .hpc-card .workspace-icon {
  color: var(--cp-violet);
}

.capability-grid .pcc-card .stat-num,
.capability-grid .pcc-card .workspace-name,
.capability-grid .pcc-card .stat-icon,
.capability-grid .pcc-card .workspace-icon {
  color: #29d6dc;
}

.workspace-card,
.module-card,
.pipe-step,
.feat-card,
.fw-visual {
  border-color: rgba(105, 171, 185, 0.18) !important;
  background-color: rgba(6, 20, 27, 0.8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018), 0 18px 54px rgba(0, 0, 0, 0.14);
}

.workspace-card:hover,
a.module-card:hover,
a.pipe-step:hover,
.feat-card:hover {
  border-color: rgba(32, 214, 164, 0.42) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 22px 62px rgba(0, 0, 0, 0.23), 0 0 38px rgba(32, 214, 164, 0.05);
}

.section,
.flywheel-section,
.cta-section {
  scroll-margin-top: 74px;
}

.section {
  background: linear-gradient(180deg, rgba(4, 15, 21, 0.22), rgba(3, 10, 15, 0));
}

.section-label,
.hero h1 .brand,
.pipe-num {
  letter-spacing: 0.14em;
}

.hero-sub,
.section-sub,
.module-desc,
.feat-desc,
.pipe-desc,
.fw-item-desc {
  text-wrap: pretty;
}

@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: minmax(330px, 0.82fr) minmax(570px, 1.3fr);
    gap: 34px;
  }

  .plane-main {
    grid-template-columns: minmax(390px, 1fr) 160px;
  }

  .flow-node {
    width: 122px;
  }
}

@media (max-width: 980px) {
  .nav {
    min-height: 66px;
  }

  .nav-menu-toggle {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  .nav-cta,
  .user-menu {
    margin-left: 0;
    order: 1;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    margin: 0;
    padding: 13px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid rgba(105, 171, 185, 0.24);
    border-radius: 14px;
    background: rgba(4, 15, 22, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
  }

  .nav-link:hover {
    background: rgba(32, 214, 164, 0.07);
  }

  .hero-control-plane {
    padding-top: 44px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .hero-control-plane h1 {
    max-width: 760px;
  }

  .agent-plane {
    width: 100%;
  }

  .plane-main {
    grid-template-columns: minmax(480px, 1fr) 180px;
  }

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

@media (max-width: 700px) {
  body::before {
    background-size: 44px 44px;
  }

  .molecular-bg {
    display: none;
  }

  .nav {
    padding: 0 18px;
    gap: 12px;
  }

  .nav-logo {
    font-size: 19px;
  }

  .nav-logo::before {
    width: 10px;
    height: 10px;
    margin-right: 10px;
    box-shadow: 0 0 0 6px rgba(32, 214, 164, 0.06), 0 0 16px rgba(32, 214, 164, 0.5);
  }

  .nav-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-cta .btn-primary {
    display: none;
  }

  .nav-cta .btn-ghost {
    min-height: 42px;
    padding: 9px 16px;
  }

  .hero-control-plane {
    min-height: auto;
    padding: 38px 18px 30px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-control-plane .hero-badge {
    max-width: 100%;
    margin-bottom: 30px;
    padding: 8px 13px;
    font-size: 11px;
  }

  .hero-control-plane h1 {
    margin-bottom: 22px;
    font-size: clamp(31px, 8.4vw, 36px);
    line-height: 1.22;
    letter-spacing: -0.055em;
  }

  .hero-control-plane h1 .brand {
    margin-bottom: 24px;
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .hero-control-plane .hero-sub {
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-control-plane .hero-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  .hero-control-plane .hero-btn-main,
  .hero-control-plane .hero-btn-sec {
    min-width: 0;
    min-height: 54px;
    padding: 14px 12px;
    font-size: 14px;
  }

  .agent-plane {
    border-radius: 15px;
  }

  .plane-head {
    min-height: 58px;
    padding: 12px 13px;
  }

  .plane-title {
    gap: 8px;
    font-size: 11px;
  }

  .plane-mark {
    width: 28px;
    height: 28px;
  }

  .plane-chip {
    padding: 7px 9px;
    font-size: 9px;
  }

  .plane-main {
    padding: 10px;
    display: block;
  }

  .workflow-map {
    min-height: 450px;
  }

  .workflow-map::before {
    width: 190px;
    height: 190px;
  }

  .workflow-map::after {
    width: 145px;
    height: 145px;
  }

  .flow-node {
    width: 106px;
    min-height: 62px;
    padding: 12px 8px 8px;
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .flow-node::after {
    width: 28px;
  }

  .flow-node .node-icon {
    display: none;
  }

  .flow-node .node-index {
    top: 4px;
    left: 6px;
  }

  .flow-node b {
    font-size: 9px;
  }

  .flow-node small {
    font-size: 8px;
  }

  .node-1 { left: 8px; top: 11px; }
  .node-2 { right: 8px; top: 11px; }
  .node-3 { left: 2px; top: 50%; }
  .node-4 { right: 2px; top: 50%; }
  .node-5 { left: 8px; bottom: 11px; }
  .node-6 { right: 8px; bottom: 11px; }

  .molecule-core {
    width: 164px;
    height: 164px;
  }

  .task-rail {
    display: none;
  }

  .plane-metrics {
    padding: 0 10px 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .metric {
    min-height: 76px;
    padding: 10px 8px;
    display: block;
  }

  .metric-icon {
    width: 27px;
    height: 27px;
    margin-bottom: 7px;
    font-size: 10px;
  }

  .metric b {
    font-size: 8px;
  }

  .metric small {
    white-space: normal;
    font-size: 7px;
  }

  .sparkline,
  .bars {
    display: none;
  }

  .capability-grid,
  .stats.capability-grid {
    width: calc(100% + 18px);
    margin-top: 18px;
    padding: 0 18px 10px 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .capability-grid::-webkit-scrollbar {
    display: none;
  }

  .capability-grid .stat-item,
  .capability-grid .workspace-card {
    min-width: 178px;
    min-height: 132px;
    padding: 17px;
    flex: 0 0 46vw;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 10px;
    scroll-snap-align: start;
  }

  .capability-grid .stat-icon,
  .capability-grid .workspace-icon {
    width: 47px;
    height: 47px;
    grid-column: 1;
    font-size: 20px;
  }

  .capability-glyph {
    width: 28px;
    height: 28px;
  }

  .capability-grid .stat-item > div,
  .capability-grid .workspace-card > div:last-child {
    grid-column: 1 / -1;
  }

  .capability-grid .stat-num,
  .capability-grid .workspace-name {
    font-size: 19px;
  }

  .capability-grid .stat-arrow,
  .capability-grid .workspace-arrow {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
}

@media (max-width: 390px) {
  .hero-control-plane h1 {
    font-size: 37px;
  }

  .plane-title span:last-child {
    max-width: 132px;
  }

  .plane-chip {
    max-width: 112px;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Homepage refinement V2: focused protein-ligand workspace ===== */
.molecular-bg {
  display: none !important;
}

.hero-control-plane {
  min-height: auto;
  padding: clamp(44px, 5vw, 76px) clamp(22px, 4vw, 68px) 34px;
}

.hero-shell {
  max-width: 1480px;
  grid-template-columns: minmax(400px, .86fr) minmax(560px, 1.14fr);
  gap: clamp(40px, 4vw, 70px);
}

.hero-control-plane .hero-badge {
  margin-bottom: 26px;
}

.hero-control-plane h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(44px, 4.1vw, 64px);
  line-height: 1.1;
}

.hero-control-plane h1 .brand {
  margin-bottom: 24px;
}

.hero-control-plane .hero-sub {
  max-width: 570px;
  margin-bottom: 32px;
}

.agent-stage-v2 {
  min-height: 548px;
  border-color: rgba(81, 200, 215, .34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 47%, rgba(22, 168, 178, .13), transparent 34%),
    linear-gradient(145deg, rgba(8, 28, 37, .97), rgba(3, 15, 22, .98));
  box-shadow: 0 25px 72px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: none;
}

.agent-stage-v2 .plane-head {
  min-height: 64px;
  padding: 13px 18px;
}

.agent-stage-v2 .plane-title {
  text-transform: uppercase;
  letter-spacing: .1em;
}

.agent-stage-v2 .plane-chip {
  background: rgba(8, 31, 39, .82);
}

.agent-stage-map {
  position: relative;
  z-index: 1;
  min-height: 400px;
  overflow: hidden;
  border-top: 1px solid rgba(89, 180, 195, .14);
  border-bottom: 1px solid rgba(89, 180, 195, .14);
}

.agent-stage-map::before,
.agent-stage-map::after {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 54%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(44, 211, 206, .28), transparent);
  transform-origin: center;
}

.agent-stage-map::before {
  transform: translate(-50%, -50%) rotate(24deg);
}

.agent-stage-map::after {
  transform: translate(-50%, -50%) rotate(-24deg);
}

.stage-orbit {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 322px;
  height: 322px;
  border: 1px dashed rgba(40, 207, 192, .22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.stage-orbit-a {
  animation: stage-orbit-cw 24s linear infinite;
}

.stage-orbit-b {
  width: 250px;
  height: 250px;
  border-style: solid;
  border-color: rgba(42, 190, 231, .12);
  animation: stage-orbit-ccw 19s linear infinite;
}

@keyframes stage-orbit-cw {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes stage-orbit-ccw {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.stage-node {
  position: absolute;
  z-index: 3;
  width: 188px;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid rgba(72, 190, 205, .32);
  border-radius: 11px;
  background: rgba(5, 29, 37, .94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.stage-node::after {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(43, 211, 201, .55), transparent);
}

.stage-node-target::after,
.stage-node-evidence::after {
  right: -47px;
}

.stage-node-design::after,
.stage-node-compute::after {
  left: -47px;
  transform: rotate(180deg);
}

.stage-node-target { left: 4.5%; top: 48px; }
.stage-node-evidence { left: 4.5%; bottom: 48px; }
.stage-node-design { right: 4.5%; top: 48px; }
.stage-node-compute { right: 4.5%; bottom: 48px; }

.stage-node-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 211, 214, .34);
  border-radius: 9px;
  color: #51e2d0;
  background: rgba(36, 198, 184, .08);
}

.stage-node-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-node b,
.stage-node small {
  display: block;
}

.stage-node b {
  color: #e7f7f6;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .01em;
}

.stage-node small {
  margin-top: 4px;
  color: #7299a1;
  font-size: 10px;
  line-height: 1.3;
}

.agent-stage-v2 .molecule-core {
  width: 286px;
  height: 286px;
}

.agent-stage-v2 .molecule-core::before {
  inset: 12%;
  background: radial-gradient(circle, rgba(26, 198, 194, .2), transparent 68%);
  box-shadow: 0 0 54px rgba(27, 190, 195, .14);
}

.agent-stage-v2 .protein-stage {
  width: 100%;
  height: 100%;
}

.agent-stage-v2 .protein-complex {
  background: transparent;
  filter: saturate(1.12) contrast(1.04);
}

.stage-signals {
  position: relative;
  z-index: 2;
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1px;
  background: rgba(86, 174, 189, .12);
}

.stage-signals > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 9px 1fr;
  align-content: center;
  gap: 3px 9px;
  padding: 13px 16px;
  background: rgba(5, 25, 33, .97);
}

.stage-signals i {
  width: 7px;
  height: 7px;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 50%;
  background: var(--cp-mint);
  box-shadow: 0 0 10px rgba(32, 214, 164, .5);
}

.stage-signals b {
  overflow: hidden;
  color: #d8ecec;
  font-size: 10px;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-signals small {
  color: #678990;
  font-size: 9px;
}

@media (max-width: 1160px) {
  .hero-shell {
    max-width: 900px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .agent-stage-v2 {
    min-height: 548px;
  }
}

@media (max-width: 700px) {
  .hero-control-plane {
    padding: 32px 18px 22px;
  }

  .hero-control-plane h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .hero-control-plane h1 .title-line {
    white-space: normal;
  }

  .agent-stage-v2 {
    min-height: 544px;
  }

  .agent-stage-v2 .plane-head {
    min-height: 58px;
    padding: 10px 12px;
  }

  .agent-stage-v2 .plane-title {
    font-size: 9px;
    letter-spacing: .06em;
  }

  .agent-stage-v2 .plane-chip {
    max-width: 126px;
    font-size: 8px;
    line-height: 1.2;
    text-align: right;
  }

  .agent-stage-map {
    min-height: 416px;
  }

  .stage-orbit {
    width: 224px;
    height: 224px;
  }

  .stage-orbit-b {
    width: 178px;
    height: 178px;
  }

  .stage-node {
    width: 132px;
    min-height: 58px;
    grid-template-columns: 30px 1fr;
    gap: 7px;
    padding: 8px;
  }

  .stage-node::after {
    display: none;
  }

  .stage-node-target { left: 8px; top: 28px; }
  .stage-node-evidence { left: 8px; bottom: 28px; }
  .stage-node-design { right: 8px; top: 28px; }
  .stage-node-compute { right: 8px; bottom: 28px; }

  .stage-node-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .stage-node-icon svg {
    width: 20px;
    height: 20px;
  }

  .stage-node b { font-size: 9px; }
  .stage-node small { font-size: 7px; }

  .agent-stage-v2 .molecule-core {
    width: 196px;
    height: 196px;
  }

  .stage-signals {
    min-height: 68px;
  }

  .stage-signals > span {
    grid-template-columns: 7px 1fr;
    gap: 2px 5px;
    padding: 9px 7px;
  }

  .stage-signals b { font-size: 7px; }
  .stage-signals small { font-size: 7px; }
}

@media (max-width: 390px) {
  .stage-node {
    width: 118px;
  }

  .agent-stage-v2 .molecule-core {
    width: 174px;
    height: 174px;
  }
}

/* ===== Homepage V3: continuous drug-discovery journey ===== */
.rd-flow-hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: clamp(20px, 2.2vw, 34px) clamp(16px, 2.5vw, 40px) 22px;
  text-align: left;
  background:
    radial-gradient(circle at 50% 33%, rgba(33, 174, 187, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(3, 13, 19, 0.2), rgba(3, 10, 15, 0));
}

.rd-flow-hero::after {
  display: none;
}

.rd-flow-shell {
  --rd-tilt-x: 0deg;
  --rd-tilt-y: 0deg;
  position: relative;
  width: min(100%, 1680px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(88, 185, 202, 0.22);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 47%, rgba(38, 167, 189, 0.12), transparent 34%),
    radial-gradient(circle at 82% 38%, rgba(105, 78, 202, 0.09), transparent 24%),
    linear-gradient(145deg, rgba(5, 20, 28, 0.99), rgba(2, 11, 17, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.028);
}

.rd-flow-heading {
  position: relative;
  z-index: 12;
  min-height: 136px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px 22px;
  border-bottom: 1px solid rgba(88, 185, 202, 0.13);
  background: linear-gradient(180deg, rgba(3, 14, 20, 0.96), rgba(4, 17, 24, 0.74));
}

.rd-flow-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--cp-mint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.rd-flow-kicker > span {
  width: 19px;
  height: 1px;
  background: var(--cp-mint);
  box-shadow: 0 0 9px rgba(32, 214, 164, 0.72);
}

.rd-flow-heading h1 {
  margin: 0;
  color: var(--cp-text);
  font-size: clamp(32px, 3.2vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.rd-flow-heading p {
  max-width: 700px;
  margin: 10px 0 0;
  color: #7fa1aa;
  font-size: 14px;
  line-height: 1.65;
}

.rd-flow-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: #a8c5c7;
  border: 1px solid rgba(79, 190, 194, 0.18);
  border-radius: 999px;
  background: rgba(5, 24, 31, 0.72);
  font-size: 11px;
  white-space: nowrap;
}

.rd-flow-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cp-mint);
  box-shadow: 0 0 10px rgba(32, 214, 164, 0.7);
  animation: rd-status-pulse 2.3s ease-in-out infinite;
}

.rd-flow-status b {
  color: #dff8f2;
  font-weight: 650;
}

.rd-flow-canvas {
  position: relative;
  min-height: clamp(570px, 42vw, 660px);
  overflow: hidden;
  isolation: isolate;
  perspective: 1200px;
  background:
    linear-gradient(90deg, rgba(18, 88, 98, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(18, 88, 98, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
}

.rd-flow-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(30, 194, 192, 0.08), transparent 30%),
    linear-gradient(90deg, transparent 19.7%, rgba(74, 161, 174, 0.08) 20%, transparent 20.3%, transparent 39.7%, rgba(74, 161, 174, 0.08) 40%, transparent 40.3%, transparent 59.7%, rgba(74, 161, 174, 0.08) 60%, transparent 60.3%, transparent 79.7%, rgba(74, 161, 174, 0.08) 80%, transparent 80.3%);
}

.rd-flow-phases {
  position: absolute;
  z-index: 5;
  top: 21px;
  right: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  pointer-events: none;
}

.rd-flow-phases::before {
  position: absolute;
  top: 17px;
  right: 4.5%;
  left: 4.5%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(32, 214, 164, 0.72), rgba(39, 199, 239, 0.48), rgba(155, 108, 255, 0.56));
  box-shadow: 0 0 10px rgba(32, 214, 164, 0.12);
}

.rd-flow-phases > span {
  position: relative;
  padding-left: 47px;
  color: #d8eaeb;
  font-size: 11px;
  font-weight: 600;
}

.rd-flow-phases b {
  position: absolute;
  top: -7px;
  left: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--cp-mint);
  border: 1px solid rgba(32, 214, 164, 0.55);
  border-radius: 50%;
  background: #04131a;
  box-shadow: 0 0 0 5px rgba(32, 214, 164, 0.025), 0 0 18px rgba(32, 214, 164, 0.09);
  font-size: 9px;
  font-weight: 600;
}

.rd-flow-phases small {
  display: block;
  margin-top: 4px;
  color: #50717a;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.rd-flow-route {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.rd-flow-route path {
  fill: none;
}

.rd-route-glow {
  stroke: rgba(55, 211, 217, 0.2);
  stroke-width: 12;
  filter: blur(8px);
}

.rd-route-dash {
  stroke: rgba(55, 215, 213, 0.72);
  stroke-width: 1.6;
  stroke-dasharray: 8 11;
  animation: rd-route-travel 9s linear infinite;
}

.rd-route-particle {
  fill: #63f1d0;
  filter: drop-shadow(0 0 8px rgba(80, 239, 207, 0.9));
}

.rd-scene {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.rd-evidence-scene {
  left: 2.4%;
  top: 23%;
  width: 18%;
  height: 58%;
}

.rd-paper-stack {
  position: absolute;
  top: 20px;
  left: 4px;
  width: min(170px, 88%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  transform: perspective(500px) rotateY(12deg) rotateX(3deg);
}

.rd-paper-stack span {
  min-height: 72px;
  padding: 9px;
  border: 1px solid rgba(126, 183, 194, 0.24);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(202, 225, 226, 0.16), rgba(64, 99, 107, 0.08));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  animation: rd-paper-float 6s ease-in-out infinite;
}

.rd-paper-stack span:nth-child(2) { animation-delay: -2s; }
.rd-paper-stack span:nth-child(3) { grid-column: 1 / -1; width: 48%; animation-delay: -4s; }
.rd-paper-stack b { display: block; margin-bottom: 9px; color: #b8d1d3; font-size: 6px; letter-spacing: 0.12em; }
.rd-paper-stack i { height: 3px; display: block; margin: 5px 0; border-radius: 3px; background: rgba(138, 188, 197, 0.18); }
.rd-paper-stack i:nth-of-type(2) { width: 72%; }
.rd-paper-stack i:nth-of-type(3) { width: 46%; background: rgba(32, 214, 164, 0.24); }

.rd-knowledge-graph {
  position: absolute;
  left: 6px;
  bottom: 12px;
  width: 170px;
  height: 96px;
  background:
    linear-gradient(28deg, transparent 48%, rgba(56, 193, 204, 0.22) 49% 50%, transparent 51%) 0 0 / 52px 48px,
    linear-gradient(-32deg, transparent 48%, rgba(132, 98, 222, 0.2) 49% 50%, transparent 51%) 15px 4px / 62px 50px;
}

.rd-knowledge-graph i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(42, 220, 208, 0.75);
  border-radius: 50%;
  background: #071920;
  box-shadow: 0 0 9px rgba(42, 220, 208, 0.45);
  animation: rd-node-pulse 3.6s ease-in-out infinite;
}
.rd-knowledge-graph i:nth-child(1) { left: 5px; top: 39px; }
.rd-knowledge-graph i:nth-child(2) { left: 38px; top: 12px; animation-delay: -.6s; }
.rd-knowledge-graph i:nth-child(3) { left: 70px; top: 52px; animation-delay: -1.2s; }
.rd-knowledge-graph i:nth-child(4) { left: 103px; top: 18px; animation-delay: -1.8s; }
.rd-knowledge-graph i:nth-child(5) { left: 137px; top: 57px; animation-delay: -2.4s; }
.rd-knowledge-graph i:nth-child(6) { left: 90px; top: 84px; animation-delay: -3s; }
.rd-knowledge-graph i:nth-child(7) { left: 25px; top: 78px; animation-delay: -3.4s; }

.rd-screening-scene {
  left: 21%;
  top: 24%;
  width: 17%;
  height: 54%;
}

.rd-molecule-cloud {
  position: absolute;
  top: 0;
  right: 12%;
  left: 4%;
  height: 42%;
}

.rd-molecule-cloud i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7px;
  height: 7px;
  border: 1px solid rgba(114, 229, 220, 0.8);
  border-radius: 50%;
  box-shadow: 10px 5px 0 -2px rgba(127, 101, 232, 0.7), 5px 14px 0 -2px rgba(67, 199, 235, 0.7);
  animation: rd-molecule-fall 5.8s ease-in infinite;
  animation-delay: var(--d);
}

.rd-funnel {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 150px;
  height: 190px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 18px rgba(74, 201, 231, 0.15));
}

.rd-funnel::before,
.rd-funnel::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.rd-funnel::before {
  top: 0;
  width: 148px;
  height: 126px;
  clip-path: polygon(2% 4%, 98% 4%, 62% 100%, 38% 100%);
  background: linear-gradient(180deg, rgba(96, 205, 229, 0.15), rgba(104, 79, 205, 0.08));
  border-top: 1px solid rgba(93, 213, 227, 0.48);
}

.rd-funnel::after {
  top: 119px;
  width: 34px;
  height: 48px;
  border-right: 1px solid rgba(83, 208, 222, 0.4);
  border-left: 1px solid rgba(83, 208, 222, 0.4);
  background: linear-gradient(180deg, rgba(42, 175, 197, 0.08), transparent);
}

.rd-funnel span {
  position: absolute;
  z-index: 2;
  top: calc(24px + var(--i, 0) * 30px);
  left: 50%;
  width: calc(120px - var(--i, 0) * 31px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 216, 226, 0.43), transparent);
  transform: translateX(-50%);
}
.rd-funnel span:nth-child(1) { --i: 0; }
.rd-funnel span:nth-child(2) { --i: 1; }
.rd-funnel span:nth-child(3) { --i: 2; }

.rd-hit-molecule {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 70px;
  height: 48px;
  transform: translateX(-50%);
  animation: rd-hit-breathe 3s ease-in-out infinite;
}

.rd-hit-molecule i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #70e9d3;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(112, 233, 211, 0.4);
}
.rd-hit-molecule i:nth-child(1) { left: 4px; top: 20px; }
.rd-hit-molecule i:nth-child(2) { left: 20px; top: 8px; }
.rd-hit-molecule i:nth-child(3) { left: 36px; top: 20px; border-color: #a187ff; }
.rd-hit-molecule i:nth-child(4) { left: 52px; top: 8px; }
.rd-hit-molecule i:nth-child(5) { left: 52px; top: 34px; border-color: #4fd2ef; }

.rd-binding-scene {
  z-index: 3;
  left: 35.2%;
  top: 15%;
  width: 30%;
  height: 69%;
  transform: rotateX(var(--rd-tilt-x)) rotateY(var(--rd-tilt-y));
  transform-style: preserve-3d;
  transition: transform 260ms ease-out;
}

.rd-protein-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 94%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 26px rgba(55, 202, 221, 0.12));
  animation: rd-protein-float 7.5s ease-in-out infinite;
}

.rd-protein-wrap::before {
  position: absolute;
  inset: 13%;
  z-index: -1;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(28, 209, 194, 0.18), rgba(111, 74, 221, 0.08) 38%, transparent 68%);
  filter: blur(12px);
  animation: rd-core-breathe 4.6s ease-in-out infinite;
}

.rd-protein-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: saturate(1.2) contrast(1.05) brightness(1.02);
}

.rd-binding-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 86%;
  height: 54%;
  border: 1px solid rgba(60, 206, 216, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.rd-binding-orbit-a { animation: rd-orbit-a 18s linear infinite; }
.rd-binding-orbit-b { width: 63%; height: 82%; border-color: rgba(143, 104, 239, 0.16); animation: rd-orbit-b 15s linear infinite; }

.rd-binding-scan {
  position: absolute;
  z-index: 4;
  top: 13%;
  bottom: 13%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(85, 231, 215, 0.85), transparent);
  box-shadow: 0 0 16px rgba(85, 231, 215, 0.55);
  opacity: 0;
  animation: rd-binding-scan 5.5s ease-in-out infinite;
}

.rd-contact {
  position: absolute;
  z-index: 5;
  width: 44px;
  height: 1px;
  border-top: 1px dashed rgba(245, 216, 95, 0.82);
  filter: drop-shadow(0 0 4px rgba(245, 216, 95, 0.55));
  animation: rd-contact-pulse 2.8s ease-in-out infinite;
}
.rd-contact-a { left: 44%; top: 43%; transform: rotate(18deg); }
.rd-contact-b { right: 35%; top: 52%; transform: rotate(-31deg); animation-delay: -.9s; }
.rd-contact-c { left: 39%; bottom: 37%; transform: rotate(-56deg); animation-delay: -1.7s; }

.rd-validation-scene {
  left: 64%;
  top: 23%;
  width: 20%;
  height: 57%;
}

.rd-md-cloud {
  position: absolute;
  top: 0;
  left: 50%;
  width: 170px;
  height: 120px;
  border: 1px solid rgba(94, 211, 222, 0.14);
  border-radius: 46% 54% 52% 48%;
  transform: translateX(-50%);
  box-shadow: inset 0 0 34px rgba(45, 197, 214, 0.08), 0 0 24px rgba(139, 98, 225, 0.05);
  animation: rd-md-morph 7s ease-in-out infinite;
}

.rd-md-cloud::before,
.rd-md-cloud::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(69, 196, 215, 0.18);
  border-radius: 50%;
  content: "";
  transform: rotate(22deg);
}
.rd-md-cloud::after { inset: 25px 10px; border-color: rgba(145, 102, 238, 0.18); transform: rotate(-33deg); }
.rd-md-cloud i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #7decd9; box-shadow: 22px -9px 0 -1px #9b7cff, -21px 13px 0 -1px #3dc9f1, 10px 22px 0 -2px #7decd9; }
.rd-md-cloud span { position: absolute; inset: 35%; border: 1px dashed rgba(126, 104, 237, 0.48); border-radius: 50%; animation: rd-spin 9s linear infinite; }

.rd-affinity-card {
  position: absolute;
  left: 50%;
  top: 135px;
  width: min(220px, 96%);
  min-height: 112px;
  padding: 10px 12px;
  border: 1px solid rgba(105, 178, 191, 0.18);
  border-radius: 8px;
  background: rgba(5, 22, 29, 0.8);
  transform: translateX(-50%);
}

.rd-affinity-card b { color: #96b4ba; font-size: 8px; font-weight: 560; }
.rd-affinity-card small { color: #55727b; font-size: 7px; }
.rd-affinity-card svg { width: 100%; height: 68px; margin-top: 5px; overflow: visible; }
.rd-affinity-card path { fill: none; stroke: #4bd0ea; stroke-width: 1.4; stroke-dasharray: 6 4; filter: drop-shadow(0 0 4px rgba(75, 208, 234, 0.45)); animation: rd-chart-run 5.5s linear infinite; }

.rd-admet-list {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: min(220px, 96%);
  padding: 9px 11px;
  border: 1px solid rgba(105, 178, 191, 0.18);
  border-radius: 8px;
  background: rgba(5, 22, 29, 0.8);
  transform: translateX(-50%);
}
.rd-admet-list span { display: flex; justify-content: space-between; gap: 10px; margin: 5px 0; color: #76949c; font-size: 7px; }
.rd-admet-list b { color: #54d8ad; font-weight: 600; }
.rd-admet-list span:nth-child(2) b { color: #e8bb5b; }

.rd-synthesis-scene {
  right: 1.8%;
  top: 22%;
  width: 17%;
  height: 57%;
}

.rd-route-network {
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  height: 180px;
}

.rd-route-network span {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #a9c4c7;
  border: 1px solid rgba(134, 188, 198, 0.34);
  border-radius: 50%;
  background: #071a21;
  font-size: 8px;
}
.rd-route-network .r1 { left: 4%; top: 22px; }
.rd-route-network .r2 { left: 37%; top: 22px; }
.rd-route-network .r3 { right: 4%; top: 62px; }
.rd-route-network .r4 { left: 4%; bottom: 8px; }
.rd-route-network .r5 { left: 39%; bottom: 8px; }
.rd-route-network .r6 { right: 2%; bottom: 8px; color: #84f0ca; border-color: rgba(73, 224, 176, 0.66); box-shadow: 0 0 18px rgba(73, 224, 176, 0.18); animation: rd-r6-pulse 3s ease-in-out infinite; }

.rd-route-network i {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, rgba(117, 190, 198, 0.62), rgba(74, 225, 190, 0.66));
}
.rd-route-network .l1 { left: 17%; top: 39px; width: 24%; }
.rd-route-network .l2 { left: 49%; top: 47px; width: 30%; transform: rotate(25deg); }
.rd-route-network .l3 { left: 17%; top: 115px; width: 29%; }
.rd-route-network .l4 { left: 48%; top: 115px; width: 31%; }
.rd-route-network .l5 { left: 47%; top: 48px; width: 67px; transform: rotate(90deg); }

.rd-flask {
  position: absolute;
  right: 13%;
  bottom: 22px;
  width: 44px;
  height: 58px;
  border: 1px solid rgba(109, 228, 210, 0.72);
  border-top: 0;
  border-radius: 6px 6px 18px 18px;
  transform: perspective(300px) rotateY(-7deg);
  box-shadow: inset 0 -18px rgba(50, 220, 166, 0.13), 0 0 18px rgba(50, 220, 166, 0.1);
}
.rd-flask::before { position: absolute; top: -22px; left: 13px; width: 16px; height: 23px; border: 1px solid rgba(109, 228, 210, 0.72); border-bottom: 0; border-radius: 4px 4px 0 0; content: ""; }
.rd-flask i { position: absolute; right: 6px; bottom: 7px; left: 6px; height: 15px; border-radius: 50%; background: rgba(45, 226, 164, 0.25); animation: rd-liquid 3.4s ease-in-out infinite; }
.rd-synthesis-scene > small { position: absolute; right: 0; bottom: 0; color: #66878f; font-size: 7px; }

.rd-agent-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}

.rd-agent {
  position: absolute;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: #b5ced0;
  border: 1px solid rgba(102, 182, 193, 0.25);
  border-radius: 7px;
  background: rgba(4, 19, 26, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 8px;
  font-weight: 570;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rd-agent::after {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 28px;
  content: "";
  background: linear-gradient(rgba(83, 200, 205, 0.55), transparent);
}

.rd-agent svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--cp-mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rd-agent > i {
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--cp-mint);
  box-shadow: 0 0 8px rgba(32, 214, 164, 0.75);
}

.rd-agent:hover,
.rd-agent:focus-visible,
.rd-agent.is-selected {
  color: #effcf9;
  border-color: rgba(45, 226, 184, 0.7);
  background: rgba(6, 37, 42, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26), 0 0 20px rgba(32, 214, 164, 0.1);
  transform: translateY(-2px);
}

.rd-agent-pharma { left: 4.2%; top: 22%; }
.rd-agent-target { left: 17.2%; top: 80%; }
.rd-agent-screen { left: 24.6%; top: 21%; }
.rd-agent-docking { left: 45%; top: 10%; transform: translateX(-50%); }
.rd-agent-docking:hover, .rd-agent-docking:focus-visible, .rd-agent-docking.is-selected { transform: translate(-50%, -2px); }
.rd-agent-chemid { left: 32%; top: 84%; }
.rd-agent-design { left: 44%; top: 86%; }
.rd-agent-sar { left: 57%; top: 84%; }
.rd-agent-boltz { left: 65.5%; top: 17%; }
.rd-agent-admet { left: 69.5%; top: 83%; }
.rd-agent-synthesis { left: 79.5%; top: 12%; }
.rd-agent-decision { right: 1.6%; top: 21%; }

.rd-control-dock {
  position: relative;
  z-index: 12;
  min-height: 94px;
  display: grid;
  grid-template-columns: 44px minmax(220px, 1fr) minmax(180px, 0.72fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-top: 1px solid rgba(88, 185, 202, 0.14);
  background: linear-gradient(180deg, rgba(4, 18, 25, 0.94), rgba(3, 14, 20, 0.99));
}

.rd-current-agent-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--cp-mint);
  border: 1px solid rgba(32, 214, 164, 0.24);
  border-radius: 10px;
  background: rgba(32, 214, 164, 0.08);
}
.rd-current-agent-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rd-current-agent-copy { min-width: 0; }
.rd-current-agent-copy b { display: block; overflow: hidden; color: #eaf8f6; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.rd-current-agent-copy span { display: block; margin-top: 5px; overflow: hidden; color: #718f97; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.rd-dock-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(18px, 1fr));
  gap: 5px;
}
.rd-dock-progress span { position: relative; height: 3px; border-radius: 4px; background: rgba(101, 139, 148, 0.18); overflow: hidden; }
.rd-dock-progress span.is-done { background: rgba(32, 214, 164, 0.66); }
.rd-dock-progress span.is-active::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, transparent, #6ef3d1, transparent); animation: rd-progress-run 2.2s linear infinite; }

.rd-brain-link {
  color: #8faab0;
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.rd-brain-link:hover { color: var(--cp-cyan); }

.rd-enter-agent {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #021710;
  border-radius: 9px;
  background: linear-gradient(135deg, #24d6a9, #41e7c1);
  box-shadow: 0 10px 26px rgba(32, 214, 164, 0.16);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.rd-enter-agent:hover { color: #021710; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(32, 214, 164, 0.24); }

.rd-secondary-nav {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 1640px);
  min-height: 58px;
  margin: 0 auto 30px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #748e95;
  border: 1px solid rgba(90, 172, 184, 0.14);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(4, 16, 23, 0.75);
  font-size: 10px;
}
.rd-secondary-nav > span { display: flex; align-items: center; gap: 8px; }
.rd-secondary-nav > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--cp-mint); box-shadow: 0 0 8px rgba(32, 214, 164, 0.6); }
.rd-secondary-nav nav { display: flex; align-items: center; gap: 20px; }
.rd-secondary-nav a { color: #8ca8ae; text-decoration: none; }
.rd-secondary-nav a:hover { color: var(--cp-mint); }

.rd-flow-shell.is-paused *,
.rd-flow-shell.is-paused *::before,
.rd-flow-shell.is-paused *::after {
  animation-play-state: paused !important;
}

@keyframes rd-status-pulse { 50% { opacity: 0.45; transform: scale(0.78); } }
@keyframes rd-route-travel { to { stroke-dashoffset: -190; } }
@keyframes rd-paper-float { 50% { transform: translateY(-5px); border-color: rgba(89, 218, 208, 0.32); } }
@keyframes rd-node-pulse { 50% { transform: scale(1.35); opacity: 0.6; } }
@keyframes rd-molecule-fall { 0% { opacity: 0; transform: translateY(-14px) scale(0.7); } 18%, 72% { opacity: 1; } 100% { opacity: 0; transform: translate(12px, 86px) scale(0.5); } }
@keyframes rd-hit-breathe { 50% { transform: translateX(-50%) scale(1.08); filter: drop-shadow(0 0 10px rgba(92, 232, 210, 0.32)); } }
@keyframes rd-protein-float { 50% { transform: translate(-50%, -52%) rotate(1.8deg) scale(1.025); } }
@keyframes rd-core-breathe { 50% { transform: scale(1.12); opacity: 0.72; } }
@keyframes rd-orbit-a { to { transform: translate(-50%, -50%) rotate(342deg); } }
@keyframes rd-orbit-b { to { transform: translate(-50%, -50%) rotate(-342deg); } }
@keyframes rd-binding-scan { 0%, 14%, 86%, 100% { opacity: 0; transform: translateX(-155px); } 30%, 70% { opacity: 0.62; } 50% { opacity: 0.88; transform: translateX(155px); } }
@keyframes rd-contact-pulse { 50% { opacity: 0.35; } }
@keyframes rd-md-morph { 50% { border-radius: 56% 44% 43% 57%; transform: translateX(-50%) rotate(3deg) scale(1.03); } }
@keyframes rd-spin { to { transform: rotate(360deg); } }
@keyframes rd-chart-run { to { stroke-dashoffset: -80; } }
@keyframes rd-r6-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(73, 224, 176, 0.32); } }
@keyframes rd-liquid { 50% { transform: rotate(3deg) translateY(-2px); } }
@keyframes rd-progress-run { to { transform: translateX(100%); } }

@media (max-width: 1180px) {
  .rd-flow-heading { min-height: 128px; }
  .rd-flow-canvas { min-height: 650px; }
  .rd-flow-phases > span { padding-left: 42px; font-size: 10px; }
  .rd-flow-phases b { width: 32px; height: 32px; }
  .rd-agent { font-size: 7px; }
  .rd-agent-target { left: 14%; }
  .rd-agent-sar { left: 55%; }
  .rd-agent-admet { left: 68%; }
  .rd-route-network span { width: 30px; height: 30px; }
}

@media (max-width: 900px) {
  .rd-flow-hero { padding-right: 18px; padding-left: 18px; }
  .rd-flow-heading { align-items: flex-start; flex-direction: column; min-height: 0; padding: 24px; }
  .rd-flow-status { position: absolute; top: 22px; right: 22px; }
  .rd-flow-heading p { max-width: 620px; padding-right: 120px; }
  .rd-flow-canvas { min-height: 760px; }
  .rd-flow-phases { grid-template-columns: repeat(5, 1fr); }
  .rd-flow-phases > span { padding: 40px 4px 0; text-align: center; }
  .rd-flow-phases b { top: 0; left: 50%; transform: translateX(-50%); }
  .rd-flow-phases small { display: none; }
  .rd-evidence-scene { left: 1%; top: 27%; width: 20%; }
  .rd-screening-scene { left: 18%; top: 27%; width: 18%; }
  .rd-binding-scene { left: 31%; top: 20%; width: 39%; height: 60%; }
  .rd-validation-scene { left: 67%; top: 28%; width: 18%; }
  .rd-synthesis-scene { right: 0; top: 28%; width: 16%; }
  .rd-paper-stack { width: 130px; }
  .rd-knowledge-graph { transform: scale(.82); transform-origin: left bottom; }
  .rd-funnel { width: 118px; }
  .rd-md-cloud { width: 130px; }
  .rd-affinity-card, .rd-admet-list { width: 160px; }
  .rd-route-network span { width: 26px; height: 26px; font-size: 7px; }
  .rd-agent { padding: 6px 7px; }
  .rd-agent svg { width: 13px; height: 13px; }
  .rd-agent span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
  .rd-control-dock { grid-template-columns: 40px minmax(180px, 1fr) minmax(120px, .55fr) auto; }
  .rd-brain-link { display: none; }
}

@media (max-width: 700px) {
  .rd-flow-hero { padding: 14px 12px 18px; }
  .rd-flow-shell { border-radius: 15px; }
  .rd-flow-heading { padding: 20px 18px 18px; }
  .rd-flow-kicker { font-size: 9px; }
  .rd-flow-heading h1 { max-width: 290px; font-size: 34px; }
  .rd-flow-heading p { padding-right: 0; font-size: 12px; }
  .rd-flow-status { top: 18px; right: 16px; padding: 7px 9px; font-size: 8px; }
  .rd-flow-canvas { min-height: 880px; overflow: hidden; }
  .rd-flow-phases { top: 18px; right: 10px; left: 10px; }
  .rd-flow-phases > span { padding-top: 34px; font-size: 8px; }
  .rd-flow-phases b { width: 28px; height: 28px; font-size: 8px; }
  .rd-flow-route { top: 14px; height: 430px; opacity: .62; }
  .rd-evidence-scene { left: 2%; top: 18%; width: 26%; height: 37%; transform: scale(.78); transform-origin: left top; }
  .rd-screening-scene { left: 19%; top: 20%; width: 26%; height: 34%; transform: scale(.72); transform-origin: center top; }
  .rd-binding-scene { left: 25%; top: 16%; width: 56%; height: 43%; }
  .rd-validation-scene { left: 70%; top: 22%; width: 28%; height: 33%; transform: scale(.68); transform-origin: right top; }
  .rd-synthesis-scene { display: none; }
  .rd-protein-wrap { width: 250px; }
  .rd-agent-layer {
    top: auto;
    right: 14px;
    bottom: 20px;
    left: 14px;
    height: 390px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
  }
  .rd-agent {
    position: relative;
    inset: auto !important;
    width: 100%;
    min-width: 0;
    min-height: 37px;
    justify-content: flex-start;
    transform: none !important;
    font-size: 8px;
  }
  .rd-agent::after { display: none; }
  .rd-agent span { max-width: calc(100% - 34px); }
  .rd-agent-decision { grid-column: 1 / -1; }
  .rd-control-dock {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 82px;
    padding: 12px;
  }
  .rd-current-agent-icon { width: 36px; height: 36px; }
  .rd-current-agent-icon svg { width: 20px; height: 20px; }
  .rd-current-agent-copy b { font-size: 10px; }
  .rd-current-agent-copy span { max-width: 190px; font-size: 8px; }
  .rd-dock-progress, .rd-brain-link { display: none; }
  .rd-enter-agent { min-height: 38px; padding: 0 12px; font-size: 9px; }
  .rd-secondary-nav { width: calc(100% - 24px); align-items: flex-start; flex-direction: column; }
  .rd-secondary-nav nav { width: 100%; justify-content: space-between; gap: 10px; }
}

@media (max-width: 390px) {
  .rd-flow-heading h1 { max-width: 250px; font-size: 31px; }
  .rd-flow-status { position: static; align-self: flex-start; margin-top: 2px; }
  .rd-flow-canvas { min-height: 920px; }
  .rd-binding-scene { left: 19%; width: 66%; }
  .rd-agent-layer { height: 420px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .rd-agent-decision { grid-column: 1 / -1; }
  .rd-current-agent-copy span { max-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-flow-shell *,
  .rd-flow-shell *::before,
  .rd-flow-shell *::after {
    animation: none !important;
  }

  .rd-binding-scene {
    transform: none !important;
  }
}

/* ===== DRUG DISCOVERY VISUAL CANVAS V4 ===== */
.rd-flow-hero {
  padding: 10px clamp(10px, 1vw, 20px) 30px;
  background:
    radial-gradient(circle at 50% 35%, rgba(30, 107, 145, 0.1), transparent 38%),
    #020812;
}

.rd-flow-shell {
  width: min(100%, 1920px);
  max-width: none;
  border-color: rgba(111, 194, 219, 0.2);
  border-radius: 18px;
  background: #030914;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42), inset 0 1px rgba(164, 236, 255, 0.05);
}

.rd-flow-heading { display: none; }

.rd-flow-canvas {
  min-height: 0 !important;
  aspect-ratio: 1672 / 725;
  overflow: hidden;
  background: #030914;
  isolation: isolate;
  perspective: 1400px;
}

.rd-flow-grid,
.rd-flow-phases,
.rd-flow-route,
.rd-scene { display: none !important; }

.rd-visual-backplate {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: #030914;
}

.rd-visual-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 27.78%;
  filter: saturate(1.04) contrast(1.035) brightness(.98);
  transform: rotateX(var(--rd-tilt-x, 0deg)) rotateY(var(--rd-tilt-y, 0deg)) scale(1.028);
  transform-origin: 50% 50%;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), filter 180ms ease;
  will-change: transform;
}

.rd-visual-depth {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 51% 50%, transparent 0 21%, rgba(4, 10, 24, .06) 39%, rgba(1, 5, 13, .27) 100%),
    linear-gradient(90deg, rgba(2, 8, 17, .16), transparent 16% 84%, rgba(2, 8, 17, .2));
  box-shadow: inset 0 0 80px rgba(1, 4, 12, .38);
}

.rd-visual-scan {
  position: absolute;
  z-index: 4;
  top: -12%;
  bottom: -12%;
  left: -24%;
  width: 18%;
  opacity: .42;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(89, 239, 229, .035) 35%, rgba(114, 237, 255, .13) 50%, rgba(89, 239, 229, .035) 65%, transparent);
  filter: blur(1px);
  transform: skewX(-8deg);
  animation: rd-v4-scan 10s ease-in-out infinite;
}

.rd-visual-flowline {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 8.8%;
  width: 76%;
  height: 34%;
  opacity: .3;
  pointer-events: none;
  border-bottom: 2px solid rgba(74, 236, 232, .7);
  border-radius: 0 0 54% 43%;
  filter: drop-shadow(0 0 8px rgba(63, 208, 255, .72));
  transform: rotate(-4.4deg);
  animation: rd-v4-flow-breathe 4.8s ease-in-out infinite;
}

.rd-visual-particles {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rd-visual-particles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #70f6de;
  box-shadow: 0 0 7px #39e8d1, 0 0 16px rgba(61, 205, 255, .65);
  animation: rd-v4-particle 8.8s var(--d) linear infinite;
}

.rd-agent-layer {
  z-index: 8;
  inset: 0;
  height: auto;
}

.rd-agent {
  width: 12%;
  min-width: 0;
  height: 5.5%;
  min-height: 0;
  padding: 0;
  color: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  transform: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rd-agent svg,
.rd-agent span,
.rd-agent > i,
.rd-agent::after { opacity: 0; pointer-events: none; }

.rd-agent:hover,
.rd-agent:focus-visible,
.rd-agent.is-selected {
  color: transparent;
  border-color: rgba(86, 248, 218, .84);
  background: rgba(45, 225, 198, .055);
  box-shadow: 0 0 0 1px rgba(61, 208, 255, .14), 0 0 24px rgba(43, 236, 203, .23), inset 0 0 18px rgba(44, 213, 229, .06);
  transform: translateY(-1px);
}

.rd-agent:focus-visible { outline: 2px solid rgba(215, 255, 249, .9); outline-offset: 3px; }
.rd-agent-pharma { left: 4.6%; top: 25.4%; width: 10.5%; }
.rd-agent-target { left: 18.3%; top: 83.5%; width: 11.7%; }
.rd-agent-screen { left: 25.5%; top: 24.4%; width: 12.8%; }
.rd-agent-docking { left: 44.9%; top: 7.1%; width: 9.9%; transform: none; }
.rd-agent-docking:hover,
.rd-agent-docking:focus-visible,
.rd-agent-docking.is-selected { transform: translateY(-1px); }
.rd-agent-chemid { left: 31.6%; top: 83.6%; width: 10.1%; }
.rd-agent-design { left: 42.4%; top: 89.2%; width: 11.5%; }
.rd-agent-sar { left: 54.7%; top: 89.2%; width: 10.8%; }
.rd-agent-boltz { left: 62.6%; top: 15.6%; width: 10.5%; }
.rd-agent-admet { left: 66.6%; top: 89.2%; width: 9.3%; }
.rd-agent-synthesis { left: 75.7%; top: 7.8%; width: 10.2%; }
.rd-agent-decision { right: auto; left: 88.8%; top: 11.2%; width: 10.8%; }

.rd-control-dock {
  z-index: 12;
  min-height: 132px;
  grid-template-columns: minmax(235px, 1.2fr) minmax(270px, 1.7fr) minmax(200px, .9fr) minmax(230px, 1.25fr) auto;
  gap: 0;
  padding: 19px 24px;
  border-top: 1px solid rgba(117, 185, 223, .18);
  background: linear-gradient(180deg, rgba(8, 18, 33, .98), rgba(5, 13, 27, .995));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 -18px 50px rgba(0, 0, 0, .16);
}

.rd-dock-agent,
.rd-dock-progress-wrap,
.rd-dock-task,
.rd-dock-command {
  min-width: 0;
  min-height: 84px;
  padding: 0 22px;
  border-right: 1px solid rgba(116, 158, 188, .17);
}

.rd-dock-agent { padding-left: 0; }
.rd-dock-agent > small,
.rd-dock-progress-wrap > small,
.rd-dock-task > small,
.rd-dock-command > small {
  display: block;
  margin-bottom: 12px;
  color: #66778d;
  font-size: 10px;
  letter-spacing: .04em;
}

.rd-dock-agent-main { display: flex; align-items: center; gap: 13px; }
.rd-current-agent-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  color: #dffcf9;
  border-color: rgba(125, 216, 235, .28);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(61, 208, 255, .1), rgba(42, 239, 196, .035));
  box-shadow: inset 0 0 18px rgba(61, 208, 255, .04);
}
.rd-current-agent-icon svg { width: 30px; height: 30px; }
.rd-current-agent-copy b { color: #eef5fb; font-size: 14px; }
.rd-current-agent-copy span { max-width: 270px; color: #718195; font-size: 10px; }

.rd-dock-progress-wrap { display: flex; flex-direction: column; justify-content: flex-start; }
.rd-dock-progress { gap: 0; margin-top: 7px; }
.rd-dock-progress span { height: 3px; border-radius: 0; background: rgba(113, 132, 158, .24); }
.rd-dock-progress span.is-done { background: #48e5b9; box-shadow: 0 0 8px rgba(72, 229, 185, .52); }
.rd-dock-progress span.is-active { background: #7b94a9; }
.rd-dock-progress-wrap b { margin-top: 13px; color: #8392a4; font-size: 10px; font-weight: 500; }
.rd-dock-progress-wrap b em { float: right; color: #65788d; font-style: normal; }

.rd-dock-task b { display: block; overflow: hidden; color: #d5e0ec; font-size: 11px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.rd-dock-task span { display: block; margin-top: 9px; color: #718195; font-size: 10px; }

.rd-dock-command { display: flex; flex-direction: column; }
.rd-brain-link {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  color: #53667b;
  border: 1px solid rgba(112, 158, 190, .18);
  border-radius: 8px;
  background: rgba(4, 12, 25, .62);
  font-size: 10px;
}
.rd-brain-link span { color: #54e7d1; font-size: 17px; }
.rd-brain-link:hover { color: #96a9bb; border-color: rgba(74, 229, 202, .34); }
.rd-enter-agent { align-self: center; margin-left: 20px; min-height: 46px; }

@keyframes rd-v4-scan {
  0%, 12% { opacity: 0; transform: translateX(0) skewX(-8deg); }
  24% { opacity: .34; }
  72% { opacity: .46; }
  88%, 100% { opacity: 0; transform: translateX(820%) skewX(-8deg); }
}
@keyframes rd-v4-flow-breathe { 50% { opacity: .52; filter: drop-shadow(0 0 14px rgba(63, 208, 255, .9)); } }
@keyframes rd-v4-particle {
  0% { opacity: 0; transform: translate3d(-46px, 18px, 0) scale(.4); }
  16% { opacity: .95; }
  72% { opacity: .75; }
  100% { opacity: 0; transform: translate3d(92px, -38px, 0) scale(1.15); }
}

@media (max-width: 1320px) {
  .rd-control-dock { grid-template-columns: minmax(210px, 1.2fr) minmax(210px, 1.35fr) minmax(180px, .85fr) minmax(190px, 1fr) auto; padding-right: 18px; padding-left: 18px; }
  .rd-dock-agent, .rd-dock-progress-wrap, .rd-dock-task, .rd-dock-command { padding-right: 15px; padding-left: 15px; }
  .rd-current-agent-copy span { max-width: 190px; }
}

@media (max-width: 980px) {
  .rd-control-dock { grid-template-columns: minmax(210px, 1fr) minmax(220px, 1fr) minmax(180px, .75fr) auto; }
  .rd-dock-command { display: none; }
}

@media (max-width: 700px) {
  .rd-flow-hero { padding: 10px 10px 18px; }
  .rd-flow-shell { border-radius: 14px; }
  .rd-flow-heading {
    min-height: 0;
    display: block;
    padding: 24px 20px 20px;
    background: linear-gradient(180deg, rgba(7, 20, 35, .98), rgba(3, 10, 21, .94));
  }
  .rd-flow-heading > div:first-child { display: block; }
  .rd-flow-kicker { font-size: 9px; }
  .rd-flow-heading h1 { max-width: none; margin-top: 10px; font-size: clamp(31px, 10vw, 44px); }
  .rd-flow-heading p { max-width: none; margin-top: 11px; padding: 0; font-size: 11px; line-height: 1.7; }
  .rd-flow-status { position: static; width: max-content; margin-top: 15px; }
  .rd-flow-canvas { min-height: 860px !important; aspect-ratio: auto; }
  .rd-visual-backplate { height: 350px; }
  .rd-visual-art { object-position: 50% 28%; transform: scale(1.03); }
  .rd-visual-depth { background: linear-gradient(180deg, transparent 65%, #030914 100%); }
  .rd-visual-flowline { right: -24%; bottom: 7%; width: 125%; }
  .rd-agent-layer {
    top: 365px;
    right: 13px;
    bottom: auto;
    left: 13px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .rd-agent,
  .rd-agent-docking {
    position: relative;
    inset: auto !important;
    width: 100%;
    height: auto;
    min-height: 48px;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 10px;
    color: #b9d2db;
    border-color: rgba(86, 169, 187, .22);
    border-radius: 9px;
    background: rgba(5, 24, 34, .86);
    box-shadow: none;
    font-size: 8px;
    transform: none !important;
  }
  .rd-agent svg, .rd-agent span, .rd-agent > i { opacity: 1; }
  .rd-agent svg { width: 15px; height: 15px; }
  .rd-agent span { max-width: calc(100% - 34px); }
  .rd-agent:hover, .rd-agent:focus-visible, .rd-agent.is-selected { color: #f1fffc; background: rgba(8, 44, 48, .96); transform: none; }
  .rd-agent-decision { grid-column: 1 / -1; }
  .rd-control-dock { min-height: 88px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .rd-dock-agent { min-height: 0; padding: 0; border: 0; }
  .rd-dock-agent > small { display: none; }
  .rd-dock-agent-main { gap: 9px; }
  .rd-current-agent-icon { width: 40px; height: 40px; }
  .rd-current-agent-icon svg { width: 23px; height: 23px; }
  .rd-current-agent-copy b { font-size: 11px; }
  .rd-current-agent-copy span { max-width: 210px; font-size: 8px; }
  .rd-dock-progress-wrap, .rd-dock-task, .rd-dock-command { display: none; }
  .rd-enter-agent { min-height: 40px; margin: 0; padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-visual-art { transform: scale(1.015) !important; transition: none; }
}

/* The full Agent catalog remains below the visual workflow. */
.rd-agent-catalog {
  padding-top: 70px;
  background:
    radial-gradient(circle at 50% 0, rgba(31, 168, 165, .08), transparent 38%),
    linear-gradient(180deg, #050d18, #071119 58%, #080f14);
}
.rd-agent-catalog .section-header { max-width: 760px; }
.rd-agent-catalog .section-label { color: #43e2bd; }
.rd-agent-catalog .section-title { color: #eef8fb; }
.rd-agent-catalog .section-sub { color: #718994; }
.rd-agent-catalog .modules-grid {
  max-width: 1500px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}
.rd-agent-catalog .module-card {
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(91, 169, 186, .18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(8, 27, 37, .92), rgba(5, 17, 27, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 12px 35px rgba(0, 0, 0, .12);
}
.rd-agent-catalog a.module-card:hover {
  border-color: rgba(60, 226, 191, .54);
  background: linear-gradient(145deg, rgba(8, 40, 45, .97), rgba(6, 23, 33, .99));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22), 0 0 24px rgba(49, 218, 191, .08);
}
.rd-agent-catalog .module-icon-wrapper {
  width: 48px;
  height: 48px;
  color: #52e5c2;
  border-color: rgba(65, 218, 191, .24);
  background: rgba(30, 190, 167, .08);
}
.rd-agent-catalog .module-title { color: #edf7fa; }
.rd-agent-catalog .module-title .zh { color: #46cdb1; }
.rd-agent-catalog .module-desc { color: #78909b; }
.rd-agent-catalog .status-active {
  color: #53e4bf;
  border-color: rgba(62, 218, 184, .18);
  background: rgba(39, 190, 161, .08);
}
.rd-agent-catalog .status-coming {
  color: #d9aa5c;
  border-color: rgba(214, 164, 80, .18);
  background: rgba(178, 124, 38, .08);
}
.rd-agent-catalog .module-arrow { color: #51e2c1; }
.rd-agent-catalog .module-card.is-locked,
.rd-agent-catalog .module-card.is-guest-locked { cursor: not-allowed; opacity: .62; }
.rd-agent-catalog .module-card.is-empty { cursor: default; }

@media (max-width: 700px) {
  .rd-agent-catalog { padding: 54px 16px; }
  .rd-agent-catalog .section-header { margin-bottom: 30px !important; }
  .rd-agent-catalog .modules-grid { grid-template-columns: 1fr; gap: 10px; }
  .rd-agent-catalog .module-card { min-height: 132px; padding: 18px; }
}

/* Scientific figures are first-class Agent launch targets. */
.rd-graphic-layer {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}
.rd-graphic-agent {
  position: absolute;
  display: block;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(42, 235, 203, 0);
  box-shadow: 0 0 0 rgba(45, 226, 197, 0);
  -webkit-backdrop-filter: brightness(1) saturate(1);
  backdrop-filter: brightness(1) saturate(1);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease, transform 180ms ease;
}
.rd-graphic-agent::before,
.rd-graphic-agent::after {
  position: absolute;
  content: "";
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 300ms ease;
}
.rd-graphic-agent::before {
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(116, 255, 229, .16), rgba(50, 218, 224, .055) 45%, transparent 72%);
}
.rd-graphic-agent::after {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px;
  border: 1px solid rgba(158, 255, 240, .86);
  border-radius: 50%;
  box-shadow: 0 0 10px #56ead7, 0 0 24px rgba(77, 209, 255, .74);
  transform: scale(.35);
}
.rd-graphic-agent:hover,
.rd-graphic-agent:focus-visible {
  border-color: rgba(105, 245, 221, .62);
  background: rgba(36, 221, 194, .045);
  box-shadow: 0 0 0 1px rgba(76, 213, 255, .1), 0 0 28px rgba(44, 231, 199, .2), inset 0 0 30px rgba(71, 223, 240, .07);
  -webkit-backdrop-filter: brightness(1.3) saturate(1.36);
  backdrop-filter: brightness(1.3) saturate(1.36);
  transform: scale(1.018);
}
.rd-graphic-agent:hover::before,
.rd-graphic-agent:hover::after,
.rd-graphic-agent:focus-visible::before,
.rd-graphic-agent:focus-visible::after { opacity: 1; }
.rd-graphic-agent:hover::after,
.rd-graphic-agent:focus-visible::after { transform: scale(1.15); }
.rd-graphic-agent:focus-visible { outline: 2px solid #d9fff7; outline-offset: 3px; }
.rd-graphic-agent.is-selected { border-color: rgba(91, 231, 211, .18); }

.rd-graphic-pharma { left: 1.8%; top: 36%; width: 13.2%; height: 39%; border-radius: 14px; }
.rd-graphic-target { left: 1.2%; top: 75%; width: 17.4%; height: 20%; border-radius: 48%; }
.rd-graphic-screen {
  left: 25.3%;
  top: 31%;
  width: 15.3%;
  height: 51%;
  border-radius: 20% 20% 42% 42%;
  clip-path: polygon(13% 0, 87% 0, 67% 100%, 33% 100%);
}
.rd-graphic-docking { left: 38.7%; top: 20%; width: 22.2%; height: 62%; border-radius: 48% 52% 46% 54%; }
.rd-graphic-chemid { left: 31.2%; top: 67%; width: 14.2%; height: 18%; border-radius: 50%; }
.rd-graphic-design { z-index: 2; left: 47.1%; top: 38%; width: 12.5%; height: 27%; border-radius: 50%; }
.rd-graphic-sar { left: 55.3%; top: 68%; width: 17%; height: 16%; border-radius: 50%; transform: rotate(-5deg); }
.rd-graphic-sar:hover,
.rd-graphic-sar:focus-visible { transform: rotate(-5deg) scale(1.018); }
.rd-graphic-boltz { left: 61.8%; top: 23%; width: 14.2%; height: 28%; border-radius: 48% 52% 45% 55%; }
.rd-graphic-admet { left: 63.1%; top: 45%; width: 13.1%; height: 40%; border-radius: 11px; }
.rd-graphic-synthesis { left: 74.7%; top: 19%; width: 15.2%; height: 27%; border-radius: 18px; }
.rd-graphic-decision { left: 89.1%; top: 25%; width: 9.4%; height: 33%; border-radius: 46% 54% 52% 48%; }

@media (max-width: 700px) {
  .rd-graphic-layer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-graphic-agent,
  .rd-graphic-agent::before,
  .rd-graphic-agent::after { transition: none !important; }
}

/* ===== R&D FLOW V6 · REAL-TIME STRUCTURE / PRECISION HUD ===== */
.rd-flow-shell {
  border-radius: 6px;
  border-color: rgba(93, 197, 226, .38);
  background: #020711;
  box-shadow:
    0 42px 110px rgba(0, 0, 0, .56),
    0 0 0 1px rgba(44, 235, 214, .035),
    inset 0 0 70px rgba(18, 103, 135, .045);
}

.rd-flow-shell::before,
.rd-flow-shell::after {
  position: absolute;
  z-index: 20;
  width: 42px;
  height: 42px;
  content: "";
  pointer-events: none;
}
.rd-flow-shell::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid #55f2d4;
  border-left: 2px solid #55f2d4;
}
.rd-flow-shell::after {
  right: 8px;
  bottom: 8px;
  border-right: 2px solid #4ebde8;
  border-bottom: 2px solid #4ebde8;
}

.rd-flow-heading {
  min-height: 126px;
  display: flex;
  align-items: center;
  padding: 26px 34px 24px;
  border-bottom-color: rgba(79, 190, 224, .28);
  background:
    linear-gradient(90deg, rgba(8, 30, 43, .96), rgba(3, 12, 24, .99) 58%, rgba(6, 24, 36, .94)),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(71, 178, 203, .03) 64px);
}
.rd-flow-heading::after {
  position: absolute;
  right: 34px;
  bottom: -1px;
  width: min(420px, 32vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #36d4ed, #8e6eff);
  box-shadow: 0 0 12px rgba(54, 212, 237, .45);
}
.rd-flow-kicker {
  margin-bottom: 8px;
  color: #49e6c4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: .22em;
}
.rd-flow-heading h1 {
  color: #f0f8fb;
  font-size: clamp(34px, 3.15vw, 50px);
  font-weight: 620;
  letter-spacing: -.045em;
  text-shadow: 0 2px 24px rgba(88, 210, 234, .09);
}
.rd-flow-heading p { margin-top: 8px; color: #7895a5; font-size: 12px; }
.rd-flow-status {
  border-radius: 3px;
  border-color: rgba(70, 219, 203, .36);
  background: linear-gradient(135deg, rgba(12, 47, 57, .78), rgba(4, 16, 29, .92));
  box-shadow: inset 0 0 20px rgba(42, 223, 195, .045), 0 0 18px rgba(36, 203, 221, .05);
  font-family: "SFMono-Regular", Consolas, monospace;
  letter-spacing: .04em;
}

.rd-flow-canvas {
  min-height: clamp(620px, 42vw, 725px) !important;
  aspect-ratio: auto;
  background:
    radial-gradient(circle at 50% 47%, rgba(15, 99, 133, .2), transparent 28%),
    radial-gradient(circle at 77% 34%, rgba(93, 59, 174, .085), transparent 21%),
    linear-gradient(180deg, #020914, #020711 68%, #030913);
}
.rd-flow-canvas::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .5;
  background:
    linear-gradient(90deg, rgba(46, 152, 181, .06) 1px, transparent 1px),
    linear-gradient(rgba(46, 152, 181, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 83%);
}
.rd-flow-canvas::after {
  position: absolute;
  z-index: 6;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(87, 208, 226, .012) 4px),
    linear-gradient(90deg, rgba(1, 5, 12, .32), transparent 12% 88%, rgba(1, 5, 12, .32));
}

.rd-visual-backplate { z-index: 0; background: transparent; }
.rd-visual-art {
  opacity: .075;
  object-position: center 27.78%;
  filter: saturate(.4) contrast(1.18) brightness(.45) blur(1.1px);
  mix-blend-mode: screen;
}
.rd-visual-depth {
  z-index: 1;
  background:
    linear-gradient(180deg, #020914 0 15%, rgba(2, 9, 20, .84) 23%, transparent 46%),
    radial-gradient(circle at 50% 47%, transparent 0 22%, rgba(2, 7, 17, .18) 62%, rgba(1, 5, 12, .62) 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .5);
}
.rd-visual-scan { z-index: 2; opacity: .16; }
.rd-visual-flowline { z-index: 2; opacity: .1; }
.rd-visual-particles { z-index: 4; opacity: .56; }

.rd-flow-grid,
.rd-flow-phases,
.rd-flow-route,
.rd-scene { display: block !important; }
.rd-flow-grid { z-index: 1; opacity: .55; }
.rd-flow-phases { z-index: 9; top: 24px; right: 30px; left: 30px; }
.rd-flow-phases::before {
  background: linear-gradient(90deg, #35d8ba, #35b9dc 56%, #8b6ee8);
  box-shadow: 0 0 12px rgba(62, 214, 215, .17);
}
.rd-flow-phases > span {
  color: #b9ced7;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .025em;
}
.rd-flow-phases b {
  border-radius: 2px;
  border-color: rgba(62, 228, 199, .7);
  background: #04131c;
  box-shadow: inset 0 0 14px rgba(42, 225, 194, .08), 0 0 18px rgba(40, 221, 199, .09);
}
.rd-flow-route { z-index: 3; opacity: .7; }
.rd-route-glow { stroke-width: 7; filter: blur(5px); }
.rd-route-dash { stroke-width: 1.2; stroke-dasharray: 10 12; }

.rd-canvas-hud {
  position: absolute;
  z-index: 10;
  top: 72px;
  right: 30px;
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(73, 163, 190, .2);
  border-radius: 2px;
  background: rgba(3, 13, 25, .78);
  box-shadow: inset 0 0 18px rgba(48, 187, 205, .025);
  pointer-events: none;
}
.rd-canvas-hud > span { min-width: 128px; padding: 7px 10px; border-left: 1px solid rgba(73, 163, 190, .16); }
.rd-canvas-hud > span:first-child { border-left: 0; }
.rd-canvas-hud small,
.rd-canvas-hud b { display: block; font-family: "SFMono-Regular", Consolas, monospace; }
.rd-canvas-hud small { color: #506d7e; font-size: 6px; letter-spacing: .14em; }
.rd-canvas-hud b { margin-top: 4px; color: #8eaab8; font-size: 7px; font-weight: 550; letter-spacing: .07em; }
.rd-canvas-hud b i { width: 5px; height: 5px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #4cf1c9; box-shadow: 0 0 8px #4cf1c9; }

.rd-scene { z-index: 4; }
.rd-evidence-scene { left: 2.3%; top: 25%; width: 18%; height: 57%; }
.rd-screening-scene { left: 21%; top: 26%; width: 17%; height: 54%; }
.rd-binding-scene { left: 35.2%; top: 20%; width: 30%; height: 62%; }
.rd-validation-scene { left: 64%; top: 25%; width: 20%; height: 56%; }
.rd-synthesis-scene { right: 1.8%; top: 24%; width: 17%; height: 57%; }

.rd-paper-stack span,
.rd-affinity-card,
.rd-admet-list {
  border-radius: 2px;
  border-color: rgba(84, 181, 205, .35);
  background: linear-gradient(145deg, rgba(9, 31, 42, .93), rgba(3, 14, 25, .96));
  box-shadow: inset 0 0 18px rgba(58, 196, 211, .035), 0 12px 30px rgba(0, 0, 0, .2);
}
.rd-paper-stack span { border-left: 2px solid rgba(64, 226, 195, .56); }
.rd-knowledge-graph { opacity: .9; filter: drop-shadow(0 0 7px rgba(42, 212, 214, .12)); }
.rd-funnel::before { background: linear-gradient(180deg, rgba(64, 192, 223, .19), rgba(83, 69, 176, .055)); border-top-color: rgba(98, 230, 240, .7); }
.rd-funnel::after { border-color: rgba(82, 214, 227, .54); }
.rd-md-cloud { border-radius: 50%; border-color: rgba(82, 190, 218, .25); box-shadow: inset 0 0 38px rgba(42, 189, 219, .065), 0 0 30px rgba(91, 69, 188, .08); }
.rd-route-network span { border-radius: 2px; background: rgba(4, 20, 31, .96); }
.rd-flask { border-radius: 2px 2px 14px 14px; }

.rd-binding-scene {
  transform: rotateX(var(--rd-tilt-x)) rotateY(var(--rd-tilt-y));
  transform-style: preserve-3d;
}
.rd-protein-wrap {
  width: min(440px, 96%);
  overflow: hidden;
  border: 1px solid rgba(75, 188, 224, .42);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 114, 151, .18), transparent 58%),
    #020711;
  box-shadow:
    0 28px 50px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(65, 225, 211, .035),
    inset 0 0 45px rgba(34, 143, 185, .06);
  animation: rd-v6-core-float 8s ease-in-out infinite;
}
.rd-protein-wrap::before {
  z-index: 4;
  inset: 10px;
  border-radius: 0;
  background:
    linear-gradient(#61f0d5, #61f0d5) 0 0 / 24px 1px no-repeat,
    linear-gradient(#61f0d5, #61f0d5) 0 0 / 1px 24px no-repeat,
    linear-gradient(#57bce7, #57bce7) 100% 0 / 24px 1px no-repeat,
    linear-gradient(#57bce7, #57bce7) 100% 0 / 1px 24px no-repeat,
    linear-gradient(#57bce7, #57bce7) 0 100% / 24px 1px no-repeat,
    linear-gradient(#57bce7, #57bce7) 0 100% / 1px 24px no-repeat,
    linear-gradient(#9a7bf0, #9a7bf0) 100% 100% / 24px 1px no-repeat,
    linear-gradient(#9a7bf0, #9a7bf0) 100% 100% / 1px 24px no-repeat;
  filter: drop-shadow(0 0 6px rgba(71, 230, 215, .3));
  animation: none;
  pointer-events: none;
}
.rd-protein-wrap::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(105, 226, 235, .055) 50%, transparent 50.15%),
    linear-gradient(transparent 49.85%, rgba(105, 226, 235, .045) 50%, transparent 50.15%);
}
.rd-protein-wrap img { position: absolute; z-index: 1; inset: 0; transition: opacity 260ms ease; }
.rd-webgl-viewer { position: absolute; z-index: 2; inset: 0; opacity: 0; transition: opacity 280ms ease; }
.rd-webgl-viewer canvas { width: 100% !important; height: 100% !important; outline: 0; }
.is-webgl-ready .rd-webgl-viewer { opacity: 1; }
.is-webgl-ready .rd-protein-wrap img { opacity: 0; }
.rd-core-readout {
  position: absolute;
  z-index: 7;
  right: 3%;
  bottom: 1%;
  left: 3%;
  min-height: 38px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(64, 175, 205, .27);
  border-left: 2px solid #4be2c5;
  background: rgba(2, 10, 21, .86);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  font-family: "SFMono-Regular", Consolas, monospace;
}
.rd-core-readout span { color: #4ae6c5; font-size: 6px; letter-spacing: .14em; }
.rd-core-readout b { color: #c2d9e3; font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.rd-core-readout small { color: #566f80; font-size: 6px; }
.rd-binding-orbit { z-index: -1; border-color: rgba(54, 190, 215, .22); }
.rd-contact { z-index: 8; }

.rd-agent-layer { z-index: 12; }
.rd-agent {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 30px;
  padding: 6px 9px;
  color: #9ab6c2;
  border: 1px solid rgba(70, 169, 197, .38);
  border-radius: 2px;
  background: linear-gradient(110deg, rgba(5, 26, 36, .96), rgba(3, 13, 25, .96));
  box-shadow: inset 0 0 14px rgba(61, 200, 214, .025), 0 8px 18px rgba(0, 0, 0, .2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .01em;
  transform: none;
}
.rd-agent svg,
.rd-agent span,
.rd-agent > i,
.rd-agent::after { opacity: 1; }
.rd-agent svg { width: 13px; height: 13px; stroke: #4de4c6; }
.rd-agent > i { width: 5px; height: 5px; }
.rd-agent::after { height: 20px; background: linear-gradient(rgba(79, 204, 215, .58), transparent); }
.rd-agent:hover,
.rd-agent:focus-visible,
.rd-agent.is-selected {
  color: #effffd;
  border-color: #5df1d5;
  background: linear-gradient(110deg, rgba(7, 49, 53, .98), rgba(4, 19, 33, .99));
  box-shadow: 0 0 0 1px rgba(86, 221, 238, .13), 0 0 16px rgba(47, 224, 197, .18), inset 0 0 18px rgba(50, 211, 196, .06);
  transform: translateY(-1px);
}
.rd-agent-pharma { left: 4.2%; top: 20%; }
.rd-agent-target { left: 11.5%; top: 82%; }
.rd-agent-screen { left: 23.2%; top: 20%; }
.rd-agent-docking { left: 44.4%; top: 14%; transform: translateX(-50%); }
.rd-agent-docking:hover,
.rd-agent-docking:focus-visible,
.rd-agent-docking.is-selected { transform: translate(-50%, -1px); }
.rd-agent-chemid { left: 29.5%; top: 82%; }
.rd-agent-design { left: 43%; top: 84%; }
.rd-agent-sar { left: 56%; top: 82%; }
.rd-agent-boltz { left: 66%; top: 20%; }
.rd-agent-admet { left: 68%; top: 82%; }
.rd-agent-synthesis { left: 80.5%; top: 18%; }
.rd-agent-decision { right: 1.4%; top: 21%; }

.rd-graphic-layer { z-index: 11; }
.rd-graphic-agent {
  overflow: visible;
  border: 1px solid rgba(78, 178, 205, .22);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.rd-graphic-agent::before {
  inset: -1px;
  opacity: .42;
  background:
    linear-gradient(#64f2d6, #64f2d6) 0 0 / 18px 2px no-repeat,
    linear-gradient(#64f2d6, #64f2d6) 0 0 / 2px 18px no-repeat,
    linear-gradient(#5cc3ed, #5cc3ed) 100% 0 / 18px 2px no-repeat,
    linear-gradient(#5cc3ed, #5cc3ed) 100% 0 / 2px 18px no-repeat,
    linear-gradient(#5cc3ed, #5cc3ed) 0 100% / 18px 2px no-repeat,
    linear-gradient(#5cc3ed, #5cc3ed) 0 100% / 2px 18px no-repeat,
    linear-gradient(#9a7cf0, #9a7cf0) 100% 100% / 18px 2px no-repeat,
    linear-gradient(#9a7cf0, #9a7cf0) 100% 100% / 2px 18px no-repeat;
  filter: drop-shadow(0 0 4px rgba(76, 227, 218, .2));
}
.rd-graphic-agent::after {
  top: 50%;
  right: 8px;
  left: 8px;
  width: auto;
  height: 1px;
  margin: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(93, 246, 223, .8), transparent);
  box-shadow: 0 0 8px rgba(69, 226, 224, .5);
  transform: translateY(-10px);
}
.rd-graphic-agent:hover,
.rd-graphic-agent:focus-visible,
.rd-graphic-agent.is-selected {
  border-color: rgba(98, 244, 222, .82);
  background: rgba(42, 226, 202, .025);
  box-shadow: 0 0 0 1px rgba(64, 195, 231, .1), 0 0 18px rgba(44, 220, 207, .13), inset 0 0 22px rgba(55, 200, 218, .035);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translateY(-1px);
}
.rd-graphic-agent:hover::before,
.rd-graphic-agent:focus-visible::before,
.rd-graphic-agent.is-selected::before { opacity: 1; }
.rd-graphic-agent:hover::after,
.rd-graphic-agent:focus-visible::after { opacity: .7; animation: rd-v6-target-scan 1.4s ease-in-out infinite; }
.rd-graphic-agent:focus-visible { outline: 1px solid #e2fff9; outline-offset: 3px; }

.rd-graphic-pharma { left: 2.7%; top: 28%; width: 13%; height: 25%; border-radius: 2px; }
.rd-graphic-target { left: 2.8%; top: 64%; width: 14%; height: 16%; border-radius: 2px; }
.rd-graphic-screen { left: 23.7%; top: 32%; width: 13%; height: 38%; border-radius: 2px; clip-path: none; }
.rd-graphic-chemid { left: 27.7%; top: 69%; width: 8%; height: 11%; border-radius: 2px; }
.rd-graphic-docking { left: 36.5%; top: 24%; width: 27%; height: 50%; border-radius: 2px; }
.rd-graphic-design { z-index: 13; left: 45.6%; top: 41%; width: 9%; height: 18%; border-radius: 2px; }
.rd-graphic-boltz { left: 67.3%; top: 28%; width: 13%; height: 18%; border-radius: 2px; }
.rd-graphic-sar { left: 65.8%; top: 47%; width: 16.5%; height: 17%; border-radius: 2px; transform: none; }
.rd-graphic-sar:hover,
.rd-graphic-sar:focus-visible { transform: translateY(-1px); }
.rd-graphic-admet { left: 65.8%; top: 65%; width: 16.5%; height: 15%; border-radius: 2px; }
.rd-graphic-synthesis { left: 82%; top: 27%; width: 15%; height: 28%; border-radius: 2px; }
.rd-graphic-decision { left: 90%; top: 61%; width: 7%; height: 19%; border-radius: 2px; }

@keyframes rd-v6-core-float {
  50% { transform: translate(-50%, -51.2%) scale(1.008); }
}
@keyframes rd-v6-target-scan {
  0%, 100% { transform: translateY(-12px); opacity: 0; }
  25%, 75% { opacity: .72; }
  50% { transform: translateY(12px); opacity: .9; }
}

@media (max-width: 1180px) {
  .rd-flow-heading { min-height: 118px; padding: 22px 26px; }
  .rd-flow-canvas { min-height: 650px !important; }
  .rd-canvas-hud > span { min-width: 105px; }
  .rd-agent { font-size: 6.5px; padding: 5px 7px; }
  .rd-core-readout small { display: none; }
}

@media (max-width: 700px) {
  .rd-flow-shell { border-radius: 5px; }
  .rd-flow-heading { display: block; padding: 22px 20px 18px; }
  .rd-flow-heading h1 { font-size: clamp(30px, 9vw, 40px); }
  .rd-flow-heading p { font-size: 10px; }
  .rd-flow-canvas { min-height: 860px !important; }
  .rd-flow-grid,
  .rd-flow-phases,
  .rd-flow-route,
  .rd-evidence-scene,
  .rd-screening-scene,
  .rd-validation-scene,
  .rd-synthesis-scene,
  .rd-canvas-hud { display: none !important; }
  .rd-visual-backplate { height: 350px; }
  .rd-visual-art { opacity: 0; }
  .rd-binding-scene {
    left: 8%;
    top: 12px;
    width: 84%;
    height: 325px;
    display: block !important;
    transform: none !important;
  }
  .rd-protein-wrap { width: min(310px, 96%); animation: none; }
  .rd-webgl-viewer { display: none; }
  .rd-protein-wrap img { opacity: 1 !important; }
  .rd-core-readout { right: 5%; bottom: 0; left: 5%; grid-template-columns: auto 1fr; }
  .rd-binding-orbit { display: block; }
  .rd-agent-layer { top: 365px; }
  .rd-agent,
  .rd-agent-docking {
    min-height: 48px;
    padding: 8px 10px;
    color: #b9d2db;
    border-radius: 2px;
    font-size: 8px;
    transform: none !important;
  }
  .rd-graphic-layer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-protein-wrap { animation: none; }
  .rd-graphic-agent::after { animation: none !important; }
}

/* ===== R&D FLOW V7 · CLEAN PRODUCTION PASS ===== */
.rd-flow-grid,
.rd-flow-route,
.rd-scene { display: block !important; }
.rd-flow-phases { display: grid !important; }

.rd-visual-art { opacity: .035; }
.rd-visual-flowline { opacity: .16; }
.rd-visual-particles { opacity: .38; }

.rd-graphic-agent {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.rd-graphic-agent::before,
.rd-graphic-agent::after { opacity: 0; }
.rd-graphic-agent:hover,
.rd-graphic-agent:focus-visible,
.rd-graphic-agent.is-selected {
  border-color: rgba(98, 244, 222, .9);
  background: rgba(42, 226, 202, .018);
  box-shadow: 0 0 0 1px rgba(64, 195, 231, .08), 0 0 15px rgba(44, 220, 207, .11), inset 0 0 18px rgba(55, 200, 218, .025);
}
.rd-graphic-agent:hover::before,
.rd-graphic-agent:focus-visible::before,
.rd-graphic-agent.is-selected::before { opacity: 1; }

.rd-protein-wrap {
  border-color: rgba(75, 188, 224, .3);
  background:
    radial-gradient(circle at 50% 48%, rgba(21, 117, 149, .2), transparent 57%),
    linear-gradient(145deg, rgba(2, 9, 20, .98), rgba(3, 13, 26, .96));
  box-shadow: 0 26px 50px rgba(0, 0, 0, .28), inset 0 0 50px rgba(34, 143, 185, .055);
}
.rd-protein-wrap::before { opacity: .72; }
.rd-binding-scan { opacity: .28; }
.rd-contact { display: none; }
.rd-webgl-viewer { filter: saturate(1.08) contrast(1.04); }

.rd-paper-stack span,
.rd-affinity-card,
.rd-admet-list { border-color: rgba(84, 181, 205, .24); }
.rd-agent {
  border-color: rgba(70, 169, 197, .28);
  background: linear-gradient(110deg, rgba(5, 25, 36, .94), rgba(3, 13, 25, .94));
  box-shadow: 0 7px 16px rgba(0, 0, 0, .16);
}
.rd-agent:hover,
.rd-agent:focus-visible,
.rd-agent.is-selected {
  border-color: rgba(93, 241, 213, .86);
  box-shadow: 0 0 0 1px rgba(86, 221, 238, .08), 0 0 14px rgba(47, 224, 197, .14), inset 0 0 14px rgba(50, 211, 196, .045);
}

/* ===== R&D FLOW V8 · APPROVED ARTWORK + SYNCHRONIZED AGENTS ===== */
.rd-flow-heading { display: none; }
.rd-flow-canvas {
  min-height: 0 !important;
  aspect-ratio: 1672 / 725;
  background: #030914;
}
.rd-flow-canvas::before,
.rd-flow-canvas::after,
.rd-flow-grid,
.rd-flow-phases,
.rd-flow-route,
.rd-canvas-hud,
.rd-evidence-scene,
.rd-screening-scene,
.rd-validation-scene,
.rd-synthesis-scene { display: none !important; }

.rd-visual-backplate { z-index: 1; background: #030914; }
.rd-visual-art {
  opacity: 1;
  object-position: center 27.78%;
  filter: saturate(1.04) contrast(1.035) brightness(.98);
  mix-blend-mode: normal;
}
.rd-visual-depth {
  z-index: 2;
  background:
    radial-gradient(circle at 51% 50%, transparent 0 21%, rgba(4, 10, 24, .05) 42%, rgba(1, 5, 13, .22) 100%),
    linear-gradient(90deg, rgba(2, 8, 17, .1), transparent 16% 84%, rgba(2, 8, 17, .16));
  box-shadow: inset 0 0 70px rgba(1, 4, 12, .28);
}
.rd-visual-scan { z-index: 4; opacity: .3; }
.rd-visual-flowline { z-index: 3; opacity: .24; }
.rd-visual-particles { z-index: 5; opacity: .7; }

.rd-binding-scene {
  z-index: 6;
  left: 38.7%;
  top: 20%;
  width: 22.2%;
  height: 62%;
  display: block !important;
  transform: rotateX(var(--rd-tilt-x)) rotateY(var(--rd-tilt-y));
}
.rd-binding-scene .rd-binding-orbit,
.rd-binding-scene .rd-binding-scan { display: none; }
.rd-binding-scene .rd-protein-wrap {
  width: 100%;
  max-width: none;
  background: #020711;
  border-color: rgba(71, 188, 222, .26);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34), inset 0 0 36px rgba(36, 146, 184, .045);
}
.rd-binding-scene .rd-protein-wrap::before { opacity: .55; }
.rd-binding-scene .rd-core-readout { right: 1.5%; bottom: 1%; left: 1.5%; }

.rd-agent-layer { z-index: 9; }
.rd-agent {
  width: 12%;
  min-width: 0;
  height: 5.5%;
  min-height: 0;
  padding: 0;
  color: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  transform: none;
}
.rd-agent svg,
.rd-agent span,
.rd-agent > i,
.rd-agent::after { opacity: 0; pointer-events: none; }
.rd-agent:hover,
.rd-agent:focus-visible,
.rd-agent.is-selected {
  color: transparent;
  border-color: rgba(97, 246, 220, .86);
  background: rgba(44, 224, 199, .035);
  box-shadow: 0 0 0 1px rgba(61, 208, 255, .1), 0 0 18px rgba(43, 236, 203, .18), inset 0 0 14px rgba(44, 213, 229, .045);
  transform: translateY(-1px);
}
.rd-agent-pharma { left: 4.6%; top: 25.4%; width: 10.5%; }
.rd-agent-target { left: 18.3%; top: 83.5%; width: 11.7%; }
.rd-agent-screen { left: 25.5%; top: 24.4%; width: 12.8%; }
.rd-agent-docking { left: 44.9%; top: 7.1%; width: 9.9%; transform: none; }
.rd-agent-docking:hover,
.rd-agent-docking:focus-visible,
.rd-agent-docking.is-selected { transform: translateY(-1px); }
.rd-agent-chemid { left: 31.6%; top: 83.6%; width: 10.1%; }
.rd-agent-design { left: 42.4%; top: 89.2%; width: 11.5%; }
.rd-agent-sar { left: 54.7%; top: 89.2%; width: 10.8%; }
.rd-agent-boltz { left: 62.6%; top: 15.6%; width: 10.5%; }
.rd-agent-admet { left: 66.6%; top: 89.2%; width: 9.3%; }
.rd-agent-synthesis { left: 75.7%; top: 7.8%; width: 10.2%; }
.rd-agent-decision { right: auto; left: 88.8%; top: 11.2%; width: 10.8%; }

.rd-graphic-layer { z-index: 8; }
.rd-graphic-agent { border-color: transparent; background: transparent; box-shadow: none; }
.rd-graphic-agent::before,
.rd-graphic-agent::after { opacity: 0; }
.rd-graphic-agent:hover,
.rd-graphic-agent:focus-visible,
.rd-graphic-agent.is-selected {
  border-color: rgba(105, 245, 221, .78);
  background: rgba(36, 221, 194, .024);
  box-shadow: 0 0 0 1px rgba(76, 213, 255, .08), 0 0 18px rgba(44, 231, 199, .14), inset 0 0 22px rgba(71, 223, 240, .045);
  transform: scale(1.008);
}
.rd-graphic-agent:hover::before,
.rd-graphic-agent:focus-visible::before,
.rd-graphic-agent.is-selected::before { opacity: 1; }
.rd-graphic-agent:hover::after,
.rd-graphic-agent:focus-visible::after { opacity: .72; }
.rd-graphic-pharma { left: 1.8%; top: 36%; width: 13.2%; height: 39%; border-radius: 12px; }
.rd-graphic-target { left: 1.2%; top: 75%; width: 17.4%; height: 20%; border-radius: 48%; }
.rd-graphic-screen { left: 25.3%; top: 31%; width: 15.3%; height: 51%; border-radius: 18% 18% 38% 38%; clip-path: polygon(13% 0, 87% 0, 67% 100%, 33% 100%); }
.rd-graphic-docking { left: 38.7%; top: 20%; width: 22.2%; height: 62%; border-radius: 46% 50% 44% 52%; }
.rd-graphic-chemid { left: 31.2%; top: 67%; width: 14.2%; height: 18%; border-radius: 50%; }
.rd-graphic-design { z-index: 10; left: 47.1%; top: 38%; width: 12.5%; height: 27%; border-radius: 50%; }
.rd-graphic-sar { left: 55.3%; top: 68%; width: 17%; height: 16%; border-radius: 50%; transform: rotate(-5deg); }
.rd-graphic-sar:hover,
.rd-graphic-sar:focus-visible { transform: rotate(-5deg) scale(1.008); }
.rd-graphic-boltz { left: 61.8%; top: 23%; width: 14.2%; height: 28%; border-radius: 48% 52% 45% 55%; }
.rd-graphic-admet { left: 63.1%; top: 45%; width: 13.1%; height: 40%; border-radius: 9px; }
.rd-graphic-synthesis { left: 74.7%; top: 19%; width: 15.2%; height: 27%; border-radius: 15px; }
.rd-graphic-decision { left: 89.1%; top: 25%; width: 9.4%; height: 33%; border-radius: 46% 54% 52% 48%; }

.rd-catalog-sync-note {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 7px 11px;
  color: #779ba5;
  border: 1px solid rgba(70, 169, 186, .17);
  border-radius: 999px;
  background: rgba(6, 25, 34, .58);
  font-size: 9px;
}
.rd-catalog-sync-note i { width: 6px; height: 6px; border-radius: 50%; background: #4be2c1; box-shadow: 0 0 8px rgba(75, 226, 193, .6); }
.rd-agent-catalog .module-card.is-flow-match {
  border-color: rgba(77, 231, 196, .72);
  background: linear-gradient(145deg, rgba(8, 46, 48, .98), rgba(5, 23, 34, .99));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2), 0 0 0 1px rgba(64, 202, 224, .08), 0 0 24px rgba(49, 218, 191, .11);
}
.rd-agent-catalog .module-card.is-flow-match::before { opacity: 1; }

@media (max-width: 700px) {
  .rd-flow-heading { display: block; }
  .rd-flow-canvas { min-height: 860px !important; aspect-ratio: auto; }
  .rd-binding-scene { left: 8%; top: 12px; width: 84%; height: 325px; }
  .rd-visual-art { opacity: 0; }
  .rd-agent-layer { top: 365px; }
  .rd-agent,
  .rd-agent-docking {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 8px 10px;
    color: #b9d2db;
    border-color: rgba(86, 169, 187, .22);
    border-radius: 3px;
    background: rgba(5, 24, 34, .9);
    font-size: 8px;
  }
  .rd-agent svg,
  .rd-agent span,
  .rd-agent > i { opacity: 1; }
  .rd-catalog-sync-note { border-radius: 8px; line-height: 1.5; }
}

/* ===== R&D FLOW V10 · LIVE PROTEIN + BORDERLESS FOCUS GLOW ===== */
.rd-binding-scene-v10 {
  z-index: 6;
  left: 39.2%;
  top: 20%;
  width: 21.8%;
  height: 61%;
  pointer-events: none;
}
.rd-binding-scene-v10 .rd-protein-wrap {
  width: 100%;
  max-width: none;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #020711;
  box-shadow: none;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .3)) drop-shadow(0 0 24px rgba(55, 217, 217, .14));
  -webkit-mask-image: radial-gradient(circle at 50% 49%, #000 0 43%, rgba(0, 0, 0, .94) 49%, rgba(0, 0, 0, .42) 56%, transparent 64%);
  mask-image: radial-gradient(circle at 50% 49%, #000 0 43%, rgba(0, 0, 0, .94) 49%, rgba(0, 0, 0, .42) 56%, transparent 64%);
}
.rd-binding-scene-v10 .rd-protein-wrap::before {
  z-index: 0;
  inset: 8%;
  border: 0;
  border-radius: 50%;
  opacity: .74;
  background: radial-gradient(circle, rgba(39, 228, 207, .18), rgba(56, 145, 230, .08) 46%, transparent 72%);
  filter: blur(15px);
  animation: rd-v10-protein-aura 5.8s ease-in-out infinite;
}
.rd-binding-scene-v10 .rd-protein-wrap::after {
  z-index: 4;
  inset: 5%;
  border: 0;
  border-radius: 50%;
  opacity: .34;
  background: conic-gradient(from 20deg, transparent, rgba(70, 237, 219, .12), transparent 28%, rgba(86, 151, 242, .1), transparent 62%);
  filter: blur(8px);
  animation: rd-v10-protein-orbit 16s linear infinite;
}
.rd-binding-scene-v10 .rd-webgl-viewer {
  inset: 3%;
  filter: saturate(1.2) contrast(1.08) brightness(1.06) drop-shadow(0 0 14px rgba(39, 207, 219, .22));
}
.rd-binding-scene-v10 .rd-webgl-viewer canvas { background: #020711 !important; }
.rd-binding-scene-v10 .rd-core-readout {
  right: 13%;
  bottom: 3%;
  left: 13%;
  min-height: 28px;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(3, 15, 27, .7);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2), 0 0 18px rgba(48, 218, 207, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rd-agent:hover,
.rd-agent:focus-visible,
.rd-agent.is-selected {
  border-color: transparent;
  background: radial-gradient(ellipse at center, rgba(74, 243, 214, .22), rgba(47, 183, 232, .075) 46%, transparent 76%);
  box-shadow: none;
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(66, 237, 213, .28));
}

.rd-graphic-agent,
.rd-graphic-agent:hover,
.rd-graphic-agent:focus-visible,
.rd-graphic-agent.is-selected {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.rd-graphic-agent:hover,
.rd-graphic-agent:focus-visible,
.rd-graphic-agent.is-selected { transform: none; }
.rd-graphic-sar,
.rd-graphic-sar:hover,
.rd-graphic-sar:focus-visible,
.rd-graphic-sar.is-selected { transform: rotate(-5deg); }
.rd-graphic-agent::before {
  inset: -12%;
  border: 0;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(102, 255, 227, .3) 0 18%, rgba(49, 194, 244, .14) 43%, transparent 74%);
  filter: blur(7px) drop-shadow(0 0 8px rgba(65, 231, 218, .14));
  mix-blend-mode: screen;
  transition: opacity 180ms ease, transform 240ms ease;
}
.rd-graphic-agent::after {
  inset: 10% 5%;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 50%;
  opacity: 0;
  background: linear-gradient(108deg, transparent 34%, rgba(121, 255, 233, .16) 49%, rgba(92, 190, 255, .1) 53%, transparent 67%);
  box-shadow: none;
  filter: blur(5px);
  transform: translateX(-24%);
}
.rd-graphic-agent.is-selected::before {
  opacity: .74;
  animation: rd-v10-focus-breathe 2.8s ease-in-out infinite;
}
.rd-graphic-agent:hover::before,
.rd-graphic-agent:focus-visible::before { opacity: .92; }
.rd-graphic-agent:hover::after,
.rd-graphic-agent:focus-visible::after {
  opacity: .78;
  animation: rd-v10-focus-sweep 1.35s ease-out infinite;
}
.rd-graphic-agent:focus-visible {
  outline: 2px solid rgba(201, 255, 245, .86);
  outline-offset: 4px;
}

@keyframes rd-v10-protein-aura {
  50% { opacity: .96; transform: scale(1.045); }
}
@keyframes rd-v10-protein-orbit {
  to { transform: rotate(360deg); }
}
@keyframes rd-v10-focus-breathe {
  50% { opacity: .82; transform: scale(1.035); }
}
@keyframes rd-v10-focus-sweep {
  0% { opacity: 0; transform: translateX(-28%); }
  35% { opacity: .78; }
  100% { opacity: 0; transform: translateX(28%); }
}

@media (max-width: 700px) {
  .rd-binding-scene-v10 { left: 8%; top: 12px; width: 84%; height: 325px; }
  .rd-binding-scene-v10 .rd-protein-wrap { width: min(310px, 96%); }
  .rd-binding-scene-v10 .rd-core-readout { right: 12%; bottom: 1%; left: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-binding-scene-v10 .rd-protein-wrap::before,
  .rd-binding-scene-v10 .rd-protein-wrap::after,
  .rd-graphic-agent::before,
  .rd-graphic-agent::after { animation: none !important; }
}
