:root {
	--color-ink: #10130f;
	--color-panel: #12140f;
	--color-accent: #1f8a6f;
	--color-cream: #f7f6f2;
	--header-h: 76px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: var(--color-ink);
	color: var(--color-cream);
	direction: rtl;
}

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

/* ---------------- Hero / Ghost reveal ---------------- */

.hero {
	position: relative;
	width: 100%;
	background: var(--color-ink);
}

.hero-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 88vh;
	overflow: hidden;
}

.gr-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.gr-bottom {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

.gr-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: crosshair;
	touch-action: none;
}

/* ---------------- Header ---------------- */

.site-header {
	position: absolute;
	top: 28px;
	left: 0;
	right: 0;
	z-index: 20;
	display: flex;
	justify-content: center;
	padding: 0 24px;
}

.header-pill {
	display: flex;
	align-items: center;
	gap: 28px;
	background: var(--color-cream);
	border-radius: 999px;
	padding: 12px 22px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	max-width: 100%;
}

.header-pill .logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.logo-img {
	display: block;
	height: 28px;
	width: auto;
}

.main-nav ul {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-ink);
	white-space: nowrap;
	transition: color 0.2s ease;
}

.main-nav a:hover {
	color: var(--color-accent);
}

/* ---------------- Hero panel ---------------- */

.hero-panel {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	z-index: 15;
	width: min(38vw, 460px);
	min-width: 300px;
	background: rgba(10, 12, 9, 0.94);
	/* top-left / top-right / bottom-right / bottom-left */
	border-radius: 64px 0 0 5px;
	padding: 46px 56px 46px 42px;
}

.hero-panel-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
}

.hero-panel-brand .logo-img {
	height: 22px;
}

.hero-panel-brand span {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--color-cream);
	font-family: 'Segoe UI', Arial, sans-serif;
}

.hero-panel-title {
	margin: 0 0 18px;
	font-size: 30px;
	line-height: 1.5;
	font-weight: 700;
	color: var(--color-cream);
}

.hero-panel-text {
	margin: 0;
	font-size: 14.5px;
	line-height: 2;
	color: rgba(247, 246, 242, 0.75);
	font-weight: 400;
}

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

@media (max-width: 900px) {
	.main-nav ul {
		gap: 14px;
	}
	.main-nav a {
		font-size: 12.5px;
	}
	.hero-panel {
		width: min(50vw, 420px);
	}
}

@media (max-width: 680px) {
	.hero-media {
		aspect-ratio: 4 / 5;
		max-height: 70vh;
	}
	.site-header {
		top: 16px;
	}
	.header-pill {
		gap: 14px;
		padding: 10px 16px;
		border-radius: 24px;
	}
	.main-nav ul {
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px 14px;
	}
	.main-nav a {
		font-size: 11.5px;
	}
	.hero-panel {
		position: relative;
		top: auto;
		right: auto;
		transform: none;
		width: 100%;
		border-radius: 0;
		padding: 32px 24px;
	}
	.hero-panel-title {
		font-size: 24px;
	}
}
