/* =========================================================
   Digi Pro — modern landing (front page)
   ========================================================= */

/* Self-hosted Vazirmatn (no external CDN at runtime) */
@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-Medium.woff2") format("woff2");
	font-weight: 500 600;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Vazirmatn";
	src: url("fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
	font-weight: 800 900;
	font-display: swap;
}

:root {
	--dg-bg: #070b14;
	--dg-bg-2: #0b1220;
	--dg-panel: rgba(255, 255, 255, 0.045);
	--dg-panel-2: rgba(255, 255, 255, 0.07);
	--dg-line: rgba(255, 255, 255, 0.09);
	--dg-text: #e8eefc;
	--dg-muted: #9aa8c4;
	--dg-accent: #38e0c0;
	--dg-accent-2: #4f9dff;
	--dg-radius: 20px;
	--dg-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	--dg-font: "Vazirmatn", "IRANSansX", "IRANSans", "Segoe UI", Tahoma, system-ui, sans-serif;
}

/* -- reset within the landing only ------------------------ */
.dg-home,
.dg-home * {
	box-sizing: border-box;
}

html.dg-scroll-lock,
body.dg-home {
	overflow-x: hidden;
}

body.dg-home {
	background: var(--dg-bg);
	color: var(--dg-text);
	font-family: var(--dg-font);
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

body.dg-home img,
body.dg-home svg {
	max-width: 100%;
}

.dg-home p {
	margin: 0 0 1rem;
	color: var(--dg-muted);
}

.dg-home h1,
.dg-home h2,
.dg-home h3 {
	margin: 0 0 0.7rem;
	color: #fff;
	line-height: 1.35;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.dg-home ul,
.dg-home ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dg-wrap {
	width: min(1180px, calc(100% - 2.5rem));
	margin-inline: auto;
	position: relative;
	z-index: 2;
}

.dg-grad {
	background: linear-gradient(95deg, var(--dg-accent) 0%, var(--dg-accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* -- buttons --------------------------------------------- */
.dg-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dg-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.dg-btn svg {
	width: 18px;
	height: 18px;
}

.dg-btn--primary {
	background: linear-gradient(120deg, var(--dg-accent), var(--dg-accent-2));
	color: #04121a;
	box-shadow: 0 14px 34px rgba(56, 224, 192, 0.22);
}

.dg-btn--primary:hover {
	color: #04121a;
	box-shadow: 0 18px 40px rgba(56, 224, 192, 0.32);
}

.dg-btn--ghost {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--dg-line);
	color: var(--dg-text);
}

.dg-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
}

.dg-btn--light {
	background: #fff;
	color: #0a1626;
}

.dg-btn--light:hover {
	color: #0a1626;
}

.dg-btn--outline {
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.dg-btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* -- hero ------------------------------------------------ */
.dg-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
	background:
		radial-gradient(900px 500px at 85% -10%, rgba(79, 157, 255, 0.18), transparent 60%),
		radial-gradient(800px 480px at 5% 10%, rgba(56, 224, 192, 0.14), transparent 62%),
		linear-gradient(180deg, #060a12 0%, #070b14 100%);
}

.dg-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
	pointer-events: none;
}

.dg-hero__glow--a {
	width: 420px;
	height: 420px;
	background: rgba(56, 224, 192, 0.25);
	top: -140px;
	left: -120px;
}

.dg-hero__glow--b {
	width: 480px;
	height: 480px;
	background: rgba(79, 157, 255, 0.2);
	bottom: -220px;
	right: -140px;
}

.dg-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.dg-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--dg-line);
	background: rgba(255, 255, 255, 0.05);
	color: var(--dg-muted);
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 1.4rem;
}

.dg-badge__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dg-accent);
	box-shadow: 0 0 0 5px rgba(56, 224, 192, 0.15);
}

.dg-hero__title {
	font-size: clamp(2rem, 4.4vw, 3.35rem);
	line-height: 1.28;
	margin-bottom: 1.1rem;
}

.dg-hero__lead {
	font-size: clamp(1rem, 1.35vw, 1.12rem);
	max-width: 34rem;
	margin-bottom: 1.9rem;
}

.dg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: 1.7rem;
}

.dg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.dg-chips li {
	font-size: 0.82rem;
	color: var(--dg-muted);
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	border: 1px dashed rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.02);
}

/* hero visual */
.dg-hero__visual {
	position: relative;
	min-height: 420px;
	display: grid;
	place-items: center;
}

.dg-phone {
	width: min(268px, 68%);
	aspect-ratio: 9 / 17.5;
	border-radius: 34px;
	padding: 10px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: var(--dg-shadow);
	transform: rotate(-6deg);
	position: relative;
	z-index: 2;
}

.dg-phone__screen {
	height: 100%;
	border-radius: 26px;
	background: linear-gradient(180deg, #0d1526, #0a1120);
	padding: 1.1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	overflow: hidden;
}

.dg-phone__bar {
	width: 42%;
	height: 8px;
	border-radius: 999px;
	background: rgba(56, 224, 192, 0.6);
	margin-bottom: 0.4rem;
}

.dg-skeleton {
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.09);
}

.dg-skeleton--lg {
	height: 74px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(79, 157, 255, 0.35), rgba(56, 224, 192, 0.2));
}

.dg-skeleton--short {
	width: 62%;
}

.dg-phone__cards {
	margin-top: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}

.dg-phone__cards span {
	aspect-ratio: 1;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.dg-code {
	position: absolute;
	bottom: 0.5rem;
	inset-inline-start: 0;
	width: min(330px, 82%);
	border-radius: 16px;
	padding: 0.9rem 1rem;
	background: rgba(10, 17, 32, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: var(--dg-shadow);
	backdrop-filter: blur(8px);
	z-index: 3;
	direction: ltr;
	text-align: left;
}

.dg-code__dots {
	display: flex;
	gap: 5px;
	margin-bottom: 0.55rem;
}

.dg-code__dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
}

.dg-code pre {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.65;
	color: #b9c6dd;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	overflow: hidden;
}

.dg-c-key { color: #7dd3fc; }
.dg-c-str { color: #86efac; }

/* -- stats ----------------------------------------------- */
.dg-stats {
	border-block: 1px solid var(--dg-line);
	background: rgba(255, 255, 255, 0.02);
	padding: 1.6rem 0;
}

.dg-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	text-align: center;
}

.dg-stat strong {
	display: block;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	color: #fff;
	font-weight: 800;
}

.dg-stat span {
	font-size: 0.85rem;
	color: var(--dg-muted);
}

/* -- sections -------------------------------------------- */
.dg-section {
	padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.dg-section--alt {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.017), rgba(255, 255, 255, 0.045));
	border-block: 1px solid var(--dg-line);
}

.dg-head {
	max-width: 44rem;
	margin: 0 auto clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.dg-head--start {
	margin-inline: 0;
	text-align: start;
}

.dg-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--dg-accent);
	background: rgba(56, 224, 192, 0.1);
	border: 1px solid rgba(56, 224, 192, 0.22);
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	margin-bottom: 0.9rem;
}

.dg-head h2 {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.dg-head p {
	font-size: 1rem;
}

/* -- service cards --------------------------------------- */
.dg-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.1rem;
}

.dg-card {
	position: relative;
	padding: 1.6rem 1.4rem;
	border-radius: var(--dg-radius);
	background: var(--dg-panel);
	border: 1px solid var(--dg-line);
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
	overflow: hidden;
}

.dg-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(400px 180px at 80% -20%, rgba(56, 224, 192, 0.16), transparent 70%);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.dg-card:hover {
	transform: translateY(-4px);
	border-color: rgba(56, 224, 192, 0.35);
	background: var(--dg-panel-2);
}

.dg-card:hover::after {
	opacity: 1;
}

.dg-card__icon {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(56, 224, 192, 0.1);
	border: 1px solid rgba(56, 224, 192, 0.22);
	color: var(--dg-accent);
	margin-bottom: 1rem;
}

.dg-card__icon svg {
	width: 24px;
	height: 24px;
}

.dg-card h3 {
	font-size: 1.1rem;
}

.dg-card p {
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.dg-card ul {
	display: grid;
	gap: 0.45rem;
}

.dg-card li {
	font-size: 0.83rem;
	color: var(--dg-muted);
	padding-inline-start: 1.1rem;
	position: relative;
}

.dg-card li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dg-accent);
	opacity: 0.75;
}

/* -- process steps --------------------------------------- */
.dg-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	counter-reset: step;
}

.dg-steps li {
	position: relative;
	padding: 1.4rem 1.1rem;
	border-radius: 18px;
	background: rgba(8, 14, 26, 0.55);
	border: 1px solid var(--dg-line);
}

.dg-steps span {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--dg-accent);
	margin-bottom: 0.6rem;
}

.dg-steps h3 {
	font-size: 1rem;
}

.dg-steps p {
	font-size: 0.82rem;
	margin: 0;
}

/* -- work ------------------------------------------------ */
.dg-work {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.2rem;
}

.dg-work__item {
	border-radius: var(--dg-radius);
	overflow: hidden;
	background: var(--dg-panel);
	border: 1px solid var(--dg-line);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.dg-work__item:hover {
	transform: translateY(-4px);
	border-color: rgba(79, 157, 255, 0.4);
}

.dg-work__cover {
	aspect-ratio: 16 / 10;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.92);
	letter-spacing: 0.02em;
}

.dg-work__cover--1 { background: linear-gradient(135deg, #0f766e, #0ea5e9); }
.dg-work__cover--2 { background: linear-gradient(135deg, #b91c1c, #f59e0b); }
.dg-work__cover--3 { background: linear-gradient(135deg, #4338ca, #06b6d4); }
.dg-work__cover--4 { background: linear-gradient(135deg, #9d174d, #f472b6); }
.dg-work__cover--5 { background: linear-gradient(135deg, #1e3a8a, #22d3ee); }
.dg-work__cover--6 { background: linear-gradient(135deg, #374151, #10b981); }

.dg-work__meta {
	padding: 1rem 1.1rem 1.15rem;
}

.dg-work__meta h3 {
	font-size: 0.98rem;
	margin-bottom: 0.2rem;
}

.dg-work__meta p {
	font-size: 0.8rem;
	margin: 0;
}

/* -- why us ---------------------------------------------- */
.dg-why {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.dg-why__copy h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.dg-why__copy .dg-btn {
	margin-top: 0.6rem;
}

.dg-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

.dg-features li {
	padding: 1rem 1.1rem;
	border-radius: 16px;
	background: rgba(8, 14, 26, 0.55);
	border: 1px solid var(--dg-line);
}

.dg-features strong {
	display: block;
	font-size: 0.95rem;
	color: #fff;
	margin-bottom: 0.2rem;
}

.dg-features span {
	font-size: 0.8rem;
	color: var(--dg-muted);
}

/* -- faq ------------------------------------------------- */
.dg-faq {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

.dg-faq__list {
	display: grid;
	gap: 0.7rem;
}

.dg-faq details {
	background: var(--dg-panel);
	border: 1px solid var(--dg-line);
	border-radius: 16px;
	padding: 0.95rem 1.15rem;
}

.dg-faq summary {
	cursor: pointer;
	font-weight: 700;
	color: #fff;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.dg-faq summary::-webkit-details-marker {
	display: none;
}

.dg-faq summary::after {
	content: "+";
	font-size: 1.2rem;
	color: var(--dg-accent);
	line-height: 1;
}

.dg-faq details[open] summary::after {
	content: "−";
}

.dg-faq details p {
	margin: 0.7rem 0 0;
	font-size: 0.9rem;
}

/* -- cta ------------------------------------------------- */
.dg-cta {
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	background: linear-gradient(110deg, #0f7a6b 0%, #12668f 55%, #1e3a8a 100%);
	position: relative;
	overflow: hidden;
}

.dg-cta::after {
	content: "";
	position: absolute;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	filter: blur(70px);
	top: -260px;
	inset-inline-end: -120px;
	pointer-events: none;
}

.dg-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.6rem;
}

.dg-cta h2 {
	font-size: clamp(1.4rem, 2.7vw, 2rem);
	margin-bottom: 0.4rem;
}

.dg-cta p {
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

.dg-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

/* -- reveal animation ------------------------------------ */
.dg-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.dg-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.dg-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* -- responsive ------------------------------------------ */
@media (max-width: 1080px) {
	.dg-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.dg-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.dg-work {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.dg-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}
	.dg-hero__visual {
		min-height: 380px;
		order: 2;
	}
	.dg-why,
	.dg-faq {
		grid-template-columns: minmax(0, 1fr);
	}
	.dg-stat strong {
		font-size: 1.5rem;
	}
}

@media (max-width: 620px) {
	.dg-wrap {
		width: calc(100% - 1.6rem);
	}
	.dg-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.dg-cards,
	.dg-work,
	.dg-steps,
	.dg-features {
		grid-template-columns: minmax(0, 1fr);
	}
	.dg-hero__actions .dg-btn,
	.dg-cta__actions .dg-btn {
		width: 100%;
		justify-content: center;
	}
	.dg-cta__inner {
		text-align: center;
		justify-content: center;
	}
}
