:root {
	--orange: #ea580c;
	--orange-600: #ea580c;
	--orange-500: #f97316;
	--orange-400: #fb923c;
	--orange-100: #ffedd5;
	--orange-50: #fff7ed;
	--ink: #1c1917;
	--ink-muted: #57534e;
	--ink-soft: #78716c;
	--surface: #ffffff;
	--line: #e7e5e4;
	--radius: 16px;
	--radius-lg: 24px;
	--font: "Vazirmatn", "IRANSans", Tahoma, system-ui, sans-serif;
	--shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
	--shadow-lg: 0 20px 50px rgba(234, 88, 12, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	direction: rtl;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 16px;
	color: var(--ink);
	background: var(--orange-50);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* subtle grid — not generic AI blob */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(234, 88, 12, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(234, 88, 12, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	pointer-events: none;
	z-index: 0;
}

.page {
	position: relative;
	z-index: 1;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px 64px;
}

/* Header */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0 32px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 48px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
}

.brand-mark {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--orange-500), var(--orange-600));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.02em;
	box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.brand-name {
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.brand-tag {
	font-size: 0.8rem;
	color: var(--ink-soft);
	font-weight: 500;
}

.header-pill {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--orange-600);
	background: var(--surface);
	border: 1px solid #fed7aa;
	padding: 6px 14px;
	border-radius: 999px;
}

/* Hero */
.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	margin-bottom: 56px;
}

@media (max-width: 800px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.hero-copy h1 {
	margin: 0 0 16px;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.hero-copy h1 span {
	color: var(--orange-600);
}

.hero-lead {
	margin: 0 0 24px;
	font-size: 1.05rem;
	color: var(--ink-muted);
	max-width: 32em;
}

.hero-points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hero-points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.95rem;
	color: var(--ink-muted);
}

.hero-points li::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin-top: 9px;
	border-radius: 50%;
	background: var(--orange-500);
}

/* Loader card */
.loader-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 40px 32px;
	box-shadow: var(--shadow-lg);
	text-align: center;
}

.loader-card.is-error {
	border-color: #fecaca;
	background: #fef2f2;
}

.loader-ring-wrap {
	position: relative;
	width: 120px;
	height: 120px;
	margin: 0 auto 28px;
}

.loader-ring {
	width: 120px;
	height: 120px;
	transform: rotate(-90deg);
}

.loader-ring-bg {
	fill: none;
	stroke: var(--orange-100);
	stroke-width: 6;
}

.loader-ring-progress {
	fill: none;
	stroke: url(#ringGradient);
	stroke-width: 6;
	stroke-linecap: round;
	stroke-dasharray: 326.73;
	stroke-dashoffset: 326.73;
	transition: stroke-dashoffset 0.35s ease;
}

.loader-ring-spinner {
	fill: none;
	stroke: var(--orange-400);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 40 200;
	animation: ring-spin 1.2s linear infinite;
	opacity: 0.5;
}

@keyframes ring-spin {
	to {
		transform: rotate(360deg);
	}
}

.loader-ring-wrap svg.loader-ring-spinner-svg {
	position: absolute;
	inset: 8px;
	width: 104px;
	height: 104px;
	animation: ring-spin 1.4s linear infinite;
}

.loader-count {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-variant-numeric: tabular-nums;
}

.loader-count-num {
	font-size: 2rem;
	font-weight: 800;
	color: var(--orange-600);
	line-height: 1;
}

.loader-count-label {
	font-size: 0.75rem;
	color: var(--ink-soft);
	margin-top: 4px;
	font-weight: 600;
}

.loader-status {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 6px;
	min-height: 1.5em;
}

.loader-sub {
	font-size: 0.85rem;
	color: var(--ink-soft);
	margin: 0;
}

.loader-steps {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.loader-step {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ink-soft);
	padding: 6px 12px;
	border-radius: 8px;
	background: #fafaf9;
	border: 1px solid var(--line);
	transition: all 0.25s ease;
}

.loader-step.is-active {
	color: var(--orange-600);
	background: var(--orange-50);
	border-color: #fed7aa;
}

.loader-step.is-done {
	color: #15803d;
	background: #f0fdf4;
	border-color: #bbf7d0;
}

/* Features strip */
.features-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 40px;
}

@media (max-width: 700px) {
	.features-strip {
		grid-template-columns: 1fr;
	}
}

.feature-item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 18px;
	box-shadow: var(--shadow);
}

.feature-item strong {
	display: block;
	font-size: 0.95rem;
	margin-bottom: 6px;
	color: var(--ink);
}

.feature-item span {
	font-size: 0.85rem;
	color: var(--ink-soft);
	line-height: 1.5;
}

.feature-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--orange-50);
	border: 1px solid #fed7aa;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.feature-icon i {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: var(--orange-500);
	box-shadow: 10px 0 0 var(--orange-400), 5px 10px 0 var(--orange-600);
}

.feature-icon--media i {
	width: 16px;
	height: 12px;
	border-radius: 2px;
	box-shadow: none;
	border: 2px solid var(--orange-500);
	background: transparent;
}

.feature-icon--chart i {
	width: 4px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 6px -4px 0 var(--orange-400), 12px 2px 0 var(--orange-600);
}

/* Error */
.error-panel {
	text-align: center;
	padding: 32px;
}

.error-panel h2 {
	margin: 0 0 12px;
	font-size: 1.2rem;
	color: #b91c1c;
}

.error-panel p {
	margin: 0 0 20px;
	color: #7f1d1d;
	font-size: 0.95rem;
}

.btn-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--ink);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	border-radius: 12px;
	transition: background 0.15s;
}

.btn-back:hover {
	background: #44403c;
	color: #fff;
}

.site-footer {
	text-align: center;
	padding-top: 32px;
	border-top: 1px solid var(--line);
	font-size: 0.8rem;
	color: var(--ink-soft);
}
