/* Pages design system stylesheet - Neumage.ai */

.page-hero {
  padding: 115px 0 60px;
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 45%, rgba(124, 255, 203, 0.08), transparent 30%);
  pointer-events: none;
}

.page-hero-grid {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 0 0 20px;
  font-weight: 800;
  color: #ffffff;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--accent, #7cffcb);
}

.section-light .page-hero h1 em {
  color: #08785b;
}

.page-hero p {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted, #9ca3af);
  margin: 0 0 28px;
}

.page-visual {
  height: 440px;
  border: 1px solid rgba(156, 163, 175, 0.2);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(124, 255, 203, 0.14), transparent 36%), #15181d;
  border-radius: 20px;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
}

.visual-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 150px;
  transform: translate(-50%, -50%) rotate(-8deg);
  border: 1px solid rgba(124, 255, 203, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(124, 255, 203, 0.12), inset 0 0 30px rgba(124, 255, 203, 0.08);
  animation: pagePulse 4s ease-in-out infinite;
}

.visual-core::before,
.visual-core::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(124, 255, 203, 0.3);
  border-radius: 50%;
  inset: 18px;
}

.visual-core::after {
  inset: 42px;
}

.visual-eeg .visual-core {
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(124, 255, 203, 0.16);
}

.visual-eeg .visual-core::before {
  inset: 28px;
  height: 1px;
  top: 45%;
  border-width: 1px 0 0;
}

.visual-mri .visual-core {
  border-radius: 48%;
  width: 210px;
  height: 260px;
  transform: translate(-50%, -50%) rotate(-10deg);
}

.visual-fusion .visual-core {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(124, 255, 203, 0.16);
}

.visual-fusion::after {
  content: 'EEG + MRI';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 11px var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent, #7cffcb);
}

.visual-stack .visual-core {
  width: 280px;
  height: 80px;
  border-radius: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 45px rgba(124, 255, 203, 0.12);
}

.visual-stack .visual-core::before {
  inset: 18px;
  border-radius: 0;
}

.visual-research .visual-core {
  width: 250px;
  height: 250px;
  border-radius: 50%;
}

.visual-apps .visual-core {
  width: 300px;
  height: 100px;
  border-radius: 0 0 50% 50%;
  transform: translate(-50%, -50%) rotate(0);
}

.visual-label {
  position: absolute;
  top: 20px;
  left: 20px;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  color: var(--accent, #7cffcb);
}

.visual-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font: 9px var(--mono);
  color: #9ca3af;
}

.page-section {
  padding: 90px 0;
}

.page-width {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
}

.page-section h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 0 0 28px;
  font-weight: 800;
  max-width: 820px;
  color: #ffffff;
}

.page-section h2 em {
  font-style: normal;
  color: var(--accent, #7cffcb);
}

.section-light.page-section h2,
.page-section.section-light h2 {
  color: #101216;
}

.section-light.page-section h2 em,
.page-section.section-light h2 em {
  color: #08785b;
}

.page-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.page-step {
  padding: 24px 20px;
  border: 1px solid var(--border, rgba(156, 163, 175, 0.2));
  border-radius: 18px;
  min-height: 130px;
  background: var(--panel, rgba(21, 24, 29, 0.82));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-light .page-step,
.page-section.section-light .page-step {
  background: #ffffff;
  border: 1px solid rgba(210, 220, 220, 0.8);
  box-shadow: 0 4px 20px rgba(23, 26, 31, 0.04);
}

.page-step span {
  font: 11px var(--mono);
  color: var(--accent, #7cffcb);
}

.section-light .page-step span,
.page-section.section-light .page-step span {
  color: #08785b;
}

.page-step strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-light .page-step strong,
.page-section.section-light .page-step strong {
  color: #171a1f;
}

.page-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.page-card {
  min-height: 160px;
  padding: 28px 26px;
  border: 1px solid var(--border, rgba(156, 163, 175, 0.2));
  border-radius: 20px;
  background: var(--panel, rgba(21, 24, 29, 0.82));
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-light .page-card,
.page-section.section-light .page-card {
  background: #ffffff;
  border: 1px solid rgba(210, 220, 220, 0.8);
  box-shadow: 0 4px 20px rgba(23, 26, 31, 0.04);
}

.page-card:hover {
  border-color: var(--accent, #7cffcb);
  transform: translateY(-2px);
}

.section-light .page-card:hover,
.page-section.section-light .page-card:hover {
  border-color: #08785b;
}

.page-card span {
  font: 11px var(--mono);
  color: var(--accent, #7cffcb);
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
}

.section-light .page-card span,
.page-section.section-light .page-card span {
  color: #08785b;
}

.page-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted, #9ca3af);
  margin-top: 14px;
  margin-bottom: 0;
}

.section-light .page-card p,
.page-section.section-light .page-card p {
  color: #505761;
}

.page-cta {
  text-align: center;
  padding: 90px 0;
}

.page-cta .page-width {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cta h2 {
  margin-bottom: 20px;
  color: #ffffff;
}

.section-light.page-cta h2,
.page-section.section-light.page-cta h2 {
  color: #101216;
}

.page-cta p {
  color: var(--muted, #9ca3af);
  margin: 0 0 24px;
  font-size: 1.1rem;
}

.section-light.page-cta p,
.page-section.section-light.page-cta p {
  color: #505761;
}

.page-cta .actions {
  justify-content: center;
}

@keyframes pagePulse {

  0%,
  100% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.98) rotate(-8deg);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04) rotate(-5deg);
  }
}

/* Interactive demo shell styling */
.demo-shell {
  width: 100% !important;
  max-width: 100% !important;
  background-color: #ffffff !important;
  padding: 90px 0 !important;
  margin: 0 !important;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.demo-header h1,
.demo-header h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 0 0 16px;
  font-weight: 800;
  max-width: 780px;
}

.demo-header h2 em {
  font-style: normal;
  color: var(--accent, #7cffcb);
}

.demo-header p {
  max-width: 470px;
  color: var(--muted, #9ca3af);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(156, 163, 175, 0.2);
  margin-bottom: 24px;
}

.demo-tab {
  background: none;
  border: 0;
  color: var(--muted, #9ca3af);
  padding: 12px 18px;
  font: 600 12px var(--mono);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.demo-tab.active {
  color: var(--accent, #7cffcb);
  border-bottom: 2px solid var(--accent, #7cffcb);
}

.demo-pane {
  display: none;
}

.demo-pane.active {
  display: block;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.7fr;
  gap: 20px;
}

.demo-card {
  background: #101216 !important;
  border: 1px solid rgba(156, 163, 175, 0.25) !important;
  border-radius: 20px;
  overflow: hidden;
  color: #f4f5f7;
}

.demo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(156, 163, 175, 0.18);
  color: #ffffff;
}

.demo-card-head span {
  font: 11px var(--mono);
  color: var(--muted, #9ca3af);
}

.demo-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(156, 163, 175, 0.18);
}

.demo-controls select,
.demo-controls button {
  background: #171a1f;
  color: #f4f5f7;
  border: 1px solid #3a3e45;
  border-radius: 8px;
  padding: 9px 11px;
}

.demo-controls button {
  cursor: pointer;
}

.demo-controls button:hover {
  border-color: var(--accent, #7cffcb);
}

.demo-canvas {
  display: block;
  width: 100%;
  height: 380px;
}

.demo-stat {
  padding: 22px;
  border-bottom: 1px solid rgba(156, 163, 175, 0.18);
}

.demo-stat:last-child {
  border-bottom: 0;
}

.demo-stat b {
  display: block;
  font-size: 28px;
  margin-top: 6px;
  color: #ffffff;
}

.demo-stat small {
  font: 11px var(--mono);
  color: #9ca3af;
}

.mri-wrap {
  position: relative;
}

.mri-canvas {
  display: block;
  width: 100%;
  height: 440px;
}

.slice-control {
  padding: 18px 20px;
  border-top: 1px solid rgba(156, 163, 175, 0.18);
  color: #f4f5f7;
}

.slice-control input {
  width: 100%;
  accent-color: var(--accent, #7cffcb);
}

.fusion-map {
  height: 440px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(124, 255, 203, 0.08), transparent 45%);
}

.fusion-core {
  width: 190px;
  height: 190px;
  border: 1px solid rgba(124, 255, 203, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 0 80px rgba(124, 255, 203, 0.08);
  color: #ffffff;
}

.fusion-node {
  position: absolute;
  padding: 12px 16px;
  border: 1px solid #3a3e45;
  background: #171a1f;
  border-radius: 10px;
  font: 12px var(--mono);
  color: #ffffff;
}

.node-eeg {
  left: 10%;
  top: 22%;
}

.node-mri {
  right: 10%;
  top: 22%;
}

.node-dti {
  left: 14%;
  bottom: 20%;
}

.node-fmri {
  right: 14%;
  bottom: 20%;
}

.fusion-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, #7cffcb), transparent);
  transform-origin: left center;
  width: 34%;
}

.line-a {
  left: 25%;
  top: 34%;
  transform: rotate(15deg);
}

.line-b {
  right: 25%;
  top: 34%;
  transform: rotate(165deg);
}

.line-c {
  left: 28%;
  bottom: 32%;
  transform: rotate(-15deg);
}

.line-d {
  right: 28%;
  bottom: 32%;
  transform: rotate(195deg);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.metric {
  border: 1px solid rgba(156, 163, 175, 0.2);
  border-radius: 12px;
  padding: 16px;
  background: #0c0f12;
}

.metric span {
  font: 10px var(--mono);
  color: #9ca3af;
}

.metric b {
  display: block;
  font-size: 22px;
  margin-top: 6px;
  color: #ffffff;
}

.demo-note {
  padding: 14px 18px;
  color: #9ca3af;
  font-size: 12px;
  border-top: 1px solid rgba(156, 163, 175, 0.18);
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
}

.scenario {
  border: 1px solid rgba(156, 163, 175, 0.2);
  background: #16191e;
  color: #f4f5f7;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  min-height: 100px;
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.scenario:hover,
.scenario.active {
  border-color: var(--accent, #7cffcb);
  background: rgba(124, 255, 203, 0.08);
}

.scenario b {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

.scenario span {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

.run-btn {
  margin: 0 20px 20px;
  border: 0;
  background: var(--accent-strong, #7cffcb);
  color: #07100c;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.run-btn:hover {
  transform: translateY(-2px);
  background: var(--accent, #7cffcb);
}

.run-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.trace {
  height: 240px;
  background: #090b0e;
  border-top: 1px solid rgba(156, 163, 175, 0.18);
  overflow: hidden;
}

.trace svg {
  width: 100%;
  height: 100%;
}

.trace path {
  fill: none;
  stroke: var(--accent, #7cffcb);
  stroke-width: 2;
}

.result {
  border: 1px solid rgba(124, 255, 203, 0.3);
  background: rgba(124, 255, 203, 0.06);
  border-radius: 12px;
  padding: 18px;
}

.result strong {
  color: var(--accent, #7cffcb);
}

@media (max-width: 1280px) {

  .page-hero-grid,
  .page-width,
  .demo-shell {
    width: min(1180px, calc(100% - 40px));
  }
}

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

  .page-hero {
    padding-top: 115px;
  }

  .page-visual {
    height: 400px;
  }

  .page-steps {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

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

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

  .demo-header {
    display: block;
  }

  .demo-header p {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {

  .page-hero-grid,
  .page-width,
  .demo-shell {
    width: calc(100% - 32px);
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }

  .page-hero p {
    font-size: 1rem;
  }

  .page-section {
    padding: 70px 0;
  }

  .page-section h2 {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }

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

  .page-cards {
    grid-template-columns: 1fr;
  }

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

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

/* Global Theme Color Scoping Overrides */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light .page-hero h1,
.section-light .page-section h2,
.section-light .demo-header h1,
.section-light .demo-header h2,
.section-light .page-cta h2,
.section-light.demo-shell .demo-header h1,
.section-light.demo-shell .demo-header h2 {
  color: #101216 !important;
}

.section-light h1 em,
.section-light h2 em,
.section-light h3 em,
.section-light .page-hero h1 em,
.section-light .page-section h2 em,
.section-light .demo-header h2 em,
.section-light .page-cta h2 em,
.section-light.demo-shell .demo-header h2 em {
  color: #08785b !important;
  font-style: normal;
}

.section-light p,
.section-light .page-hero p,
.section-light .page-section p,
.section-light .demo-header p,
.section-light .page-cta p,
.section-light.demo-shell .demo-header p {
  color: #3e444c !important;
}

.section-light .eyebrow {
  color: #08785b !important;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark .page-hero h1,
.section-dark .page-section h2,
.section-dark .demo-header h1,
.section-dark .demo-header h2,
.section-dark .page-cta h2,
.section-dark.demo-shell .demo-header h1,
.section-dark.demo-shell .demo-header h2 {
  color: #ffffff !important;
}

.section-dark h1 em,
.section-dark h2 em,
.section-dark h3 em,
.section-dark .page-hero h1 em,
.section-dark .page-section h2 em,
.section-dark .demo-header h2 em,
.section-dark .page-cta h2 em,
.section-dark.demo-shell .demo-header h2 em {
  color: #7cffcb !important;
  font-style: normal;
}

.section-dark p,
.section-dark .page-hero p,
.section-dark .page-section p,
.section-dark .demo-header p,
.section-dark .page-cta p,
.section-dark.demo-shell .demo-header p {
  color: #d2dcdc !important;
}

.section-dark .eyebrow {
  color: #7cffcb !important;
}

/* ==========================================
   ULTRA-SMOOTHNESS & CARD HOVER ANIMATIONS
   ========================================== */

html {
  scroll-behavior: smooth !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Base smooth transition for interactive components */
.page-card,
.demo-card,
.scenario,
.grid-card,
.tech-card,
.research-card,
.article-card,
.hero-card,
.feature-card,
.btn,
.nav-cta,
.drop-menu a,
.page-step {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.25s ease !important;
  will-change: transform, box-shadow;
}

/* Ultra Smooth Card Hover State */
.page-card:hover,
.demo-card:hover,
.grid-card:hover,
.tech-card:hover,
.research-card:hover,
.article-card:hover,
.hero-card:hover,
.feature-card:hover {
  transform: translateY(-6px) scale(1.012) !important;
  border-color: rgba(124, 255, 203, 0.45) !important;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3),
              0 0 24px rgba(124, 255, 203, 0.12) !important;
}

/* Scenario Selector Button Hover State */
.scenario:hover {
  transform: translateY(-3px) scale(1.01) !important;
  border-color: #7cffcb !important;
  background: rgba(124, 255, 203, 0.12) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 16px rgba(124, 255, 203, 0.15) !important;
}

/* Button & Nav CTA Ultra Hover */
.btn-primary:hover,
.nav-cta:hover,
.run-btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 28px -6px rgba(124, 255, 203, 0.45) !important;
}

.btn-ghost:hover {
  transform: translateY(-3px) scale(1.02) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Page Steps Hover Glow */
.page-step:hover {
  transform: translateY(-4px) !important;
  border-color: #7cffcb !important;
  box-shadow: 0 10px 25px -5px rgba(124, 255, 203, 0.2) !important;
}

/* Article Cards in Light Sections */
.section-light .article-card,
.article-card {
  background: #ffffff !important;
  border: 1px solid rgba(156, 163, 175, 0.35) !important;
  box-shadow: 0 4px 20px rgba(16, 18, 22, 0.06) !important;
}

.section-light .article-card h2,
.article-card h2 {
  color: #101216 !important;
}

.section-light .article-card p,
.article-card p {
  color: #3e444c !important;
}

.section-light .article-card span,
.article-card span {
  color: #08785b !important;
}

.section-light .article-card:hover,
.article-card:hover {
  border-color: #08785b !important;
  box-shadow: 0 20px 40px -12px rgba(8, 120, 91, 0.2) !important;
}

/* ==========================================
   HIGHLIGHTED BACK TO TOP BUTTON
   ========================================== */

.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #7cffcb !important;
  color: #07100c !important;
  border: 1px solid #7cffcb !important;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--sans);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(124, 255, 203, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  transform: translateY(-5px) scale(1.06) !important;
  background: #7cffcb !important;
  color: #07100c !important;
  box-shadow: 0 16px 36px rgba(124, 255, 203, 0.65) !important;
}

.back-to-top-btn span {
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.25s ease;
}

.back-to-top-btn:hover span {
  transform: translateY(-3px);
}

/* Inline Back to Top & Back to Platform Button Highlights */
a[href="#top"],
a.btn-ghost[href="index.html"] {
  border-color: rgba(124, 255, 203, 0.5) !important;
  color: #7cffcb !important;
}

a[href="#top"]:hover,
a.btn-ghost[href="index.html"]:hover {
  background: rgba(124, 255, 203, 0.16) !important;
  color: #ffffff !important;
  border-color: #7cffcb !important;
  box-shadow: 0 8px 24px -4px rgba(124, 255, 203, 0.35) !important;
}

/* ==========================================
   DRAGGABLE HERO VISUAL CARDS & ELEMENTS
   ========================================== */

.hero-visual .data-card,
.hero-visual .fusion-core,
.hero-visual .brain-viewport {
  cursor: grab !important;
  user-select: none !important;
  touch-action: none !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.hero-visual .data-card:hover,
.hero-visual .fusion-core:hover {
  box-shadow: 0 12px 32px rgba(124, 255, 203, 0.35), 0 0 18px rgba(124, 255, 203, 0.2) !important;
  border-color: #7cffcb !important;
}

.hero-visual .data-card.is-dragging,
.hero-visual .fusion-core.is-dragging,
.hero-visual .brain-viewport.is-dragging {
  cursor: grabbing !important;
  z-index: 40 !important;
  box-shadow: 0 20px 45px rgba(124, 255, 203, 0.55), 0 0 30px rgba(124, 255, 203, 0.35) !important;
  border-color: #7cffcb !important;
  opacity: 0.95 !important;
}

/* ==========================================
   PIPELINE STEP POPUP MODAL STYLING
   ========================================== */

.pipeline-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pipeline-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pipeline-modal-card {
  position: relative;
  width: min(580px, 100%);
  background: #15181d;
  border: 1px solid rgba(124, 255, 203, 0.4);
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 255, 203, 0.15);
  color: #ffffff;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-modal-overlay.active .pipeline-modal-card {
  transform: translateY(0) scale(1);
}

.pipeline-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d2dcdc;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pipeline-modal-close:hover {
  background: #7cffcb;
  color: #07100c;
  border-color: #7cffcb;
  transform: rotate(90deg);
}

.pipeline-modal-step {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #7cffcb;
  background: rgba(124, 255, 203, 0.1);
  border: 1px solid rgba(124, 255, 203, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.pipeline-modal-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.pipeline-modal-subtitle {
  font-size: 14px;
  color: #7cffcb;
  margin-bottom: 18px;
  font-weight: 500;
}

.pipeline-modal-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #d2dcdc;
  margin-bottom: 24px;
}

.pipeline-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pipeline-modal-chips span {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(156, 163, 175, 0.2);
  color: #e8eaed;
  padding: 5px 12px;
  border-radius: 8px;
}

.pipeline-modal-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #7cffcb;
  color: #07100c;
  font-weight: 800;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pipeline-modal-btn:hover {
  background: #7cffcb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 255, 203, 0.4);
}