/**
 * NextShop Theme Landing — standalone styles
 */

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--ns-primary: #6366f1;
	--ns-primary-dark: #4f46e5;
	--ns-secondary: #06b6d4;
	--ns-accent: #f59e0b;
	--ns-accent-hot: #ef4444;
	--ns-success: #10b981;
	--ns-bg: #0b0f1a;
	--ns-bg-soft: #111827;
	--ns-bg-card: rgba(17, 24, 39, 0.72);
	--ns-border: rgba(255, 255, 255, 0.08);
	--ns-text: #f8fafc;
	--ns-text-muted: #94a3b8;
	--ns-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #06b6d4 100%);
	--ns-gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
	--ns-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	--ns-radius: 20px;
	--ns-radius-sm: 12px;
	--ns-nav-h: 76px;
	--ns-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: var(--ns-bg);
	color: var(--ns-text);
	line-height: 1.75;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

.container {
	width: min(1180px, calc(100% - 2rem));
	margin-inline: auto;
}

/* Background mesh */
.bg-mesh {
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.35), transparent 55%),
		radial-gradient(ellipse 60% 40% at 90% 10%, rgba(6, 182, 212, 0.22), transparent 50%),
		radial-gradient(ellipse 50% 35% at 50% 100%, rgba(139, 92, 246, 0.18), transparent 55%),
		var(--ns-bg);
}

.bg-grid {
	position: fixed;
	inset: 0;
	z-index: -1;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent);
}

/* Nav */
.site-nav {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
	height: var(--ns-nav-h);
	transition: background 0.35s var(--ns-ease), box-shadow 0.35s var(--ns-ease), backdrop-filter 0.35s;
}

.site-nav.is-scrolled {
	background: rgba(11, 15, 26, 0.82);
	backdrop-filter: blur(16px);
	box-shadow: 0 1px 0 var(--ns-border);
}

.nav-inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 800;
	font-size: 1.25rem;
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--ns-gradient);
	display: grid;
	place-items: center;
	font-size: 1.1rem;
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.nav-links a {
	color: var(--ns-text-muted);
	font-size: 0.92rem;
	font-weight: 500;
	transition: color 0.25s;
}

.nav-links a:hover {
	color: var(--ns-text);
}

.nav-cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.25s var(--ns-ease), box-shadow 0.25s, background 0.25s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--ns-gradient);
	color: #fff;
	box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
	box-shadow: 0 16px 40px rgba(99, 102, 241, 0.55);
}

.btn-ghost {
	border: 1px solid var(--ns-border);
	color: var(--ns-text);
	background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.07);
}

.btn-accent {
	background: var(--ns-gradient-warm);
	color: #fff;
	box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--ns-border);
	color: var(--ns-text);
}

/* Hero */
.hero {
	min-height: 100vh;
	padding: calc(var(--ns-nav-h) + 3rem) 0 4rem;
	display: flex;
	align-items: center;
	position: relative;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 3rem;
	align-items: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 1rem 0.45rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(99, 102, 241, 0.35);
	background: rgba(99, 102, 241, 0.12);
	color: #c7d2fe;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	animation: pulse-glow 3s ease-in-out infinite;
}

.hero-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ns-success);
	box-shadow: 0 0 12px var(--ns-success);
}

@keyframes pulse-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
	50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.hero h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(2rem, 4.5vw, 3.35rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
	background: var(--ns-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-lead {
	margin: 0 0 2rem;
	color: var(--ns-text-muted);
	font-size: 1.1rem;
	max-width: 34rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ns-text-muted);
	font-size: 0.88rem;
}

.trust-item svg {
	color: var(--ns-success);
	flex-shrink: 0;
}

.hero-visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-lottie-wrap {
	width: min(480px, 100%);
	aspect-ratio: 1;
	position: relative;
}

.hero-lottie-wrap::before {
	content: '';
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
	filter: blur(40px);
	animation: float 6s ease-in-out infinite;
}

.hero-lottie {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
}

@keyframes float {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-16px) scale(1.03); }
}

.floating-card {
	position: absolute;
	z-index: 2;
	padding: 0.85rem 1rem;
	border-radius: var(--ns-radius-sm);
	background: var(--ns-bg-card);
	border: 1px solid var(--ns-border);
	backdrop-filter: blur(12px);
	box-shadow: var(--ns-shadow);
	font-size: 0.82rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	animation: float 5s ease-in-out infinite;
}

.floating-card--1 { top: 8%; left: -4%; animation-delay: -1s; }
.floating-card--2 { bottom: 18%; right: -6%; animation-delay: -2.5s; }
.floating-card--3 { bottom: 6%; left: 4%; animation-delay: -0.5s; }

.floating-card-icon {
	width: 32px;
	height: 32px;
}

/* Stats */
.stats-bar {
	padding: 0 0 5rem;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.stat-card {
	padding: 1.5rem;
	border-radius: var(--ns-radius);
	background: var(--ns-bg-card);
	border: 1px solid var(--ns-border);
	backdrop-filter: blur(10px);
	text-align: center;
	transition: transform 0.35s var(--ns-ease), border-color 0.35s;
}

.stat-card:hover {
	transform: translateY(-4px);
	border-color: rgba(99, 102, 241, 0.35);
}

.stat-value {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	background: var(--ns-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1.2;
}

.stat-label {
	margin-top: 0.35rem;
	color: var(--ns-text-muted);
	font-size: 0.9rem;
}

/* Sections */
.section {
	padding: 5rem 0;
}

.section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 3.5rem;
}

.section-tag {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: rgba(6, 182, 212, 0.12);
	border: 1px solid rgba(6, 182, 212, 0.25);
	color: #67e8f9;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.section-header h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	font-weight: 800;
	line-height: 1.3;
}

.section-header p {
	margin: 0;
	color: var(--ns-text-muted);
	font-size: 1.05rem;
}

/* Pillars */
.pillars-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.pillar-card {
	padding: 1.75rem;
	border-radius: var(--ns-radius);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
	border: 1px solid var(--ns-border);
	transition: transform 0.35s var(--ns-ease);
}

.pillar-card:hover {
	transform: translateY(-6px);
}

.pillar-icon {
	width: 52px;
	height: 52px;
	margin-bottom: 1rem;
}

.pillar-card h3 {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.pillar-card p {
	margin: 0;
	color: var(--ns-text-muted);
	font-size: 0.92rem;
}

/* Feature cards */
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.feature-card {
	position: relative;
	padding: 1.75rem;
	border-radius: var(--ns-radius);
	background: var(--ns-bg-card);
	border: 1px solid var(--ns-border);
	overflow: hidden;
	transition: transform 0.4s var(--ns-ease), border-color 0.4s, box-shadow 0.4s;
}

.feature-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), transparent 60%);
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
}

.feature-card:hover {
	transform: translateY(-8px);
	border-color: rgba(99, 102, 241, 0.3);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::after {
	opacity: 1;
}

.feature-lottie {
	width: 72px;
	height: 72px;
	margin-bottom: 1rem;
}

.feature-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.feature-card p {
	margin: 0;
	color: var(--ns-text-muted);
	font-size: 0.9rem;
}

.feature-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1rem;
}

.tag {
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	background: rgba(99, 102, 241, 0.15);
	color: #c7d2fe;
	border: 1px solid rgba(99, 102, 241, 0.2);
}

.tag--cyan {
	background: rgba(6, 182, 212, 0.15);
	color: #a5f3fc;
	border-color: rgba(6, 182, 212, 0.25);
}

.tag--amber {
	background: rgba(245, 158, 11, 0.15);
	color: #fde68a;
	border-color: rgba(245, 158, 11, 0.25);
}

/* Showcase split */
.showcase {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
	margin-bottom: 4rem;
}

.showcase:last-child {
	margin-bottom: 0;
}

.showcase--reverse .showcase-content {
	order: 2;
}

.showcase--reverse .showcase-visual {
	order: 1;
}

.showcase-visual {
	display: flex;
	justify-content: center;
}

.showcase-lottie-wrap {
	width: min(360px, 100%);
	aspect-ratio: 1;
	padding: 2rem;
	border-radius: var(--ns-radius);
	background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15), transparent 60%), var(--ns-bg-soft);
	border: 1px solid var(--ns-border);
}

.showcase-lottie {
	width: 100%;
	height: 100%;
}

.showcase-content h3 {
	margin: 0 0 1rem;
	font-size: 1.65rem;
	font-weight: 800;
}

.showcase-content p {
	margin: 0 0 1.25rem;
	color: var(--ns-text-muted);
}

.check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.check-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.95rem;
}

.check-list li::before {
	content: '✓';
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(16, 185, 129, 0.15);
	color: var(--ns-success);
	display: grid;
	place-items: center;
	font-size: 0.75rem;
	font-weight: 800;
}

/* Widgets marquee */
.widgets-section {
	background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent);
	border-block: 1px solid var(--ns-border);
}

.widgets-marquee {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.widgets-track {
	display: flex;
	gap: 1rem;
	width: max-content;
	animation: marquee 40s linear infinite;
}

.widgets-track:hover {
	animation-play-state: paused;
}

@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.widget-chip {
	flex-shrink: 0;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	border: 1px solid var(--ns-border);
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Module list compact */
.modules-wrap {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.module-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.15rem;
	border-radius: var(--ns-radius-sm);
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--ns-border);
	font-size: 0.9rem;
	transition: background 0.25s, border-color 0.25s;
}

.module-item:hover {
	background: rgba(99, 102, 241, 0.08);
	border-color: rgba(99, 102, 241, 0.25);
}

.module-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ns-gradient);
	flex-shrink: 0;
}

/* CTA */
.cta-section {
	padding: 5rem 0 6rem;
}

.cta-box {
	position: relative;
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: calc(var(--ns-radius) + 8px);
	background:
		radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.35), transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.25), transparent 40%),
		var(--ns-bg-soft);
	border: 1px solid rgba(99, 102, 241, 0.25);
	text-align: center;
	overflow: hidden;
}

.cta-box::before {
	content: '';
	position: absolute;
	width: 280px;
	height: 280px;
	top: -80px;
	left: -80px;
	background: var(--ns-gradient);
	opacity: 0.12;
	border-radius: 50%;
	filter: blur(60px);
}

.cta-lottie {
	width: 100px;
	height: 100px;
	margin: 0 auto 1.25rem;
}

.cta-box h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 800;
	position: relative;
}

.cta-box p {
	margin: 0 auto 2rem;
	max-width: 540px;
	color: var(--ns-text-muted);
	position: relative;
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	position: relative;
}

/* Footer */
.site-footer {
	padding: 2.5rem 0;
	border-top: 1px solid var(--ns-border);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.footer-copy {
	margin: 0;
	color: var(--ns-text-muted);
	font-size: 0.88rem;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
}

.footer-links a {
	color: var(--ns-text-muted);
	font-size: 0.88rem;
	transition: color 0.25s;
}

.footer-links a:hover {
	color: var(--ns-text);
}

/* Scroll reveal */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--ns-ease), transform 0.7s var(--ns-ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Mobile nav drawer */
.mobile-menu {
	position: fixed;
	inset: var(--ns-nav-h) 0 0 0;
	z-index: 99;
	background: rgba(11, 15, 26, 0.96);
	backdrop-filter: blur(16px);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	transform: translateY(-110%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.35s var(--ns-ease), opacity 0.35s;
}

.mobile-menu.is-open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.mobile-menu a {
	padding: 0.85rem 1rem;
	border-radius: var(--ns-radius-sm);
	font-weight: 600;
}

.mobile-menu a:hover {
	background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
	.hero-grid,
	.showcase,
	.pillars-grid {
		grid-template-columns: 1fr 1fr;
	}

	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.showcase--reverse .showcase-content,
	.showcase--reverse .showcase-visual {
		order: unset;
	}
}

@media (max-width: 768px) {
	.nav-links,
	.nav-cta .btn-ghost {
		display: none;
	}

	.nav-toggle {
		display: grid;
		place-items: center;
	}

	.hero-grid,
	.showcase,
	.pillars-grid,
	.features-grid,
	.modules-wrap,
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.hero {
		padding-top: calc(var(--ns-nav-h) + 1.5rem);
	}

	.hero-visual {
		order: -1;
	}

	.floating-card {
		display: none;
	}

	.section {
		padding: 3.5rem 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}
