*, *::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; }
ul { list-style: none; }

/* ===== UTILS ===== */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-accent { color: var(--accent); }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-10 { margin-top: 2.5rem; }
.glow-text { text-shadow: 0 0 18px rgba(0, 240, 255, 0.45); }

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

/* ===== BUTTONS ===== */
.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; }
.btn-outline {
	border: 2px solid var(--slate-700);
	color: #fff;
	background: transparent;
}
.btn-outline:hover { border-color: var(--slate-400); }

/* ===== HERO ===== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6rem 1.5rem 4rem;
	text-align: center;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-image: url('/img/background.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

/* Overlay tối để chữ dễ đọc */
.hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(11, 15, 25, 0.72) 0%,
		rgba(11, 15, 25, 0.82) 50%,
		rgba(11, 15, 25, 0.92) 100%
	);
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(30,41,59,0.12) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(30,41,59,0.12) 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-block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
	background: rgba(0, 240, 255, 0.12);
	padding: 0.35rem 0.85rem;
	border-radius: 9999px;
	margin-bottom: 1.25rem;
	backdrop-filter: blur(6px);
}

.hero-title {
	font-size: clamp(2.75rem, 8vw, 4.5rem);
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.03em;
	margin-bottom: 0.75rem;
}

.hero-subtitle {
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
	font-weight: 600;
	color: var(--slate-100);
	margin-bottom: 1.25rem;
}

.hero-desc {
	font-size: 1.05rem;
	color: var(--slate-300);
	margin-bottom: 2rem;
	line-height: 1.65;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

/* ===== SECTION ===== */
.section { padding: 4.5rem 0; }
.section-border { border-top: 1px solid var(--border); }
.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 {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent);
	margin-bottom: 0.75rem;
}
.section-title {
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	font-weight: 800;
	color: #fff;
	margin-bottom: 1rem;
}
.section-desc {
	font-size: 1rem;
	color: var(--slate-400);
	max-width: 38rem;
	margin: 0 auto 1.5rem;
	line-height: 1.7;
}
.product-tagline {
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--slate-100);
	margin-bottom: 1rem;
}
.link-accent {
	color: var(--accent);
	font-weight: 600;
	font-size: 0.9375rem;
}
.link-accent:hover { text-decoration: underline; }

/* ===== FLOW ===== */
.flow-pill {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid var(--border);
	border-radius: 9999px;
	padding: 0.65rem 1.25rem;
	font-size: 0.8125rem;
	color: var(--slate-300);
	margin-bottom: 2.5rem;
}
.flow-pill .accent { color: var(--accent); font-weight: 500; }

/* ===== GRID + CARD ===== */
.grid-3 {
	display: grid;
	gap: 1.25rem;
}
.grid-4 {
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 640px) {
	.grid-3 { grid-template-columns: repeat(3, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 1.35rem 1.5rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	text-align: left;
}
.card.text-center { text-align: center; }
.card:hover {
	border-color: rgba(0, 240, 255, 0.4);
	box-shadow: 0 0 20px 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-title-white {
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.4rem;
	font-size: 0.9375rem;
}
.card-text { font-size: 0.875rem; color: var(--slate-400); }
.card-num {
	width: 2.25rem;
	height: 2.25rem;
	margin: 0 auto 0.85rem;
	border-radius: 0.5rem;
	background: rgba(0, 240, 255, 0.1);
	color: var(--accent);
	font-weight: 700;
	font-size: 0.8125rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ===== FOOTER ===== */
.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); }
/* ===== MOBILE NAV ===== */
.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;
}

/* Khi mở menu → biến thành X */
.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);
}

/* Ẩn hamburger trên desktop */
@media (min-width: 768px) {
	.nav-toggle { display: none; }
}

/* Mobile menu panel */
.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;
	transition: background 0.2s, color 0.2s;
}

.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;
}