/**
 * Neto Core — cinematic brand hero
 */

.netocore-brand-hero {
	--nc-hero-overlay: 0.42;
	--nc-hero-gold: #e7c56a;
	--nc-hero-gold-2: #f8e7b0;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	overflow-x: clip;
	min-height: min(88vh, 920px);
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "Vazirmatn FD", sans-serif;
	background: #070b14;
	opacity: 0;
	visibility: hidden;
}

.netocore-brand-hero.is-ready {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.35s ease;
}

.netocore-brand-hero:not(.is-ready) .netocore-brand-hero-strip-track,
.netocore-brand-hero:not(.is-ready) .netocore-brand-medal {
	animation: none !important;
}

.netocore-brand-hero *,
.netocore-brand-hero *::before,
.netocore-brand-hero *::after {
	box-sizing: border-box;
}

.netocore-brand-hero--full {
	width: 100vw;
	max-width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.netocore-brand-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #070b14;
}

.netocore-brand-hero-media video,
.netocore-brand-hero-media > img,
.netocore-brand-hero-media .netocore-brand-hero-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.netocore-brand-hero-media iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100%;
	min-width: 177.77vh;
	border: 0;
	transform: translate(-50%, -50%) scale(1.08);
	pointer-events: none;
	filter: saturate(1.05);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.netocore-brand-hero-media iframe.is-nc-active {
	opacity: 1;
}

.netocore-brand-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 18%, rgba(231, 197, 106, 0.18), transparent 42%),
		radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.16), transparent 40%),
		linear-gradient(180deg, rgba(7, 11, 20, 0.35) 0%, rgba(7, 11, 20, var(--nc-hero-overlay)) 48%, rgba(7, 11, 20, 0.88) 100%);
}

.netocore-brand-hero-grain {
	position: absolute;
	inset: 0;
	opacity: 0.08;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
}

.netocore-brand-hero-beam {
	position: absolute;
	width: 42%;
	height: 140%;
	top: -20%;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(231, 197, 106, 0.09), transparent);
	filter: blur(8px);
	transform: rotate(18deg);
	animation: nc-hero-beam 12s linear infinite;
}

.netocore-brand-hero-beam--a { right: 8%; animation-delay: -4s; }
.netocore-brand-hero-beam--b { left: 4%; width: 28%; opacity: 0.55; transform: rotate(-16deg); }

.netocore-brand-hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	pointer-events: none;
	will-change: transform;
}

.netocore-brand-hero-orb--a {
	width: 220px;
	height: 220px;
	top: 8%;
	right: 6%;
	background: radial-gradient(circle, rgba(231, 197, 106, 0.34), transparent 68%);
}

.netocore-brand-hero-orb--b {
	width: 280px;
	height: 280px;
	bottom: 8%;
	left: -40px;
	background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 70%);
}

.netocore-brand-hero-orb--c {
	width: 120px;
	height: 120px;
	top: 38%;
	left: 18%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
}

.netocore-brand-hero-frame {
	position: absolute;
	inset: 18px;
	z-index: 2;
	pointer-events: none;
}

.netocore-brand-hero-frame span {
	position: absolute;
	width: 42px;
	height: 42px;
	border: 1.5px solid rgba(231, 197, 106, 0.55);
}

.netocore-brand-hero-frame span:nth-child(1) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.netocore-brand-hero-frame span:nth-child(2) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.netocore-brand-hero-frame span:nth-child(3) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.netocore-brand-hero-frame span:nth-child(4) { bottom: 0; left: 0; border-right: 0; border-top: 0; }

.netocore-brand-hero-inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 34px;
	min-height: inherit;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 96px 20px 40px;
}

.netocore-brand-hero-copy {
	text-align: center;
	max-width: 760px;
}

.netocore-brand-hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.28em;
	color: var(--nc-hero-gold);
	text-transform: none;
}

.netocore-brand-hero-kicker-line {
	display: inline-block;
	width: 42px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--nc-hero-gold), transparent);
}

.netocore-brand-hero-title {
	margin: 0;
	font-size: clamp(22px, 3vw, 38px);
	font-weight: 500;
	line-height: 1.35;
	color: #fff;
	letter-spacing: 0;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.netocore-brand-hero-jewel {
	display: block;
	width: 12px;
	height: 12px;
	margin: 16px auto 14px;
	border: 1.5px solid var(--nc-hero-gold);
	transform: rotate(45deg);
	box-shadow: 0 0 18px rgba(231, 197, 106, 0.55);
	background: linear-gradient(135deg, var(--nc-hero-gold-2), var(--nc-hero-gold));
}

.netocore-brand-hero-subtitle {
	margin: 0 auto;
	max-width: 34em;
	font-size: clamp(14px, 2vw, 18px);
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.86);
}

.netocore-brand-hero-count {
	display: inline-flex;
	align-items: center;
	margin: 18px 0 0;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(231, 197, 106, 0.35);
	background: rgba(231, 197, 106, 0.12);
	font-size: 12px;
	font-weight: 800;
	color: var(--nc-hero-gold-2);
}

.netocore-brand-hero-empty {
	margin: 0;
	padding: 18px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	text-align: center;
}

.netocore-brand-hero-carousel {
	width: 100%;
	max-width: 1400px;
}

.netocore-brand-hero-seven-stroke,
.netocore-brand-hero-seven-dots {
	display: none;
}

.netocore-brand-hero-medals {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 22px 18px;
	width: 100%;
	max-width: 1400px;
}

.netocore-brand-medal {
	--i: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 108px;
	text-decoration: none;
	color: #fff;
}

.netocore-brand-medal:nth-child(4n+2) { margin-top: 18px; }
.netocore-brand-medal:nth-child(4n+3) { margin-top: 8px; }
.netocore-brand-medal:nth-child(5n) { width: 124px; }

.netocore-brand-medal-ring {
	position: absolute;
	top: -6px;
	width: calc(100% + 12px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: conic-gradient(from 150deg, rgba(255, 255, 255, 0.08), rgba(231, 197, 106, 0.7), rgba(255, 255, 255, 0.4), rgba(231, 197, 106, 0.45), rgba(255, 255, 255, 0.08));
	opacity: 0.72;
	z-index: 0;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.netocore-brand-medal-core {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	padding: 14px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(231, 197, 106, 0.12) 100%);
	border: 1px solid rgba(255, 255, 255, 0.38);
	backdrop-filter: blur(16px) saturate(1.35);
	-webkit-backdrop-filter: blur(16px) saturate(1.35);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.5),
		inset 0 -10px 18px rgba(7, 11, 20, 0.14),
		0 10px 22px rgba(0, 0, 0, 0.2);
}

.netocore-brand-medal-shine {
	position: absolute;
	top: -6px;
	z-index: 2;
	width: calc(100% + 12px);
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	pointer-events: none;
}

.netocore-brand-medal-shine::before {
	content: "";
	position: absolute;
	top: -30%;
	right: -40%;
	width: 46%;
	height: 160%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: rotate(18deg) translateX(140%);
	transition: transform 0.7s ease;
}

.netocore-brand-medal:hover .netocore-brand-medal-shine::before,
.netocore-brand-medal:focus-visible .netocore-brand-medal-shine::before {
	transform: rotate(18deg) translateX(-180%);
}

.netocore-brand-medal:hover,
.netocore-brand-medal:focus-visible {
	transform: translateY(-8px) scale(1.04);
	outline: none;
	animation-play-state: paused;
	z-index: 4;
}

.netocore-brand-medal:hover .netocore-brand-medal-ring,
.netocore-brand-medal:focus-visible .netocore-brand-medal-ring {
	filter: drop-shadow(0 12px 22px rgba(231, 197, 106, 0.45));
}

.netocore-brand-medal-core img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.netocore-brand-medal-fallback {
	font-size: 28px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
}

.netocore-brand-medal-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.4em;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.netocore-brand-hero-strip {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	padding: 8px 0 4px;
}

.netocore-brand-hero-strip-track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: nc-hero-marquee 32s linear infinite;
}

.netocore-brand-hero-strip-group {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 12px;
	padding-inline-end: 12px;
}

.netocore-brand-hero-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(231, 197, 106, 0.28);
	backdrop-filter: blur(10px);
	color: rgba(255, 255, 255, 0.92);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.netocore-brand-hero-chip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(231, 197, 106, 0.16);
	color: var(--nc-hero-gold);
	flex: 0 0 auto;
	position: relative;
}

.netocore-brand-hero-chip-icon::before {
	content: "";
	width: 8px;
	height: 5px;
	border-left: 1.8px solid currentColor;
	border-bottom: 1.8px solid currentColor;
	transform: rotate(-45deg) translateY(-1px);
}

.netocore-brand-hero-chip img {
	width: 26px;
	height: 26px;
	object-fit: contain;
	border-radius: 50%;
	background: #fff;
	padding: 3px;
}

@keyframes nc-hero-ken {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

@keyframes nc-hero-beam {
	from { transform: rotate(18deg) translateX(-12%); }
	to { transform: rotate(18deg) translateX(18%); }
}

@keyframes nc-hero-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-9px); }
}

@keyframes nc-hero-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(var(--nc-loop, 50%), 0, 0); }
}

@keyframes nc-hero-seven-dash {
	to { stroke-dashoffset: -220; }
}

@media (min-width: 768px) {
	.netocore-brand-hero-inner {
		padding: 168px 32px 48px;
		gap: 42px;
	}

	.netocore-brand-medal {
		width: 104px;
		gap: 12px;
	}

	.netocore-brand-medal:nth-child(5n) {
		width: 118px;
	}

	.netocore-brand-medal-name {
		font-size: 13px;
	}
}

@media (min-width: 1024px) {
	.netocore-brand-hero-inner {
		padding: 176px 28px 52px;
	}

	.netocore-brand-hero-medals {
		display: grid;
		grid-template-columns: repeat(9, minmax(0, 1fr));
		gap: 18px 10px;
		width: 100%;
		max-width: 1400px;
		align-items: start;
	}

	.netocore-brand-medal,
	.netocore-brand-medal:nth-child(4n+2),
	.netocore-brand-medal:nth-child(4n+3),
	.netocore-brand-medal:nth-child(5n) {
		width: 86%;
		max-width: 118px;
		margin: 0 auto;
		gap: 8px;
	}

	.netocore-brand-medal-core {
		padding: 10px;
	}

	.netocore-brand-medal-name {
		font-size: 12px;
		min-height: 2.2em;
	}
}

@media (max-width: 767px) {
	.netocore-brand-hero,
	.netocore-brand-hero--full {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		height: auto;
		min-height: 0;
		max-height: none;
		overflow-x: hidden;
		overflow-y: visible;
		display: flex;
		flex-direction: column;
	}

	.netocore-brand-hero-media video,
	.netocore-brand-hero-media > img {
		inset: 0;
		width: 100%;
		height: 100%;
		animation: none;
	}

	.netocore-brand-hero-media iframe {
		width: 180%;
		height: 100%;
		min-width: 0;
		min-height: 100%;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.netocore-brand-hero-inner {
		flex: 0 0 auto;
		min-height: 0;
		height: auto;
		justify-content: flex-start;
		padding: 176px 14px 28px;
		gap: 20px;
	}

	.netocore-brand-hero-frame {
		display: none;
	}

	.netocore-brand-hero-orb,
	.netocore-brand-hero-beam {
		display: none;
	}

	.netocore-brand-hero-kicker {
		letter-spacing: 0.12em;
		font-size: 11px;
		gap: 8px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.netocore-brand-hero-kicker-line {
		width: 18px;
	}

	.netocore-brand-hero-title {
		font-size: clamp(18px, 5.4vw, 24px);
		font-weight: 500;
		line-height: 1.4;
		word-break: break-word;
	}

	.netocore-brand-hero-subtitle {
		font-size: 13px;
		line-height: 1.7;
		padding: 0 4px;
	}

	.netocore-brand-hero-jewel {
		margin: 10px auto 10px;
		width: 8px;
		height: 8px;
	}

	.netocore-brand-hero-copy {
		flex: 0 0 auto;
		max-width: 100%;
		padding: 0 2px;
	}

	.netocore-brand-hero-carousel,
	.netocore-brand-hero-carousel.is-nc-seven {
		position: relative;
		flex: 0 0 auto;
		width: 100%;
		max-width: 420px;
		height: auto;
		min-height: 0;
		margin: 8px auto 0;
		display: block;
	}

	.netocore-brand-hero-seven-stroke,
	.netocore-brand-hero-seven-dots,
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-hero-seven-stroke,
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-hero-seven-dots {
		display: none !important;
	}

	.netocore-brand-hero-medals,
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-hero-medals {
		position: relative;
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 14px 10px;
		width: 100%;
		max-width: none;
		inset: auto;
		overflow: visible;
		perspective: none;
	}

	.netocore-brand-medal,
	.netocore-brand-medal:nth-child(4n+2),
	.netocore-brand-medal:nth-child(4n+3),
	.netocore-brand-medal:nth-child(5n),
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-medal,
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-medal:nth-child(4n+2),
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-medal:nth-child(4n+3),
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-medal:nth-child(5n),
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-medal:nth-child(-n+3),
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-medal:nth-child(n+4):nth-child(-n+7),
	.netocore-brand-hero-carousel.is-nc-seven .netocore-brand-medal:nth-child(n+8) {
		position: relative;
		left: auto;
		top: auto;
		flex: none;
		width: 97%;
		max-width: 100px;
		margin: 0 auto;
		gap: 8px;
		animation: none;
		transform: none;
		opacity: 1;
		z-index: 1;
		transition: none;
	}

	.netocore-brand-medal-core {
		padding: 10px;
	}

	.netocore-brand-medal-name {
		font-size: 11px;
		min-height: 2.2em;
	}

	.netocore-brand-hero-strip {
		display: block !important;
		visibility: visible !important;
		flex: 0 0 auto;
		width: 100% !important;
		max-width: 100% !important;
		margin-top: 12px;
		padding-top: 4px;
		min-height: 42px;
		opacity: 1;
	}
}

@media (max-width: 420px) {
	.netocore-brand-hero-inner {
		padding: 168px 12px 24px;
	}

	.netocore-brand-medal-name {
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.netocore-brand-hero-media video,
	.netocore-brand-hero-beam,
	.netocore-brand-hero-strip-track,
	.netocore-brand-medal,
	.netocore-brand-hero-media video,
	.netocore-brand-hero-media > img,
	.netocore-brand-hero-seven-stroke path {
		animation: none !important;
	}

	.netocore-brand-hero-media video {
		display: none;
	}
}
