@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
	--font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	
	/* Palette Tokens - Celeste & Blanco */
	--bg-body: #f0f9ff;
	--bg-surface: rgba(255, 255, 255, 0.75);
	--bg-surface-elevated: rgba(255, 255, 255, 0.88);
	--bg-subtle: #f0f9ff;
	--bg-dark: #0f172a;
	--bg-dark-surface: #1e293b;
	
	/* Glassmorphism Surface Tokens */
	--glass-bg: rgba(255, 255, 255, 0.75);
	--glass-bg-hover: rgba(255, 255, 255, 0.88);
	--glass-border: 1px solid rgba(255, 255, 255, 0.85);
	--glass-border-hover: rgba(56, 189, 248, 0.6);
	--glass-blur: blur(16px);
	--glass-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.03);
	--glass-shadow-hover: 0 16px 40px 0 rgba(2, 132, 199, 0.15);
	
	/* Typography & High Contrast (Senior Accessibility) */
	--text-primary: #0f172a;
	--text-secondary: #334155;
	--text-muted: #64748b;
	--text-light: #94a3b8;
	--text-inverse: #ffffff;
	
	/* Celeste / Sky Brand Palette */
	--brand-primary: #0284c7;        /* sky-600 */
	--brand-primary-hover: #0369a1;  /* sky-700 */
	--brand-primary-light: #f0f9ff;  /* sky-50 */
	--brand-primary-border: #bae6fd; /* sky-200 */
	
	--brand-accent: #38bdf8;         /* sky-400 */
	--brand-accent-hover: #0284c7;   /* sky-600 */
	--brand-accent-light: #e0f2fe;   /* sky-100 */
	--brand-accent-border: #7dd3fc;  /* sky-300 */
	
	--brand-amber: #d97706;
	--brand-amber-light: #fffbeb;
	--brand-amber-border: #fde68a;
	
	--border-subtle: rgba(2, 132, 199, 0.08);
	--border-default: rgba(226, 232, 240, 0.85);
	--border-strong: rgba(186, 230, 253, 0.9);
	
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-xl: 26px;
	--radius-full: 9999px;
	
	--shadow-subtle: 0 2px 8px 0 rgba(2, 132, 199, 0.05);
	--shadow-md: 0 6px 20px -2px rgba(2, 132, 199, 0.1), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
	--shadow-lg: 0 16px 36px -4px rgba(2, 132, 199, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
	--shadow-xl: 0 24px 48px -6px rgba(2, 132, 199, 0.2);
	--shadow-card: 0 8px 32px 0 rgba(2, 132, 199, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.03);
	
	--min-touch-target: 48px;
}

/* Global Reset */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

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

body {
	font-family: var(--font-sans);
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
	background-attachment: fixed;
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
	flex: 1 0 auto;
	width: 100%;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
	color: var(--text-primary);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

h1 {
	font-size: 2.25rem;
	font-weight: 800;
}

h2 {
	font-size: 1.875rem;
}

h3 {
	font-size: 1.5rem;
}

p {
	color: var(--text-secondary);
	font-size: 1.0625rem;
}

a {
	color: var(--brand-primary);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--brand-primary-hover);
}

/* Container Utilities */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	width: 100%;
}

.container-narrow {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 1.5rem;
	width: 100%;
}

.container-wide {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 1.5rem;
	width: 100%;
}

/* Button Component Hierarchy */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--min-touch-target);
	padding: 0.75rem 1.5rem;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	font-weight: 700;
	border-radius: var(--radius-md);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
	line-height: 1.2;
	user-select: none;
}

.btn:active {
	transform: scale(0.98);
}

.btn-primary {
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: var(--text-inverse);
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
	border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
	color: var(--text-inverse);
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
	transform: translateY(-1px);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: var(--brand-primary);
	border: 1px solid rgba(2, 132, 199, 0.25);
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.95);
	color: var(--brand-primary-hover);
	border-color: rgba(2, 132, 199, 0.5);
	box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
	transform: translateY(-1px);
}

.btn-accent {
	background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
	color: var(--text-inverse);
	box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-accent:hover {
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: var(--text-inverse);
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
	transform: translateY(-1px);
}

.btn-ghost {
	background-color: transparent;
	color: var(--text-secondary);
}

.btn-ghost:hover {
	background-color: rgba(2, 132, 199, 0.08);
	color: var(--brand-primary);
}

.btn-lg {
	padding: 0.95rem 2rem;
	font-size: 1.15rem;
	min-height: 52px;
	border-radius: var(--radius-lg);
}

/* Glassmorphism Surfaces */
.glass-card {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-lg);
	box-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.03);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
	border-color: rgba(56, 189, 248, 0.6);
	box-shadow: 0 16px 40px 0 rgba(2, 132, 199, 0.15);
	transform: translateY(-3px);
}

/* Card Components */
.card {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	box-shadow: var(--shadow-card);
}

.card-elevated {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow-md);
}

.card-interactive {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-interactive:hover {
	transform: translateY(-3px);
	border-color: rgba(56, 189, 248, 0.6);
	box-shadow: var(--shadow-lg);
}

/* Badge Utilities */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.9rem;
	font-weight: 700;
	border-radius: var(--radius-full);
	line-height: 1.3;
}

.badge-primary {
	background-color: var(--brand-primary-light);
	color: var(--brand-primary);
	border: 1px solid var(--brand-primary-border);
}

.badge-accent {
	background-color: var(--brand-accent-light);
	color: var(--brand-primary-hover);
	border: 1px solid var(--brand-accent-border);
}

.badge-neutral {
	background-color: rgba(255, 255, 255, 0.8);
	color: var(--text-secondary);
	border: 1px solid var(--border-default);
}

.badge-blue {
	background-color: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}

.badge-green {
	background-color: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

/* Accessibility & High Contrast Helpers */
:focus-visible {
	outline: 3px solid var(--brand-primary);
	outline-offset: 2px;
}

/* Header and Navigation Link Utilities */
header nav a {
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

header nav a:hover:not(.btn):not([class*="Admin"]):not([class*="Logout"]):not([class*="Brand"]) {
	background-color: rgba(2, 132, 199, 0.08) !important;
	color: #0284c7 !important;
}

/* Grid Utilities */
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

@media (max-width: 900px) {
	.grid-2, .grid-3, .grid-4 {
		grid-template-columns: 1fr;
	}
}

/* Landing Page Specific Design Styles */
.hero-section {
	padding: 4.5rem 0 3.5rem;
	text-align: center;
	position: relative;
	background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.25rem;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #0284c7;
	border: 1px solid rgba(2, 132, 199, 0.25);
	border-radius: var(--radius-full);
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 10px rgba(2, 132, 199, 0.08);
}

.hero-title {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 800;
	color: var(--text-primary);
	letter-spacing: -0.03em;
	line-height: 1.15;
	max-width: 960px;
	margin: 0 auto 1.5rem;
}

.hero-subtitle {
	font-size: clamp(1.15rem, 2.5vw, 1.35rem);
	color: var(--text-secondary);
	max-width: 820px;
	margin: 0 auto 2.5rem;
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	gap: 1.25rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.hero-trust-checks {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	color: var(--text-secondary);
	font-size: 1rem;
	font-weight: 600;
}

.hero-check-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 0.45rem 1rem;
	border-radius: var(--radius-full);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.05);
}

.check-icon {
	color: #0284c7;
	font-weight: 800;
}

/* Showcase Section */
.showcase-section {
	padding: 4.5rem 0;
	background: transparent;
}

.section-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 3rem;
}

.section-tag {
	color: var(--brand-primary);
	font-weight: 800;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
	display: block;
}

.section-title {
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
}

.section-desc {
	font-size: 1.15rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* UI Preview Mock Cards */
.preview-card-frame {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-lg);
	box-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.03);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-card-frame:hover {
	border-color: rgba(56, 189, 248, 0.6);
	box-shadow: 0 16px 40px 0 rgba(2, 132, 199, 0.15);
	transform: translateY(-3px);
}

.preview-card-header {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff;
	padding: 1.1rem 1.35rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-card-body {
	padding: 1.75rem;
	background: transparent;
	flex: 1;
}

/* Pillar Cards */
.pillar-card {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-lg);
	padding: 2.25rem 2rem;
	box-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.03);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}

.pillar-card:hover {
	border-color: rgba(56, 189, 248, 0.6);
	box-shadow: 0 16px 40px 0 rgba(2, 132, 199, 0.15);
	transform: translateY(-3px);
}

.pillar-icon-box {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.85rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

/* Pricing Card */
.pricing-card {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-lg);
	padding: 2.25rem 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	box-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.03);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
	border-color: rgba(56, 189, 248, 0.6);
	box-shadow: 0 16px 40px 0 rgba(2, 132, 199, 0.15);
	transform: translateY(-3px);
}

.pricing-card.featured {
	border: 2px solid #0284c7;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 16px 48px rgba(2, 132, 199, 0.18), 0 0 24px rgba(56, 189, 248, 0.2);
	transform: scale(1.02);
}

.pricing-card.featured:hover {
	transform: scale(1.02) translateY(-3px);
	box-shadow: 0 20px 52px rgba(2, 132, 199, 0.25), 0 0 30px rgba(56, 189, 248, 0.3);
}

.pricing-popular-tag {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 800;
	padding: 0.4rem 1.15rem;
	border-radius: var(--radius-full);
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

/* Senior Trust Banner */
.senior-trust-banner {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(224, 242, 254, 0.7) 100%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: var(--radius-xl);
	padding: 2.75rem;
	box-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.08);
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 4rem auto;
}

@media (max-width: 768px) {
	.senior-trust-banner {
		flex-direction: column;
		text-align: center;
		padding: 2rem 1.5rem;
	}
}

/* Final CTA Section */
.final-cta-section {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(12, 74, 110, 0.95) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	color: #ffffff;
	border: 1px solid rgba(56, 189, 248, 0.35);
	border-radius: var(--radius-xl);
	padding: 4.5rem 2rem;
	text-align: center;
	margin: 4rem auto;
	box-shadow: 0 20px 50px rgba(2, 132, 199, 0.22);
	position: relative;
	overflow: hidden;
}

.final-cta-section h2 {
	color: #ffffff;
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: 1rem;
}

.final-cta-section p {
	color: #e0f2fe;
	font-size: 1.25rem;
	max-width: 680px;
	margin: 0 auto 2.5rem;
}

/* Dashboard styles */
.dashboard-header {
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: var(--radius-lg);
	padding: 2.25rem;
	margin-bottom: 2rem;
	box-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.08);
}

.dashboard-action-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 2rem 1.75rem;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-lg);
	text-decoration: none;
	color: var(--text-primary);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.08), 0 2px 8px 0 rgba(0, 0, 0, 0.03);
}

.dashboard-action-card:hover {
	transform: translateY(-3px);
	border-color: rgba(56, 189, 248, 0.6);
	box-shadow: 0 16px 40px 0 rgba(2, 132, 199, 0.15);
}

.dashboard-icon-wrap {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	margin-bottom: 1rem;
	background-color: var(--bg-subtle);
}

/* Footer layout */
.site-footer {
	background-color: var(--bg-dark);
	color: #94a3b8;
	padding: 3rem 0 2rem;
	margin-top: 4rem;
	border-top: 1px solid #1e293b;
}

.site-footer a {
	color: #cbd5e1;
}

.site-footer a:hover {
	color: #ffffff;
}
