/* Motion and navigation refinements. */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { padding-top: 64px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  max-width: none;
  z-index: 100;
  will-change: transform;
  transition: background-color .28s ease, box-shadow .28s ease, border-color .28s ease;
  animation: header-enter .5s cubic-bezier(.22,1,.36,1) both;
}

.site-header.is-scrolled {
  background: rgba(8,9,11,.96);
  border-color: rgba(138,105,255,.22);
  box-shadow: 0 12px 34px rgba(0,0,0,.42);
}

.nav-link {
  position: relative;
  padding: 10px 11px;
  color: #b7b8c1;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.015em;
  transition: color .22s ease, background-color .22s ease, transform .22s ease;
}

.nav-link::after {
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 1px;
  content: '';
  background: #8a69ff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s cubic-bezier(.22,1,.36,1);
}

.nav-link:hover,
.nav-link:focus-visible { color: #fff; transform: translateY(-1px); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-cta { transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.nav-cta:hover,
.nav-cta:focus-visible { transform: translateY(-1px); }

.btn-primary,
.plan-cta,
.link-secondary { transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease; }
.btn-primary:hover,
.plan-cta:hover,
.link-secondary:hover { transform: translateY(-2px); }
.monthly-card { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.monthly-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,.2); }

.package-close {
  max-width: 620px;
  margin: 34px auto 0;
  padding: 28px 0 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.13);
}
.package-close .section-kicker { margin: 0 0 10px; color: #a997f6; }
.package-close h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.06; letter-spacing: -.055em; }
.package-close > p:last-child { max-width: 510px; margin: 13px auto 0; color: #a9aab5; font-size: 14px; line-height: 1.65; }

.budget-owner-note {
  margin: 16px 0 18px !important;
  padding: 9px 11px;
  border-left: 2px solid #7c5cff;
  border-radius: 0 8px 8px 0;
  background: rgba(124,92,255,.09);
  color: #4d3bc5 !important;
  font-size: 11px !important;
  font-weight: 750;
  line-height: 1.55 !important;
}
.monthly-card.is-featured .budget-owner-note {
  border-left-color: #c9b8ff;
  background: rgba(255,255,255,.1);
  color: #f0ebff !important;
}

.demo-steps-pair { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-steps-pair .demo-budget-card {
  border-color: rgba(124,92,255,.42);
  background: linear-gradient(135deg, rgba(103,61,230,.19), rgba(255,255,255,.03));
}
.demo-steps-pair .demo-budget-card strong { font-size: clamp(20px, 2.15vw, 28px); }
.demo-steps-pair .demo-video-card {
  border-color: rgba(74,222,128,.35);
  background: linear-gradient(135deg, rgba(22,101,52,.18), rgba(255,255,255,.03));
}
.demo-performance-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: -10px 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(74,222,128,.24);
  border-radius: 12px;
  background: rgba(28,120,88,.1);
}
.demo-performance-note span { color: #86efac; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.demo-performance-note strong { color: #eafdf1; font-size: 12px; line-height: 1.5; }

.live-panel-area { min-width: 0; }
.budget-spent-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
  padding: 13px 16px;
  border: 1px solid rgba(52,211,153,.25);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(18,74,60,.36), rgba(8,10,16,.9));
}
.budget-spent-notice > div { display: flex; align-items: baseline; gap: 10px; }
.budget-spent-notice span { color: #86efac; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.budget-spent-notice strong { color: #fff; font-size: 14px; letter-spacing: -.02em; }
.budget-spent-notice time { color: #a8acb7; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (min-width: 981px) {
  .intro-hero { grid-template-columns: 1.08fr 1.22fr; gap: 26px; }
  .hero-vampire img { width: 132%; margin-left: -23%; }
  .track-layout { grid-template-columns: .62fr 1.38fr; gap: 28px; }
}

@keyframes header-enter { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  body { padding-top: 60px; }
  html { scroll-padding-top: 78px; }
  .nav-link { font-size: 14px; }
  .nav-link::after { display: none; }
  .budget-spent-notice { align-items: flex-start; flex-direction: column; gap: 5px; }
  .demo-steps-pair { grid-template-columns: 1fr; }
  .demo-performance-note { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
