:root {
	--bg-dark: #050508;
	--accent-violet: #8a2be2;
	--accent-ghost: #00ffcc;
	--glass-bg: rgba(255, 255, 255, 0.03);
	--glass-border: rgba(255, 255, 255, 0.1);
	--text-main: #ffffff;
	--text-dim: #888888;
}

* {
	box-sizing: border-box;
}

body {
	background-color: var(--bg-dark);
	color: var(--text-main);
	font-family: 'Inter', sans-serif;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background-image: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.08) 0%, transparent 80%);
	min-height: 100vh;
}

/* Scanline effect */
body::before {
	content: " ";
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
		linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.02));
	background-size: 100% 4px, 3px 100%;
	z-index: 100;
	pointer-events: none;
}

header {
	min-height: 30vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 30px 20px;
	width: 100%;
}

.title-wrapper {
	width: 100%;
	max-width: 100vw;
	overflow: hidden;
	display: flex;
	justify-content: center;
}

h1 {
	font-family: 'Syne', sans-serif;
	/* Adjusted minimum size for mobile to 1.8rem to fit on one line */
	font-size: clamp(1.8rem, 10vw, 6rem);
	margin: 0;
	text-transform: uppercase;
	background: linear-gradient(to bottom, #fff 40%, var(--accent-violet));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.4));
	line-height: 1.1;
	/* Prevent line breaks and slightly tighten letter spacing for readability */
	white-space: nowrap;
	letter-spacing: -0.02em;
}

.hero-sub {
	font-size: clamp(0.7rem, 3vw, 1.1rem);
	letter-spacing: clamp(0.1rem, 1vw, 0.3rem);
	text-transform: uppercase;
	color: var(--accent-ghost);
	margin-top: 15px;
	opacity: 0.8;
	font-weight: 700;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 100px;
	margin-top: -40px;
}

.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

@media (max-width: 350px) {
	.app-grid {
		grid-template-columns: 1fr;
	}
}

.app-card {
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	padding: 40px 30px;
	text-decoration: none;
	color: white;
	transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.app-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(138, 43, 226, 0.15) 0%, transparent 50%);
	opacity: 0;
	transition: opacity 0.3s;
}

.app-card:hover::after {
	opacity: 1;
}

.app-card:hover {
	transform: translateY(-8px);
	border-color: var(--accent-ghost);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.app-icon {
	font-size: 2.2rem;
	margin-bottom: 24px;
	filter: drop-shadow(0 0 8px var(--accent-ghost));
}

.app-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	margin-bottom: 24px;
}

.app-card-header .app-icon {
	margin-bottom: 0;
}

.status-badge {
	font-family: 'Syne', sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	color: #ffdd40;
	/* Yellow for attention */
	border: 1px solid rgba(255, 221, 64, 0.5);
	background: rgba(255, 221, 64, 0.1);
	padding: 6px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 0 10px rgba(255, 221, 64, 0.2);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		opacity: 0.7;
	}

	50% {
		opacity: 1;
		text-shadow: 0 0 4px #ffdd40;
	}

	100% {
		opacity: 0.7;
	}
}

.app-card h2 {
	font-family: 'Syne', sans-serif;
	font-size: 1.4rem;
	margin: 0 0 12px 0;
	letter-spacing: 1px;
}

.app-card p {
	font-size: 0.9rem;
	color: var(--text-dim);
	margin: 0;
	line-height: 1.6;
}

/* Footer sections */
.site-footer {
	text-align: center;
	padding: 80px 20px;
	margin-top: 40px;
}

.footer-nav {
	margin-bottom: 40px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.footer-nav a {
	color: var(--text-dim);
	text-decoration: none;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	transition: 0.3s;
}

.footer-nav a:hover {
	color: var(--accent-ghost);
	text-shadow: 0 0 8px var(--accent-ghost);
}

.copyright {
	font-size: 0.7rem;
	color: #333;
	letter-spacing: 2px;
	font-weight: 700;
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
	header {
		padding: 40px 15px;
		min-height: 25vh;
	}

	.container {
		margin-top: 0;
	}

	.app-card {
		padding: 30px 20px;
	}
}

/* Hero illustration styles */
.hero-illustration {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto 40px auto;
	display: flex;
	justify-content: center;
}

.hero-illustration img {
	width: 100%;
	height: auto;
	border-radius: 24px;
	border: 1px solid var(--glass-border);
	/* Glow effect matching site accent color */
	box-shadow: 0 0 30px rgba(0, 255, 204, 0.15);
	transition: transform 0.3s ease;
}

.hero-illustration img:hover {
	transform: scale(1.01);
}

@media (max-width: 480px) {
	.hero-illustration {
		margin-bottom: 20px;
	}
}

/* System requirements section styles */
.system-requirements {
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #333;
    background: rgba(0, 0, 0, 0.5);
    max-width: 600px;
    text-align: left;
}
.system-requirements h3 {
    font-size: 0.9rem;
    color: #00ffcc; /* Cyber color */
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.req-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

/* Modal styles (hidden by default) */
#auth-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #111;
    border: 1px solid #00ffcc;
    padding: 30px;
    text-align: center;
    max-width: 400px;
}
.modal-btns { margin-top: 20px; }
.btn-proceed { background: #00ffcc; color: #000; border: none; padding: 10px 20px; cursor: pointer; font-weight: bold; }