@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;600&display=swap");

:root {
	--page-bg: #02060b;
	--panel-bg: rgba(4, 12, 22, 0.84);
	--card-bg: rgba(7, 18, 31, 0.82);
	--card-bg-hover: rgba(12, 30, 50, 0.96);
	--line: rgba(104, 183, 255, 0.32);
	--line-strong: rgba(121, 196, 255, 0.68);
	--blue: #7ac8ff;
	--text: #f4f7fb;
	--text-muted: #a4b2c0;
	--orange: #ff7544;
	--orange-soft: rgba(255, 117, 68, 0.28);
	--shadow: 0 0 22px rgba(49, 151, 230, 0.12), 0 28px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html {
	min-width: 320px;
	background: var(--page-bg);
}

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0;
	color: var(--text);
	font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.55;
	background-color: var(--page-bg);
	background-image:
		radial-gradient(circle at 50% 8%, rgba(36, 110, 166, 0.24), transparent 34rem),
		linear-gradient(rgba(0, 5, 10, 0.50), rgba(0, 4, 8, 0.84)),
		url("../../images/background.jpg");
	background-position: center top, center, center;
	background-repeat: no-repeat;
	background-size: auto, cover, cover;
	background-attachment: fixed;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 17%, transparent 83%, rgba(0, 0, 0, 0.42)),
		radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.60) 100%);
}

a { color: inherit; }

.site-shell {
	display: flex;
	flex-direction: column;
	width: min(980px, calc(100% - 48px));
	min-height: 100vh;
	margin: 0 auto;
	padding: 42px 0 24px;
}

.landing {
	display: grid;
	align-content: center;
	flex: 1;
	padding: 18px 0 30px;
}

.hero {
	max-width: 820px;
	margin: 0 auto 34px;
	text-align: center;
}

.gizzard-mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 160px;
	height: 160px;
	margin: 0 auto 18px;
	padding: 7px;
	border: 1px solid rgba(220, 240, 255, 0.88);
	border-radius: 50%;
	background: rgba(3, 9, 16, 0.48);
	box-shadow:
		0 0 6px rgba(102, 188, 255, 0.08),
		inset 0 0 6px rgba(80, 170, 235, 0.025);
	overflow: hidden;
}

/* Very slight orange glow over Gizzard's eye. The source image itself stays untouched. */
.gizzard-mark::after {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	pointer-events: none;
	z-index: 2;
	background: radial-gradient(
		circle at 54.5% 36%,
		rgba(255, 117, 68, 0.10) 0%,
		rgba(255, 117, 68, 0.045) 6%,
		transparent 14%
	);
}

.gizzard-mark img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: contain;
	filter: none;
}

.hero h1 {
	margin: 0;
	font-family: "Rajdhani", "Segoe UI", sans-serif;
	font-size: clamp(3rem, 8vw, 5rem);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: clamp(0.30rem, 1.25vw, 0.72rem);
	text-indent: clamp(0.30rem, 1.25vw, 0.72rem);
	text-transform: uppercase;
	text-shadow: none;
}

.hero-kicker {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 15px 0 10px;
	color: #b8c8d5;
	font-family: "Rajdhani", "Segoe UI", sans-serif;
	font-size: 0.86rem;
	font-weight: 500;
	letter-spacing: 0.28rem;
	text-transform: uppercase;
}

.hero-kicker span {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--orange);
	box-shadow: 0 0 8px var(--orange);
}

.accent-rule {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 12px;
	margin: 0 0 10px;
}

.accent-rule::before,
.accent-rule::after {
	content: "";
	width: 24px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--orange));
	box-shadow: 0 0 8px var(--orange-soft);
}

.accent-rule::after {
	background: linear-gradient(90deg, var(--orange), transparent);
}

.accent-rule i {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--orange);
	filter: drop-shadow(0 0 5px var(--orange));
}

.hero-description {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.98rem;
	letter-spacing: 0.025rem;
}

.portal-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.portal-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	min-height: 168px;
	padding: 26px 28px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	color: var(--text);
	text-decoration: none;
	background:
		linear-gradient(135deg, rgba(32, 88, 130, 0.08), transparent 42%),
		var(--card-bg);
	box-shadow: var(--shadow), inset 0 0 34px rgba(32, 113, 174, 0.04);
	backdrop-filter: blur(10px);
	overflow: hidden;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.portal-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 46px;
	height: 46px;
	border-top: 2px solid rgba(146, 213, 255, 0.72);
	border-left: 2px solid rgba(146, 213, 255, 0.72);
	border-radius: 10px 0 0 0;
	pointer-events: none;
}

.portal-card::after {
	content: "";
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 46px;
	height: 46px;
	border-right: 2px solid rgba(146, 213, 255, 0.54);
	border-bottom: 2px solid rgba(146, 213, 255, 0.54);
	border-radius: 0 0 10px 0;
	pointer-events: none;
}

.portal-card:hover,
.portal-card:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(144, 213, 255, 0.92);
	outline: none;
	background:
		linear-gradient(135deg, rgba(47, 119, 171, 0.12), transparent 42%),
		var(--card-bg-hover);
	box-shadow: 0 0 28px rgba(64, 166, 238, 0.16), 0 30px 70px rgba(0, 0, 0, 0.62);
}

.card-index {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 1px solid rgba(255, 117, 68, 0.48);
	border-radius: 50%;
	color: var(--orange);
	font-family: "Rajdhani", "Segoe UI", sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.10rem;
	box-shadow: inset 0 0 18px rgba(255, 117, 68, 0.06), 0 0 14px rgba(255, 117, 68, 0.06);
}

.card-copy { min-width: 0; }

.card-eyebrow {
	margin: 0 0 3px;
	color: #8da9bd;
	font-family: "Rajdhani", "Segoe UI", sans-serif;
	font-size: 0.70rem;
	font-weight: 600;
	letter-spacing: 0.16rem;
	text-transform: uppercase;
}

.card-copy h2 {
	margin: 0;
	font-family: "Rajdhani", "Segoe UI", sans-serif;
	font-size: 2rem;
	font-weight: 500;
	letter-spacing: 0.08rem;
	text-transform: uppercase;
}

.card-copy p:last-child {
	margin: 4px 0 0;
	color: var(--text-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

.card-arrow {
	width: 13px;
	height: 13px;
	border-top: 2px solid var(--orange);
	border-right: 2px solid var(--orange);
	transform: rotate(45deg);
	filter: drop-shadow(0 0 4px var(--orange-soft));
	transition: transform 160ms ease;
}

.portal-card:hover .card-arrow,
.portal-card:focus-visible .card-arrow {
	transform: translateX(4px) rotate(45deg);
}

.site-footer {
	padding-top: 22px;
	color: rgba(170, 190, 207, 0.58);
	text-align: center;
	font-family: "Rajdhani", "Segoe UI", sans-serif;
	font-size: 0.68rem;
	letter-spacing: 0.13rem;
	text-transform: uppercase;
}

.site-footer p { margin: 0; }

.site-footer a {
	color: rgba(194, 222, 240, 0.76);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: #fff; }

@media (max-width: 760px) {
	.site-shell {
		width: min(100% - 30px, 980px);
		padding-top: 28px;
	}

	.portal-grid { grid-template-columns: 1fr; }

	.portal-card { min-height: 142px; }
}

@media (max-width: 520px) {
	body { background-attachment: scroll; }

	.site-shell {
		width: min(100% - 20px, 980px);
		padding-top: 20px;
	}

	.landing { align-content: start; }

	.hero { margin-bottom: 24px; }

	.gizzard-mark {
		width: 118px;
		height: 118px;
		margin-bottom: 16px;
	}

	.hero h1 {
		font-size: clamp(2.35rem, 12vw, 3.2rem);
		letter-spacing: clamp(0.16rem, 2vw, 0.32rem);
		text-indent: clamp(0.16rem, 2vw, 0.32rem);
	}

	.hero-kicker {
		gap: 7px;
		font-size: 0.69rem;
		letter-spacing: 0.11rem;
	}

	.portal-card {
		grid-template-columns: 46px minmax(0, 1fr) 12px;
		gap: 14px;
		min-height: 126px;
		padding: 19px 17px;
	}

	.card-index {
		width: 46px;
		height: 46px;
		font-size: 0.70rem;
	}

	.card-copy h2 { font-size: 1.62rem; }
	.card-copy p:last-child { font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
