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

:root {
	--bg: #0B0F19;
	--card: #121826;
	--border: #1E293B;
	--accent: #00F0FF;
	--green: #00FF85;
	--slate-100: #f1f5f9;
	--slate-300: #cbd5e1;
	--slate-400: #94a3b8;
	--slate-500: #64748b;
	--slate-600: #475569;
	--slate-700: #334155;
	--slate-800: #1e293b;
	--slate-900: #0f172a;
}

html { scroll-behavior: smooth; }

body {
	font-family: 'Inter', system-ui, sans-serif;
	background: var(--bg);
	color: var(--slate-300);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== UTILS ===== */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-2 { margin-top: 0.5rem; }

/* ===== NAV ===== */
.nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	height: 4rem;
	background: rgba(11, 15, 25, 0.88);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.nav-logo-img { height: 28px; width: auto; }
.nav-links {
	display: none;
	align-items: center;
	gap: 1.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--slate-400);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
	display: none;
	background: var(--accent);
	color: #000;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.6rem 1.2rem;
	border-radius: 9999px;
}
.nav-cta:hover { background: #fff; }
@media (min-width: 768px) {
	.nav-links { display: flex; }
	.nav-cta { display: inline-flex; }
}
.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.25rem;
	height: 2.25rem;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	z-index: 60;
}
.nav-toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) {
	.nav-toggle { display: none; }
}
.nav-mobile {
	display: none;
	position: absolute;
	top: 4rem;
	left: 0;
	right: 0;
	background: rgba(11, 15, 25, 0.97);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	padding: 1.25rem 1.5rem 1.75rem;
	flex-direction: column;
	gap: 0.35rem;
	z-index: 49;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
	display: block;
	padding: 0.85rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--slate-300);
	border-radius: 0.5rem;
}
.nav-mobile a:hover {
	background: rgba(0, 240, 255, 0.08);
	color: #fff;
}
.nav-mobile-cta {
	margin-top: 0.75rem;
	text-align: center;
	background: var(--accent) !important;
	color: #000 !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem !important;
	padding: 0.9rem 1rem !important;
	border-radius: 9999px !important;
}
.nav-mobile-cta:hover { background: #fff !important; }

/* ===== BUTTON ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 1.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 9999px;
	transition: 0.2s;
	cursor: pointer;
	border: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #fff; }

/* ===== PAGE HERO ===== */
.page-hero {
	position: relative;
	padding: 8rem 1.5rem 3.5rem;
	overflow: hidden;
	text-align: center;
}
.hero-bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at top, var(--slate-900), var(--bg));
	z-index: 0;
}
.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(30,41,59,0.08) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(30,41,59,0.08) 1px, transparent 1px);
	background-size: 4rem 4rem;
	z-index: 1;
	pointer-events: none;
}
.hero-content {
	position: relative;
	z-index: 2;
	margin: 0 auto;
}
.badge {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.625rem; font-weight: 600; font-family: ui-monospace, monospace;
	text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
	background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.2);
	padding: 0.35rem 0.85rem; border-radius: 9999px; margin-bottom: 1.5rem;
}
.badge-pulse .badge-dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--accent); animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
	50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(0, 240, 255, 0); }
}
.page-hero-title {
	font-size: clamp(2.25rem, 5vw, 3rem);
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.03em;
	margin-bottom: 1rem;
}
.page-hero-subtitle {
	font-size: clamp(1.05rem, 2.5vw, 1.25rem);
	font-weight: 600;
	color: var(--slate-100);
	margin-bottom: 0.75rem;
}
.page-hero-mono {
	font-size: 0.8125rem;
	font-family: ui-monospace, monospace;
	letter-spacing: 0.08em;
	color: rgba(0, 240, 255, 0.8);
}

/* ===== MEDIA ===== */
.media-box {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 1rem;
	max-width: 40rem;
	margin: 0 auto;
}
.media-inner {
	aspect-ratio: 16 / 9;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.media-img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}
.media-caption {
	position: absolute;
	background: rgb(0 0 0 / 50%);
	width: 80%;
	padding: 10px;
	font-size: 0.6875rem;
	font-family: ui-monospace, monospace;
	color: var(--slate-300);
	text-align: center;
	line-height: 1.5;
}

/* ===== SECTION ===== */
.section { padding: 4.5rem 0; }
.section-border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-muted { background: rgba(2, 6, 23, 0.45); }
.section-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
	margin-bottom: 0.5rem;
}
.section-label-green { color: var(--green); }
.section-label-muted {
	font-size: 0.75rem;
	font-family: ui-monospace, monospace;
	text-transform: uppercase;
	color: var(--slate-500);
	margin-bottom: 0.5rem;
}
.section-title {
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	font-weight: 800;
	color: #fff;
	margin-bottom: 1rem;
}

/* ===== GRID + CARD ===== */
.grid-3 {
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 640px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 1.5rem 1.75rem;
	text-align: left;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
	border-color: rgba(0, 240, 255, 0.4);
	box-shadow: 0 0 20px rgba(0, 240, 255, 0.06);
}
.card-title-white {
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}
.card-text {
	font-size: 0.875rem;
	color: var(--slate-400);
	line-height: 1.65;
}

/* ===== FOOTER (giữ — footer.php dùng chung) ===== */
.footer {
	border-top: 1px solid var(--border);
	padding: 3rem 0;
}
.footer-inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}
.footer-top {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
	.footer-top {
		flex-direction: row;
		justify-content: space-between;
	}
}
.footer-brand {
	font-size: 1.35rem;
	font-weight: 900;
	color: #fff;
	margin-bottom: 0.4rem;
}
.footer-tagline {
	font-size: 0.8125rem;
	color: var(--slate-500);
}
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.875rem;
	color: var(--slate-400);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	padding-top: 1.75rem;
	border-top: 1px solid var(--border);
	font-size: 0.8125rem;
	color: var(--slate-500);
}
@media (min-width: 640px) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}
.footer-social { display: flex; gap: 1.25rem; font-size: 1.1rem; }
.footer-social a:hover { color: var(--accent); }