/* ==========================================================================
   "SKY" THEME: pieces shared by the inner pages so they match the homepage.
   Load before the page's own *-sky.css file.
   ========================================================================== */

/* ---------- Hero: the homepage's signature gradient and drifting stars ---------- */
.sky-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, #020024 0%, #060552 7%, #090979 21%, #0482c9 56%, #0ea5e9 100%) !important;
	border-bottom: 0 !important;
}

.sky-hero::before {
	content: '';
	position: absolute;
	inset: -50% 0 0 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.8;
	background-image:
		radial-gradient(1.5px 1.5px at 20px 30px, #ffffff 50%, transparent 51%),
		radial-gradient(1px 1px at 90px 120px, #ffffff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 160px 60px, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
		radial-gradient(1px 1px at 230px 180px, #ffffff 50%, transparent 51%),
		radial-gradient(1px 1px at 300px 90px, rgba(255, 255, 255, 0.7) 50%, transparent 51%);
	background-size: 340px 240px;
	animation: skyStarDrift 60s linear infinite;
}

@keyframes skyStarDrift {
	from { transform: translateY(0); }
	to { transform: translateY(240px); }
}

.sky-hero > .container {
	position: relative;
	z-index: 2;
}

/* Soft glow behind the hero image side */
.sky-hero-glow {
	position: absolute;
	top: -120px;
	right: 8%;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: rgba(56, 189, 248, 0.35);
	filter: blur(60px);
	pointer-events: none;
	z-index: 1;
}

/* ---------- Curved section edges ---------- */
.sky-wave {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100px;
	display: block;
	pointer-events: none;
	z-index: 1;
}

.sky-wave--bottom { bottom: -1px; }
.sky-wave--top { top: -1px; }
.sky-wave--flip { transform: scaleX(-1); }
.sky-wave--sky path { fill: #f3f7fe; }
.sky-wave--white path { fill: #ffffff; }

/* ---------- Floating decorations (same shapes as the homepage) ---------- */
.sky-deco {
	position: absolute;
	pointer-events: none;
	z-index: 0;
}

.sky-deco--dots {
	width: 220px;
	height: 220px;
	background-image: radial-gradient(#cbd5e1 1.6px, transparent 1.6px);
	background-size: 18px 18px;
	opacity: 0.5;
}

.sky-deco--ring {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 22px solid rgba(37, 99, 235, 0.07);
	animation: skyFloat 9s ease-in-out infinite;
}

.sky-deco--plus {
	width: 26px;
	height: 26px;
	background:
		linear-gradient(#7dd3fc, #7dd3fc) center / 100% 4px no-repeat,
		linear-gradient(#7dd3fc, #7dd3fc) center / 4px 100% no-repeat;
	opacity: 0.8;
	animation: skySpin 16s linear infinite;
}

@keyframes skyFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

@keyframes skySpin {
	to { transform: rotate(360deg); }
}

/* ---------- Fade in on scroll (class is added by js/sky-reveal.js) ---------- */
.sky-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--sky-delay, 0s);
}

.sky-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- Closing banner (same as the homepage's) ---------- */
.sky-cta {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: 72px 40px;
	text-align: center;
	color: #ffffff;
	background: linear-gradient(90deg, #020024 0%, #060552 7%, #090979 21%, #0482c9 56%, #0ea5e9 100%);
	box-shadow: 0 36px 70px -36px rgba(37, 99, 235, 0.65);
}

.sky-cta::before,
.sky-cta::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	pointer-events: none;
}

.sky-cta::before { width: 320px; height: 320px; top: -150px; right: -90px; }
.sky-cta::after { width: 220px; height: 220px; bottom: -120px; left: -60px; }

.sky-cta > * {
	position: relative;
	z-index: 1;
}

.sky-cta h2 {
	font-family: "Sora", "Inter", system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: -0.025em;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	color: #ffffff;
	margin-bottom: 12px;
	text-shadow: 0 2px 12px rgba(2, 0, 36, 0.55);
}

.sky-cta p {
	max-width: 560px;
	margin: 0 auto 26px;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.7;
	text-shadow: 0 2px 12px rgba(2, 0, 36, 0.45);
}

.sky-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 30px;
	border-radius: 999px;
	background: #ffffff;
	color: #1d4ed8 !important;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 16px 30px -16px rgba(2, 0, 36, 0.7);
	transition: transform 0.2s ease;
}

.sky-cta-btn:hover {
	transform: translateY(-3px);
}

.sky-cta-btn i {
	transition: transform 0.25s ease;
}

.sky-cta-btn:hover i {
	transform: translateX(5px);
}

@media (max-width: 991.98px) {
	.sky-wave { height: 64px; }
	.sky-deco--ring, .sky-deco--dots { display: none; }
}

@media (max-width: 575.98px) {
	.sky-wave { height: 42px; }
	.sky-deco--plus, .sky-hero-glow { display: none; }
	.sky-cta { padding: 46px 20px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.sky-hero::before,
	.sky-deco--ring,
	.sky-deco--plus {
		animation: none;
	}

	.sky-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- No hairline where a wave meets the next section ----------
   Section heights are fractional on phones, so the wave's straight edge can land on half
   a pixel and blend with the background behind it. A thin strip of the neighbouring
   colour behind that edge makes the blend invisible. */
.sky-hero {
	box-shadow: inset 0 -3px 0 var(--sky-next, #f3f7fe);
}

.sky-hero:has(> .sky-wave--white),
.sky-hero:has(+ .sd-section--white) {
	--sky-next: #ffffff;
}

:has(> .sky-wave--top.sky-wave--sky) {
	box-shadow: inset 0 3px 0 #f3f7fe;
}

:has(> .sky-wave--top.sky-wave--white) {
	box-shadow: inset 0 3px 0 #ffffff;
}
