/* CSS Variables for Color Scheme */
:root {
	--primary-blue: #33b6f1;
	--primary-dark: #90d9f7;
	--primary-hover: #1a9dd6;
	--dark-navy: #001826;
	--light-blue-bg: #e6f7ff;
	--tertiary-blue: #0077be;
	--success-green: #14b8a6;
	--gray-light: #e8f4f8;
	--gray-medium: #d1e9f0;
	--gray-dark: #b3dae5;
	--text-primary: #001826;
	--text-secondary: #2c3e50;
	--bg-primary: #ffffff;
	--bg-secondary: #e6f7ff;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	:root {
		--dark-navy: #e6f7ff;
		--text-primary: #e6f7ff;
		--text-secondary: #90d9f7;
		--bg-primary: #001826;
		--bg-secondary: #0a2433;
		--gray-light: #1a3444;
		--gray-medium: #2a4454;
		--gray-dark: #3a5464;
	}
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: #001826;
	overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--primary-blue);
	color: white;
	padding: 8px 16px;
	text-decoration: none;
	font-weight: bold;
	z-index: 100;
	border-radius: 0 0 4px 0;
}

.skip-link:focus {
	top: 0;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Hero Section */
.hero {
	min-height: calc(100vh - 90px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 60px 24px 30px;
	background: #001826;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(circle at 20% 80%, rgba(51, 181, 241, 0.5) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(51, 181, 241, 0.75) 0%, transparent 50%),
		radial-gradient(circle at 40% 40%, rgba(51, 181, 241, 0.6) 0%, transparent 40%);
	z-index: 0;
}

.hero::after {
	content: '';
	position: absolute;
	top: -10%;
	right: -5%;
	width: 400px;
	height: 400px;
	background: linear-gradient(135deg, rgba(51, 181, 241, 0.75) 0%, rgba(42, 178, 237, 0.1) 100%);
	border-radius: 50%;
	filter: blur(60px);
	animation: float 20s ease-in-out infinite;
	z-index: 0;
}

@keyframes float {

	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}

	50% {
		transform: translate(-30px, 30px) scale(1.1);
	}
}

.hero-content {
	position: relative;
	z-index: 1;
	animation: fadeInUp 1s ease-out;
	background: rgba(255, 255, 255, 1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 24px;
	padding: 48px 40px;
	box-shadow: 0 8px 32px rgba(42, 178, 237, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.8);
	max-width: 800px;
	width: 100%;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.logo {
	width: 450px;
	height: auto;
	margin-bottom: 20px;
	animation: floatIn 1.2s ease-out;
}

@keyframes floatIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	color: #001826;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

.hero .subtitle {
	font-size: clamp(1.125rem, 2vw, 1.25rem);
	color: #001826;
	margin-bottom: 16px;
	font-weight: 300;
}

.hero .description {
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	color: #001826;
	max-width: 700px;
	margin: 0 auto 0;
	line-height: 1.6;
}

/* Content Page Styles (for Privacy Policy, etc.) */
.content-page {
	min-height: 100vh;
	padding: 100px 24px 80px;
	background: #001826;
	position: relative;
	overflow: hidden;
}

.content-page::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(circle at 20% 80%, rgba(51, 181, 241, 0.5) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(51, 181, 241, 0.75) 0%, transparent 50%),
		radial-gradient(circle at 40% 40%, rgba(51, 181, 241, 0.60) 0%, transparent 40%);
	z-index: 0;
}

.content-page::after {
	content: '';
	position: absolute;
	top: -10%;
	right: -5%;
	width: 400px;
	height: 400px;
	background: linear-gradient(135deg, rgba(51, 181, 241, 0.75) 0%, rgba(51, 181, 241, 0.4) 100%);
	border-radius: 50%;
	filter: blur(60px);
	animation: float 20s ease-in-out infinite;
	z-index: 0;
}

.content-container {
	max-width: 800px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 1);
	border-radius: 24px;
	padding: 48px 40px;
	box-shadow: 0 8px 32px rgba(42, 178, 237, 0.1);
	animation: fadeInUp 1s ease-out;
	position: relative;
	z-index: 1;
}

.content-container h1 {
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 700;
	color: #001826;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

.content-container .effective-date {
	font-size: 0.95rem;
	color: var(--text-secondary);
	font-weight: 600;
	margin-bottom: 32px;
}

.content-container h2 {
	font-size: clamp(1.5rem, 3vw, 1.75rem);
	font-weight: 600;
	color: #001826;
	margin-top: 32px;
	margin-bottom: 16px;
}

.content-container p {
	color: #001826;
	margin-bottom: 16px;
	line-height: 1.8;
}

.content-container ul {
	margin-bottom: 16px;
	margin-left: 24px;
	color: #001826;
}

.content-container li {
	margin-bottom: 8px;
	line-height: 1.7;
}

.content-container a {
	color: var(--primary-blue);
	text-decoration: none;
	transition: color 0.3s ease;
}

.content-container a:hover {
	color: var(--primary-hover);
	text-decoration: underline;
}

.content-container a:focus {
	outline: 3px solid var(--primary-blue);
	outline-offset: 2px;
}

/* Footer */
.footer {
	background: transparent;
	color: white;
	padding: 16px 24px;
	text-align: center;
}

@media (prefers-color-scheme: dark) {
	.footer {
		background: transparent;
		color: var(--text-primary);
	}
}

.copyright {
	font-size: 0.9rem;
	opacity: 0.8;
	margin-top: 0;
	margin-bottom: 4px;
}

.copyright a {
	color: var(--primary-blue);
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 6px;
	display: inline-block;
	background: rgba(42, 178, 237, 0.1);
	transition: all 0.3s ease;
	font-weight: 500;
}

.copyright a:hover {
	background: var(--primary-blue);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(42, 178, 237, 0.3);
}

.copyright a:focus {
	outline: 3px solid var(--primary-blue);
	outline-offset: 2px;
}

/* Responsive Design */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
	.logo {
		width: 300px;
	}

	.hero-content {
		padding: 40px 32px;
	}

	.content-container {
		padding: 40px 32px;
	}

	.hero::after {
		width: 250px;
		height: 250px;
	}
}

/* Large phones and small tablets (768px) */
@media (max-width: 768px) {
	.hero {
		padding: 30px 20px 20px;
		min-height: 100vh;
	}

	.content-page {
		padding: 80px 20px 80px;
	}

	.logo {
		width: 210px;
		margin-bottom: 16px;
	}

	.hero-content {
		padding: 32px 24px;
		border-radius: 16px;
		margin: 0 16px;
	}

	.content-container {
		padding: 32px 24px;
		border-radius: 16px;
	}

	.hero::after {
		width: 200px;
		height: 200px;
	}
}

/* Small phones (480px) */
@media (max-width: 480px) {
	.hero {
		padding: 24px 16px 16px;
		min-height: 100vh;
	}

	.content-page {
		padding: 70px 16px 70px;
	}

	.logo {
		width: 150px;
		margin-bottom: 12px;
	}

	.hero-content {
		padding: 24px 20px;
		border-radius: 12px;
		margin: 0 12px;
	}

	.content-container {
		padding: 24px 20px;
		border-radius: 12px;
	}

	.hero h1 {
		font-size: 1.75rem;
		margin-bottom: 6px;
	}

	.hero .subtitle {
		font-size: 1rem;
		margin-bottom: 12px;
	}

	.hero .description {
		font-size: 0.95rem;
		line-height: 1.5;
	}

	.content-container h1 {
		font-size: 1.75rem;
	}

	.content-container h2 {
		font-size: 1.35rem;
		margin-top: 24px;
	}

	.hero::after {
		width: 150px;
		height: 150px;
		filter: blur(40px);
	}

	.footer-link {
		padding: 14px 18px;
	}

	.footer {
		padding: 14px 16px;
	}

	.copyright {
		font-size: 0.85rem;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus Indicators for Keyboard Navigation */
*:focus-visible {
	outline: 3px solid var(--primary-blue);
	outline-offset: 2px;
}

/* GitHub Corner */
.github-corner {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1000;
}

.github-corner:hover .octo-arm {
	animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {

	0%,
	100% {
		transform: rotate(0);
	}

	20%,
	60% {
		transform: rotate(-25deg);
	}

	40%,
	80% {
		transform: rotate(10deg);
	}
}

@media (max-width: 500px) {
	.github-corner:hover .octo-arm {
		animation: none;
	}

	.github-corner .octo-arm {
		animation: octocat-wave 560ms ease-in-out;
	}
}

/* Screen Reader Only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}