/* SeoNami — صفحه مادر خدمات سئو | Design System */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
	background: #fff;
	color: #111;
	line-height: 1.8;
	font-size: 16px;
}

/* Progress bar */
.sn-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: rgba(8, 127, 120, 0.12);
	z-index: 9999;
}
.sn-progress__bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #087f78, #f59e42);
	transition: width .1s linear;
}

/* Site header */
.sn-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(8, 127, 120, 0.1);
	box-shadow: 0 2px 20px rgba(31, 19, 70, 0.06);
}
.sn-site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: .75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.sn-logo {
	font-weight: 900;
	font-size: 1.35rem;
	color: #0a4a46;
	text-decoration: none;
	letter-spacing: -0.02em;
}
.sn-logo span { color: #087f78; }
.sn-header-nav {
	display: none;
	gap: 1.25rem;
	font-size: .9rem;
	font-weight: 600;
}
.sn-header-nav a { color: #0a4a46; text-decoration: none; }
.sn-header-nav a:hover { color: #087f78; }
@media (min-width: 768px) { .sn-header-nav { display: flex; } }

/* Page tokens */
.sn-seo-page {
	--sn-purple: #087f78;
	--sn-purple-dark: #0a4a46;
	--sn-purple-deep: #1f1346;
	--sn-bg-lite: #fafbff;
	--sn-text: #111111;
	--sn-text-muted: #727586;
	--sn-white: #ffffff;
	--sn-cta: #f59e42;
	--sn-radius: 14px;
	--sn-shadow: 0 10px 40px rgba(31, 19, 70, 0.08);
	--sn-shadow-lg: 0 20px 60px rgba(31, 19, 70, 0.12);
	color: var(--sn-text);
}

.sn-seo-page a { color: var(--sn-purple); text-decoration: none; transition: color .2s, opacity .2s; }
.sn-seo-page a:hover { color: #05645f; }

.sn-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.sn-section { padding: 4.5rem 0; position: relative; }

/* Layout: content + sticky TOC */
.sn-layout {
	display: block;
}
@media (min-width: 1100px) {
	.sn-layout {
		display: grid;
		grid-template-columns: 1fr 260px;
		gap: 2rem;
		max-width: 1320px;
		margin: 0 auto;
		padding: 0 1.25rem;
	}
	.sn-layout__main { min-width: 0; }
	.sn-layout__aside {
		position: relative;
	}
	.sn-toc-sticky {
		position: sticky;
		top: 5rem;
		max-height: calc(100vh - 6rem);
		overflow-y: auto;
		background: var(--sn-white);
		border: 1px solid #e8e8ef;
		border-radius: var(--sn-radius);
		padding: 1.25rem;
		box-shadow: var(--sn-shadow);
		font-size: .82rem;
		line-height: 1.6;
	}
	.sn-toc-sticky h3 {
		font-size: .95rem;
		color: var(--sn-purple-dark);
		margin: 0 0 .75rem;
		font-weight: 800;
	}
	.sn-toc-sticky ol {
		margin: 0;
		padding-right: 1.1rem;
	}
	.sn-toc-sticky li { margin-bottom: .35rem; }
	.sn-toc-sticky a { color: var(--sn-text-muted); font-weight: 500; }
	.sn-toc-sticky a:hover { color: var(--sn-purple); }
}

/* Hero */
.sn-hero {
	background:
		radial-gradient(ellipse 80% 60% at 10% 20%, rgba(8, 127, 120, 0.15), transparent),
		radial-gradient(ellipse 60% 50% at 90% 80%, rgba(245, 158, 66, 0.1), transparent),
		linear-gradient(160deg, #fafbff 0%, #eef0ff 50%, #f8f6ff 100%);
	padding: 4rem 0 3.5rem;
	border-bottom: 1px solid rgba(8, 127, 120, 0.1);
	overflow: hidden;
}
.sn-hero__badge {
	display: inline-block;
	background: rgba(8, 127, 120, 0.1);
	color: var(--sn-purple-dark);
	font-size: .8rem;
	font-weight: 700;
	padding: .35rem .85rem;
	border-radius: 999px;
	margin-bottom: 1rem;
	border: 1px solid rgba(8, 127, 120, 0.2);
}
.sn-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}
@media (min-width: 900px) {
	.sn-hero__grid { grid-template-columns: 1.05fr .95fr; }
}
.sn-hero h1 {
	font-size: clamp(1.85rem, 4.5vw, 2.85rem);
	font-weight: 900;
	color: var(--sn-purple-dark);
	line-height: 1.3;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}
.sn-hero__lead {
	font-size: 1.1rem;
	color: var(--sn-text-muted);
	margin: 0 0 1.5rem;
	max-width: 52ch;
}
.sn-hero__points {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}
.sn-hero__points li {
	position: relative;
	padding-right: 1.6rem;
	margin-bottom: .7rem;
	font-weight: 600;
	font-size: .95rem;
	color: var(--sn-purple-dark);
}
.sn-hero__points li::before {
	content: "";
	position: absolute;
	right: 0;
	top: .6rem;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sn-purple), var(--sn-cta));
}
.sn-hero__visual {
	border-radius: var(--sn-radius);
	overflow: hidden;
	box-shadow: var(--sn-shadow-lg);
	aspect-ratio: 16/9;
	background: var(--sn-purple-deep);
	border: 3px solid rgba(255,255,255,.8);
}
.sn-hero__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Stats strip */
.sn-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(8, 127, 120, 0.12);
}
@media (min-width: 600px) { .sn-stats { grid-template-columns: repeat(4, 1fr); } }
.sn-stat {
	text-align: center;
	padding: .75rem;
}
.sn-stat__num {
	display: block;
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--sn-purple);
	line-height: 1.2;
}
.sn-stat__label {
	font-size: .78rem;
	color: var(--sn-text-muted);
	font-weight: 600;
}

/* Buttons */
.sn-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.sn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .9rem 1.6rem;
	border-radius: 10px;
	font-weight: 700;
	font-size: .95rem;
	border: none;
	cursor: pointer;
	transition: transform .15s, box-shadow .2s, background .2s;
	font-family: inherit;
	text-decoration: none;
}
.sn-btn:hover { transform: translateY(-2px); box-shadow: var(--sn-shadow); }
.sn-btn--primary {
	background: linear-gradient(135deg, #087f78, #05645f);
	color: var(--sn-white);
	box-shadow: 0 4px 20px rgba(8, 127, 120, 0.35);
}
.sn-btn--primary:hover { color: #fff; }
.sn-btn--cta {
	background: linear-gradient(135deg, #f59e42, #e83a6f);
	color: var(--sn-white);
	box-shadow: 0 4px 20px rgba(245, 158, 66, 0.3);
}
.sn-btn--cta:hover { color: #fff; }
.sn-btn--ghost {
	background: transparent;
	color: var(--sn-purple-dark);
	border: 2px solid rgba(8, 127, 120, 0.35);
}

/* Bands & chapters */
.sn-band {
	background: linear-gradient(135deg, #087f78 0%, #05645f 55%, #0a4a46 100%);
	color: var(--sn-white);
}
.sn-band h2 {
	font-size: clamp(1.35rem, 3vw, 2rem);
	margin: 0 0 1rem;
	font-weight: 800;
}
.sn-band a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.sn-lite { background: var(--sn-bg-lite); }

.sn-chapter {
	border-bottom: 1px solid #eee;
}
.sn-chapter:nth-child(even) { background: #fdfdff; }

.sn-prose {
	max-width: 820px;
	margin: 0 auto;
}
.sn-prose h2.sn-heading { text-align: right !important; }
.sn-prose h3 {
	color: var(--sn-purple-dark);
	font-size: 1.2rem;
	margin: 2rem 0 .85rem;
	font-weight: 800;
}
.sn-prose p { margin: 0 0 1.1rem; color: #333; }
.sn-prose ul, .sn-prose ol { padding-right: 1.35rem; margin: 0 0 1.25rem; }
.sn-prose li { margin-bottom: .45rem; }

.sn-heading {
	font-size: clamp(1.45rem, 3vw, 2.15rem);
	color: var(--sn-purple-dark);
	font-weight: 900;
	margin: 0 0 .5rem;
	text-align: center;
	letter-spacing: -0.02em;
}
.sn-subheading {
	text-align: center;
	color: var(--sn-text-muted);
	max-width: 640px;
	margin: 0 auto 2.5rem;
	font-size: 1.05rem;
}

/* TOC inline (mobile) */
.sn-toc {
	background: var(--sn-white);
	border: 1px solid #e8e8ef;
	border-radius: var(--sn-radius);
	padding: 1.5rem 1.75rem;
	box-shadow: var(--sn-shadow);
}
@media (min-width: 1100px) {
	#toc { display: none; }
}

/* Tables */
.sn-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 10px; }
.sn-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
}
.sn-table th, .sn-table td {
	padding: .9rem 1rem;
	text-align: right;
}
.sn-band .sn-table th, .sn-band .sn-table td {
	border-bottom: 1px solid rgba(255,255,255,.15);
}
.sn-band .sn-table thead th { background: rgba(0,0,0,.15); font-weight: 800; }
.sn-table--light th, .sn-table--light td { border-bottom: 1px solid #e8e8ef; color: var(--sn-text); }
.sn-table--light thead th { background: var(--sn-bg-lite); color: var(--sn-purple-dark); font-weight: 800; }

.sn-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	margin-top: 1.5rem;
	font-weight: 600;
}
.sn-links a { color: #fff; }

/* Cards */
.sn-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 700px) { .sn-cards { grid-template-columns: 1fr 1fr; } }
.sn-card {
	background: var(--sn-white);
	border: 1px solid #e8e8ef;
	border-radius: var(--sn-radius);
	padding: 1.6rem;
	box-shadow: var(--sn-shadow);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sn-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--sn-shadow-lg);
	border-color: rgba(8, 127, 120, 0.25);
}
.sn-card h3 {
	font-size: 1.15rem;
	color: var(--sn-purple-dark);
	margin: 0 0 .75rem;
	font-weight: 800;
}
.sn-card__note {
	margin-top: 1rem;
	padding: .85rem 1rem;
	background: linear-gradient(135deg, #fafbff, #f3f0ff);
	border-radius: 8px;
	font-size: .88rem;
	font-style: italic;
	color: var(--sn-purple-dark);
	border-right: 3px solid var(--sn-purple);
}

/* Process */
.sn-process {
	background: linear-gradient(180deg, #1f1346 0%, #0a4a46 100%);
	color: var(--sn-white);
}
.sn-process h2 { color: #fff; text-align: center; margin-bottom: 2rem; font-weight: 900; }
.sn-process .sn-table th, .sn-process .sn-table td { border-color: rgba(255,255,255,.1); }
.sn-process .sn-table thead th { background: rgba(255,255,255,.08); }
.sn-process__note { text-align: center; margin-top: 1.5rem; font-weight: 600; opacity: .92; }

.sn-highlight {
	background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
	border-right: 4px solid var(--sn-purple);
	padding: 1.1rem 1.35rem;
	border-radius: 0 10px 10px 0;
	margin: 1.5rem 0;
	font-weight: 600;
	color: var(--sn-purple-dark);
	box-shadow: var(--sn-shadow);
}
.sn-pricing-list { max-width: 720px; margin: 0 auto; padding-right: 1.25rem; }

/* CTA band */
.sn-cta-band {
	background: linear-gradient(135deg, rgba(103,61,230,.08), rgba(252,81,133,.06));
	border: 1px solid rgba(8, 127, 120, 0.15);
	border-radius: var(--sn-radius);
	padding: 2rem;
	text-align: center;
	margin: 2rem auto;
	max-width: 720px;
}

/* Form */
.sn-form-section {
	background:
		radial-gradient(ellipse at top, rgba(103,61,230,.08), transparent 60%),
		linear-gradient(180deg, #f3f0ff 0%, var(--sn-bg-lite) 100%);
}
.sn-form-box {
	max-width: 520px;
	margin: 0 auto;
	background: var(--sn-white);
	padding: 2.25rem;
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow-lg);
	border: 1px solid #e8e8ef;
}
.sn-form-group { margin-bottom: 1.1rem; }
.sn-form-group label {
	display: block;
	font-weight: 700;
	margin-bottom: .4rem;
	font-size: .88rem;
	color: var(--sn-purple-dark);
}
.sn-form-group input,
.sn-form-group select,
.sn-form-group textarea {
	width: 100%;
	padding: .75rem .9rem;
	border: 1.5px solid #d5d5e0;
	border-radius: 10px;
	font: inherit;
	background: #fafafa;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.sn-form-group input:focus,
.sn-form-group select:focus,
.sn-form-group textarea:focus {
	outline: none;
	border-color: var(--sn-purple);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(8, 127, 120, 0.15);
}
.sn-form-group textarea { min-height: 110px; resize: vertical; }

/* FAQ */
.sn-faq {
	background: linear-gradient(180deg, #1f1346, #2a1a5e);
	color: var(--sn-white);
}
.sn-faq h2 { color: #fff; text-align: center; margin-bottom: .5rem; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); }
.sn-faq details {
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 10px;
	margin-bottom: .65rem;
	padding: .15rem 1.15rem;
	transition: background .2s;
}
.sn-faq details[open] {
	background: rgba(255,255,255,.09);
	border-color: rgba(8, 127, 120, 0.4);
}
.sn-faq summary {
	cursor: pointer;
	font-weight: 700;
	padding: .85rem 0;
	list-style: none;
	font-size: .95rem;
}
.sn-faq summary::-webkit-details-marker { display: none; }
.sn-faq summary::before {
	content: "+";
	float: left;
	font-weight: 900;
	color: var(--sn-cta);
	font-size: 1.1rem;
}
.sn-faq details[open] summary::before { content: "−"; }
.sn-faq p { margin: 0 0 1rem; opacity: .93; font-size: .92rem; line-height: 1.85; }
.sn-faq a { color: #c4b5fd; }

/* Footer */
.sn-site-footer {
	background: #111;
	color: #999;
	padding: 2.5rem 1.25rem;
	text-align: center;
	font-size: .88rem;
}
.sn-site-footer a { color: #f59e42; font-weight: 600; }

/* Back to top */
.sn-btt {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sn-purple);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: var(--sn-shadow-lg);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s, transform .2s;
	font-size: 1.25rem;
	z-index: 900;
}
.sn-btt.is-visible { opacity: 1; pointer-events: auto; }
.sn-btt:hover { transform: translateY(-3px); background: #05645f; }

/* Preview ribbon */
.sn-preview-ribbon {
	background: linear-gradient(90deg, #1f1346, #087f78);
	color: #fff;
	text-align: center;
	padding: .45rem 1rem;
	font-size: .8rem;
	font-weight: 600;
}
.sn-preview-ribbon a { color: #f59e42; }