:root {
  --nexus-950: #000229;
  --nexus-900: #050a30;
  --nexus-800: #0f1642;
  --nexus-700: #1c2452;
  --nexus-primary: #FDCD06;
  --nexus-primary-dim: #dcb205;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: var(--nexus-950);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  padding-top: 82px;
}

body.nexus-page .navbar {
  background: rgba(0, 2, 41, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28) !important;
}

body.nexus-page .navbar.scrolled {
  background: rgba(0, 2, 41, 0.84) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34) !important;
}

body.nexus-page .navbar:hover {
  background: rgba(5, 10, 48, 0.9) !important;
}

body.nexus-page .logo {
  color: #ffffff;
}

body.nexus-page .nav-links {
  background: rgba(255, 255, 255, 0.06);
}

body.nexus-page .nav-links a {
  color: #cbd5e1;
}

body.nexus-page .nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.nexus-page .mobile-menu-btn .hamburger-line {
  background: #ffffff;
}

body.nexus-page .signup-btn {
  background: var(--nexus-primary);
  color: var(--nexus-950);
  box-shadow: 0 8px 20px rgba(253, 205, 6, 0.2);
}

body.nexus-page .signup-btn:hover {
  background: var(--nexus-primary-dim);
  box-shadow: 0 12px 25px rgba(253, 205, 6, 0.28);
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  mix-blend-mode: screen;
  animation: blob 7s infinite;
}

.blob-1 {
  top: -20%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  background: rgba(30, 58, 138, 0.24);
}

.blob-2 {
  top: 20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: rgba(253, 205, 6, 0.12);
  animation-delay: 2s;
}

.blob-3 {
  bottom: -20%;
  left: 20%;
  width: 80vw;
  height: 80vw;
  background: rgba(49, 46, 129, 0.16);
  animation-delay: 4s;
}

.noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
  opacity: 0.16;
}

.process-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 110px 24px 80px;
  background: transparent;
  min-height: auto;
}

.process-hero::before,
.process-hero::after {
  content: none;
}

.hero-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
  color: var(--nexus-primary);
  border: 1px solid rgba(253, 205, 6, 0.28);
  background: rgba(253, 205, 6, 0.1);
}

.process-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.1;
  color: var(--white);
}

.process-hero h1 span {
  color: var(--white);
}

.process-hero p {
  margin: 24px auto 0;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-scroll {
  margin-top: 62px;
  font-size: 14px;
  color: #64748b;
  display: grid;
  place-items: center;
  gap: 10px;
}

.arrow-down {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--nexus-primary);
  border-bottom: 2px solid var(--nexus-primary);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}

.journey {
  position: relative;
  z-index: 1;
  width: min(1200px, 96%);
  margin: 0 auto;
  padding-bottom: 120px;
}

.timeline {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--nexus-800);
}

.timeline-fill {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 0;
  transform-origin: top;
  background: linear-gradient(180deg, var(--nexus-primary), #fff, var(--nexus-primary));
  box-shadow: 0 0 15px rgba(253, 205, 6, 0.5);
}

.stage {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  padding: 58px 0;
}

.stage.in-view {
  opacity: 1;
  transform: translateY(0);
}

.marker {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-left: -16px;
  margin-top: -17px;
  border-radius: 999px;
  background: var(--nexus-950);
  border: 4px solid var(--nexus-800);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.marker i {
  width: 14px;
  height: 14px;
}

.marker-accent i { color: var(--nexus-primary); }
.marker-white i { color: var(--white); }

.stage-content,
.stage-visual-wrap {
  width: 100%;
  padding-left: 44px;
}

.stage-meta {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

.stage-meta.accent {
  color: var(--nexus-primary);
}

.stage-meta.white {
  color: var(--white);
}

.stage h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(31px, 4vw, 46px);
}

.stage p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
}

.stage-visual-wrap {
  transition: transform 0.45s ease;
  position: relative;
}

.stage-visual-wrap:hover {
  transform: scale(1.02);
}

.stage-visual-wrap::before {
  content: '';
  position: absolute;
  left: 40px;
  right: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--nexus-primary), rgba(255, 255, 255, 0.5));
  filter: blur(16px);
  opacity: 0.2;
  z-index: -1;
}

.stage-visual {
  min-height: 260px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 10, 48, 0.6);
  backdrop-filter: blur(14px);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.idea-visual {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 14px;
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.window-dots span:nth-child(1) {
  background: rgba(253, 205, 6, 0.8);
}

.window-dots span:nth-child(2) {
  background: rgba(255, 255, 255, 0.5);
}

.window-dots span:nth-child(3) {
  background: rgba(255, 255, 255, 0.2);
}

.import-line {
  color: var(--nexus-primary);
}

.import-line strong {
  color: var(--white);
}

.import-line em {
  color: #34d399;
  font-style: normal;
}

#typingCode {
  margin: 12px 0 0;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.badge {
  position: absolute;
  background: var(--nexus-800);
  border: 1px solid var(--nexus-700);
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge i {
  width: 14px;
  height: 14px;
}

.badge-bottom {
  right: 14px;
  bottom: 14px;
  opacity: 0;
  animation: fadeInBadge .5s ease 1s forwards;
}

.badge-top {
  right: 20px;
  top: 20px;
  opacity: 0;
  animation: fadeInBadge .5s ease 1.5s forwards;
}

.design-visual {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    rgba(5, 10, 48, 0.7);
  background-size: 20px 20px, 20px 20px, auto;
}

.design-card {
  position: absolute;
  width: 190px;
  height: 130px;
  border-radius: 10px;
}

.wireframe {
  border: 2px solid var(--nexus-700);
  background: var(--nexus-800);
  opacity: 1;
  animation: wireCycle 5s infinite;
}

.wireframe > span,
.polished > span {
  display: block;
  border-radius: 5px;
}

.wireframe > span:nth-child(1) {
  width: 72%;
  height: 16px;
  margin: 16px;
  background: var(--nexus-700);
}

.wireframe > span:nth-child(2) {
  width: 50%;
  height: 10px;
  margin: 0 16px;
  background: var(--nexus-700);
}

.wireframe div,
.polished div {
  display: flex;
  gap: 10px;
  margin: 18px 16px;
}

.wireframe div span {
  width: 60px;
  height: 34px;
  background: var(--nexus-700);
  border-radius: 6px;
}

.polished {
  border: 1px solid var(--nexus-700);
  background: linear-gradient(140deg, var(--nexus-800), var(--nexus-900));
  box-shadow: 0 12px 30px rgba(253, 205, 6, 0.12);
  opacity: 0;
  animation: polishCycle 5s infinite;
}

.polished > span:nth-child(1) {
  width: 72%;
  height: 16px;
  margin: 16px;
  background: rgba(255, 255, 255, 0.2);
}

.polished > span:nth-child(2) {
  width: 50%;
  height: 10px;
  margin: 0 16px;
  background: rgba(255, 255, 255, 0.1);
}

.polished button {
  width: 62px;
  height: 34px;
  border-radius: 6px;
  border: 0;
  background: var(--nexus-primary);
  color: var(--nexus-950);
  font-weight: 700;
  font-size: 10px;
}

.polished i {
  display: block;
  width: 62px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.ai-visual::before {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(253, 205, 6, 0.25);
  filter: blur(40px);
  top: calc(50% - 65px);
  left: calc(50% - 65px);
  animation: pulseGlow 4s infinite;
}

.bubble {
  max-width: 80%;
  border-radius: 18px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  z-index: 2;
}

.ai-visual .bubble {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.stage.in-view .ai-visual .bubble-user {
  opacity: 1;
  transform: translateY(0);
}

.stage.in-view .ai-visual .bubble-ai {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .45s;
}

.bubble-user {
  align-self: flex-end;
  border-top-right-radius: 0;
  background: var(--nexus-primary);
  color: var(--nexus-950);
  font-weight: 500;
}

.bubble-ai {
  align-self: flex-start;
  border-top-left-radius: 0;
  border: 1px solid var(--nexus-700);
  background: var(--nexus-800);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bubble-ai i {
  width: 16px;
  height: 16px;
  color: var(--nexus-primary);
  flex-shrink: 0;
}

.data-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sources span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--nexus-700);
  border-radius: 8px;
  background: var(--nexus-800);
  display: grid;
  place-items: center;
}

.sources span i {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.stream {
  flex: 1;
  height: 50px;
  border-radius: 10px;
  border: 1px solid var(--nexus-700);
  background: rgba(15, 22, 66, 0.5);
  position: relative;
  overflow: hidden;
}

.stream i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  top: 50%;
  margin-top: -4px;
  left: -10%;
  background: var(--nexus-primary);
  box-shadow: 0 0 10px rgba(253, 205, 6, 0.9);
  animation: streamRun 2s linear infinite;
}

.stream i:nth-child(2) { animation-delay: 0.4s; }
.stream i:nth-child(3) { animation-delay: 0.8s; }
.stream i:nth-child(4) { animation-delay: 1.2s; }
.stream i:nth-child(5) { animation-delay: 1.6s; }

.destination {
  width: 96px;
  height: 130px;
  border-radius: 10px;
  border: 1px solid rgba(253, 205, 6, 0.5);
  background: var(--nexus-800);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(253, 205, 6, 0.12);
}

.destination i {
  width: 24px;
  height: 24px;
  color: var(--nexus-primary);
}

.destination small {
  font-size: 10px;
  color: var(--text-muted);
}

.cloud-visual {
  display: grid;
  place-items: center;
}

.hub {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--nexus-primary);
  color: var(--nexus-950);
  display: grid;
  place-items: center;
  z-index: 2;
  animation: hubPulse 2s infinite;
}

.hub i {
  width: 20px;
  height: 20px;
}

.orbit {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--nexus-primary);
  opacity: 0.9;
}

.orbit-1 { animation: orbitA 3s linear infinite; }
.orbit-2 { animation: orbitB 3s linear infinite; }
.orbit-3 { animation: orbitC 3s linear infinite; }
.orbit-4 { animation: orbitD 3s linear infinite; }
.orbit-5 { animation: orbitE 3s linear infinite; }
.orbit-6 { animation: orbitF 3s linear infinite; }

.status-dot {
  position: absolute;
  bottom: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

.status-dot::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  background: #22c55e;
  animation: pulseTiny 1.2s infinite;
}

.deploy-visual {
  display: grid;
  place-items: center;
}

.deploy-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--nexus-primary);
  color: var(--nexus-950);
  font-weight: 700;
  cursor: default;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.deploy-btn i {
  width: 16px;
  height: 16px;
}

.deploy-success {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 10px;
}

.deploy-success h3 {
  margin: 0;
  color: var(--white);
  font-size: 24px;
}

.deploy-success p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.deploy-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #22c55e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.deploy-visual.active .deploy-btn {
  opacity: 0;
  transform: translateY(-46px);
}

.deploy-visual.active .deploy-success {
  opacity: 1;
  transform: scale(1);
}

.deploy-visual.active .deploy-line {
  transform: scaleX(1);
}

.growth-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bars {
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.bars i {
  width: 100%;
  height: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--nexus-950), var(--nexus-primary));
  opacity: 0.86;
}

.growth-visual.in-view .bars i {
  animation: growBar 1s ease forwards;
}

.growth-visual.in-view .bars i:nth-child(1) { animation-delay: 0s; }
.growth-visual.in-view .bars i:nth-child(2) { animation-delay: 0.1s; }
.growth-visual.in-view .bars i:nth-child(3) { animation-delay: 0.2s; }
.growth-visual.in-view .bars i:nth-child(4) { animation-delay: 0.3s; }
.growth-visual.in-view .bars i:nth-child(5) { animation-delay: 0.4s; }
.growth-visual.in-view .bars i:nth-child(6) { animation-delay: 0.5s; }
.growth-visual.in-view .bars i:nth-child(7) { animation-delay: 0.6s; }

.growth-stats {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
}

.growth-stats small {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.growth-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 23px;
  color: var(--white);
}

.growth-stats div:last-child strong {
  color: #34d399;
}

.support-visual {
  display: grid;
  place-items: center;
}

.radar {
  width: 160px;
  height: 160px;
  border: 1px solid var(--nexus-700);
  border-radius: 999px;
  position: relative;
}

.radar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border-top: 2px solid rgba(253, 205, 6, 0.5);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(253, 205, 6, 0.12) 60deg, transparent 60deg);
  animation: spin 3s linear infinite;
}

.blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: blink 2s infinite;
}

.blip-1 {
  top: 88px;
  left: 106px;
  animation-delay: .5s;
}

.blip-2 {
  top: 148px;
  left: 192px;
  animation-delay: 1.5s;
}

.health {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.13);
}

.health i {
  width: 16px;
  height: 16px;
}

.cta-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  border-top: 1px solid var(--nexus-800);
  padding: 96px 24px;
}

.cta-footer h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(32px, 4vw, 46px);
}

.cta-footer p {
  margin: 18px auto 28px;
  max-width: 700px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.cta-footer button {
  border: 0;
  border-radius: 10px;
  padding: 16px 30px;
  color: var(--nexus-950);
  background: var(--nexus-primary);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(253, 205, 6, 0.3);
}

@media (min-width: 960px) {
  .timeline {
    left: 50%;
    margin-left: -1px;
  }

  .stage {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 70px 0;
  }

  .stage-even {
    flex-direction: row;
  }

  .stage-odd {
    flex-direction: row-reverse;
  }

  .marker {
    left: 50%;
  }

  .stage-content,
  .stage-visual-wrap {
    width: 50%;
    padding-left: 0;
  }

  .stage-even .stage-content {
    padding-right: 70px;
    text-align: right;
  }

  .stage-even .stage-visual-wrap {
    padding-left: 70px;
  }

  .stage-odd .stage-content {
    padding-left: 70px;
    text-align: left;
  }

  .stage-odd .stage-visual-wrap {
    padding-right: 70px;
  }

  .stage-visual-wrap::before {
    left: auto;
  }
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes streamRun {
  0% { left: -10%; }
  100% { left: 110%; }
}

@keyframes orbitA {
  from { transform: rotate(0deg) translateX(58px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(58px) rotate(-360deg); }
}

@keyframes orbitB {
  from { transform: rotate(120deg) translateX(58px) rotate(-120deg); }
  to { transform: rotate(480deg) translateX(58px) rotate(-480deg); }
}

@keyframes orbitC {
  from { transform: rotate(240deg) translateX(58px) rotate(-240deg); }
  to { transform: rotate(600deg) translateX(58px) rotate(-600deg); }
}

@keyframes orbitD {
  from { transform: rotate(60deg) translateX(58px) rotate(-60deg); }
  to { transform: rotate(420deg) translateX(58px) rotate(-420deg); }
}

@keyframes orbitE {
  from { transform: rotate(180deg) translateX(58px) rotate(-180deg); }
  to { transform: rotate(540deg) translateX(58px) rotate(-540deg); }
}

@keyframes orbitF {
  from { transform: rotate(300deg) translateX(58px) rotate(-300deg); }
  to { transform: rotate(660deg) translateX(58px) rotate(-660deg); }
}

@keyframes pulseTiny {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes growBar {
  from { height: 0; }
  to { height: var(--h); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes hubPulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 205, 6, 0.2); }
  100% { box-shadow: 0 0 0 20px rgba(253, 205, 6, 0); }
}

@keyframes fadeInBadge {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes wireCycle {
  0%, 40% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

@keyframes polishCycle {
  0%, 40% { opacity: 0; }
  80%, 100% { opacity: 1; }
}
