/* Hero — Project Launch Center (consolidated) */

/* ── Layout shell ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: var(--header-height);
  padding-bottom: clamp(20px, 3vh, 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero > .container.hero__inner {
  flex: 1;
  width: 100%;
  display: grid;
  align-items: center;
  align-content: center;
  padding-top: 0;
}

/* ── Background ── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
  mix-blend-mode: screen;
  animation: auroraDrift 14s ease-in-out infinite alternate;
}

.hero__aurora--1 {
  width: 55vw;
  height: 45vh;
  top: -10%;
  left: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero__aurora--2 {
  width: 45vw;
  height: 40vh;
  top: 20%;
  right: -5%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, transparent 70%);
  opacity: 0.22;
  animation-delay: -4s;
}

.hero__aurora--3 {
  width: 40vw;
  height: 35vh;
  bottom: -5%;
  left: 25%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
  opacity: 0.28;
  animation-delay: -8s;
}

@keyframes auroraDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -2%) scale(1.08); }
  100% { transform: translate(-2%, 3%) scale(0.95); }
}

.hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(600px) rotateX(62deg) scale(1.4);
  transform-origin: center 80%;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, black 10%, transparent 75%);
  animation: meshPulse 10s ease-in-out infinite alternate;
}

@keyframes meshPulse {
  0% { opacity: 0.5; }
  100% { opacity: 0.85; }
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 15%, transparent 72%);
  animation: gridMove 24s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero__scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), rgba(59, 130, 246, 0.4), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.hero.is-phase-env .hero__scan-line {
  animation: heroScanLine 1.1s var(--ease-out) forwards;
}

@keyframes heroScanLine {
  0% { opacity: 0; transform: translateY(-10px); }
  20% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(100vh); }
}

.hero__bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(80px, 12vh, 140px);
  background: linear-gradient(to bottom, transparent, var(--bg-deep));
  pointer-events: none;
  z-index: 1;
}

/* ── Left column copy ── */
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 5.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
  max-width: min(22ch, 100%);
  text-wrap: balance;
}

.hero__title-line {
  display: block;
}

.hero__title-main {
  display: block;
  color: #f8fafc;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__title-accent {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 0.12em;
  background: linear-gradient(120deg, #06b6d4 0%, #3b82f6 55%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: accentShimmer 8s ease-in-out infinite;
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), rgba(59, 130, 246, 0.5), transparent);
  border-radius: 2px;
  opacity: 0.7;
}

@keyframes accentShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero__desc {
  font-size: clamp(1.05rem, 2vw, 1.175rem);
  color: #c8d4e3;
  max-width: 44ch;
  margin-bottom: 1.85rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.btn--hero-primary {
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding-right: 1.5rem;
}

.btn--hero-primary .btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}

.btn--hero-primary:hover .btn__arrow {
  transform: translateX(3px);
}

/* ── Scroll cue ── */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 3;
  pointer-events: none;
}

.hero-scroll-cue__text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 28ch;
  line-height: 1.4;
}

.hero-scroll-cue__icon {
  display: flex;
  color: var(--accent-cyan);
  animation: scrollCueBounce 2.2s ease-in-out infinite;
}

.hero-scroll-cue__icon svg {
  width: 18px;
  height: 18px;
}

@keyframes scrollCueBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (min-width: 1280px) {
  .hero {
    padding-bottom: clamp(44px, 5vh, 56px);
  }

  .hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 1.4vh, 16px);
    transform: translateX(-50%);
  }
}

@media (max-width: 1279px) {
  .hero-scroll-cue {
    position: static;
    transform: none;
    margin: 12px auto 0;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .hero-scroll-cue {
    display: none;
  }
}

/* Landscape phones & low-height viewports */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: var(--header-height);
    padding-bottom: 10px;
  }

  .hero > .container.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(0.65rem, 2vw, 1.25rem);
    align-items: center;
  }

  .hero__badge {
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }

  .hero__title {
    font-size: clamp(1.25rem, 4.2vw, 1.65rem);
    margin-bottom: 0.5rem;
    max-width: none;
  }

  .hero__desc {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
  }

  .hero__actions .btn {
    width: auto;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
  }

  .hero__stage {
    height: clamp(160px, 46vh, 220px);
    max-width: min(100%, 360px);
    margin-top: 0;
  }

  .hero__hub {
    width: min(200px, 72%);
  }

  .hero__hub-inner {
    padding: 0.65rem 0.75rem;
  }

  .hero__flow-step {
    font-size: 0.62rem;
    padding: 0.2rem 0.35rem;
  }

  .hero__hub-status-text {
    font-size: 0.62rem;
  }

  .hero__deploy-bar {
    display: none;
  }

  .hero__mesh,
  .hero__aurora--3 {
    opacity: 0.12;
  }
}

/* ── Stage ── */
.hero__stage {
  --stage-pad-x: clamp(16px, 3vw, 32px);
  --stage-pad-y: clamp(16px, 3vh, 28px);
  --hub-x: 50%;
  --hub-y: 50%;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(360px, 54vw, 440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: visible;
  transition: transform 0.2s ease-out;
}

.hero__stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: visible;
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.hero__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  top: var(--hub-y);
  left: var(--hub-x);
  width: min(300px, 62%);
  height: min(300px, 62%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.16;
  filter: blur(55px);
  animation: orbPulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero__orb--secondary {
  width: min(200px, 46%);
  height: min(200px, 46%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent 70%);
  opacity: 0.2;
  animation-delay: -2.5s;
}

.hero__orb--accent {
  width: min(160px, 38%);
  height: min(160px, 38%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  opacity: 0.15;
  animation-delay: -1.2s;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.12; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.2; }
}

/* ── Workflow ring ── */
.hero__workflow-ring {
  position: absolute;
  left: var(--hub-x);
  top: var(--hub-y);
  width: min(92%, 400px);
  height: min(92%, 400px);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 72%, #000 76%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 72%, #000 76%);
}

.hero.is-phase-center .hero__workflow-ring,
.hero.is-phase-live .hero__workflow-ring,
.hero.is-loaded .hero__workflow-ring {
  opacity: 1;
}

.hero__ring-progress {
  transition: stroke-dashoffset 0.75s var(--ease-out);
}

.hero__ring-node {
  fill: rgba(148, 163, 184, 0.35);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  transition: fill 0.45s ease;
}

.hero__ring-node.is-active {
  fill: #06b6d4;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

/* ── Connection lines ── */
.hero__connections {
  position: absolute;
  left: var(--hub-x);
  top: var(--hub-y);
  width: min(90%, 420px);
  height: min(90%, 420px);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.68;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 34%, #000 40%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 34%, #000 40%);
}

.hero__conn-line {
  stroke-dasharray: 8 6;
  animation: connPulse 3s ease-in-out infinite;
}

.hero__conn-line:nth-child(odd) { animation-delay: -1s; }
.hero__conn-line:nth-child(even) { animation-delay: -2s; }

@keyframes connPulse {
  0%, 100% { stroke-opacity: 0.35; }
  50% { stroke-opacity: 0.85; }
}

/* ── Central hub ── */
.hero__hub {
  position: absolute;
  left: var(--hub-x);
  top: var(--hub-y);
  z-index: 4;
  width: min(280px, 78%);
  max-width: calc(100% - var(--stage-pad-x) * 2);
  transform: translate(-50%, -50%);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero__hub-shell {
  position: relative;
  border-radius: 20px;
  clip-path: polygon(8% 0%, 92% 0%, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0% 92%, 0% 8%);
}

.hero__hub-sweep {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero__hub-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: hubSweep 5s ease-in-out infinite;
}

@keyframes hubSweep {
  0%, 100% { transform: translateX(0) skewX(-12deg); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: translateX(320%) skewX(-12deg); opacity: 0; }
}

.hero__hub-glow {
  position: absolute;
  inset: -28%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 65%);
  animation: hubGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__hub-glow--deep {
  inset: -35%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 60%);
  animation-delay: -3s;
}

@keyframes hubGlow {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero__hub-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 180deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.5), rgba(59, 130, 246, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: glowRotate 10s linear infinite;
  pointer-events: none;
}

.hero__hub-perimeter {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  clip-path: polygon(8% 0%, 92% 0%, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0% 92%, 0% 8%);
  padding: 1px;
  background: conic-gradient(from 0deg, transparent 0%, rgba(6, 182, 212, 0.5) 25%, transparent 50%, rgba(59, 130, 246, 0.4) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: perimeterSpin 12s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes perimeterSpin {
  to { transform: rotate(360deg); }
}

@keyframes glowRotate {
  to { transform: rotate(360deg); }
}

.hero__hub-inner {
  position: relative;
  padding: 1.15rem 1.25rem;
  background: #080c16;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: calc(var(--radius-xl) - 1px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
  isolation: isolate;
}

.hero__hub-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hero__hub-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.85rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-sm);
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.65rem;
  color: #6ee7b7;
  line-height: 1.4;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.hero__hub-status.is-active {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.hero__hub-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.hero__hub-status-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__hub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Workflow steps (no internal track line) ── */
.hero__flow {
  position: relative;
}

.hero__flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  list-style: none;
  margin: 0;
  padding: 0 0.35rem;
}

.hero__flow-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.32rem 0.45rem;
  margin: 0 0.15rem;
  border-radius: var(--radius-sm);
  transition: color 0.35s ease, background 0.35s ease;
}

.hero__flow-step.is-active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
}

.hero__flow-step.is-done {
  color: var(--text-secondary);
}

.hero__flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 6px;
  flex-shrink: 0;
}

.hero__flow-step.is-active .hero__flow-num {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

/* ── Orbit cards ── */
.orbit-card {
  position: absolute;
  display: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  width: auto;
  min-width: 132px;
  max-width: 158px;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: orbitFloat 5s ease-in-out infinite;
  overflow: hidden;
  pointer-events: auto;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.orbit-card--2 {
  max-width: 168px;
}

.orbit-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.4), transparent, rgba(139, 92, 246, 0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  animation: glowRotate 6s linear infinite;
}

.orbit-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.orbit-card__icon svg {
  width: 18px;
  height: 18px;
}

.orbit-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.orbit-card__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.orbit-card__status {
  font-size: 0.58rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbit-card__dot {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.5);
}

.orbit-card.is-highlighted {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.3), 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 6;
}

.orbit-card.is-highlighted .orbit-card__icon {
  background: rgba(59, 130, 246, 0.28);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.orbit-card.is-highlighted .orbit-card__glow {
  opacity: 1;
}

.orbit-card.is-module-active .orbit-card__dot {
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

@keyframes orbitFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

@media (hover: hover) and (min-width: 1024px) {
  .orbit-card:hover {
    translate: 0 -3px;
    scale: 1.02;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.35);
    z-index: 5;
  }
}

/* ── Terminal ── */
.hero__terminal {
  display: none;
  position: absolute;
  z-index: 4;
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  animation: codeFloat 7s ease-in-out infinite;
}

.hero__terminal-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__terminal-header span:not(.hero__terminal-title) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero__terminal-header span:first-child { background: #f87171; }
.hero__terminal-header span:nth-child(2) { background: #fbbf24; }
.hero__terminal-header span:nth-child(3) { background: #34d399; }

.hero__terminal-title {
  margin-left: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.hero__terminal-body {
  padding: 0.7rem 0.8rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.68rem;
  line-height: 1.65;
}

.hero__terminal-line {
  display: block;
  color: var(--text-secondary);
}

.hero__terminal-line--muted {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.6rem;
}

.hero__terminal-line--reveal {
  opacity: 0;
  transform: translateX(-4px);
}

.hero.is-loaded .hero__terminal-line--reveal:nth-child(1) {
  animation: termLineIn 0.5s var(--ease-out) 0.3s forwards;
}

.hero.is-loaded .hero__terminal-line--reveal:nth-child(2) {
  animation: termLineIn 0.5s var(--ease-out) 0.55s forwards;
}

.hero.is-loaded .hero__terminal-line--reveal:nth-child(3) {
  animation: termLineIn 0.5s var(--ease-out) 0.75s forwards;
}

@keyframes termLineIn {
  to { opacity: 1; transform: translateX(0); }
}

.hero__terminal-prompt {
  color: #34d399;
  margin-right: 0.35rem;
}

.hero__terminal-cursor {
  color: var(--accent-cyan);
  animation: termBlink 1s step-end infinite;
}

@keyframes termBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes codeFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

/* ── Deployment status ── */
.hero__deploy-bar {
  position: absolute;
  bottom: var(--stage-pad-y);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.58rem;
  color: #94a3b8;
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  z-index: 5;
}

.hero__deploy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Visibility matrix & responsive layouts ── */

/* Tablet: central system only */
@media (max-width: 1023px) {
  .hero__connections {
    display: none;
  }

  .orbit-card,
  .hero__terminal {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding-bottom: clamp(16px, 3vh, 28px);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 1.75rem);
  }

  .hero__stage {
    height: clamp(380px, 48vw, 460px);
    --hub-x: 50%;
    --hub-y: 50%;
    margin-top: 0;
  }

  .hero__hub {
    width: min(260px, 68%);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hero__hub-status-text {
    white-space: normal;
    font-size: 0.68rem;
  }

  .hero__inner {
    gap: 2rem;
    min-width: 0;
  }

  .hero__content {
    min-width: 0;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.16;
  }

  .hero__desc {
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stage {
    --hub-x: 50%;
    --hub-y: 44%;
    width: 100%;
    max-width: 430px;
    height: clamp(430px, 118vw, 510px);
    margin-top: 0.25rem;
  }

  .hero__hub {
    width: min(240px, 76%);
  }

  .hero__flow-step {
    font-size: 0.72rem;
  }

  .hero__mesh {
    opacity: 0.7;
  }

  .hero__canvas {
    opacity: 0.55;
  }

  .hero__aurora {
    opacity: 0.22;
  }
}

@media (max-width: 1279px) {
  .hero__deploy-bar {
    bottom: clamp(8px, 2vw, 14px);
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    max-width: min(calc(100% - 1.5rem), 320px);
    padding: 0.35rem 0.65rem;
    font-size: 0.62rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(2rem, 3vw, 3.5rem);
  }

  .hero__title {
    font-size: clamp(2.25rem, 3.6vw, 3.35rem);
    max-width: min(18ch, 100%);
    line-height: 1.1;
  }

  .hero__desc {
    font-size: clamp(1.06rem, 1.45vw, 1.175rem);
    max-width: 42ch;
    color: #d1dce8;
  }

  .hero__stage {
    --hub-x: 50%;
    --hub-y: 50%;
    height: clamp(
      480px,
      calc(100dvh - var(--header-height) - clamp(100px, 12vh, 130px)),
      660px
    );
  }

  .hero__hub {
    width: min(220px, 46%);
  }

  .hero__hub-inner {
    padding: 0.95rem 1.05rem;
  }

  .hero__hub-header {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
  }

  .hero__hub-status {
    margin-bottom: 0.6rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.58rem;
  }

  .hero__flow-step {
    font-size: 0.66rem;
    padding: 0.28rem 0.4rem;
  }

  .hero__flow-num {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
  }

  .orbit-card--2,
  .orbit-card--3,
  .orbit-card--4,
  .orbit-card--5 {
    display: flex;
  }

  .orbit-card--1,
  .orbit-card--6 {
    display: none;
  }

  .hero__terminal {
    display: none;
  }

  .orbit-card--3 {
    left: 0;
    top: 27%;
    right: auto;
    bottom: auto;
  }

  .orbit-card--5 {
    left: 2%;
    bottom: 12%;
    top: auto;
    right: auto;
  }

  .orbit-card--2 {
    right: 0;
    top: 27%;
    left: auto;
    bottom: auto;
  }

  .orbit-card--4 {
    right: 2%;
    bottom: 12%;
    top: auto;
    left: auto;
  }
}

/* Desktop full layout: 1280+ */
@media (min-width: 1280px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(2rem, 3vw, 3.5rem);
  }

  .hero__title {
    font-size: clamp(2.35rem, 3.8vw, 3.5rem);
    max-width: min(18ch, 100%);
    line-height: 1.1;
  }

  .hero__desc {
    font-size: clamp(1.06rem, 1.45vw, 1.175rem);
    max-width: 42ch;
    color: #d1dce8;
  }

  .hero__stage {
    --hub-x: 50%;
    --hub-y: 50%;
    height: clamp(
      520px,
      calc(100dvh - var(--header-height) - clamp(100px, 14vh, 140px)),
      720px
    );
  }

  .hero__hub {
    width: min(260px, 48%);
  }

  .hero__hub-inner {
    padding: 0.95rem 1.05rem;
  }

  .hero__workflow-ring,
  .hero__connections {
    width: min(90%, 420px);
    height: min(90%, 420px);
  }

  .orbit-card--1,
  .orbit-card--2,
  .orbit-card--3,
  .orbit-card--4,
  .orbit-card--5,
  .orbit-card--6 {
    display: flex;
  }

  .hero__terminal {
    display: block;
    right: 4%;
    top: 3%;
    width: min(168px, 22%);
    max-width: calc(100% - 2rem);
  }

  .orbit-card--6 {
    left: 10%;
    top: 7%;
    right: auto;
    bottom: auto;
  }

  .orbit-card--3 {
    left: 0;
    top: 31%;
    right: auto;
    bottom: auto;
  }

  .orbit-card--5 {
    left: 8%;
    bottom: 8%;
    top: auto;
    right: auto;
  }

  .orbit-card--1 {
    right: 0;
    top: 29%;
    left: auto;
    bottom: auto;
  }

  .orbit-card--2 {
    right: 0;
    top: 54%;
    left: auto;
    bottom: auto;
  }

  .orbit-card--4 {
    right: 7%;
    bottom: 7%;
    top: auto;
    left: auto;
  }
}

@media (min-width: 1280px) and (max-height: 820px) {
  .orbit-card--5 {
    bottom: 15%;
  }

  .orbit-card--4 {
    bottom: 10%;
  }

  .orbit-card--2 {
    top: 50%;
  }

  .hero__deploy-bar {
    bottom: clamp(6px, 1.2vh, 10px);
    font-size: 0.52rem;
  }
}

@media (min-width: 1440px) {
  .hero__inner {
    gap: 3.5rem;
  }

  .hero__stage {
    max-width: clamp(660px, 46vw, 780px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  .hero__badge {
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .hero__hub-inner {
    padding: 0.85rem;
  }
}

/* ── Load / reveal transitions ── */
.hero .reveal {
  opacity: 0;
  transform: translateY(32px);
}

.hero.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero.is-loaded .reveal:nth-child(1) { transition-delay: 0.08s; }
.hero.is-loaded .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero.is-loaded .reveal:nth-child(3) { transition-delay: 0.35s; }
.hero.is-loaded .reveal:nth-child(4) { transition-delay: 0.5s; }
.hero.is-loaded .reveal:nth-child(5) { transition-delay: 0.65s; }

.hero.is-loaded .hero__stage {
  opacity: 1;
  transform: translateY(0);
}

.hero__stage {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out) 0.4s, transform 1s var(--ease-out) 0.4s;
}

html.js .hero:not(.hero-enhanced) .hero__stage,
html.js .hero:not(.hero-enhanced) .hero-scroll-cue {
  opacity: 1;
  transform: none;
}

html.js .hero.hero-enhanced:not(.is-loaded) .hero__stage {
  opacity: 0;
  transform: translateY(24px);
}

html.js .hero.hero-enhanced:not(.is-loaded) .reveal {
  opacity: 0;
  transform: translateY(32px);
}

html.js .hero.hero-enhanced.is-loaded .reveal,
html.js .hero.hero-enhanced.is-loaded .hero__stage,
html.js .hero.hero-enhanced.is-loaded .hero-scroll-cue {
  opacity: 1;
  transform: translateY(0);
}

html.js .hero.hero-enhanced.is-loaded .reveal:nth-child(1) { transition-delay: 0.08s; }
html.js .hero.hero-enhanced.is-loaded .reveal:nth-child(2) { transition-delay: 0.2s; }
html.js .hero.hero-enhanced.is-loaded .reveal:nth-child(3) { transition-delay: 0.35s; }
html.js .hero.hero-enhanced.is-loaded .reveal:nth-child(4) { transition-delay: 0.5s; }
html.js .hero.hero-enhanced.is-loaded .hero__stage { transition-delay: 0.65s; }
html.js .hero.hero-enhanced.is-loaded .hero-scroll-cue { transition-delay: 0.85s; }

.hero .reveal,
.hero__stage,
.hero-scroll-cue {
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

html:not(.js) .hero__hub,
html:not(.js) .hero__workflow-ring,
html:not(.js) .orbit-card,
html:not(.js) .hero__deploy-bar {
  opacity: 1;
  transform: none;
}

.hero__terminal-cursor {
  animation: terminalBlink 1.2s step-end infinite;
}

@keyframes terminalBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#services.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(70%, 640px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.25), transparent);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__aurora,
  .hero__mesh,
  .hero__grid,
  .hero__orb,
  .hero__hub-glow,
  .hero__hub-border,
  .hero__hub-sweep::after,
  .hero__conn-line,
  .orbit-card,
  .hero__terminal,
  .hero-scroll-cue__icon,
  .hero__badge-dot,
  .hero__hub-dot,
  .hero__hub-status-dot,
  .hero__title-accent,
  .hero__hub-perimeter,
  .hero__deploy-dot,
  .hero__scan-line {
    animation: none;
  }

  html.js .hero.hero-enhanced:not(.is-loaded) .hero__stage,
  html.js .hero.hero-enhanced:not(.is-loaded) .reveal,
  html.js .hero.hero-enhanced:not(.is-loaded) .hero-scroll-cue {
    opacity: 1;
    transform: none;
  }

  .hero__canvas {
    display: none;
  }

  .hero__terminal-cursor {
    animation: none;
    opacity: 0;
  }

  .hero__title-accent {
    -webkit-text-fill-color: #06b6d4;
    background: none;
  }

  .hero__terminal-line--reveal {
    opacity: 1;
    transform: none;
  }
}

html.animations-off .hero__aurora,
html.animations-off .hero__mesh,
html.animations-off .hero__grid,
html.animations-off .hero__orb,
html.animations-off .hero__hub-glow,
html.animations-off .hero__hub-border,
html.animations-off .hero__hub-sweep::after,
html.animations-off .hero__conn-line,
html.animations-off .orbit-card,
html.animations-off .hero__terminal,
html.animations-off .hero-scroll-cue__icon,
html.animations-off .hero__badge-dot,
html.animations-off .hero__hub-dot,
html.animations-off .hero__hub-status-dot,
html.animations-off .hero__title-accent,
html.animations-off .hero__hub-perimeter,
html.animations-off .hero__deploy-dot,
html.animations-off .hero__scan-line {
  animation: none;
}

html.animations-off.js .hero.hero-enhanced:not(.is-loaded) .hero__stage,
html.animations-off.js .hero.hero-enhanced:not(.is-loaded) .reveal,
html.animations-off.js .hero.hero-enhanced:not(.is-loaded) .hero-scroll-cue {
  opacity: 1;
  transform: none;
}

html.animations-off .hero__canvas {
  display: none;
}

html.animations-off .hero__terminal-cursor {
  animation: none;
  opacity: 0;
}

html.animations-off .hero__title-accent {
  -webkit-text-fill-color: #06b6d4;
  background: none;
}

html.animations-off .hero__terminal-line--reveal {
  opacity: 1;
  transform: none;
}

html.low-performance .hero__aurora {
  opacity: 0.18;
  filter: blur(60px);
}

html.low-performance .orbit-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html.low-performance .hero__hub-inner {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
