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

:root {
	--bg: #030712;
	--bg-mid: #0B0F19;
	--card: #111827;
	--border: #1F2937;
	--accent: #00F0FF;
	--green: #00FF85;
	--warning: #FFB800;
	--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; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.main-wrap { max-width: 72rem; margin: 0 auto; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-accent { color: var(--accent); }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== NAV ===== */
.nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 4rem;
	background: rgba(3, 7, 18, 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(3, 7, 18, 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; }

/* ===== PAGE HERO ===== */
.page-hero {
	position: relative; padding: 9rem 1.5rem 4.5rem; overflow: hidden; text-align: center;
}
.page-hero-cyber { border-bottom: 1px solid var(--border); }
.hero-bg {
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at top, #0f172a 0%, var(--bg) 70%);
	z-index: 0;
}
.hero-cyber-grid {
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(31, 41, 55, 0.45) 1px, transparent 1px);
	background-size: 24px 24px;
	z-index: 1; pointer-events: none;
}
.hero-glow {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0, 240, 255, 0.04) 0%, transparent 50%);
	z-index: 1; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; margin: 0 auto; max-width: 48rem; }
.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(2rem, 5vw, 3rem); font-weight: 900; color: #fff;
	letter-spacing: -0.03em; margin-bottom: 1.25rem; text-transform: uppercase;
	line-height: 1.1;
}
.page-hero-desc {
	font-size: 0.9375rem; font-weight: 400; color: var(--slate-400);
	line-height: 1.7; max-width: 36rem; margin: 0 auto;
}

/* ===== SECTION ===== */
.section { padding: 5rem 0; }
.section-border { border-top: 1px solid var(--border); }
.section-label-muted {
	font-size: 0.75rem; font-family: ui-monospace, monospace;
	text-transform: uppercase; color: var(--slate-500); margin-bottom: 1.25rem; display: block;
}
.section-title {
	font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 800; color: #fff;
	margin-bottom: 1rem; text-transform: uppercase; letter-spacing: -0.02em;
}
.body-text {
	font-size: 0.875rem; color: var(--slate-400); line-height: 1.7; margin-bottom: 1rem;
}

/* ===== SPLIT ===== */
.split-grid {
	display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 1024px) {
	.split-grid { grid-template-columns: 5fr 7fr; }
}
.note-accent {
	padding: 0.9rem 1.1rem;
	background: rgba(17, 24, 39, 0.5);
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	font-size: 0.6875rem; font-family: ui-monospace, monospace;
	color: var(--accent); line-height: 1.65;
}
.note-accent strong { color: #fff; }

/* ===== FLOW HORIZONTAL ===== */
.flow-horizontal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.4rem 0.35rem;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 0.65rem;
	padding: 0.9rem 1rem;
}
.flow-center {
	justify-content: center;
}
.flow-step {
	display: inline-flex;
	align-items: center;
	font-family: ui-monospace, monospace;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--accent);
	background: rgba(0, 240, 255, 0.07);
	border: 1px solid rgba(0, 240, 255, 0.18);
	padding: 0.35rem 0.65rem;
	border-radius: 0.4rem;
	white-space: nowrap;
	line-height: 1.3;
}
.flow-step-green {
	color: var(--green);
	background: rgba(0, 255, 133, 0.08);
	border-color: rgba(0, 255, 133, 0.25);
}
.flow-arrow {
	font-size: 0.75rem;
	color: var(--slate-500);
	font-weight: 500;
	flex-shrink: 0;
	user-select: none;
}

/* ===== STAGE ===== */
.stage-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.65rem;
}
@media (min-width: 640px) {
	.stage-grid { grid-template-columns: repeat(5, 1fr); }
}
.stage-cell {
	padding: 0.85rem 0.5rem;
	background: rgba(17, 24, 39, 0.4);
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	font-size: 0.625rem; font-family: ui-monospace, monospace; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
	text-align: center; color: var(--slate-300);
	min-height: 4.25rem;
	display: flex; align-items: center; justify-content: center;
}
.stage-cell-accent { color: var(--accent); }
.stage-cell-green {
	color: var(--green);
	background: rgba(0, 255, 133, 0.06);
	border-color: rgba(0, 255, 133, 0.25);
}
.stage-note {
	margin-top: 1.5rem;
	font-size: 0.6875rem; font-family: ui-monospace, monospace;
	color: var(--slate-500); line-height: 1.55; text-align: center;
}

/* ===== NEXT ===== */
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.next-grid { max-width: 40rem; margin: 0 auto; }
.card {
	display: block;
	background: linear-gradient(135deg, rgba(17, 24, 39, 0.7) 0%, rgba(11, 15, 25, 0.8) 100%);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 1rem;
	padding: 1.35rem 1.5rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
	border-color: rgba(0, 240, 255, 0.35);
	box-shadow: 0 0 24px rgba(0, 240, 255, 0.06);
}
.card-title {
	font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem;
}
.card-text {
	font-size: 0.8125rem; color: var(--slate-400); line-height: 1.55;
}

/* ===== 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); }