/* هوشا — visual system */
:root {
	/* آبی تیره — زبان بصری رایج هوش مصنوعی / فناوری */
	--ink: #071428;
	--ink-2: #0c1f3d;
	--ink-3: #152e55;
	--sand: #dce6f0;
	--sand-dim: #b7c6d6;
	--brass: #3d8fd4;
	--brass-bright: #6ec4f5;
	--mist: #9aafc4;
	--teal: #3a7ca5;
	--paper: #f0f5fb;
	--line: rgba(74, 163, 224, 0.32);
	--text: var(--sand);
	--text-muted: var(--mist);
	--radius: 2px;
	--header-h: 5.1rem;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--font: "Vazirmatn", Tahoma, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body.hosha-body {
	margin: 0;
	font-family: var(--font);
	font-weight: 400;
	background: var(--ink);
	color: var(--text);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.visually-hidden,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	right: 1rem;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1rem;
	background: var(--brass);
	color: var(--ink);
	z-index: 1000;
}

/* Header */
.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: rgba(7, 20, 40, 0.9);
	backdrop-filter: blur(12px);
	border-bottom-color: var(--line);
}

.site-header__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--sand);
}

.brand__logo {
	width: 4.35rem;
	height: auto;
	display: block;
	mix-blend-mode: screen;
}

.brand__logo--foot {
	width: 4.4rem;
	margin-bottom: 0.55rem;
}

.brand__text {
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.site-nav a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--sand-dim);
	transition: color 0.25s var(--ease);
}

.site-nav a:hover {
	color: var(--brass-bright);
}

.site-nav__cta {
	padding: 0.45rem 1rem;
	border: 1px solid var(--brass);
	color: var(--brass-bright) !important;
}

.site-nav__cta:hover {
	background: var(--brass);
	color: var(--ink) !important;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--sand);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.4rem;
	height: 2px;
	background: currentColor;
	position: relative;
	transition: transform 0.3s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	inset-inline: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Hero — one composition */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
	overflow: hidden;
	background:
		radial-gradient(ellipse 90% 60% at 70% 20%, rgba(58, 124, 165, 0.22), transparent 55%),
		radial-gradient(ellipse 70% 50% at 15% 80%, rgba(74, 163, 224, 0.12), transparent 50%),
		linear-gradient(165deg, #0a1e3a 0%, var(--ink) 45%, #040e1c 100%);
}

.hero__atmosphere {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(143, 163, 173, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143, 163, 173, 0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
	opacity: 0.7;
}

.hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
}

.hero__glow--a {
	width: 42vw;
	height: 42vw;
	max-width: 520px;
	max-height: 520px;
	top: -8%;
	left: -5%;
	background: rgba(58, 124, 165, 0.28);
	animation: drift 14s ease-in-out infinite alternate;
}

.hero__glow--b {
	width: 36vw;
	height: 36vw;
	max-width: 420px;
	max-height: 420px;
	bottom: 5%;
	right: -8%;
	background: rgba(74, 163, 224, 0.18);
	animation: drift 18s ease-in-out infinite alternate-reverse;
}

.hero__constellation {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--brass);
	opacity: 0.35;
}

.hero__path {
	stroke-dasharray: 1400;
	stroke-dashoffset: 1400;
	animation: draw-path 2.8s var(--ease) 0.4s forwards;
}

.hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 52rem;
}

.hero__domain {
	margin: 0 0 1.25rem;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: var(--brass);
	text-transform: lowercase;
	opacity: 0;
	animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__expand {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.15rem;
	opacity: 0;
	transform: translateY(28px);
	animation: rise 1s var(--ease) 0.25s forwards;
}

.hero__lockup-img {
	display: block;
	width: auto;
	height: min(26rem, 52vh);
	max-width: 92vw;
	margin: 0 auto;
}

.hero__expand-line {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0.35rem 0.55rem;
	font-size: clamp(1.55rem, 4.6vw, 2.65rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: var(--paper);
}

.acro {
	display: inline-block;
	white-space: nowrap;
}

.acro__mark {
	color: #4aa3e0;
	text-shadow: 0 0 28px rgba(74, 163, 224, 0.4);
	position: relative;
}

.acro__mark::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	bottom: 0.08em;
	height: 2px;
	background: linear-gradient(90deg, transparent, #4aa3e0, transparent);
	opacity: 0.7;
}

.acro__and {
	color: var(--mist);
	font-weight: 500;
	font-size: 0.85em;
}

.hero__brand-short {
	display: inline-block;
	padding: 0;
	font-size: clamp(2.8rem, 8vw, 5.2rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #4aa3e0;
	background: none;
	box-shadow: none;
	line-height: 0.95;
	text-shadow: 0 0 48px rgba(74, 163, 224, 0.35);
}

.hero__tagline {
	margin: 1.35rem auto 0;
	max-width: none;
	width: max-content;
	max-width: 94vw;
	font-size: clamp(0.92rem, 1.7vw, 1.15rem);
	font-weight: 400;
	color: var(--sand-dim);
	white-space: nowrap;
	opacity: 0;
	transform: translateY(20px);
	animation: rise 1s var(--ease) 0.5s forwards;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
	margin-top: 2.1rem;
	opacity: 0;
	transform: translateY(16px);
	animation: rise 1s var(--ease) 0.65s forwards;
}

.hero__scroll {
	position: absolute;
	bottom: 1.75rem;
	left: 50%;
	transform: translateX(-50%);
	width: 1.5rem;
	height: 2.4rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	display: grid;
	place-items: start center;
	padding-top: 0.4rem;
	opacity: 0.7;
}

.hero__scroll span {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--brass-bright);
	animation: scroll-dot 1.6s ease-in-out infinite;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.5rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
	background: var(--brass);
	color: var(--ink);
}

.btn--primary:hover {
	background: var(--brass-bright);
	transform: translateY(-1px);
}

.btn--ghost {
	border-color: rgba(228, 217, 200, 0.35);
	color: var(--sand);
}

.btn--ghost:hover {
	border-color: var(--brass-bright);
	color: var(--brass-bright);
}

/* Sections */
.section {
	padding: 6.5rem 1.5rem;
	position: relative;
}

.section__inner {
	max-width: 1080px;
	margin: 0 auto;
}

.section__inner--narrow {
	max-width: 640px;
	text-align: center;
}

.section__head {
	max-width: 38rem;
	margin-bottom: 3rem;
}

.section__inner--narrow .section__head {
	margin-inline: auto;
}

.section__head h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.85rem, 4vw, 2.6rem);
	font-weight: 750;
	line-height: 1.25;
	color: var(--paper);
	letter-spacing: -0.02em;
}

.section__head p {
	margin: 0;
	font-size: 1.08rem;
	color: var(--sand-dim);
}

.section--about {
	background:
		linear-gradient(180deg, transparent, rgba(18, 48, 59, 0.35)),
		var(--ink);
	border-top: 1px solid var(--line);
}

.about-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	margin-top: 0.5rem;
}

.about-pillar {
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--line);
}

.about-pillar h3 {
	margin: 0 0 0.85rem;
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--brass-bright);
	line-height: 1.4;
}

.about-pillar p {
	margin: 0 0 1.1rem;
	font-size: 0.98rem;
	color: var(--sand-dim);
	line-height: 1.8;
}

.about-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.about-tags li {
	padding: 0.28rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--mist);
	border: 1px solid rgba(154, 175, 196, 0.28);
	background: rgba(18, 48, 85, 0.35);
}

.section--products-intro {
	padding-bottom: 2rem;
}

.section--products-intro .section__head {
	margin-bottom: 0;
}

/* Products */
.product {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 0;
	align-items: stretch;
	min-height: 28rem;
	border-top: 1px solid var(--line);
}

.product--alt {
	direction: ltr;
}

.product--alt .product__body {
	direction: rtl;
}

.product__visual {
	background: var(--ink-2);
	min-height: 20rem;
	overflow: hidden;
}

.product__visual img,
.product__visual svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 20rem;
}

.product__more {
	margin-top: 1.25rem;
	align-self: flex-start;
}

.product__body {
	padding: 3.5rem 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: linear-gradient(135deg, var(--ink-2), var(--ink));
}

.product__code {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--brass);
	text-transform: uppercase;
}

.product__body h3 {
	margin: 0 0 1rem;
	font-size: clamp(1.45rem, 3vw, 1.95rem);
	font-weight: 750;
	line-height: 1.35;
	color: var(--paper);
}

.product__body > p {
	margin: 0 0 1.5rem;
	color: var(--sand-dim);
	font-size: 1.02rem;
}

.product__feats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.product__feats li {
	position: relative;
	padding-inline-start: 1.15rem;
	color: var(--mist);
	font-size: 0.95rem;
}

.product__feats li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.7em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal);
}

/* Approach */
.section--approach {
	background:
		radial-gradient(ellipse 50% 40% at 80% 20%, rgba(74, 163, 224, 0.1), transparent),
		var(--ink);
	border-top: 1px solid var(--line);
}

.approach-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.approach-steps li {
	counter-increment: step;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.approach-steps li::before {
	content: counter(step, decimal-leading-zero);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--brass);
	letter-spacing: 0.08em;
	margin-bottom: 0.35rem;
}

.approach-steps strong {
	font-size: 1.05rem;
	color: var(--paper);
}

.approach-steps span {
	font-size: 0.92rem;
	color: var(--mist);
}

/* Contact */
.section--contact {
	border-top: 1px solid var(--line);
	background:
		radial-gradient(ellipse 60% 50% at 50% 100%, rgba(58, 124, 165, 0.22), transparent 60%),
		var(--ink-2);
	padding-bottom: 7rem;
}

.contact-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}

.contact-block__domain {
	margin: 0;
	color: var(--mist);
	font-size: 0.95rem;
}

.contact-block__domain strong {
	color: var(--brass-bright);
	font-weight: 600;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 2.5rem 1.5rem;
	background: #040e1c;
}

.site-footer__inner {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem;
	align-items: end;
}

.site-footer__brand .brand__text {
	display: inline-block;
	margin-bottom: 0.35rem;
}

.site-footer p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--mist);
}

.site-footer a:hover {
	color: var(--brass-bright);
}

/* Reveal */
[data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

.hero [data-reveal] {
	/* hero uses its own keyframes */
	opacity: unset;
	transform: unset;
	transition: none;
}

/* Animations */
@keyframes rise {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes draw-path {
	to { stroke-dashoffset: 0; }
}

@keyframes drift {
	from { transform: translate(0, 0); }
	to { transform: translate(24px, 18px); }
}

@keyframes scroll-dot {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(12px); opacity: 0.35; }
}

/* Responsive */
@media (max-width: 960px) {
	.about-pillars,
	.approach-steps {
		grid-template-columns: 1fr 1fr;
	}

	.product,
	.product--alt {
		grid-template-columns: 1fr;
		direction: rtl;
	}

	.product__body {
		padding: 2.5rem 1.5rem 3rem;
	}
}

@media (max-width: 720px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem 1.5rem 1.5rem;
		background: rgba(7, 20, 40, 0.97);
		border-bottom: 1px solid var(--line);
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
	}

	.site-nav.is-open {
		transform: none;
		opacity: 1;
		pointer-events: auto;
	}

	.site-nav a {
		padding: 0.85rem 0;
		border-bottom: 1px solid rgba(143, 163, 173, 0.12);
	}

	.site-nav__cta {
		margin-top: 0.75rem;
		text-align: center;
		border: 1px solid var(--brass);
	}

	.about-pillars,
	.approach-steps {
		grid-template-columns: 1fr;
	}

	.hero__expand-line {
		font-size: clamp(1.35rem, 6.2vw, 1.85rem);
		gap: 0.25rem 0.4rem;
	}

	.hero__brand-short {
		font-size: clamp(2.6rem, 16vw, 4rem);
	}

	.section {
		padding: 4.5rem 1.25rem;
	}
}

/* Product detail pages */
.product-page .phero {
	position: relative;
	min-height: 72vh;
	display: grid;
	align-items: end;
	padding: calc(var(--header-h) + 2rem) 1.5rem 3rem;
	overflow: hidden;
}

.phero__media {
	position: absolute;
	inset: 0;
}

.phero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.phero__media--contain {
	background: var(--ink-2);
}

.phero__media--contain img {
	object-fit: contain;
	object-position: center;
	padding: 4rem 1rem 8rem;
}

.phero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(7, 20, 40, 0.92) 0%, rgba(7, 20, 40, 0.72) 42%, rgba(7, 20, 40, 0.35) 100%);
}

.phero__content {
	position: relative;
	z-index: 1;
	max-width: 40rem;
}

.phero__content h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.8rem, 4.5vw, 2.8rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--paper);
}

.phero__content > p:not(.product__code):not(.phero__en) {
	margin: 0;
	color: var(--sand-dim);
	font-size: 1.08rem;
}

.phero__en {
	margin-top: 0.85rem !important;
	font-size: 0.9rem !important;
	letter-spacing: 0.06em;
	color: var(--brass) !important;
}

.product-detail--alt {
	background: var(--ink-2);
}

.detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
}

.detail-grid h3 {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	color: var(--brass-bright);
}

.shot {
	margin: 0 0 2rem;
}

.shot img {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
	border: 1px solid var(--line);
	background: var(--ink-2);
}

.shot--wide img {
	aspect-ratio: 1920 / 1200;
	width: 100%;
	height: auto;
}

.shot figcaption {
	margin-top: 0.85rem;
	font-size: 0.95rem;
	color: var(--mist);
}

.product__feats--wide {
	margin-top: 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1.5rem;
}

.detail-note {
	margin: 1.5rem 0 0;
	color: var(--sand-dim);
	font-size: 1.05rem;
	max-width: 44rem;
}

body.page .site-header {
	background: rgba(7, 20, 40, 0.9);
	border-bottom-color: var(--line);
}

@media (max-width: 720px) {
	.detail-grid,
	.product__feats--wide {
		grid-template-columns: 1fr;
	}

	.product-page .phero {
		min-height: 60vh;
	}
}

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

	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}
