:root {
	--bg: #0b1120;
	--bg-soft: #0f172a;
	--card: #1e293b;
	--accent: #6366f1;
	--accent-2: #22d3ee;
	--text: #f1f5f9;
	--muted: #94a3b8;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', system-ui, sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	background: linear-gradient(180deg, var(--bg) 0%, #0f172a 100%);
	color: var(--text);
	line-height: 1.8;
}

/* Layout */

section {
	padding: 140px 28px;
}

.container {
	max-width: 1150px;
	margin: auto;
}

/* Typography */

h1 {
	font-size: 4rem;
	margin-bottom: 28px;
	letter-spacing: -0.03em;
}

h2 {
	font-size: 3rem;
	margin-bottom: 70px;
	text-align: center;
}

h3 {
	font-size: 1.6rem;
	margin-bottom: 20px;
}

p {
	font-size: 1.2rem;
	color: var(--muted);
	max-width: 720px;
	margin-bottom: 28px;
}

/* Particle Background */

#particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

/* Hero */

.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	text-align: center;
	background:
		radial-gradient(circle at 20% 30%, #312e81, transparent 40%),
		radial-gradient(circle at 80% 70%, #0ea5e9, transparent 40%);
}

.hero span.accent {
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.btn {
	display: inline-block;
	padding: 16px 40px;
	border-radius: 40px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-primary {
	background: var(--accent);
	color: white;
}

.btn-primary:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

.btn-outline {
	border: 1px solid var(--accent-2);
	color: var(--accent-2);
	margin-left: 15px;
}

.btn-outline:hover {
	background: var(--accent-2);
	color: #0b1120;
}

.hero-demo {
	font-size: 2rem;
	margin-top: 50px;
	color: var(--accent-2);
}

/* Cards */

.card {
	background: var(--card);
	padding: 50px;
	border-radius: 22px;
	margin-bottom: 50px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Code */

.code-block {
	position: relative;
	margin-top: 25px;
}

pre {
	background: #0b1220;
	padding: 28px;
	border-radius: 16px;
	overflow-x: auto;
}

pre code {
	font-size: 1rem;
	color: var(--accent-2);
	white-space: pre;
}

.copy-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--accent);
	border: none;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.8rem;
	cursor: pointer;
	font-weight: 600;
	color: white;
}

.copy-btn:hover {
	opacity: 0.85;
}

/* GitHub CTA */

.github-section {
	text-align: center;
}

.github-box {
	background: linear-gradient(135deg, #1e293b, #111827);
	padding: 70px;
	border-radius: 30px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.github-box h2 {
	margin-bottom: 30px;
}

.github-box p {
	margin: 0 auto 40px;
}

.github-btn {
	background: white;
	color: black;
	padding: 16px 36px;
	border-radius: 40px;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
}

.warning {
	margin-top: 20px;
	padding: 16px;
	background: rgba(56, 189, 248, 0.1);
	border-left: 4px solid var(--accent);
	border-radius: 8px;
	color: var(--text);
}

.github-btn:hover {
	background: #e5e7eb;
}

/* Reveal */

.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.8s ease;
}

.reveal.active {
	opacity: 1;
	transform: translateY(0);
}

/* Attribute Table */

.attributes-table {
	margin-top: 40px;
}

.attributes-table h4 {
	font-size: 1.4rem;
	margin-bottom: 20px;
	color: var(--text);
}

.attributes-table table {
	width: 100%;
	border-collapse: collapse;
	background: #0b1220;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.attributes-table th,
.attributes-table td {
	padding: 18px 20px;
	text-align: left;
}

.attributes-table th {
	background: #111827;
	color: var(--accent-2);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.5px;
}

.attributes-table td {
	border-top: 1px solid rgba(148, 163, 184, 0.15);
	color: var(--muted);
	font-size: 1rem;
}

.attributes-table td code {
	color: var(--accent-2);
	font-size: 0.95rem;
}

/* Footer */

.footer {
	text-align: center;
	padding: 70px 20px 10px;
	font-size: 1rem;
	color: var(--muted);
}

.footer > p {
	margin-inline: auto;
}
