/* ============================================================
   ============   HERO — AGENT ORCHESTRATION GRAPHIC  =========
   ====  Ported from NexusTech_2. Fully self-contained:    ====
   ====  all variables are scoped to .orch_panel so the     ===
   ====  surrounding light theme is untouched.              ====
   ============================================================ */

.orch_panel {
  /* ---- scoped tokens ---- */
  --ai-cyan: #7FBF4D;
  --ai-line: rgba(255, 255, 255, 0.08);
  --ai-line-2: rgba(140, 170, 255, 0.22);
  --ai-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;

  width: 100%;
  max-width: 1280px;
  margin: 60px auto 48px;
  border-radius: 18px;
  border: 1px solid var(--ai-line-2);
  background:
    radial-gradient(120% 140% at 50% -10%, rgba(31, 80, 214, 0.12), transparent 60%),
    rgba(8, 10, 22, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 100px -55px rgba(31, 80, 214, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 14px 18px 18px;
  overflow: hidden;
}

/* Little window-chrome header */
.orch_head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--ai-line);
  margin-bottom: 6px;
}

.orch_hd {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.orch_hd.r {
  background: #8FD45C;
}

.orch_hd.y {
  background: #8FD45C;
}

.orch_hd.g {
  background: #4ade80;
}

.orch_head_t {
  margin-left: 8px;
  font-family: var(--ai-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 238, 247, 0.7);
}

.orch_head_live {
  margin-left: auto;
  font-family: var(--ai-mono);
  font-size: 11px;
  color: #4ade80;
}

.orch {
  position: relative;
  width: 100%;
  aspect-ratio: 1640 / 560;
  overflow: hidden;
}

.orch_links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orch_links path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.orch_p1 path {
  stroke: rgba(31, 80, 214, 0.45);
  stroke-dasharray: 7 9;
  animation: orch-flow 1.4s linear infinite;
}

.orch_p1 path:nth-child(even) {
  stroke: rgba(127, 191, 77, 0.5);
}

.orch_p2 path {
  stroke: rgba(52, 211, 153, 0.6);
  stroke-dasharray: 7 9;
  animation: orch-flow 1.2s linear infinite;
}

@keyframes orch-flow {
  to {
    stroke-dashoffset: -32;
  }
}

.orch_dots .d {
  filter: drop-shadow(0 0 5px currentColor);
}

.orch_dots .pu {
  fill: #8FA8FF;
  color: #8FA8FF;
}

.orch_dots .go {
  fill: #8FD45C;
  color: #8FD45C;
}

.orch_dots .gr {
  fill: #4ade80;
  color: #4ade80;
}

/* Source tool pills (left column) */
.orch_node {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ai-line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e8ebf5;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.85);
}

.orch_ic {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(127, 191, 77, 0.2), rgba(31, 80, 214, 0.22));
  box-shadow: inset 0 0 0 1px var(--ai-line);
  color: #cdd6ff;
  font-size: 14px;
}

/* Agent cards */
.orch_card {
  position: absolute;
  width: 18.3%;
  padding: 12px 14px 14px;
  border-radius: 12px;
  background: rgba(10, 13, 28, 0.82);
  border: 1px solid var(--ai-line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 54px -28px rgba(0, 0, 0, 0.95);
  font-family: var(--ai-mono);
}

.orch_card .orch_t {
  font-family: "Open Sans", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--ai-line);
}

.orch_card.sec .orch_t {
  color: #8FD45C;
}

.orch_card.com .orch_t {
  color: #5aa8ff;
}

.orch_card.arc .orch_t {
  color: #8FA8FF;
}

.orch_card.sql .orch_t {
  color: #4ade80;
}

.orch_l {
  font-size: 11px;
  line-height: 1.7;
  min-height: 1.7em;
  /* keep card height stable as lines change */
  color: #cfd6e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* fade each phase line in when its content updates */
@keyframes orch-line-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* subtle pulse on the card whose phase just advanced */
.orch_card.is-step {
  box-shadow: 0 0 0 1px var(--ai-cyan), 0 22px 54px -28px rgba(0, 0, 0, 0.95), 0 0 30px -6px rgba(127, 191, 77, 0.55);
  transition: box-shadow 0.4s ease;
}

.orch_l.dim {
  color: rgba(207, 214, 230, 0.45);
}

.orch_l.ok {
  color: #6ee7a8;
}

.orch_l.err {
  color: #8FD45C;
}

/* Final report card */
.orch_report {
  position: absolute;
  width: 25%;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: rgba(10, 13, 28, 0.85);
  border: 1px solid var(--ai-line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12), 0 34px 74px -34px rgba(52, 211, 153, 0.5);
}

.orch_rep_h {
  font-family: var(--ai-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(234, 238, 247, 0.7);
  margin-bottom: 12px;
}

.orch_rep_sub {
  font-family: var(--ai-mono);
  font-size: 12px;
  color: #8FA8FF;
  margin-bottom: 12px;
}

.orch_rep_l {
  font-size: 13px;
  line-height: 1.85;
  color: #dbe2f0;
}

.orch_rep_l.str {
  font-weight: 700;
  color: #ffffff;
}

.orch_rep_gap {
  height: 12px;
}

/* While the sequence is running, items start dim and activate one-by-one.
   Without JS (no .run) everything stays fully visible. */
.orch_report.run .orch_rep_l {
  opacity: 0.18;
  transform: translateX(8px);
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.45s ease;
}

.orch_report.run .orch_rep_l.on {
  opacity: 1;
  transform: none;
  color: #eaf2ff;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.4);
}

.orch_report.run .orch_rep_l.str.on {
  color: #ffffff;
}

@media (max-width: 1100px) {

  .orch_card,
  .orch_report {
    font-size: 10px;
  }

  .orch_card .orch_t {
    font-size: 12px;
  }

  .orch_node {
    font-size: 12px;
    padding: 7px 14px 7px 8px;
  }

  .orch_ic {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}

/* Below this width the graphic gets too dense — show the panel header only */
@media (max-width: 900px) {
  .orch {
    display: none;
  }

  .orch_panel {
    margin-bottom: 32px;
  }
}

/* ============================================================
   ============   HERO TEXT — gradient AI headline  ==========
   ====  Ported from NexusTech_2 hero_v2_text. Centered,    ===
   ====  animated gradient accent + glowing gradient CTA.   ===
   ============================================================ */

.main_bannerrs .hero_v2_text {
  --ai-grad: linear-gradient(120deg, #7FBF4D 0%, #1F50D6 100%);
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 90px auto 40px;
  text-align: center;
}

.main_bannerrs .hero_v2_title {
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 18px;
  text-shadow: 0 0 38px rgba(31, 80, 214, 0.22);
}

/* Animated gradient accent on the rotating typed words */
.main_bannerrs .hero_v2_text .hero_grad {
  background: var(--ai-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  animation: ai-grad-pan 6s linear infinite alternate;
}

@keyframes ai-grad-pan {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.main_bannerrs .hero_v2_sub {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(234, 238, 247, 0.82);
  max-width: 640px;
  margin: 0 auto 30px;
}

.main_bannerrs .hero_v2_actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* Glowing gradient primary CTA */
.main_bannerrs .hero_v2_cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ai-grad);
  background-size: 180% auto;
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 18px 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 34px -10px rgba(31, 80, 214, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.25s ease;
}

.main_bannerrs .hero_v2_cta:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -10px rgba(31, 80, 214, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.main_bannerrs .hero_v2_cta_arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Secondary ghost button */
.main_bannerrs .hero_v2_cta_ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.main_bannerrs .hero_v2_cta_ghost:hover {
  background-color: #fff;
  color: #0a0718 !important;
}

@media (max-width: 880px) {
  .main_bannerrs .hero_v2_text {
    margin-top: 50px;
  }

  .main_bannerrs .hero_v2_cta,
  .main_bannerrs .hero_v2_cta_ghost {
    font-size: 15px;
    padding: 11px 22px;
  }
}