/* GlobiFYE refinement layer - loaded last on every page, so it wins ties.
 *
 * The Tailwind pages were assembled from per-page defaults: the shadow scale
 * has no xs key, so every card that asks for shadow-xs sits flat; the header
 * and the panels both wear frosted glass; the hero is a generic radial wash.
 * This holds the platform to one system - one accent, one elevation, glass in
 * one place, a hero that belongs to the brand, and text that wraps like a
 * designer set it.
 *
 * Colour, border and shadow only. No opacity or transform on section
 * containers, so it never competes with the GSAP motion layer.
 */

:root {
	--gf-ink: #111015;
	--gf-muted: #777286;
	--gf-line: rgba(17, 16, 21, 0.1);
	--gf-accent: #4f46e5;
	--gf-canvas: #fbfafc;
	--gf-lavender: #e8e3ff;
	--gf-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* shadow-xs is not generated by the Tailwind build in use, so the cards that
   ask for it render flat. Give it the hairline they expected. */
.shadow-xs {
	box-shadow: 0 1px 2px rgba(17, 16, 21, 0.06) !important;
}

/* The sticky header is the one surface that keeps its glass. */
header.sticky.top-0 {
	background: rgba(251, 250, 252, 0.88) !important;
	-webkit-backdrop-filter: saturate(150%) blur(14px) !important;
	backdrop-filter: saturate(150%) blur(14px) !important;
	border-bottom-color: var(--gf-line) !important;
}

/* Selection and focus carry the accent, in both directions. */
::selection {
	background: var(--gf-lavender);
	color: var(--gf-ink);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--gf-accent) !important;
	outline-offset: 3px !important;
	border-radius: 6px;
}

/* Brand horizon: lavender above, a blush flare at the right, paper below. */
.hero-gradient {
	background:
		radial-gradient(125% 85% at 50% -12%, rgba(232, 227, 255, 0.95) 0%, rgba(232, 227, 255, 0.4) 36%, rgba(251, 250, 252, 0) 64%),
		radial-gradient(85% 60% at 84% 6%, rgba(241, 217, 211, 0.6) 0%, rgba(251, 250, 252, 0) 58%),
		var(--gf-canvas) !important;
}

/* Panels read as paper lifted off the page, not as frosted glass. */
.glass-panel {
	background: rgba(255, 255, 255, 0.96) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	backdrop-filter: blur(6px) !important;
	border-color: var(--gf-line) !important;
	box-shadow: 0 1px 2px rgba(17, 16, 21, 0.05) !important;
}

/* One hover lift for raised boxes. GSAP owns the transform on .tilt-card, so
   those are excluded rather than fought over. */
.bg-white.rounded-xl:not(.tilt-card),
.bg-white.rounded-2xl:not(.tilt-card),
.bg-white.rounded-3xl:not(.tilt-card),
.glass-panel:not(.tilt-card) {
	transition: transform 0.35s var(--gf-ease), box-shadow 0.35s var(--gf-ease);
}

.bg-white.rounded-xl:not(.tilt-card):hover,
.bg-white.rounded-2xl:not(.tilt-card):hover,
.bg-white.rounded-3xl:not(.tilt-card):hover,
.glass-panel:not(.tilt-card):hover {
	box-shadow: 0 22px 50px -28px rgba(17, 16, 21, 0.3) !important;
	transform: translateY(-3px);
}

/* --- v2: type set like a designer set it --- */
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}
p, li, dd, figcaption, blockquote {
	text-wrap: pretty;
}

/* Focus must stay visible on the dark grounds too; indigo on charcoal
   disappears, so the deep sections and the CTA wear the paper ring. */
.bg-charcoal :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.cta-gradient :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--gf-canvas) !important;
}

@media (prefers-reduced-motion: reduce) {
	.bg-white.rounded-xl:not(.tilt-card):hover,
	.bg-white.rounded-2xl:not(.tilt-card):hover,
	.bg-white.rounded-3xl:not(.tilt-card):hover,
	.glass-panel:not(.tilt-card):hover {
		transform: none !important;
	}
}