/* ===== Temel reset ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
}
img {
	display: block;
	height: auto;
	width: 100%;
	max-width: 350px;
}

/* ===== Değişkenler ===== */
:root {
	--bg: #0b0f14;
	--ink: #e9eef5;
	--muted: #aab4c3;
	--lapis: #1f3b73;
	--lapis-deep: #12264c;
	--gold: #c9a24b;
	--gold-soft: #d9b35d;
	--accent: #6aa4ff;

	--radius: 16px;
	--shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	--focus: 0 0 0 3px rgba(106, 164, 255, 0.45);

	--container: 1200px;
}

/* ===== Yerel yazı tipleri ===== */
@font-face {
	font-family: 'Cinzel';
	src: url('../fonts/Cinzel-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ===== Global ===== */
body {
	background: radial-gradient(
				1200px 600px at 70% -10%,
				#152034 0%,
				var(--bg) 60%
			)
			no-repeat,
		var(--bg);
	color: var(--ink);
	font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial,
		sans-serif;
	line-height: 1.6;
}
.no-js .reveal {
	opacity: 1;
	transform: none;
}

a {
	color: var(--ink);
	text-decoration: none;
}
a:hover {
	color: var(--gold-soft);
}
a:focus-visible {
	outline: none;
	box-shadow: var(--focus);
	border-radius: 8px;
}

.container {
	width: min(100% - 32px, var(--container));
	margin-inline: auto;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.skip-link:focus {
	position: fixed;
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	z-index: 10000;
	background: #000;
	color: #fff;
	padding: 8px 12px;
	border-radius: 8px;
}

/* ===== Header ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	backdrop-filter: saturate(130%) blur(8px);
	background: rgba(11, 15, 20, 0.6);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	min-height: 64px;
	gap: 16px;
}
.brand {
	font-family: Cinzel, serif;
	letter-spacing: 0.06em;
	font-size: clamp(18px, 2.4vw, 22px);
	padding: 10px 0;
	color: var(--ink);
}
.site-nav ul {
	display: flex;
	gap: clamp(10px, 2.2vw, 24px);
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}
.site-nav a {
	display: inline-block;
	padding: 10px 6px;
	border-radius: 10px;
	transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.site-nav a:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.06);
}

/* ===== Footer (универсальный) ===== */
.footer {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: linear-gradient(
		180deg,
		rgba(18, 38, 76, 0.25),
		rgba(11, 15, 20, 0.9)
	);
	margin-top: 64px;
}
.footer-container {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 16px;
	padding: 24px 0;
	align-items: start;
}
.footer-column a {
	color: var(--ink);
}
.footer-column a:hover {
	color: var(--gold-soft);
}

.footer-brand {
	font-family: Cinzel, serif;
	letter-spacing: 0.06em;
	margin: 0 0 6px;
	color: var(--ink);
}
.footer-links {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}
.footer-top .back-to-top {
	appearance: none;
	cursor: pointer;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.04);
	color: var(--ink);
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
		border-color 0.25s ease;
}
.footer-top .back-to-top:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--gold-soft);
}

/* Анимация появления (совместима с нашим reveal) */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible {
	opacity: 1;
	transform: none;
}

/* Responsive */
@media (max-width: 992px) {
	.footer-container {
		grid-template-columns: 1fr;
	}
	.footer-links {
		justify-content: start;
	}
}

/* ===== Reveal animasyonu (IntersectionObserver ile) ===== */
.reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ===== Yardımcı ===== */
.ghost-link {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease,
		border-color 0.25s ease;
	will-change: transform;
}
.ghost-link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--gold);
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.32);
}

/* ===== Medya sorguları (tüm cihazlar için) ===== */
@media (max-width: 1200px) {
	:root {
		--container: 1060px;
	}
}
@media (max-width: 992px) {
	:root {
		--container: 920px;
	}
	.site-nav ul {
		gap: 14px;
	}
}
@media (max-width: 768px) {
	:root {
		--container: 700px;
	}
	.header-inner {
		grid-template-columns: 1fr;
		justify-items: start;
		gap: 8px;
	}
	.back-to-top {
		margin-left: 0;
	}
}
@media (max-width: 576px) {
	:root {
		--container: 520px;
	}
	.site-nav a {
		padding: 8px 6px;
	}
}
@media (max-width: 360px) {
	:root {
		--container: 320px;
	}
	.site-nav ul {
		gap: 8px;
	}
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
/* Активная страница в меню */
.site-nav a[aria-current='page'] {
	color: var(--gold-soft);
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-1px);
}
/* ===== Thank You / Teşekkürler sayfası ===== */
.thankyou-section {
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: clamp(24px, 6vw, 60px) 0;
	background: radial-gradient(
			600px 320px at 120% -20%,
			rgba(106, 164, 255, 0.12),
			transparent 60%
		),
		linear-gradient(180deg, rgba(18, 38, 76, 0.22), rgba(11, 15, 20, 0.92));
}

.thankyou-container {
	width: min(720px, 92%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: clamp(18px, 4.5vw, 28px);
	background: radial-gradient(
			420px 240px at 0% 0%,
			rgba(201, 162, 75, 0.1),
			transparent 60%
		),
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.05),
			rgba(255, 255, 255, 0.02)
		);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	text-align: center;
	animation: ty-rise 0.7s ease both;
	position: relative;
}

.thankyou-title {
	font-family: Cinzel, serif;
	font-size: clamp(24px, 4vw, 40px);
	letter-spacing: 0.02em;
	margin: 0 0 10px;
	color: var(--ink, #e9eef5);
}

.thankyou-message {
	margin: 0 auto 14px;
	max-width: 60ch;
	line-height: 1.6;
	color: var(--muted, #c7d3e6);
}

/* Genel buton stili — sayfa kendi başına da çalışsın */
.cta-button {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--ink, #e9eef5);
	background: linear-gradient(
		180deg,
		rgba(201, 162, 75, 0.24),
		rgba(201, 162, 75, 0.14)
	);
	text-decoration: none;
	transition: transform 0.2s ease, background 0.25s ease,
		border-color 0.25s ease, color 0.25s ease;
}
.cta-button:hover {
	transform: translateY(-1px);
	background: linear-gradient(
		180deg,
		rgba(201, 162, 75, 0.3),
		rgba(201, 162, 75, 0.18)
	);
	border-color: rgba(255, 255, 255, 0.28);
	color: var(--gold-soft, #eccf8b);
}
.cta-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(106, 164, 255, 0.35);
}

/* Hafif giriş animasyonu */
@keyframes ty-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Erişilebilirlik */
@media (prefers-reduced-motion: reduce) {
	.thankyou-container {
		animation: none;
	}
	.cta-button {
		transition: none;
	}
}
