/* FlexiDhan — shared tokens, header, footer */
:root {
	--indigo: #5e5bf7;
	--indigo-deep: #362de1;
	--indigo-bright: #3b2dfd;
	--ink: #14124a;
	--ink-soft: #4a4878;
	--muted: #7a789f;
	--lavender: #e6e3fd;
	--lavender-2: #f3f1ff;
	--mint: #d4faf8;
	--mint-strong: #5cc9a6;
	--mint-soft: #c9f7ea;
	--coin: #f7a924;
	--tag: #f81852;
	--glass: rgba(255, 255, 255, 0.72);
	--glass-line: rgba(255, 255, 255, 0.9);
	--shadow: 0 24px 60px -24px rgba(54, 45, 225, 0.35);
	--radius-lg: 32px;
	--radius: 22px;
	--wrap: 1180px;
	--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	line-height: 1.6;
	background:
		radial-gradient(1200px 700px at 105% -10%, rgba(212, 250, 248, 0.95), transparent 60%),
		radial-gradient(900px 600px at -10% 10%, rgba(225, 222, 251, 0.95), transparent 60%),
		linear-gradient(180deg, #eef0fe 0%, #f6f5ff 40%, #f2fbfb 100%);
	background-attachment: fixed;
	min-height: 100vh;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-head {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 14px 0;
}
.site-head__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 10px 12px 10px 14px;
	border-radius: 999px;
	background: var(--glass);
	border: 1px solid var(--glass-line);
	backdrop-filter: blur(18px) saturate(1.4);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: 0 10px 30px -18px rgba(54, 45, 225, 0.4);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 14px -6px rgba(54, 45, 225, 0.5); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	color: var(--ink-soft);
	padding: 9px 16px;
	border-radius: 999px;
	transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--lavender); color: var(--indigo-deep); }
.nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.menu-btn {
	display: none;
	margin-inline-start: auto;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	cursor: pointer;
	position: relative;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 2px;
	margin-left: -9px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s, opacity 0.25s;
}
.menu-btn span { top: 50%; margin-top: -1px; }
.menu-btn span::before,
.menu-btn span::after { content: ''; left: 0; margin-left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.site-head.is-open .menu-btn span { background: transparent; }
.site-head.is-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.site-head.is-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	font: 700 16px/1 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn--primary { background: linear-gradient(135deg, #6f60fd, var(--indigo-deep)); color: #fff; box-shadow: 0 14px 30px -12px rgba(54, 45, 225, 0.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(54, 45, 225, 0.8); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(20, 18, 74, 0.12); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--indigo); color: var(--indigo-deep); }

/* ---------- footer ---------- */
.site-foot {
	position: relative;
	margin-top: 120px;
	color: #d9d7ff;
	background: linear-gradient(160deg, #1d1870 0%, #14124a 70%);
	overflow: hidden;
}
.site-foot__ribbon { position: absolute; inset: 0 0 auto 0; width: 100%; height: 140px; pointer-events: none; opacity: 0.9; }
.site-foot__inner { position: relative; padding: 120px 0 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-foot .brand { color: #fff; font-size: 26px; }
.site-foot .brand img { width: 48px; height: 48px; border-radius: 14px; }
.site-foot p { margin: 14px 0 0; font-size: 14px; color: #a9a6e6; max-width: 360px; }
.site-foot h4 { margin: 4px 0 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #8e8ae0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.site-foot a { text-decoration: none; color: #e4e2ff; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-foot__legal {
	position: relative;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0 28px;
	font-size: 13px;
	color: #8e8ae0;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.menu-btn { display: block; }
	.nav {
		position: absolute;
		top: calc(100% - 4px);
		left: 16px;
		right: 16px;
		flex-direction: column;
		padding: 10px;
		border-radius: 24px;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}
	.nav a { padding: 14px 18px; font-size: 16px; }
	.site-head.is-open .nav { opacity: 1; visibility: visible; transform: none; }
	.site-foot__inner { grid-template-columns: 1fr 1fr; padding-top: 100px; }
	.site-foot__inner > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-foot__inner { grid-template-columns: 1fr; }
}
