:root {
	--paper: #f4f5ee;
	--paper-deep: #e7ece3;
	--ink: #19323a;
	--cobalt: #294951;
	--sky: #21843e;
	--sun: #4d9b55;
	--sun-bright: #c3e2a7;
	--muted: #52656a;
	--line: #d5ded2;
	--white: #fffef9;
	--serif: "Space Grotesk", "Vazirmatn", sans-serif;
	--sans: "DM Sans", "Vazirmatn", sans-serif;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="fa"] {
	--serif: "Vazirmatn", sans-serif;
	--sans: "Vazirmatn", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	overflow-x: hidden;
	transition: background-color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Scroll Progress Bar */
.scroll-progress {
	position: fixed;
	top: 0;
	inset-inline-start: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, var(--sky), var(--sun));
	z-index: 100;
	transition: width 0.08s linear;
}

/* Header & Navigation */
.site-header {
	height: 78px;
	padding: 0 6.2vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: fixed;
	z-index: 50;
	inset: 0 0 auto;
	border-bottom: 1px solid rgba(13, 30, 45, 0.12);
	background: rgba(244, 245, 238, 0.78);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: background 0.3s var(--ease-out), height 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled {
	height: 68px;
	background: rgba(244, 245, 238, 0.96);
	box-shadow: 0 10px 30px rgba(13, 30, 45, 0.07);
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font: 700 19px var(--serif);
	letter-spacing: 0;
}
.brand-logo {
	width: 38px;
	height: 46px;
	object-fit: contain;
	transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
.site-header .brand-logo { width: 48px; height: 58px; }
.site-header.is-scrolled .brand-logo { width: 34px; height: 42px; }
.brand-name { font-size: 20px; font-weight: 700; }

.header-right {
	display: flex;
	align-items: center;
	gap: 24px;
}
.nav-links {
	display: flex;
	gap: 30px;
	align-items: center;
	font-size: 13.5px;
	font-weight: 600;
}
.nav-links a:not(.nav-cta) {
	color: var(--ink);
	position: relative;
	padding: 4px 0;
	transition: color 0.2s;
}
.nav-links a:not(.nav-cta)::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--sun);
	transition: width 0.28s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--sky); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

/* Language Switcher */
.lang-switch {
	display: inline-flex;
	align-items: center;
	background: rgba(13, 30, 45, 0.07);
	padding: 3px;
	border-radius: 999px;
	border: 1px solid rgba(13, 30, 45, 0.1);
}
.lang-btn {
	border: 0;
	background: transparent;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 10px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.22s var(--ease-out);
}
.lang-btn.active {
	background: var(--ink);
	color: var(--sun-bright);
	box-shadow: 0 2px 8px rgba(13, 30, 45, 0.18);
}
.lang-btn:hover:not(.active) { color: var(--ink); }

/* Buttons */
.nav-cta, .button-dark, .button-sun {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 20px;
	background: var(--ink);
	color: var(--white);
	border: 0;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.button-sun {
	min-height: 50px;
	padding: 0 24px;
	background: var(--sun-bright);
	color: var(--ink);
	font-size: 14px;
}
.nav-cta:hover, .button-dark:hover {
	background: var(--sky);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(33, 132, 62, 0.28);
}
.button-sun:hover {
	background: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.nav-cta svg, .button-dark svg, .button-sun svg, .button-line svg {
	width: 16px;
	height: 16px;
	transition: transform 0.25s var(--ease-out);
}
html[dir="rtl"] .dir-arrow { transform: scaleX(-1); }
.button-line:hover .dir-arrow, .nav-cta:hover .dir-arrow, .button-dark:hover .dir-arrow, .button-sun:hover .dir-arrow {
	transform: translateX(4px);
}
html[dir="rtl"] .button-line:hover .dir-arrow,
html[dir="rtl"] .nav-cta:hover .dir-arrow,
html[dir="rtl"] .button-dark:hover .dir-arrow,
html[dir="rtl"] .button-sun:hover .dir-arrow {
	transform: scaleX(-1) translateX(4px);
}

.menu-toggle {
	display: none;
	min-width: 44px;
	min-height: 44px;
	border: 0;
	background: none;
	color: var(--ink);
	padding: 8px;
}

/* Hero Section */
.hero {
	min-height: 740px;
	height: min(880px, 100svh);
	max-height: 960px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding-top: 78px;
}
.hero-photo, .hero-wash {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.hero-photo {
	z-index: 0;
	background: var(--cobalt) url("6.jpg") center 52% / cover no-repeat;
	transform: scale(1.04);
	animation: hero-photo-drift 18s ease-in-out infinite alternate;
	will-change: transform;
}
.hero::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: 12%;
	inset-inline-end: 8%;
	width: clamp(180px, 26vw, 360px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(195, 226, 167, 0.24), rgba(195, 226, 167, 0) 70%);
	pointer-events: none;
	animation: sun-glow 7s ease-in-out infinite alternate;
}
.hero-wash {
	z-index: 1;
	background:
		linear-gradient(90deg, var(--paper) 0%, rgba(244, 245, 238, 0.97) 30%, rgba(244, 245, 238, 0.73) 50%, rgba(25, 50, 58, 0.12) 78%, rgba(25, 50, 58, 0.3) 100%),
		linear-gradient(0deg, rgba(25, 50, 58, 0.2), transparent 35%);
}
html[dir="rtl"] .hero-wash {
	background:
		linear-gradient(270deg, var(--paper) 0%, rgba(244, 245, 238, 0.97) 30%, rgba(244, 245, 238, 0.73) 50%, rgba(25, 50, 58, 0.12) 78%, rgba(25, 50, 58, 0.3) 100%),
		linear-gradient(0deg, rgba(25, 50, 58, 0.2), transparent 35%);
}
.hero-content {
	position: relative;
	z-index: 2;
	width: min(580px, 50vw);
	margin: 20px 11.5vw;
	min-width: 0;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	font-size: 12px;
	font-weight: 700;
	color: var(--sky);
}
html[lang="fa"] .eyebrow { letter-spacing: 0; font-size: 12.5px; }
.eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	background: var(--sun);
}
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--serif); letter-spacing: -0.02em; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4 { letter-spacing: 0; }

h1 {
	max-width: 650px;
	margin: 20px 0 18px;
	font-size: clamp(46px, 5.6vw, 84px);
	line-height: 1.03;
	font-weight: 600;
}
html[lang="fa"] h1 { line-height: 1.22; font-size: clamp(40px, 4.8vw, 72px); }
html[lang="fa"] h1 em { text-underline-offset: 10px; }
h1 em {
	color: var(--sky);
	font-style: normal;
	text-decoration: underline;
	text-decoration-color: var(--sun);
	text-decoration-thickness: 4px;
	text-underline-offset: 6px;
}
.hero-copy {
	max-width: 460px;
	color: #364754;
	font-size: 17px;
	line-height: 1.8;
}
.hero-actions {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 30px;
	flex-wrap: wrap;
}
.button-dark { min-height: 52px; padding: 0 24px; }
.button-line {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.button-line:hover { color: var(--sky); transform: translateY(-2px); }
.button-dark:active, .nav-cta:active, .button-sun:active { transform: translateY(0) scale(0.98); }

.hero-note {
	position: absolute;
	bottom: 30px;
	inset-inline-end: 6.2vw;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--white);
	font-size: 12px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-note svg { width: 16px; height: 16px; color: var(--sun-bright); }

/* Ticker Bar */
.ticker {
	min-height: 112px;
	padding: 24px 11.5vw;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	background: var(--cobalt);
	color: var(--white);
	border-bottom: 3px solid var(--sun);
}
.ticker-item {
	padding: 6px 28px;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
}
.ticker-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ticker strong {
	display: block;
	font: 600 22px var(--serif);
	color: var(--sun-bright);
}
.ticker span {
	display: block;
	margin-top: 6px;
	color: #d2e0ec;
	font-size: 13px;
	line-height: 1.5;
}

/* Sections */
.section { padding: 115px 11.5vw; }
.section-heading { max-width: 720px; }
.section-heading h2 {
	margin: 16px 0 15px;
	font-size: clamp(34px, 4.3vw, 58px);
	line-height: 1.08;
	font-weight: 600;
}
html[lang="fa"] .section-heading h2 { line-height: 1.25; }
.section-heading p {
	max-width: 570px;
	color: var(--muted);
	font-size: 16.5px;
	line-height: 1.8;
}

/* How It Works */
.intro {
	display: grid;
	grid-template-columns: 1fr 0.68fr;
	gap: 8vw;
	align-items: end;
	padding-bottom: 60px;
}
.intro-aside {
	max-width: 360px;
	padding: 4px 0 4px 22px;
	border-inline-start: 3px solid var(--sun);
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.8;
}
html[dir="rtl"] .intro-aside { padding: 4px 22px 4px 0; }

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 36px;
	border-top: 1px solid var(--line);
}
.step {
	min-width: 0;
	padding: 28px 22px 16px 0;
	border-inline-end: 1px solid var(--line);
	margin-inline-end: 22px;
	transition: transform 0.3s var(--ease-out), background-color 0.3s ease;
}
html[dir="rtl"] .step { padding: 28px 0 16px 22px; }
.step:hover { transform: translateY(-5px); }
.step:last-child { border-inline-end: 0; margin-inline-end: 0; }
.step-num {
	display: inline-block;
	padding: 3px 9px;
	background: rgba(33, 132, 62, 0.12);
	color: var(--sky);
	border-radius: 4px;
	font: 700 12px var(--serif);
}
.step h3 { margin: 24px 0 10px; font-size: 20px; font-weight: 600; }
.step p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }

/* Systems Section (Uses 1.jpg uniquely + Spec Card) */
.systems {
	background: var(--paper-deep);
	padding-top: 106px;
	padding-bottom: 106px;
}
.systems-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
	gap: 7vw;
	align-items: center;
}
.systems-visual-stack {
	position: relative;
}
.systems-image {
	min-height: 540px;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: var(--cobalt) url("1.jpg") center / cover no-repeat;
	box-shadow: 0 22px 48px rgba(13, 30, 45, 0.16);
}
.systems-spec-card {
	position: absolute;
	inset-inline-end: -20px;
	bottom: -22px;
	max-width: 265px;
	padding: 18px 20px;
	border-radius: 8px;
	border: 3px solid var(--paper-deep);
	background: var(--ink);
	color: var(--white);
	box-shadow: 0 16px 34px rgba(13, 30, 45, 0.24);
}
.systems-spec-card strong {
	display: block;
	font: 700 24px var(--serif);
	color: var(--sun-bright);
	margin-bottom: 5px;
}
.systems-spec-card span {
	display: block;
	font-size: 12.5px;
	line-height: 1.6;
	color: #d2e0ec;
}
.image-caption {
	position: absolute;
	inset-inline-start: 16px;
	top: 16px;
	padding: 10px 14px;
	background: var(--sun);
	color: var(--ink);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.systems-copy .section-heading { margin-bottom: 28px; }
.systems-copy { min-width: 0; }
.component {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
	transition: transform 0.25s var(--ease-out), background-color 0.25s ease;
}
.component:hover { transform: translateX(4px); background-color: rgba(255, 255, 255, 0.38); }
html[dir="rtl"] .component:hover { transform: translateX(-4px); }
.component-icon {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 6px;
	background: var(--cobalt);
	color: var(--sun-bright);
}
.component-icon svg { width: 20px; height: 20px; }
.component h3 { margin: 1px 0 5px; font: 700 14.5px var(--sans); }
.component p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.component p, .component h3 { overflow-wrap: anywhere; }

/* Field Gallery Section (4 unique cards in balanced 2x2 grid) */
.gallery-section {
	background: var(--paper);
	padding-top: 110px;
	padding-bottom: 110px;
}
.gallery-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 42px;
	flex-wrap: wrap;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: 310px;
	gap: 20px;
}
.gallery-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ink);
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(13, 30, 45, 0.08);
	transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.gallery-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(13, 30, 45, 0.16); }
.gallery-card:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.gallery-card.span-7 { grid-column: span 7; }
.gallery-card.span-5 { grid-column: span 5; }
.gallery-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.65s var(--ease-out), filter 0.4s ease;
}
.gallery-card[data-full="2.jpg"] img { object-position: center 22%; }
.gallery-card:hover img {
	transform: scale(1.06);
}
.gallery-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(13, 30, 45, 0.88) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 22px;
	color: var(--white);
	transition: background 0.35s ease;
}
.gallery-card:hover .gallery-overlay { background: linear-gradient(180deg, rgba(13, 30, 45, 0.04) 20%, rgba(13, 30, 45, 0.94) 100%); }
.gallery-tag {
	align-self: flex-start;
	padding: 4px 10px;
	background: var(--sun);
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 3px;
	margin-bottom: 8px;
}
.gallery-overlay h3 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
}
.gallery-overlay p {
	margin: 0;
	font-size: 14px;
	color: #d2e0ec;
	line-height: 1.5;
}

/* Lightbox Modal */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(13, 30, 45, 0.92);
	backdrop-filter: blur(10px);
	display: none;
	place-items: center;
	padding: 4vw;
}
.lightbox.is-open { display: grid; animation: fadeIn 0.25s ease; }
.lightbox-inner {
	max-width: 1600px;
	width: 100%;
	position: relative;
	text-align: center;
}
.lightbox-inner img {
	max-height: 84vh;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	image-rendering: auto;
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
	margin-top: 14px;
	color: var(--white);
	font-size: 14px;
}
.lightbox-close {
	position: absolute;
	top: -44px;
	inset-inline-end: 0;
	background: var(--sun);
	color: var(--ink);
	border: 0;
	padding: 6px 14px;
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
}

/* Calculator Section */
.calculator {
	background: linear-gradient(135deg, var(--ink) 0%, var(--cobalt) 100%);
	color: var(--white);
	padding-top: 112px;
	padding-bottom: 118px;
	position: relative;
	overflow: hidden;
}
.calculator .eyebrow { color: var(--sun-bright); }
.calculator .section-heading p { color: #c8d8e6; }
.calc-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
	gap: 9vw;
	align-items: start;
	margin-top: 48px;
}
.calc-fields { display: grid; gap: 26px; min-width: 0; }
.calc-mode {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
}
.calc-mode-button {
	flex: 1 1 140px;
	min-height: 44px;
	padding: 9px 14px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: #d6e3ef;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.calc-mode-button.active {
	background: var(--sun-bright);
	color: var(--ink);
	border-color: var(--sun);
}
.calc-mode-button:focus-visible { outline-color: var(--sun-bright); }
.field { min-width: 0; }
.field label {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 10px;
	color: #d6e3ef;
	font-size: 13px;
}
.field label > span { min-width: 0; overflow-wrap: anywhere; }
.field output {
	flex: 0 0 auto;
	color: var(--sun-bright);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.field input[type="range"] {
	display: block;
	width: 100%;
	max-width: 100%;
	accent-color: var(--sun);
	cursor: pointer;
}
.field-scale {
	display: flex;
	justify-content: space-between;
	color: #9ab2c7;
	font-size: 12px;
	margin-top: 4px;
}
.calc-result {
	padding: 8px 0 8px 34px;
	border-inline-start: 2px solid rgba(195, 226, 167, 0.35);
}
html[dir="rtl"] .calc-result { padding: 8px 34px 8px 0; }
.result-label {
	color: #c8d8e6;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
html[lang="fa"] .result-label { letter-spacing: 0; }
.result-number {
	margin: 10px 0 6px;
	color: var(--sun-bright);
	font: 600 clamp(38px, 4.8vw, 68px)/1.1 var(--serif);
	font-variant-numeric: tabular-nums;
}
.result-number.is-updating,
.project-estimate-value.is-updating,
.result-stats strong.is-updating { animation: value-update 0.38s var(--ease-out); }
.project-estimate { margin-top: 24px; }
.project-estimate .result-label { display: block; }
.project-estimate-value {
	display: block;
	margin-top: 6px;
	color: var(--sun-bright);
	font: 600 28px/1.2 var(--serif);
	font-variant-numeric: tabular-nums;
}
.project-payback { display: block; margin-top: 8px; }
.project-payback strong { color: var(--sun-bright); }
.result-sub { color: #dce7f0; font-size: 13px; }
.result-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.result-stats strong {
	display: block;
	font: 600 25px var(--serif);
	color: var(--white);
}
.result-stats span {
	display: block;
	margin-top: 5px;
	color: #b7cade;
	font-size: 12px;
}
.calc-cta-wrap {
	margin-top: 28px;
}
.calc-disclaimer {
	max-width: 550px;
	margin: 22px 0 0;
	color: #9ab2c7;
	font-size: 12px;
	line-height: 1.7;
}

/* Registration Modal */
.register-modal {
	position: fixed;
	inset: 0;
	z-index: 210;
	background: rgba(13, 30, 45, 0.84);
	backdrop-filter: blur(8px);
	display: none;
	place-items: center;
	padding: 20px;
	overflow-y: auto;
}
.register-modal.is-open {
	display: grid;
	animation: fadeIn 0.22s ease;
}
.register-dialog {
	width: min(560px, 100%);
	background: var(--paper);
	color: var(--ink);
	border-radius: 10px;
	padding: 32px;
	position: relative;
	box-shadow: 0 26px 68px rgba(0, 0, 0, 0.42);
	border: 1px solid var(--line);
}
.register-close {
	position: absolute;
	top: 20px;
	inset-inline-end: 20px;
	background: rgba(25, 50, 58, 0.08);
	color: var(--ink);
	border: 0;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}
.register-close:hover { background: var(--sun-bright); }
.register-dialog h3 {
	margin: 10px 0 8px;
	font-size: 26px;
}
.register-desc {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.65;
	margin-bottom: 18px;
}
.register-summary {
	background: var(--paper-deep);
	border-inline-start: 4px solid var(--sky);
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.6;
	margin-bottom: 20px;
	color: var(--ink);
	font-weight: 600;
}
.register-form {
	display: grid;
	gap: 16px;
}
.form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.form-row label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}
.form-row input,
.form-row textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #bec9bc;
	border-radius: 5px;
	background: var(--white);
	color: var(--ink);
	font-size: 14px;
	transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--sky);
	box-shadow: 0 0 0 3px rgba(33, 132, 62, 0.15);
}
.register-submit {
	width: 100%;
	margin-top: 6px;
}
.register-success {
	text-align: center;
	padding: 18px 8px 6px;
}
.success-badge {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sky);
	color: var(--white);
	display: grid;
	place-items: center;
	font-size: 24px;
	font-weight: 700;
	margin: 0 auto 14px;
}
.register-success h4 {
	font-size: 22px;
	margin-bottom: 8px;
}
.register-success p {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.65;
	margin-bottom: 20px;
}
.success-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* Closing CTA */
.closing {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	padding-top: 88px;
	padding-bottom: 88px;
}
.closing h2 {
	max-width: 620px;
	margin: 16px 0 0;
	font-size: clamp(36px, 4.8vw, 62px);
	line-height: 1.06;
	font-weight: 600;
}
.closing .button-dark { flex: 0 0 auto; }

/* Footer */
footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 28px 11.5vw;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 12px;
}
.footer-links { display: flex; gap: 24px; }
.footer-domain { color: var(--sky); font-weight: 700; }
.footer-links a:hover { color: var(--sky); }

/* Smooth Scroll Reveal Animations */
[data-reveal] {
	opacity: 0;
	transform: translateY(30px);
	filter: blur(3px);
	transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-photo-drift { from { transform: scale(1.04); } to { transform: scale(1.1); } }
@keyframes sun-glow { from { opacity: 0.45; transform: translateY(-8px) scale(0.96); } to { opacity: 0.9; transform: translateY(12px) scale(1.04); } }
@keyframes value-update { 50% { opacity: 0.55; transform: translateY(-3px) scale(1.035); } }

.hero-content.is-visible > * { animation: hero-copy-enter 0.65s var(--ease-out) both; }
.hero-content.is-visible > :nth-child(1) { animation-delay: 0.08s; }
.hero-content.is-visible > :nth-child(2) { animation-delay: 0.16s; }
.hero-content.is-visible > :nth-child(3) { animation-delay: 0.24s; }
.hero-content.is-visible > :nth-child(4) { animation-delay: 0.32s; }
.ticker-item[data-reveal]:nth-child(2),
.step[data-reveal]:nth-child(2),
.gallery-card[data-reveal]:nth-child(2) { transition-delay: 90ms; }
.ticker-item[data-reveal]:nth-child(3),
.step[data-reveal]:nth-child(3),
.gallery-card[data-reveal]:nth-child(3) { transition-delay: 180ms; }
.step[data-reveal]:nth-child(4),
.gallery-card[data-reveal]:nth-child(4) { transition-delay: 270ms; }
@keyframes hero-copy-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive Breakpoints */
@media (max-width: 960px) {
	.site-header { padding: 0 5vw; }
	.header-right { gap: 12px; }
	.menu-toggle { display: block; cursor: pointer; flex: 0 0 auto; }
	.menu-toggle svg { display: block; width: 24px; height: 24px; }
	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		inset-inline: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 6vw 20px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 32px rgba(13, 30, 45, 0.12);
	}
	.nav-links.is-open { display: flex; }
	.nav-links a:not(.nav-cta) { padding: 12px 0; }
	.nav-cta { margin-top: 10px; }
	.hero-content { width: min(550px, 64vw); margin-inline-start: 7vw; }
	.section { padding-inline: 7vw; }
	.ticker { padding-inline: 7vw; }
	.systems-grid { grid-template-columns: 1fr; gap: 48px; }
	.systems-spec-card { inset-inline-end: 16px; bottom: 16px; }
	.gallery-card.span-7, .gallery-card.span-5 {
		grid-column: span 6;
	}
	footer { padding-inline: 7vw; flex-wrap: wrap; }
}

@media (max-width: 720px) {
	.site-header { height: 66px; }
	.site-header .brand-logo { width: 42px; height: 50px; }
	.site-header.is-scrolled .brand-logo { width: 32px; height: 38px; }

	.hero { height: auto; min-height: max(680px, 100svh); max-height: none; align-items: flex-start; padding: 66px 0 84px; }
	.hero-wash {
		background: linear-gradient(180deg, rgba(244, 245, 238, 0.97) 0%, rgba(244, 245, 238, 0.92) 38%, rgba(244, 245, 238, 0.45) 64%, rgba(25, 50, 58, 0.35) 100%) !important;
	}
	.hero-content { width: auto; margin: 28px 7vw 0; }
	h1 { font-size: clamp(38px, 11vw, 54px); overflow-wrap: anywhere; }
	html[lang="fa"] h1 { font-size: clamp(34px, 9.5vw, 48px); line-height: 1.3; }
	.hero-actions { gap: 16px; }
	.hero-actions > a { max-width: 100%; }
	.hero-note { bottom: 24px; inset-inline-end: 6vw; }
	.hero::after { width: 48vw; }

	.ticker { grid-template-columns: 1fr; padding-block: 12px; }
	.ticker-item, .ticker-item:first-child {
		padding: 15px 0;
		border-inline-start: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	}
	.ticker-item:last-child { border-bottom: 0; }

	.section { padding: 78px 7vw; }
	.intro { grid-template-columns: 1fr; gap: 20px; padding-bottom: 42px; }
	.steps { grid-template-columns: 1fr 1fr; }
	.step { margin-inline-end: 15px; padding-top: 20px; }
	.step:nth-child(2) { border-inline-end: 0; margin-inline-end: 0; }
	.step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--line); }

	.gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
	.gallery-card.span-7, .gallery-card.span-5 { grid-column: span 1; }

	.calc-layout { grid-template-columns: 1fr; gap: 36px; }
	.calc-layout > * { min-width: 0; }
	.calc-result { padding-inline: 0; border-inline-start: 0; border-top: 2px solid rgba(195, 226, 167, 0.35); padding-top: 24px; }
	html[dir="rtl"] .calc-result { padding-inline: 0; }
	.result-number { font-size: clamp(34px, 9.5vw, 54px); }
	.result-stats { gap: 16px; }
	.result-stats strong { font-size: 22px; }
	.calc-disclaimer { font-size: 12px; }
	.systems-image { min-height: clamp(320px, 90vw, 440px); }
	.systems-spec-card { position: static; max-width: 100%; margin-top: 14px; border: 0; }
	.form-grid-2 { grid-template-columns: 1fr; }
	.register-dialog { padding: 24px 18px; }
	.gallery-overlay { padding: 18px; }
	.gallery-overlay p { font-size: 13px; }
	footer { font-size: 13px; }
	.closing { align-items: flex-start; flex-direction: column; }
	footer { align-items: flex-start; flex-direction: column; }
	.footer-links { flex-wrap: wrap; gap: 14px 20px; }
}

@media (max-width: 380px) {
	.site-header { padding-inline: 4vw; }
	.brand { gap: 7px; }
	.site-header .brand-logo { width: 38px; height: 46px; }
	.header-right { gap: 6px; }
	.lang-btn { min-width: 44px; padding-inline: 7px; }
	.hero-content { margin-inline: 5vw; }
	.section { padding-inline: 5vw; }
	.steps { grid-template-columns: minmax(0, 1fr); }
	.step, html[dir="rtl"] .step { padding: 20px 0; margin-inline-end: 0; border-inline-end: 0; }
	.step + .step { border-top: 1px solid var(--line); }
	.result-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		animation: none !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}
	[data-reveal] { opacity: 1; transform: none; filter: none; }
}
/* Anti-spam Honeypot, Turnstile CAPTCHA & Form Status */
.hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.turnstile-wrap {
	display: flex;
	justify-content: flex-start;
	min-height: 65px;
	margin-top: 2px;
}
.reg-error {
	padding: 10px 14px;
	border-radius: 5px;
	background: #fde8e8;
	border: 1px solid #f5b5b5;
	color: #9b1c1c;
	font-size: 13px;
	font-weight: 600;
}
.register-submit[disabled] {
	opacity: 0.65;
	cursor: wait;
	transform: none !important;
}