/* ══════════════════════════════
   BALDES-inspired palette
   cyan → violet gradient accents
═════════════════════════════ */
:root {
	--bg: #0b0e11;
	--surface: #111619;
	--surface-hi: #161d22;
	--border: rgba(255, 255, 255, 0.04);
	--border-hi: rgba(255, 255, 255, 0.08);
	--text: #e4e8ec;
	--muted: #8a959e;
	--muted-2: #5c6570;
	--accent-1: #06b6d4;
	--accent-2: #8b5cf6;
	--accent-3: #22d3ee;
	--r: 14px;
	--r-sm: 10px;
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: "DM Sans", system-ui, sans-serif;
	background: var(--bg);
	color: var(--text);
	min-height: 100vh;
	overflow-x: hidden;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

code,
pre,
kbd {
	font-family: "JetBrains Mono", monospace;
}

::selection {
	background: rgba(6, 182, 212, 0.25);
	color: var(--text);
}

::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-track {
	background: var(--bg);
}

::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 99px;
}

/* ══════════════════════════════
   BACKGROUND LAYERS
═════════════════════════════ */
.bg-mesh {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

/* Noise grain */
.bg-grain {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	opacity: 0.025;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
	background-size: 128px 128px;
}

/* Mesh glow blobs */
.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.1;
}

.blob-1 {
	width: 600px;
	height: 600px;
	background: var(--accent-1);
	top: -10%;
	left: -5%;
	animation: blobFloat 20s ease-in-out infinite;
}

.blob-2 {
	width: 500px;
	height: 500px;
	background: var(--accent-2);
	top: 30%;
	right: -10%;
	animation: blobFloat 25s ease-in-out infinite reverse;
}

.blob-3 {
	width: 700px;
	height: 700px;
	background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
	bottom: -15%;
	left: 25%;
	animation: blobFloat 30s ease-in-out infinite;
}

@keyframes blobFloat {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	33% {
		transform: translate(40px, -30px) scale(1.05);
	}
	66% {
		transform: translate(-30px, 20px) scale(0.95);
	}
}

/* Grid lines */
.bg-grid {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(
		ellipse 70% 60% at 50% 30%,
		black 30%,
		transparent 70%
	);
	-webkit-mask-image: radial-gradient(
		ellipse 70% 60% at 50% 30%,
		black 30%,
		transparent 70%
	);
}

/* ══════════════════════════════
   NAV
═════════════════════════════ */
nav {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 200;
	height: 64px;
	display: flex;
	align-items: center;
	background: rgba(11, 14, 17, 0.65);
	backdrop-filter: blur(24px) saturate(1.3);
	-webkit-backdrop-filter: blur(24px) saturate(1.3);
	transition:
		background 0.3s,
		box-shadow 0.3s;
}

nav.scrolled {
	background: rgba(11, 14, 17, 0.92);
	box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.nav-inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.brand-name {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	color: var(--text);
}

.brand-version {
	font-family: "JetBrains Mono", monospace;
	font-size: 0.62rem;
	color: var(--muted-2);
	background: rgba(139, 92, 246, 0.08);
	border: 1px solid var(--border);
	padding: 0.15rem 0.45rem;
	border-radius: 99px;
	letter-spacing: 0.06em;
	margin-left: 0.1rem;
}

.brand-logo {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	transition: transform 0.25s;
	filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.35));
}

.brand:hover .brand-logo {
	transform: scale(1.05);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* ── Buttons ── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	border-radius: 99px;
	font-family: "DM Sans", sans-serif;
	font-size: 0.84rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	color: var(--muted);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.15);
	color: var(--text);
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
	color: #fff;
	font-weight: 600;
	box-shadow: 0 4px 18px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(6, 182, 212, 0.18);
}

.btn-large {
	padding: 0.8rem 1.8rem;
	font-size: 0.95rem;
	font-weight: 600;
}

/* ══════════════════════════════
   HERO
═════════════════════════════ */
.hero {
	position: relative;
	z-index: 2;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: 100px 2rem 60px;
}

.hero-inner {
	max-width: 1160px;
	margin: 0 auto;
	width: 100%;
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 5rem;
	align-items: center;
}

/* Logo column */
.hero-logo-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.hero-logo-ring {
	position: absolute;
	inset: -30px;
	border-radius: 50%;
	border: 1px solid rgba(6, 182, 212, 0.12);
	animation: spin-slow 30s linear infinite;
}

.hero-logo-ring-2 {
	inset: -60px;
	border-color: rgba(6, 182, 212, 0.08);
	animation: spin-slow 50s linear infinite reverse;
}

@keyframes spin-slow {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.hero-logo {
	position: relative;
	z-index: 2;
	width: 380px;
	height: 380px;
	filter: drop-shadow(0 0 60px rgba(6, 182, 212, 0.15));
	animation: logo-breathe 4s ease-in-out infinite;
}

@keyframes logo-breathe {
	0%,
	100% {
		filter: drop-shadow(0 0 60px rgba(6, 182, 212, 0.15));
	}
	50% {
		filter: drop-shadow(0 0 80px rgba(6, 182, 212, 0.25));
	}
}

/* Copy column */
.hero-copy {
	display: flex;
	flex-direction: column;
	gap: 1.8rem;
}

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: "JetBrains Mono", monospace;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-1);
}

.hero-kicker::before {
	content: "";
	display: block;
	width: 20px;
	height: 1px;
	background: var(--accent-1);
}

.hero-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(2.8rem, 4.5vw, 4.4rem);
	font-weight: 800;
	line-height: 0.97;
	letter-spacing: -0.035em;
}

.hero-title .grad {
	background: linear-gradient(125deg, #22d3ee 0%, #06b6d4 40%, #8b5cf6 80%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-desc {
	font-size: 1.05rem;
	color: var(--muted);
	line-height: 1.8;
	max-width: 36rem;
}

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

.hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 0.2rem;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.32rem 0.8rem;
	border-radius: 99px;
	border: 1px solid var(--border);
	color: var(--muted);
	background: rgba(139, 92, 246, 0.08);
	letter-spacing: 0.01em;
}

/* scroll hint */
.scroll-hint {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-2);
	animation: fade-bob 2.5s ease-in-out infinite;
}

.scroll-hint::after {
	content: "";
	display: block;
	width: 1px;
	height: 40px;
	background: linear-gradient(to bottom, rgba(6, 182, 212, 0.4), transparent);
}

@keyframes fade-bob {
	0%,
	100% {
		opacity: 0.4;
		transform: translateX(-50%) translateY(0);
	}
	50% {
		opacity: 0.8;
		transform: translateX(-50%) translateY(6px);
	}
}

/* ══════════════════════════════
   DIVIDERS & SECTIONS
═════════════════════════════ */
.divider {
	height: 1px;
	background: var(--border);
	position: relative;
	z-index: 2;
	max-width: 1160px;
	margin: 0 auto;
}

.section {
	position: relative;
	z-index: 2;
	padding: 6rem 2rem;
}

.container {
	max-width: 1160px;
	margin: 0 auto;
	width: 100%;
}

.section-tag {
	font-family: "JetBrains Mono", monospace;
	font-size: 0.67rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--accent-1);
	margin-bottom: 0.75rem;
}

.section-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: clamp(1.9rem, 3vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin-bottom: 1rem;
}

.section-title .grad {
	background: linear-gradient(125deg, #22d3ee, #06b6d4, #8b5cf6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-copy {
	font-size: 1rem;
	color: var(--muted);
	line-height: 1.8;
	max-width: 38rem;
}

/* ══════════════════════════════
   FEATURES GRID
═════════════════════════════ */
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
	margin-top: 3rem;
}

.feat {
	padding: 2rem 1.8rem;
	background: var(--surface);
	backdrop-filter: blur(10px);
	transition: background 0.2s;
	position: relative;
	overflow: hidden;
}

.feat::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
	opacity: 0;
	transition: opacity 0.25s;
}

.feat:hover {
	background: var(--surface-hi);
}

.feat:hover::before {
	opacity: 1;
}

.feat-icon {
	font-size: 1.5rem;
	margin-bottom: 1.1rem;
	display: block;
}

.feat-title {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 0.55rem;
	letter-spacing: -0.01em;
}

.feat-desc {
	font-size: 0.86rem;
	color: var(--muted);
	line-height: 1.75;
}

/* ══════════════════════════════
   COMMANDS
═════════════════════════════ */
.commands-wrap {
	margin-top: 3rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
}

.commands-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.4rem;
	border-bottom: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.02);
}

.term-dot {
	width: 10px;
	height: 10px;
	border-radius: 99px;
	flex-shrink: 0;
}

.commands-header-label {
	margin-left: 0.4rem;
	font-family: "JetBrains Mono", monospace;
	font-size: 0.7rem;
	color: var(--muted-2);
	letter-spacing: 0.05em;
}

.command-item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: center;
	padding: 1.1rem 1.4rem;
	border-bottom: 1px solid var(--border);
	transition: background 0.15s;
}

.command-item:last-child {
	border-bottom: none;
}

.command-item:hover {
	background: rgba(6, 182, 212, 0.05);
}

.command-code {
	font-family: "JetBrains Mono", monospace;
	font-size: 0.81rem;
	color: #93c5fd;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.command-code::before {
	content: "$";
	color: var(--muted-2);
	flex-shrink: 0;
}

.command-desc {
	font-size: 0.83rem;
	color: var(--muted);
	text-align: right;
	white-space: nowrap;
}

.copy-btn {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 0.25rem 0.6rem;
	border-radius: 99px;
	border: 1px solid var(--border);
	background: rgba(6, 182, 212, 0.08);
	color: var(--muted);
	cursor: pointer;
	transition: all 0.15s;
	font-family: "JetBrains Mono", monospace;
}

.copy-btn:hover {
	border-color: var(--border-hi);
	color: var(--accent-1);
}

/* ══════════════════════════════
   PRINCIPLES STRIP
═════════════════════════════ */
.principles-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
	margin-top: 3rem;
}

.principle {
	padding: 2rem 1.6rem;
	background: var(--surface);
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	transition: background 0.2s;
}

.principle:hover {
	background: var(--surface-hi);
}

.principle-num {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(125deg, #22d3ee, #06b6d4);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -0.03em;
}

.principle-label {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text);
}

.principle-sub {
	font-size: 0.8rem;
	color: var(--muted);
	line-height: 1.6;
}

/* ══════════════════════════════
   CODE BLOCK
═════════════════════════════ */
.code-block {
	margin-top: 3rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
}

.code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1.4rem;
	border-bottom: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.02);
}

.code-header span {
	font-family: "JetBrains Mono", monospace;
	font-size: 0.75rem;
	color: var(--muted-2);
	letter-spacing: 0.05em;
}

.code-block pre {
	margin: 0;
	padding: 1.5rem 1.4rem;
	overflow-x: auto;
}

.code-block code {
	font-family: "JetBrains Mono", monospace;
	font-size: 0.82rem;
	line-height: 1.7;
	color: var(--text);
	white-space: pre;
}

/* Syntax-like colors */
.code-block code .kw {
	color: #22d3ee;
}
.code-block code .str {
	color: #34d399;
}
.code-block code .num {
	color: #fbbf24;
}
.code-block code .key {
	color: #60a5fa;
}

/* ══════════════════════════════
   FOOTER
═════════════════════════════ */
footer {
	position: relative;
	z-index: 2;
	border-top: 1px solid var(--border);
	padding: 3rem 2rem;
}

.footer-inner {
	max-width: 1160px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.footer-logo {
	width: 32px;
	height: 32px;
	filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.35));
}

.footer-name {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: var(--text);
}

.footer-desc {
	font-size: 0.8rem;
	color: var(--muted-2);
	margin-top: 0.25rem;
	max-width: 28rem;
}

.footer-links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footer-bottom {
	max-width: 1160px;
	margin: 1.5rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	font-size: 0.75rem;
	color: var(--muted-2);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ══════════════════════════════
   REVEAL ANIMATION
═════════════════════════════ */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}

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

.reveal-d1 {
	transition-delay: 0.08s;
}
.reveal-d2 {
	transition-delay: 0.16s;
}
.reveal-d3 {
	transition-delay: 0.24s;
}
.reveal-d4 {
	transition-delay: 0.32s;
}

/* ══════════════════════════════
   RESPONSIVE
═════════════════════════════ */
@media (max-width: 1024px) {
	.hero-inner {
		grid-template-columns: 1fr;
		max-width: 600px;
		gap: 3rem;
	}

	.hero-logo-wrap {
		order: -1;
	}

	.hero-logo {
		width: 220px;
		height: 220px;
	}

	.hero-logo-ring {
		width: 260px;
		height: 260px;
	}

	.hero-logo-ring-2 {
		width: 310px;
		height: 310px;
	}

	.features-grid {
		grid-template-columns: 1fr 1fr;
	}

	.principles-strip {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.features-grid {
		grid-template-columns: 1fr;
	}

	.principles-strip {
		grid-template-columns: 1fr 1fr;
	}

	.command-item {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.command-desc {
		text-align: left;
	}

	.nav-links {
		display: none;
	}

	.section {
		padding: 4rem 1.25rem;
	}

	.hero {
		padding: 90px 1.25rem 60px;
	}
}
