:root {
  --ns-ring: 0 0 0 4px rgba(79, 70, 229, 0.2);
  --ns-soft-shadow: 0 14px 30px rgba(11, 18, 32, 0.08);
  --ns-strong-shadow: 0 22px 46px rgba(11, 18, 32, 0.14);
}

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -15% -10% auto;
  height: 420px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 260px at 18% 8%, rgba(79, 70, 229, 0.14), transparent 60%),
    radial-gradient(620px 300px at 82% 12%, rgba(6, 182, 212, 0.12), transparent 62%),
    radial-gradient(640px 320px at 50% -6%, rgba(34, 197, 94, 0.08), transparent 60%);
  filter: saturate(106%);
}

.ns-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #22c55e);
  z-index: 9999;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.ns-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  box-shadow: var(--ns-soft-shadow);
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ns-back-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--ns-strong-shadow);
}

.ns-back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: none;
  box-shadow: var(--ns-ring);
}

:where(input, select, textarea, button) {
  font: inherit;
}

:where(.btn) {
  min-height: 44px;
}

:where(.fine, .help, .muted, .sub) {
  line-height: 1.55;
}

:where(.form-card, .panel-lite, .client-build-card, .compare-card, .proof-card, .studio-pricing-card, .card, .block) {
  border-color: rgba(18, 35, 63, 0.12);
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.08);
}

.ns-reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.ns-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

:where(.card, .build, .tier, .faq-item, .price-card, .work-item, .service-card) {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Unified pricing presentation */
:where(.pricing-grid) {
  gap: 14px;
}

:where(.price-card) {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(18, 35, 63, 0.12);
  background:
    radial-gradient(560px 180px at 12% 0%, rgba(79, 70, 229, 0.1), transparent 58%),
    linear-gradient(180deg, #ffffff, #f9fbff);
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.08);
}

:where(.price-card)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  opacity: 0.9;
}

:where(.price-card h3) {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: rgba(11, 18, 32, 0.64);
}

:where(.price-card .price) {
  margin-top: 8px;
  font-size: clamp(1.85rem, 3.6vw, 2.35rem);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: rgba(11, 18, 32, 0.94);
}

:where(.price-card .price-note) {
  margin-top: 8px;
  font-weight: 760;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(11, 18, 32, 0.68);
}

:where(.micro-note) {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 760;
  color: rgba(11, 18, 32, 0.62);
}

:where(.studio-pricing-shell) {
  border: 1px solid rgba(18, 35, 63, 0.12);
  box-shadow: 0 18px 36px rgba(11, 18, 32, 0.09);
}

:where(.studio-plan .amount) {
  color: rgba(11, 18, 32, 0.96);
}

@media (hover: hover) {
  :where(.card, .build, .tier, .faq-item, .price-card, .work-item, .service-card):hover {
    transform: translateY(-3px);
    box-shadow: var(--ns-soft-shadow);
  }
}

.ns-nav-active {
  position: relative;
}

.ns-nav-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
}

body.has-stickycta .ns-back-top {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 900px) {
  .ns-nav-active::after {
    left: 2px;
    right: 2px;
    bottom: -4px;
  }
}

@media (max-width: 640px) {
  :where(.form-actions .btn, .hero-actions .btn, .cta-row .btn, .center-cta .btn, .cta-actions .btn) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ns-reveal {
    opacity: 1;
    transform: none;
  }
}
