/**
 * Motion + atmosphere.
 *
 * Scroll behaviour has one home: native anchors use `scroll-padding-top`
 * with the shared `--header-offset`; page snapping is native CSS proximity
 * on the only scroll root (<html>). No wheel interception, no custom scroll
 * engine, no repeated scrollTo, no forced timers.
 */
:root {
	--nvd-atmosphere-strength: 1;
	--nvd-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nvd-t-hover: 220ms;
	--nvd-t-bg: 900ms;
}

/* Pairs with html's scroll-padding-top; the two halves equal one offset.
   Only the seven top-level navigable sections receive this target offset. */
.page-section[id] { scroll-margin-top: calc(var(--header-offset) / 2); }

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
		scroll-snap-type: y proximity;
	}
	/* Internal form targets must not become page snap points. */
	.page-section { scroll-snap-align: start; scroll-snap-stop: normal; }
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
		scroll-snap-type: none;
	}
}

/* Shared section stacking so atmosphere sits behind content without seams. */
.nvd-hero,
.nvd-section,
.nvd-footer { position: relative; isolation: isolate; }
.nvd-hero > .nvd-container,
.nvd-section > .nvd-container,
.nvd-footer > .nvd-container { position: relative; z-index: 1; }

.nvd-section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: var(--nvd-atmosphere-strength);
}

/* Quiet section-by-section gradients (static, cheap, no canvas/WebGL). */
.nvd-hero { background: var(--color-bg); }
.nvd-hero::before {
	background:
		radial-gradient(80% 70% at 78% 18%, var(--shadow-green), transparent 60%),
		radial-gradient(60% 55% at 12% 8%, rgba(29, 52, 39, 0.55), transparent 62%),
		radial-gradient(45% 45% at 88% 72%, var(--shadow-cyan), transparent 70%),
		linear-gradient(180deg, #000 0%, #0A1411 55%, #000 100%);
}
.nvd-section--services::before {
	background:
		radial-gradient(70% 60% at 0% 30%, rgba(24, 59, 49, 0.5), transparent 62%),
		linear-gradient(180deg, #000 0%, #08110D 70%, #000 100%);
}
.nvd-section--process::before {
	background:
		radial-gradient(50% 80% at 50% 0%, rgba(29, 52, 39, 0.45), transparent 70%),
		linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg) 100%);
}
.nvd-section--advantages::before {
	background:
		radial-gradient(70% 60% at 100% 60%, rgba(24, 59, 49, 0.5), transparent 62%),
		radial-gradient(45% 50% at 0% 100%, var(--shadow-cyan), transparent 70%),
		linear-gradient(160deg, #000 0%, #0C1512 55%, #000 100%);
}
.nvd-section--pricing::before {
	background:
		radial-gradient(60% 55% at 70% 30%, rgba(29, 52, 39, 0.5), transparent 62%),
		linear-gradient(180deg, #000 0%, #0A1310 60%, #000 100%);
}
.nvd-section--portfolio::before {
	background:
		radial-gradient(70% 60% at 50% 0%, rgba(24, 59, 49, 0.35), transparent 65%),
		linear-gradient(180deg, var(--color-surface) 0%, #000 75%, #000 100%);
}
.nvd-section--security::before {
	background:
		radial-gradient(55% 55% at 100% 0%, rgba(24, 59, 49, 0.45), transparent 65%),
		linear-gradient(180deg, #000 0%, var(--color-surface) 55%, #000 100%);
}
.nvd-section--statistics::before {
	background:
		radial-gradient(60% 65% at 85% 45%, rgba(77, 147, 68, 0.18), transparent 60%),
		radial-gradient(45% 50% at 12% 55%, var(--shadow-cyan), transparent 70%),
		linear-gradient(180deg, #000 0%, #0C1512 55%, #000 100%);
}
.nvd-footer { background: var(--color-surface); }
.nvd-footer::before {
	background:
		radial-gradient(70% 50% at 50% 0%, rgba(24, 59, 49, 0.35), transparent 65%),
		linear-gradient(180deg, #000 0%, var(--color-surface) 45%, #000 100%);
}
.nvd-footer > .nvd-container { position: relative; z-index: 1; }
.nvd-pricing-card--featured { background-image: radial-gradient(120% 90% at 50% 0%, var(--shadow-green), transparent 70%); }

/* Header: subtle entrance only; motion is never required for usability. */
@media (prefers-reduced-motion: no-preference) {
	.nvd-header { animation: nvd-header-in 0.5s var(--nvd-ease) both; }
	@keyframes nvd-header-in {
		from { opacity: 0; transform: translateY(-6px); }
		to { opacity: 1; transform: none; }
	}
}
.nvd-header--scrolled {
	background-color: rgba(0, 0, 0, 0.96);
	border-bottom-color: var(--color-border-strong);
}

/* Hover/focus polish. No hidden content, no layout-shifting transforms. */
.nvd-nav a,
.nvd-header__contact,
.nvd-footer__links a,
.nvd-footer__legal-list a { transition: color var(--nvd-t-hover) var(--nvd-ease), border-color var(--nvd-t-hover) var(--nvd-ease); }
.nvd-feature-card__icon,
.nvd-stat__icon { transition: color var(--nvd-t-hover) var(--nvd-ease), background-color var(--nvd-t-hover) var(--nvd-ease); }
.nvd-card:hover .nvd-feature-card__icon,
.nvd-card:focus-within .nvd-feature-card__icon { color: var(--color-primary-bright); }
.nvd-portfolio-card__media img { transition: transform 0.4s var(--nvd-ease); }
a.nvd-portfolio-card:hover .nvd-portfolio-card__media img { transform: scale(1.03); }
.nvd-button__icon { transition: transform 0.2s var(--nvd-ease); }
.nvd-button:hover .nvd-button__icon { transform: translateX(2px); }

/* Static process connector: decorative, non-text, pointer-transparent. */
.nvd-process__grid { position: relative; }
.nvd-process__grid::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 1.6rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-border), transparent);
	pointer-events: none;
	z-index: 0;
	opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
	.nvd-header { animation: none !important; }
	.nvd-portfolio-card__media img,
	a.nvd-portfolio-card:hover .nvd-portfolio-card__media img { transform: none !important; transition: none !important; }
	.nvd-button__icon,
	.nvd-button:hover .nvd-button__icon { transform: none !important; transition: none !important; }
}
