:root {
  --bg:      #f7f7ff;
  --primary: #1450de;
  --navy:    #102c6d;
  --muted:   #475569;
  --faint:   #94a3b8;
}

html { scroll-behavior: smooth; }

.hero {
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--navy);
  min-height: calc(100vh - 46px - 64px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.orb-1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(20, 80, 222, 0.09), transparent 70%);
  top: -120px; right: -60px;
  animation: orb-drift 9s ease-in-out infinite;
}

.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(16, 44, 109, 0.07), transparent 70%);
  bottom: -80px; left: -80px;
  animation: orb-drift 11s ease-in-out infinite reverse;
}

.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(76, 126, 243, 0.06), transparent 70%);
  top: 55%; left: 38%;
  animation: orb-drift 14s ease-in-out infinite 3s;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 80, 222, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 80, 222, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

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

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particle-rise linear infinite;
  opacity: 0;
}

.hero-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1290px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 80, 222, 0.07);
  border: 1px solid rgba(20, 80, 222, 0.22);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 1.6rem;
  animation: fade-up 0.5s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(20, 80, 222, 0.6);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1.5rem;
  animation: fade-up 0.5s ease 0.08s both;
}

.t-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease-in-out infinite;
}

.t-accent {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 490px;
  margin-bottom: 2.2rem;
  animation: fade-up 0.5s ease 0.16s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fade-up 0.5s ease 0.24s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 24px rgba(20, 80, 222, 0.28);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy), var(--primary));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary span, .btn-primary svg {
  transition: transform 0.3s;
}

.btn-primary:hover span { transform: translateX(8px); }
.btn-primary:hover svg { opacity: 0; }

.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--primary); }
.btn-ghost:hover .play-ring {
  border-color: var(--primary);
  background: rgba(20, 80, 222, 0.08);
}

.play-ring {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 80, 222, 0.25);
  background: rgba(20, 80, 222, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.hero-visual {
  height: 560px;
  position: relative;
  animation: fade-in 0.8s ease 0.2s both;
}

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  animation: fade-in 1s ease 1.2s both;
}

.scroll-bar {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll-drop 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.72); }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(25px, -18px); }
  66%       { transform: translate(-18px, 25px); }
}

@keyframes particle-rise {
  0%   { transform: translateY(100vh); opacity: 0; }
  8%   { opacity: 0.55; }
  92%  { opacity: 0.35; }
  100% { transform: translateY(-80px); opacity: 0; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.canvas-viewport-right {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
}

#blueprint-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#pipeline-html-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500;
}

.pipeline-card {
  position: absolute;
  background: white;
  border: 1.5px solid rgba(20, 80, 222, 0.15);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(16, 44, 109, 0.04);
  width: clamp(210px, 15vw, 260px);
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(0.7);
  will-change: transform, opacity;
  transition: .1s all linear;
  cursor: pointer;
}

.pipeline-card:hover {
  border-color: var(--primary) !important;
  background-color: #ffffff;
  box-shadow: 0 20px 45px rgba(20, 80, 222, 0.15) !important;
}

#pipeline-html-overlay.has-hovered-item .pipeline-card:not(.is-hovered) {
  opacity: 0.45 !important;
  filter: blur(1px);
}

.card-body {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin-bottom: 4px;
}

@media (max-width: 991px) {
  .hero-wrap {
    text-align: center;
    padding: 3rem 0 2.5rem;
  }
  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .nav-links { display: none; }
  .hero-visual {
    max-width: 520px;
    height: 460px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-sub   { font-size: 0.95rem; }
  .hero-visual { height: 430px; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-title  { font-size: 1.85rem; }
  .hero-badge  { font-size: 11px; }
  .hero-visual { height: 400px; padding-left: 0.4rem; padding-right: 0.4rem; }
}

@media (max-width: 1300px) {
  .pipeline-card { width: 170px !important; padding: 12px 14px; }
}
@media (max-width: 1024px) {
  .pipeline-card { width: 155px !important; padding: 10px 12px; }
}
@media (max-width: 991px) {
  .pipeline-card { width: 140px !important; padding: 10px 12px; font-size: 13px; }
  .card-body { font-size: 13px; }
}
@media (max-width: 767px) {
  .pipeline-card { width: 130px !important; padding: 8px 10px; }
  .card-body { font-size: 12px; }
}
@media (max-width: 575px) {
  .pipeline-card { width: 110px !important; padding: 7px 8px; }
  .pipeline-card .card-body { font-size: 10px; line-height: 1.3; margin-bottom: 4px !important; }
  .pipeline-card img { width: 32px !important; height: 32px !important; }
}
@media (max-width: 480px) {
  .pipeline-card { width: 120px !important; padding: 8px 10px; }
  .card-body { font-size: 11px; }
}