/* Neto UI — 404 [neto_ui_page_404] */

.neto-404 {
	position: relative;
	isolation: isolate;
	padding: clamp(2rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 5.5rem);
	color: var(--neto-ink);
	font-family: var(--neto-font);
	direction: rtl;
	overflow: hidden;
	background: transparent;
}

.neto-404__wrap {
	position: relative;
	width: 100%;
	min-height: min(72vh, 38rem);
	display: grid;
	place-items: center;
}

.neto-404__stage {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.neto-404__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	opacity: 0.85;
}

.neto-404__orb--a {
	width: min(42vw, 22rem);
	height: min(42vw, 22rem);
	top: 8%;
	inset-inline-end: 6%;
	background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--neto-accent) 35%, transparent), transparent 68%);
	animation: neto-404-float 9s ease-in-out infinite;
}

.neto-404__orb--b {
	width: min(36vw, 18rem);
	height: min(36vw, 18rem);
	bottom: 6%;
	inset-inline-start: 4%;
	background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--neto-brand) 28%, transparent), transparent 70%);
	animation: neto-404-float 11s ease-in-out infinite reverse;
}

.neto-404__grid {
	position: absolute;
	inset: 10% 8%;
	border-radius: 2rem;
	opacity: 0.35;
	background-image:
		linear-gradient(color-mix(in srgb, var(--neto-line) 70%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--neto-line) 70%, transparent) 1px, transparent 1px);
	background-size: 2.5rem 2.5rem;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

html[data-neto-ui-theme="dark"] .neto-404__grid {
	opacity: 0.22;
}

.neto-404__content {
	position: relative;
	z-index: 1;
	width: min(100%, 40rem);
	display: grid;
	justify-items: center;
	gap: 1.05rem;
	text-align: center;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.neto-404__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--neto-muted);
	animation: neto-404-in 0.55s ease both;
}

.neto-404__eyebrow-line {
	display: inline-block;
	width: 1.6rem;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--neto-eyebrow-line, var(--neto-accent)), transparent);
}

.neto-404__eyebrow-fa {
	color: var(--neto-ink);
	font-weight: 500;
	letter-spacing: 0;
}

.neto-404__code {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.35rem, 1.5vw, 0.85rem);
	margin: 0.15rem 0 0.25rem;
	line-height: 0.9;
	user-select: none;
	animation: neto-404-in 0.6s ease both 0.05s;
}

.neto-404__digit {
	font-size: clamp(4.5rem, 14vw, 7.5rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	color: transparent;
	background: linear-gradient(
		165deg,
		var(--neto-brand) 10%,
		var(--neto-accent) 55%,
		color-mix(in srgb, var(--neto-brand) 70%, #001a2a) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	text-shadow: 0 18px 40px color-mix(in srgb, var(--neto-brand) 22%, transparent);
}

html[data-neto-ui-theme="dark"] .neto-404__digit {
	background: linear-gradient(165deg, #e8f6ff 0%, #7dd3fc 45%, #00d7ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	text-shadow: 0 16px 36px rgba(0, 215, 255, 0.18);
}

.neto-404__digit--pulse {
	animation: neto-404-pulse 2.8s ease-in-out infinite;
}

.neto-404__title {
	margin: 0;
	font-size: clamp(1.45rem, 2.8vw, 2rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--neto-ink);
	animation: neto-404-in 0.6s ease both 0.1s;
}

.neto-404__lead {
	margin: 0;
	max-width: 32rem;
	font-size: clamp(0.98rem, 1.35vw, 1.08rem);
	line-height: 1.9;
	color: var(--neto-muted);
	animation: neto-404-in 0.6s ease both 0.15s;
}

.neto-404__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.55rem;
	animation: neto-404-in 0.6s ease both 0.2s;
}

.neto-404__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.72rem 1.25rem;
	border-radius: 0.85rem;
	border: 1px solid var(--neto-line);
	background: color-mix(in srgb, var(--neto-card, #fff) 88%, transparent);
	color: var(--neto-ink);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.neto-404__btn:hover,
.neto-404__btn:focus-visible {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--neto-accent) 40%, var(--neto-line));
	color: var(--neto-brand);
	text-decoration: none;
	box-shadow: 0 12px 28px -18px color-mix(in srgb, var(--neto-brand) 45%, transparent);
}

.neto-404__btn--primary {
	border-color: transparent;
	background: linear-gradient(165deg, var(--neto-brand), color-mix(in srgb, var(--neto-brand) 75%, #001a2a));
	color: #fff;
	box-shadow: 0 14px 32px -16px color-mix(in srgb, var(--neto-brand) 55%, transparent);
}

.neto-404__btn--primary:hover,
.neto-404__btn--primary:focus-visible {
	color: #fff;
	background: linear-gradient(165deg, var(--neto-brand-hover), var(--neto-brand));
}

.neto-404__btn-ico {
	display: inline-flex;
	line-height: 0;
	opacity: 0.92;
}

.neto-404__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 0.85rem;
}

.neto-404__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--neto-line) 90%, transparent);
	background: color-mix(in srgb, var(--neto-surface, #fff) 55%, transparent);
	color: var(--neto-muted);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
	animation: neto-404-in 0.5s ease both;
	animation-delay: calc(0.22s + var(--neto-404-i, 1) * 45ms);
}

.neto-404__chip:hover,
.neto-404__chip:focus-visible {
	color: var(--neto-brand);
	border-color: color-mix(in srgb, var(--neto-accent) 35%, var(--neto-line));
	background: color-mix(in srgb, var(--neto-accent) 8%, transparent);
	transform: translateY(-1px);
	text-decoration: none;
}

html[data-neto-ui-theme="dark"] .neto-404__btn:not(.neto-404__btn--primary) {
	background: #191919;
	border-color: #27272a;
}

html[data-neto-ui-theme="dark"] .neto-404__chip {
	background: rgba(255, 255, 255, 0.04);
	border-color: #27272a;
}

@keyframes neto-404-in {
	from {
		opacity: 0;
		transform: translateY(0.7rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes neto-404-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}
	50% {
		transform: translate3d(0, -0.85rem, 0);
	}
}

@keyframes neto-404-pulse {
	0%,
	100% {
		opacity: 1;
		filter: brightness(1);
	}
	50% {
		opacity: 0.72;
		filter: brightness(1.15);
	}
}

@media (max-width: 640px) {
	.neto-404__wrap {
		min-height: auto;
	}

	.neto-404__actions {
		flex-direction: column;
		width: 100%;
	}

	.neto-404__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.neto-404__eyebrow,
	.neto-404__code,
	.neto-404__title,
	.neto-404__lead,
	.neto-404__actions,
	.neto-404__chip,
	.neto-404__orb,
	.neto-404__digit--pulse {
		animation: none !important;
	}
}
