/* ========================================
   AGM Landing Page Styles
   ======================================== */

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #000;
	color: #fff;
	padding: 8px 16px;
	text-decoration: none;
	z-index: 100;
	border-radius: 0 0 4px 0;
	font-size: 14px;
	font-weight: 500;
}

.skip-link:focus {
	top: 0;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Main container */
.agm-page {
	position: relative;
	width: 100%;
	min-height: 100vh;
	background-color: #001690;
	overflow: hidden;
}

/* Background layer */
.agm-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 100vh;
	height: 100%;
	z-index: 1;
	overflow: hidden;
}

.agm-background::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: 
		radial-gradient(ellipse at center, 
			rgba(123, 191, 252, 0.15) 0%, 
			rgba(50, 98, 250, 0.1) 40%, 
			transparent 70%);
	pointer-events: none;
	z-index: 2;
}

.bg-image {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	max-width: none;
	opacity: 1;
	mix-blend-mode: normal;
}

.gradient-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 322px;
	background: linear-gradient(180deg, rgba(0, 22, 144, 0) 0%, rgba(255, 255, 255, 1) 100%);
	pointer-events: none;
	z-index: 2;
}

/* Content container */
.agm-container {
	position: relative;
	z-index: 2;
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header */
.agm-header {
	padding: 60px 0 0 90px;
}

.agm-logo-wrapper {
	width: 100px;
	height: 269px;
}

.agm-logo {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* Content section */
.agm-content {
	flex: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 0;
	margin-top: 40px;
	position: relative;
}

.agm-content-left {
	max-width: 750px;
	width: 100%;
	padding-left: 88px;
	padding-top: 0;
}

/* Title */
.agm-title {
	font-family: 'Geist', sans-serif;
	font-weight: 300;
	font-size: 64px;
	line-height: 1.06;
	letter-spacing: -1.92px;
	color: #C9D1FF;
	margin: 0 0 30px 0;
	word-wrap: break-word;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.agm-title-nowrap {
	white-space: normal;
}

.agm-ordinal {
	font-size: 41.28px;
	line-height: 1.06;
	vertical-align: super;
	font-feature-settings: 'sups' 1;
}

/* Details section */
.agm-details {
	margin-bottom: 51px;
	margin-top: 29px;
}

.agm-details-text {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 19px;
	line-height: 30px;
	color: #FFFFFF;
	margin: 0;
	max-width: 467px;
}

.agm-details-text:first-of-type {
	max-width: 100%;
}

.agm-details-spacer {
	line-height: 30px;
	margin: 0;
	font-size: 19px;
}

.agm-details-text + .agm-details-text {
	margin-top: 10px;
}

.agm-details-text strong {
	font-weight: 700;
}

/* Buttons */
.agm-buttons {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	margin-top: 0;
	margin-bottom: 80px;
	align-items: center;
}

.agm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	min-height: 44px;
	background: linear-gradient(to bottom, #393939 0%, #020202 100%);
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.45;
	transition: all 0.3s ease;
	/* border: 1px solid transparent; */
	position: relative;
	overflow: visible;
}

.agm-btn:hover {
	background: linear-gradient(to bottom, #4A4A4A 0%, #1A1A1A 100%);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	color:#fff;
}

.agm-btn:focus {
	background: linear-gradient(to bottom, #4A4A4A 0%, #1A1A1A 100%);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	color:#fff;
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.agm-btn:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.agm-btn-text {
	white-space: nowrap;
}

.agm-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.agm-btn:hover .agm-btn-icon,
.agm-btn:focus .agm-btn-icon {
	transform: translate(3px, -3px);
}

.agm-btn svg {
	width: 100%;
	height: 100%;
	color: currentColor;
}

/* AI Graphic */
.agm-graphic {
	position: absolute;
	right: 10%;
	top: 50%;
	transform: translateY(-50%);
	width: 600px;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.agm-ai-text {
	font-family: 'Geist', sans-serif;
	font-weight: 700;
	font-size: 280px;
	letter-spacing: -0.08em;
	color: #FFFFFF;
	text-align: center;
	line-height: 0.85;
	position: relative;
	z-index: 1;
	text-shadow: 0 0 60px rgba(123, 191, 252, 1),
	             0 0 100px rgba(85, 143, 253, 0.8),
	             0 0 140px rgba(50, 98, 250, 0.6),
	             0 10px 30px rgba(0, 0, 0, 0.5);
	-webkit-text-stroke: 2px rgba(123, 191, 252, 0.3);
}

.agm-ai-text::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 180%;
	height: 180%;
	background: radial-gradient(ellipse, rgba(123, 191, 252, 0.7) 0%, rgba(85, 143, 253, 0.5) 30%, rgba(50, 98, 250, 0.3) 50%, rgba(0, 22, 144, 0) 70%);
	filter: blur(100px);
	z-index: -1;
	animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 0.6;
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.05);
	}
}

/* Footer */
.agm-footer {
	background: #FFFFFF;
	padding: 15px;
	margin-top: auto;
	min-height: 60px;
	display: flex;
	align-items: center;
	width: 100%;
	position: relative;
	left: 0;
	right: 0;
}

.agm-copyright {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.06;
	letter-spacing: -0.42px;
	color: #454C79;
	margin: 0;
	text-align: left;
	padding-left: 30px;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large desktops */
@media (max-width: 1440px) {
	.agm-header {
		padding: 60px 0 0 60px;
	}
	
	.agm-content-left {
		padding-left: 60px;
		max-width: 700px;
	}
	
	.agm-graphic {
		right: 5%;
		width: 550px;
	}
	
}

/* Tablets and small desktops */
@media (max-width: 1024px) {
	.bg-image {
		object-position: center top;
		height:90%;
	}
	
	.agm-header {
		padding: 40px 0 0 40px;
	}
	
	.agm-logo-wrapper {
		width: 90px;
		height: 250px;
	}
	
	.agm-content {
		flex-direction: column;
	}
	
	.agm-content-left {
		max-width: 85%;
		padding-left: 40px;
		padding-right: 40px;
		padding-top: 400px;
	}
	
	.agm-title {
		letter-spacing: -1.44px;
	}
	
	.agm-details-text {
		max-width: 100%;
	}
	
	.agm-graphic {
		position: relative;
		right: auto;
		top: auto;
		transform: none;
		width: 100%;
		max-width: 100%;
		margin-top: 60px;
		order: -1;
		height: 300px;
		left: 50%;
		transform: translateX(-50%);
	} 
}

/* Mobile devices */
@media (max-width: 768px) {

	.agm-header {
		padding: 30px 0 0 24px;
	}
	
	.agm-logo-wrapper {
		width: 75px;
		height: 200px;
	}
	
	.agm-content-left {
		max-width: 100%;
		padding-left: 24px;
		padding-right: 24px;
		padding-top: 270px;
	}
	
	.agm-title {
		letter-spacing: -1.08px;
		margin-bottom: 20px;
        max-width: 100%;
        font-size: 48px;
	}

    .agm-ordinal {
        font-size: 31.04px;
    }
	
	.agm-title-nowrap {
		white-space: normal;
	}
	
	.agm-details {
		margin-bottom: 30px;
		margin-top: 20px;
	}
	
	.agm-details-text {
		line-height: 1.6;
		margin-bottom: 16px;
        font-size: 16px;
	}
	
	.agm-details-spacer {
		display: none;
	}
	
	.agm-buttons {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 12px;
		margin-bottom: 0;
		padding-bottom: 50px;
		width: max-content;
		max-width: 100%;
		align-items: center;
		margin-left: auto;
		margin-right: auto;
	}
	
	.agm-btn {
		width: 100%;
		justify-content: center;
	}
	
	.agm-btn-text {
		white-space: nowrap;
		text-align: left;
        font-size: 14px;
	}
	
	.agm-graphic {
		margin-top: 40px;
		height: 220px;
	}
	
	.agm-footer {
		padding: 20px 24px;
		min-height: 60px;
	}
	
	.agm-copyright {
		padding-left: 0;
	}
	
	.gradient-overlay {
		height: 200px;
	}
}

/* Small mobile devices */
@media (max-width: 480px) {
	.agm-title {
		letter-spacing: -0.84px;
        max-width: 100%;
        font-size: 36px;
	}
	
	.agm-title-nowrap {
		white-space: normal;
	}
	
	.agm-btn {
		padding: 12px 16px;
		min-height: 44px;
	}
	
	.agm-graphic {
		height: 180px;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.agm-btn {
		border: 2px solid #FFBD36;
	}
	
	.agm-title,
	.agm-details-text {
		text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	
	.agm-ai-text::before {
		animation: none;
	}
}

/* Dark mode (if system prefers) */
@media (prefers-color-scheme: dark) {
	.agm-footer {
		background: #1A1A1A;
	}
	
	.agm-copyright {
		color: #A0A0A0;
	}
}

/* Print styles */
@media print {
	.agm-background,
	.agm-graphic,
	.skip-link {
		display: none;
	}
	
	.agm-page {
		background: white;
	}
	
	.agm-title,
	.agm-details-text {
		color: black;
	}
	
	.agm-btn {
		border: 1px solid black;
		color: black;
		background: white !important;
	}
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
	outline: 2px solid #FFBD36;
	outline-offset: 2px;
}
