/*! Soon Mode – coming soon page */

@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800 900; font-style: normal; font-display: swap; }

/* Fallbacks; the real values come from the inline :root block. */
:root {
	--sm-bg: #0b1020;
	--sm-bg2: #2a1f7a;
	--sm-primary: #8b7bff;
	--sm-text: #ffffff;
	--sm-on-primary: #ffffff;
	--sm-bg-rgb: 11 16 32;
	--sm-bg2-rgb: 42 31 122;
	--sm-primary-rgb: 139 123 255;
	--sm-text-rgb: 255 255 255;
	--sm-angle: 135deg;
	--sm-overlay: .65;
	--sm-radius: 14px;
	--sm-logo-w: 150px;
	--sm-font: system-ui, sans-serif;
	--sm-bg-image: none;
	--sm-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
	font-family: var(--sm-font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--sm-text);
	background: var(--sm-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a { color: inherit; }

.sm-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Shell ---------- */

.sm-root {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	isolation: isolate;
}

.sm-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(40px, 7vh, 88px) 20px clamp(24px, 4vh, 48px);
}

.sm-content {
	width: 100%;
	max-width: 680px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ---------- Background ---------- */

.sm-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: var(--sm-bg);
	pointer-events: none;
}

.sm-bg-gradient .sm-bg { background: linear-gradient(var(--sm-angle), var(--sm-bg), var(--sm-bg2)); }

.sm-bg-image .sm-bg { background: var(--sm-bg) var(--sm-bg-image) center / cover no-repeat; }
.sm-bg-image .sm-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(var(--sm-bg-rgb) / var(--sm-overlay));
}

.sm-blob { display: none; }

.sm-bg-mesh .sm-bg {
	background:
		radial-gradient(120% 90% at 50% 120%, rgb(var(--sm-bg2-rgb) / .55), transparent 60%),
		var(--sm-bg);
}
.sm-bg-mesh .sm-blob {
	display: block;
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .55;
	will-change: transform;
}
.sm-bg-mesh .sm-blob-1 {
	width: 46vmax; height: 46vmax;
	top: -18vmax; inset-inline-start: -12vmax;
	background: var(--sm-primary);
	opacity: .42;
	animation: sm-drift-1 22s ease-in-out infinite alternate;
}
.sm-bg-mesh .sm-blob-2 {
	width: 52vmax; height: 52vmax;
	bottom: -24vmax; inset-inline-end: -16vmax;
	background: var(--sm-bg2);
	opacity: .8;
	animation: sm-drift-2 26s ease-in-out infinite alternate;
}
.sm-bg-mesh .sm-blob-3 {
	width: 26vmax; height: 26vmax;
	top: 38%; inset-inline-end: 18%;
	background: rgb(var(--sm-primary-rgb) / .9);
	opacity: .22;
	animation: sm-drift-3 18s ease-in-out infinite alternate;
}

@keyframes sm-drift-1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.12); } }
@keyframes sm-drift-2 { to { transform: translate3d(-12vmax, -8vmax, 0) scale(.92); } }
@keyframes sm-drift-3 { to { transform: translate3d(-10vmax, 6vmax, 0) scale(1.25); } }

/* Patterns */
.sm-pattern { position: absolute; inset: 0; display: none; }
.sm-pattern-dots .sm-pattern,
.sm-pattern-grid .sm-pattern,
.sm-pattern-noise .sm-pattern { display: block; }

.sm-pattern-dots .sm-pattern {
	background-image: radial-gradient(rgb(var(--sm-text-rgb) / .16) 1px, transparent 1.6px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}
.sm-pattern-grid .sm-pattern {
	background-image:
		linear-gradient(rgb(var(--sm-text-rgb) / .07) 1px, transparent 1px),
		linear-gradient(90deg, rgb(var(--sm-text-rgb) / .07) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 78%);
	mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 78%);
}
.sm-pattern-noise .sm-pattern {
	opacity: .12;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Content ---------- */

.sm-brand { margin-bottom: 28px; min-height: 1px; }
.sm-logo { display: block; width: var(--sm-logo-w); max-width: 70vw; height: auto; }
.sm-sitename { font-weight: 800; font-size: 1.15rem; opacity: .92; }

.sm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 16px 6px 14px;
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.6;
	background: rgb(var(--sm-text-rgb) / .07);
	border: 1px solid rgb(var(--sm-text-rgb) / .14);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.sm-eyebrow-dot {
	position: relative;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--sm-primary);
	flex: none;
}
.sm-eyebrow-dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--sm-primary);
	opacity: 0;
	animation: sm-ping 2.2s var(--sm-ease) infinite;
}
@keyframes sm-ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.sm-title {
	margin: 22px 0 16px;
	font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem);
	line-height: 1.3;
	font-weight: 800;
	text-wrap: balance;
}
.sm-ltr .sm-title { letter-spacing: -.02em; line-height: 1.12; }
.sm-title strong {
	font-weight: inherit;
	color: var(--sm-primary);
}

.sm-desc {
	margin: 0;
	max-width: 34em;
	font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
	color: rgb(var(--sm-text-rgb) / .74);
	text-wrap: pretty;
}
.sm-desc a { color: var(--sm-primary); }

/* Countdown */
.sm-countdown {
	display: flex;
	gap: clamp(8px, 2vw, 14px);
	margin-top: 36px;
}
.sm-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: clamp(68px, 18vw, 92px);
	padding: 14px 8px 10px;
	border-radius: var(--sm-radius);
	background: rgb(var(--sm-text-rgb) / .06);
	border: 1px solid rgb(var(--sm-text-rgb) / .12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.sm-num {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.sm-label {
	margin-top: 6px;
	font-size: .78rem;
	color: rgb(var(--sm-text-rgb) / .62);
}

/* Progress */
.sm-progress { width: 100%; max-width: 440px; margin-top: 34px; }
.sm-progress-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: .875rem;
	color: rgb(var(--sm-text-rgb) / .72);
}
.sm-progress-value { font-weight: 700; color: var(--sm-text); font-variant-numeric: tabular-nums; }
.sm-progress-track {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: rgb(var(--sm-text-rgb) / .12);
	overflow: hidden;
}
.sm-progress-bar {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: var(--sm-p, 0%);
	border-radius: inherit;
	background: var(--sm-primary);
	overflow: hidden;
}
.sm-progress-bar::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent);
	transform: translateX(-100%);
	animation: sm-shine 2.6s ease-in-out 1.2s infinite;
}
@keyframes sm-shine { to { transform: translateX(100%); } }

/* Form */
.sm-form { width: 100%; max-width: 470px; margin-top: 36px; }
.sm-form-row {
	display: flex;
	gap: 6px;
	padding: 6px;
	border-radius: calc(var(--sm-radius) + 6px);
	background: rgb(var(--sm-text-rgb) / .07);
	border: 1px solid rgb(var(--sm-text-rgb) / .16);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: border-color .2s, box-shadow .2s;
}
.sm-form-row:focus-within {
	border-color: rgb(var(--sm-primary-rgb) / .85);
	box-shadow: 0 0 0 4px rgb(var(--sm-primary-rgb) / .2);
}
.sm-input {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1rem;
}
.sm-input::placeholder { color: rgb(var(--sm-text-rgb) / .5); }
/* Emails are Latin: type them left-to-right even on RTL pages. */
.sm-rtl .sm-input:not(:placeholder-shown) { direction: ltr; text-align: right; }

.sm-btn {
	position: relative;
	flex: none;
	padding: 10px 22px;
	border: 0;
	border-radius: var(--sm-radius);
	background: var(--sm-primary);
	color: var(--sm-on-primary);
	font: inherit;
	font-weight: 700;
	font-size: .95rem;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .2s var(--sm-ease), filter .2s, box-shadow .2s;
	box-shadow: 0 8px 24px -10px rgb(var(--sm-primary-rgb) / .8);
}
.sm-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sm-btn:active { transform: translateY(0); }
.sm-btn:focus-visible { outline: 2px solid var(--sm-text); outline-offset: 2px; }
.sm-btn[disabled] { cursor: progress; }
.sm-btn[disabled] .sm-btn-text { opacity: 0; }

.sm-spinner {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px; height: 18px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	opacity: 0;
}
.sm-btn[disabled] .sm-spinner { opacity: 1; animation: sm-spin .7s linear infinite; }
@keyframes sm-spin { to { transform: rotate(360deg); } }

.sm-form-msg {
	min-height: 1.6em;
	margin: 12px 0 0;
	font-size: .9rem;
	color: rgb(var(--sm-text-rgb) / .8);
}
.sm-form-msg.is-success { color: var(--sm-text); }
.sm-form-msg.is-success::before { content: "✓ "; color: var(--sm-primary); font-weight: 800; }
.sm-form-msg.is-error { color: #ff8a8a; }
.sm-form.is-done .sm-form-row { border-color: rgb(var(--sm-primary-rgb) / .6); }

.sm-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact + social */
.sm-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin-top: 26px;
	font-size: .95rem;
}
.sm-contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: rgb(var(--sm-text-rgb) / .82);
	transition: color .2s;
}
.sm-contact a:hover { color: var(--sm-primary); }
.sm-contact svg { width: 18px; height: 18px; flex: none; }

.sm-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}
.sm-social a {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: calc(var(--sm-radius) * .8);
	color: var(--sm-text);
	background: rgb(var(--sm-text-rgb) / .07);
	border: 1px solid rgb(var(--sm-text-rgb) / .13);
	transition: transform .25s var(--sm-ease), background .2s, color .2s, border-color .2s;
}
.sm-social a:hover,
.sm-social a:focus-visible {
	transform: translateY(-3px);
	background: var(--sm-primary);
	border-color: transparent;
	color: var(--sm-on-primary);
	outline: none;
}
.sm-social svg { width: 18px; height: 18px; fill: currentColor; }

.sm-footer {
	padding: 18px 20px 22px;
	text-align: center;
	font-size: .82rem;
	color: rgb(var(--sm-text-rgb) / .55);
}
.sm-footer a { color: rgb(var(--sm-text-rgb) / .8); }

/* ---------- Layout: glass ---------- */

.sm-layout-glass .sm-content {
	max-width: 640px;
	padding: clamp(32px, 6vw, 60px) clamp(22px, 5vw, 56px);
	border-radius: calc(var(--sm-radius) * 1.8);
	background: rgb(var(--sm-text-rgb) / .06);
	border: 1px solid rgb(var(--sm-text-rgb) / .14);
	-webkit-backdrop-filter: blur(24px) saturate(140%);
	backdrop-filter: blur(24px) saturate(140%);
	box-shadow: 0 30px 80px -24px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .08);
}
.sm-layout-glass .sm-unit { background: rgb(var(--sm-text-rgb) / .05); }

/* Light backgrounds: white-tinted surfaces read cleaner than text-tinted ones. */
.sm-light .sm-eyebrow,
.sm-light .sm-unit,
.sm-light .sm-form-row,
.sm-light .sm-social a { background: rgb(255 255 255 / .6); border-color: rgb(var(--sm-text-rgb) / .1); }
.sm-light.sm-layout-glass .sm-content {
	background: rgb(255 255 255 / .55);
	border-color: rgb(255 255 255 / .9);
	box-shadow: 0 30px 80px -30px rgb(var(--sm-text-rgb) / .28), inset 0 1px 0 rgb(255 255 255 / .9);
}
.sm-light.sm-layout-glass .sm-unit { background: rgb(255 255 255 / .7); }
.sm-light .sm-social a:hover,
.sm-light .sm-social a:focus-visible { background: var(--sm-primary); border-color: transparent; }
.sm-light .sm-blob { opacity: .35; }

/* ---------- Layout: split ---------- */

.sm-split {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	min-height: 100vh;
	min-height: 100dvh;
}
.sm-pane {
	display: flex;
	flex-direction: column;
	background: var(--sm-bg);
	position: relative;
	z-index: 1;
}
.sm-layout-split .sm-main { justify-content: flex-start; padding-inline: clamp(24px, 6vw, 88px); }
.sm-layout-split .sm-content { align-items: flex-start; text-align: start; max-width: 560px; }
.sm-layout-split .sm-countdown,
.sm-layout-split .sm-social,
.sm-layout-split .sm-contact { justify-content: flex-start; }
.sm-layout-split .sm-footer { text-align: start; padding-inline: clamp(24px, 6vw, 88px); }

.sm-visual {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: grid;
	place-items: center;
}
.sm-visual .sm-bg { z-index: -1; }
.sm-layout-split.sm-bg-solid .sm-visual .sm-bg { background: linear-gradient(var(--sm-angle), var(--sm-bg2), var(--sm-bg)); }

.sm-rings {
	position: relative;
	width: min(70%, 420px);
	aspect-ratio: 1;
}
.sm-rings span {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgb(var(--sm-text-rgb) / .18);
	animation: sm-breathe 6s ease-in-out infinite;
}
.sm-rings span:nth-child(2) { inset: 16%; border-color: rgb(var(--sm-text-rgb) / .24); animation-delay: -2s; }
.sm-rings span:nth-child(3) { inset: 32%; border-color: rgb(var(--sm-text-rgb) / .3); animation-delay: -4s; }
.sm-rings i {
	position: absolute;
	inset: 44%;
	border-radius: 50%;
	background: var(--sm-primary);
	box-shadow: 0 0 60px 20px rgb(var(--sm-primary-rgb) / .45);
}
/* A small dot orbiting the outer ring. */
.sm-rings::before {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 5px, var(--sm-text) 4px, transparent 5px);
	animation: sm-orbit 14s linear infinite;
}
@keyframes sm-breathe { 50% { transform: scale(1.04); opacity: .7; } }
@keyframes sm-orbit { to { transform: rotate(360deg); } }

/* ---------- Entrance animation ---------- */

.sm-animate .sm-content > *,
.sm-animate .sm-footer {
	animation: sm-in .8s var(--sm-ease) both;
}
.sm-animate .sm-content > :nth-child(2) { animation-delay: .08s; }
.sm-animate .sm-content > :nth-child(3) { animation-delay: .16s; }
.sm-animate .sm-content > :nth-child(4) { animation-delay: .24s; }
.sm-animate .sm-content > :nth-child(5) { animation-delay: .32s; }
.sm-animate .sm-content > :nth-child(6) { animation-delay: .4s; }
.sm-animate .sm-content > :nth-child(n+7) { animation-delay: .48s; }
.sm-animate .sm-footer { animation-delay: .6s; }
.sm-animate.sm-layout-glass .sm-content { animation: sm-in .9s var(--sm-ease) both; }
.sm-animate .sm-progress-bar { animation: sm-grow 1.4s var(--sm-ease) .5s both; }

@keyframes sm-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes sm-grow { from { width: 0; } }

/* Live-preview updates in the admin shouldn't replay the intro. */
.sm-no-intro .sm-content > *,
.sm-no-intro .sm-footer,
.sm-no-intro.sm-layout-glass .sm-content,
.sm-no-intro .sm-progress-bar { animation: none !important; }

body:not(.sm-animate) .sm-blob,
body:not(.sm-animate) .sm-rings span,
body:not(.sm-animate) .sm-rings::before,
body:not(.sm-animate) .sm-eyebrow-dot::after,
body:not(.sm-animate) .sm-progress-bar::after { animation: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.sm-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.sm-visual { order: -1; height: 200px; }
	.sm-rings { width: 150px; }
	.sm-rings::before { display: none; }
	.sm-layout-split .sm-main { padding-top: 36px; }
}

@media (max-width: 520px) {
	.sm-main { padding-inline: 16px; }
	.sm-brand { margin-bottom: 22px; }
	.sm-form-row { flex-direction: column; padding: 8px; }
	.sm-input { padding: 12px; text-align: center; }
	.sm-rtl .sm-input:not(:placeholder-shown) { text-align: center; }
	.sm-btn { padding: 13px 20px; }
	.sm-unit { min-width: 0; flex: 1; padding: 12px 4px 8px; }
	.sm-countdown { width: 100%; }
	.sm-layout-glass .sm-main { padding-inline: 12px; }
	.sm-layout-split .sm-content { align-items: stretch; }
	.sm-layout-split .sm-eyebrow { align-self: flex-start; }
}
