/* ============================================
 *  ROOT VARIABLES
 *  ============================================ */
:root {
	--bg-primary: #0a0e17;
	--bg-secondary: #111827;
	--bg-card: #1a2332;
	--bg-card-hover: #243044;
	--bg-nav: rgba(10, 14, 23, 0.95);
	
	--text-primary: #e8edf5;
	--text-secondary: #94a3b8;
	--text-muted: #4a5568;
	
	--accent-red: #e63946;
	--accent-cyan: #00d4ff;
	--accent-green: #00ff88;
	--accent-yellow: #ffd60a;
	--accent-purple: #8b5cf6;
	
	--border-color: #1e2d45;
	--shadow-glow: 0 0 30px rgba(230, 57, 70, 0.15);
	
	--font-display: 'Orbitron', monospace;
	--font-mono: 'JetBrains Mono', monospace;
	--font-body: 'Inter', sans-serif;
	
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
 *  RESET & BASE
 *  ============================================ */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

/* Scanline overlay for cyber aesthetic */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(0, 0, 0, 0.03) 2px,
										  rgba(0, 0, 0, 0.03) 4px
	);
	pointer-events: none;
	z-index: 9999;
}

/* ============================================
 *  SCROLLBAR
 *  ============================================ */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
	background: var(--accent-red);
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background: #ff4757;
}

::selection {
	background: var(--accent-red);
	color: white;
}

/* ============================================
 *  UTILITY
 *  ============================================ */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.section-tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	color: var(--accent-cyan);
	background: rgba(0, 212, 255, 0.1);
	padding: 4px 14px;
	border-radius: 20px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 12px;
	border: 1px solid rgba(0, 212, 255, 0.2);
}

.section-title {
	font-family: var(--font-display);
	font-size: 42px;
	font-weight: 900;
	line-height: 1.2;
	margin-bottom: 16px;
}

.section-title .highlight {
	color: var(--accent-red);
	text-shadow: 0 0 40px rgba(230, 57, 70, 0.3);
}

.section-subtitle {
	font-size: 18px;
	color: var(--text-secondary);
	max-width: 600px;
	line-height: 1.8;
}

.text-center {
	text-align: center;
}
.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.version-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 12px;
	border-radius: 12px;
	background: rgba(230, 57, 70, 0.15);
	color: var(--accent-red);
	margin-right: 8px;
}

/* ============================================
 *  NAVIGATION
 *  ============================================ */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--bg-nav);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-color);
	padding: 12px 0;
	transition: var(--transition);
}

.navbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 900;
	color: var(--accent-red);
	text-decoration: none;
	letter-spacing: 2px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-logo span {
	color: var(--accent-cyan);
}

.nav-logo i {
	font-size: 24px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
}

.nav-links a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: var(--transition);
	position: relative;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent-red);
	transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
	width: 100%;
}

.nav-cta {
	background: var(--accent-red);
	color: white !important;
	padding: 8px 20px;
	border-radius: 6px;
	font-weight: 600 !important;
	transition: var(--transition);
}

.nav-cta::after {
	display: none !important;
}

.nav-cta:hover {
	background: #ff4757;
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

.mobile-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 24px;
	cursor: pointer;
}

/* ============================================
 *  BUTTONS
 *  ============================================ */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--accent-red);
	color: white;
	padding: 14px 32px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: var(--transition);
	border: none;
	cursor: pointer;
}

.btn-primary:hover {
	background: #ff4757;
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	color: var(--text-primary);
	padding: 14px 32px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: var(--transition);
	border: 1px solid var(--border-color);
}

.btn-secondary:hover {
	border-color: var(--accent-cyan);
	color: var(--accent-cyan);
	transform: translateY(-2px);
}

/* ============================================
 *  HERO
 *  ============================================ */
.hero {
	padding: 140px 0 80px;
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	display: flex;
	align-items: center;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: 
	radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 60%),
	radial-gradient(ellipse at 80% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
	pointer-events: none;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	position: relative;
	z-index: 1;
}

.hero-content h1 {
	font-family: var(--font-display);
	font-size: 56px;
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 20px;
}

.hero-content h1 .highlight {
	color: var(--accent-red);
	text-shadow: 0 0 50px rgba(230, 57, 70, 0.3);
}

.hero-content p {
	font-size: 18px;
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 32px;
	max-width: 520px;
}

.hero-badges {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.hero-badge {
	font-family: var(--font-mono);
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	background: var(--bg-card);
	display: flex;
	align-items: center;
	gap: 6px;
}

.hero-badge i {
	color: var(--accent-green);
}

.hero-buttons {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--border-color);
}

.hero-stat h3 {
	font-family: var(--font-display);
	font-size: 28px;
	color: var(--accent-cyan);
}

.hero-stat p {
	font-size: 13px;
	color: var(--text-muted);
	margin: 0;
}

/* Terminal Animation */
.hero-terminal {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 24px;
	width: 100%;
	max-width: 520px;
	box-shadow: var(--shadow-glow);
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
}

.terminal-header {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.terminal-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-body {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.8;
}

.terminal-body .prompt {
	color: var(--accent-red);
}
.terminal-body .command {
	color: var(--accent-cyan);
}
.terminal-body .output {
	color: var(--accent-green);
}
.terminal-body .dim {
	color: var(--text-muted);
}

/* ============================================
 *  FEATURES
 *  ============================================ */
.features {
	padding: 80px 0;
	background: var(--bg-secondary);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 48px;
}

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 32px;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-red), var(--accent-cyan));
	opacity: 0;
	transition: var(--transition);
}

.feature-card:hover {
	border-color: var(--accent-cyan);
	transform: translateY(-4px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
	opacity: 1;
}

.feature-icon {
	font-size: 32px;
	color: var(--accent-red);
	margin-bottom: 16px;
}

.feature-card h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
}

.feature-card p {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.7;
}

.feature-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: var(--accent-cyan);
	background: rgba(0, 212, 255, 0.1);
	padding: 2px 12px;
	border-radius: 12px;
	margin-top: 12px;
}

/* ============================================
 *  DOCUMENTATION STYLES
 *  ============================================ */
.doc-content {
	padding: 80px 0 40px;
}

.doc-content h1 {
	font-family: var(--font-display);
	font-size: 36px;
	margin-bottom: 8px;
	padding-top: 40px;
}

.doc-content h1 .highlight {
	color: var(--accent-red);
}

.doc-content .subtitle {
	color: var(--text-secondary);
	font-size: 18px;
	margin-bottom: 32px;
}

.doc-content h2 {
	font-size: 24px;
	font-weight: 600;
	margin-top: 48px;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-color);
}

.doc-content h2:first-of-type {
	margin-top: 0;
}

.doc-content h3 {
	font-size: 18px;
	font-weight: 600;
	margin-top: 32px;
	margin-bottom: 12px;
}

.doc-content p {
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 16px;
}

.doc-content ul, .doc-content ol {
	color: var(--text-secondary);
	line-height: 1.8;
	padding-left: 24px;
	margin-bottom: 16px;
}

.doc-content ul li, .doc-content ol li {
	margin-bottom: 8px;
}

/* ============================================
 *  CODE BLOCKS
 *  ============================================ */
.code-block-wrapper {
	position: relative;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 12px 16px;
	margin: 8px 0 16px;
}

.code-block-wrapper .code-block {
	font-family: var(--font-mono);
	font-size: 13px;
	overflow-x: auto;
	color: var(--text-primary);
	padding-right: 40px;
}

.code-block-wrapper .copy-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	cursor: pointer;
	transition: var(--transition);
	font-family: var(--font-body);
}

.code-block-wrapper .copy-btn:hover {
	border-color: var(--accent-cyan);
	color: var(--accent-cyan);
}

.code-block-wrapper .copy-btn.copied {
	border-color: var(--accent-green);
	color: var(--accent-green);
}

.code-block .prompt { color: var(--accent-red); }
.code-block .cmd { color: var(--accent-cyan); }
.code-block .comment { color: var(--text-muted); }
.code-block .variable { color: var(--accent-yellow); }
.code-block .output { color: var(--accent-green); }

/* ============================================
 *  CALLOUTS
 *  ============================================ */
.callout {
	background: var(--bg-card);
	border-left: 3px solid var(--accent-red);
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	margin: 16px 0;
}

.callout.warning {
	border-left-color: var(--accent-yellow);
}

.callout.success {
	border-left-color: var(--accent-green);
}

.callout.info {
	border-left-color: var(--accent-cyan);
}

.callout h4 {
	margin-bottom: 8px;
	font-size: 14px;
}

.callout p {
	margin-bottom: 0;
}

/* ============================================
 *  NOTE BOX
 *  ============================================ */
.note-box {
	background: rgba(0, 212, 255, 0.05);
	border-left: 3px solid var(--accent-cyan);
	padding: 12px 16px;
	border-radius: 0 6px 6px 0;
	margin: 12px 0;
	font-size: 14px;
	color: var(--text-secondary);
}

.note-box i {
	color: var(--accent-cyan);
	margin-right: 8px;
}

.note-box.warning {
	border-left-color: var(--accent-yellow);
	background: rgba(255, 214, 10, 0.05);
}

.note-box.warning i {
	color: var(--accent-yellow);
}

/* ============================================
 *  OUTPUT BOX
 *  ============================================ */
.output-box {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 12px 16px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--accent-green);
	overflow-x: auto;
	margin: 8px 0 16px;
}

.icon-check {
	color: var(--accent-green);
	margin-right: 8px;
}

/* ============================================
 *  TABLES
 *  ============================================ */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

table th {
	background: var(--bg-card);
	color: var(--text-primary);
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	border: 1px solid var(--border-color);
}

table td {
	padding: 10px 16px;
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: 14px;
}

table tr:hover td {
	background: var(--bg-card);
}

/* ============================================
 *  DOC TOC
 *  ============================================ */
.doc-toc {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 20px 24px;
	margin: 24px 0;
}

.doc-toc h4 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.doc-toc a {
	color: var(--text-secondary);
	text-decoration: none;
	display: block;
	padding: 4px 0;
	font-size: 14px;
	transition: var(--transition);
}

.doc-toc a:hover {
	color: var(--accent-cyan);
}

/* ============================================
 *  FOOTER
 *  ============================================ */
.footer {
	padding: 48px 0 24px;
	background: var(--bg-primary);
	border-top: 1px solid var(--border-color);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 32px;
}

.footer-brand h3 {
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--accent-red);
	margin-bottom: 12px;
}

.footer-brand h3 span {
	color: var(--accent-cyan);
}

.footer-brand p {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.7;
	max-width: 300px;
}

.footer-links h4 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
}

.footer-links a {
	display: block;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	padding: 4px 0;
	transition: var(--transition);
}

.footer-links a:hover {
	color: var(--accent-cyan);
}

.footer-bottom {
	border-top: 1px solid var(--border-color);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-bottom p {
	font-size: 13px;
	color: var(--text-muted);
}

.footer-social {
	display: flex;
	gap: 16px;
}

.footer-social a {
	color: var(--text-muted);
	font-size: 18px;
	transition: var(--transition);
}

.footer-social a:hover {
	color: var(--accent-cyan);
}

/* ============================================
 *  RESPONSIVE
 *  ============================================ */
@media (max-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	
	.hero-content p {
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
	
	.hero-badges {
		justify-content: center;
	}
	
	.hero-buttons {
		justify-content: center;
	}
	
	.hero-stats {
		justify-content: center;
	}
	
	.features-grid {
		grid-template-columns: 1fr 1fr;
	}
	
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.nav-links {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg-nav);
		padding: 24px;
		border-bottom: 1px solid var(--border-color);
		gap: 16px;
	}
	
	.nav-links.active {
		display: flex;
	}
	
	.mobile-toggle {
		display: block;
	}
	
	.hero {
		padding: 100px 0 60px;
	}
	
	.hero-content h1 {
		font-size: 32px;
	}
	
	.section-title {
		font-size: 28px;
	}
	
	.features-grid {
		grid-template-columns: 1fr;
	}
	
	.footer-grid {
		grid-template-columns: 1fr;
	}
	
	.hero-stats {
		grid-template-columns: 1fr;
	}
	
	.hero-terminal {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 16px;
	}
	
	.hero-content h1 {
		font-size: 26px;
	}
	
	.btn-primary, .btn-secondary {
		width: 100%;
		justify-content: center;
	}
}
