/* BridgeLab landing page. Catppuccin-inspired dark theme matching the app. */

:root {
	--bg: #1e1e2e;
	--bg-2: #181825;
	--bg-card: #24253a;
	--bg-card-2: #313244;
	--text: #cdd6f4;
	--text-dim: #a6adc8;
	--text-muted: #6c7086;
	--accent: #89b4fa;
	--accent-2: #74c7ec;
	--accent-glow: #89b4fa33;
	--purple: #cba6f7;
	--green: #a6e3a1;
	--yellow: #f9e2af;
	--red: #f38ba8;
	--border: #45475a;
	--radius: 10px;
	--radius-sm: 6px;
	--mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
	--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

code {
	font-family: var(--mono);
	font-size: 0.92em;
	background: var(--bg-card-2);
	padding: 1px 6px;
	border-radius: 4px;
	color: var(--yellow);
}

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }
p  { color: var(--text-dim); margin: 0 0 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(30, 30, 46, 0.86);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}
.nav-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 700;
	font-size: 17px;
}
.brand-icon { color: var(--accent); }
.nav-links {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 14px;
}
.nav-links a { color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-github { display: inline-flex; align-items: center; color: var(--text-dim); }

@media (max-width: 720px) {
	.nav-links a:not(.nav-github) { display: none; }
}

/* HERO */
.hero {
	position: relative;
	padding: 80px 0 60px;
	overflow: hidden;
}
.hero::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, var(--accent-glow), transparent 70%);
	pointer-events: none;
	z-index: 0;
}
.hero .wrap {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 56px;
	align-items: center;
}
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

.eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	background: var(--accent-glow);
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 20px;
}
.grad {
	background: linear-gradient(135deg, var(--accent), var(--purple));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lede { font-size: 18px; max-width: 560px; }

.cta { display: flex; gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 20px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: transform 0.08s ease, background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--bg-card-2); border-color: var(--text-muted); color: var(--text); transform: translateY(-1px); }
.btn-primary {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }

.kpi {
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 520px;
}
.kpi li {
	padding: 12px 0;
	border-top: 1px solid var(--border);
}
.kpi strong { display: block; color: var(--accent); font-size: 20px; font-weight: 700; }
.kpi span { color: var(--text-muted); font-size: 12px; }

/* HERO VISUAL (fake screenshot) */
.hero-visual { min-width: 0; }
.shot {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6), 0 8px 20px -6px rgba(0,0,0,0.4);
}
.shot-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: var(--bg-card-2);
	border-bottom: 1px solid var(--border);
	font-size: 11px;
}
.shot-bar span:not(.shot-title) { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.shot-bar span:nth-child(1) { background: var(--red); }
.shot-bar span:nth-child(2) { background: var(--yellow); }
.shot-bar span:nth-child(3) { background: var(--green); }
.shot-title { color: var(--text-muted); margin-left: 12px; font-family: var(--mono); }
.shot-body { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 320px; }
@media (max-width: 560px) { .shot-body { grid-template-columns: 1fr; } }

.code {
	font-family: var(--mono);
	font-size: 12px;
	line-height: 1.7;
	margin: 0;
	padding: 16px;
	overflow-x: auto;
	white-space: pre;
	color: var(--text-dim);
	border-right: 1px solid var(--border);
}
.code .seg { color: var(--purple); font-weight: 600; }
.code .val { color: var(--text); }
.code .ver { color: var(--green); }
.code .trunc { color: var(--red); font-style: italic; }

.side {
	padding: 14px;
	font-size: 12px;
	background: var(--bg-card);
}
.tree-h {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-muted);
	margin-bottom: 8px;
}
.tree, .tree ul {
	list-style: none;
	padding-left: 14px;
	margin: 0;
}
.tree > li { padding: 2px 0; color: var(--text-dim); }
.tree em { color: var(--text-muted); font-style: normal; font-size: 10px; margin-left: 6px; }
.tree .on { color: var(--text); }
.tree .sel {
	background: var(--accent-glow);
	color: var(--text);
	padding: 1px 4px;
	margin-left: -4px;
	border-left: 2px solid var(--accent);
	border-radius: 2px;
}

/* SECTIONS */
.section {
	padding: 80px 0;
	border-top: 1px solid var(--border);
}
.section.alt { background: var(--bg-2); }
.section h2 { max-width: 760px; }
.sub { max-width: 700px; font-size: 16px; margin-bottom: 32px; }
.sub.tiny { font-size: 13px; margin-top: 20px; color: var(--text-muted); }

/* FEATURES */
.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 32px;
}
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feat {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	transition: border-color 0.15s, transform 0.15s;
}
.feat:hover { border-color: var(--accent); transform: translateY(-2px); }
.feat-ic { font-size: 24px; margin-bottom: 10px; }
.feat p { margin: 0; font-size: 14px; }

/* COMPARE TABLE */
.compare { overflow-x: auto; margin-top: 32px; }
.compare table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.compare th, .compare td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}
.compare th {
	background: var(--bg-card-2);
	font-weight: 600;
	color: var(--text);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.compare tr:last-child td { border-bottom: none; }
.compare tr.highlight { background: var(--accent-glow); }
.compare tr.highlight td { color: var(--text); }
.compare tr.highlight td strong { color: var(--accent); }

/* PLUGINS */
.two-col {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 56px;
	align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.check { list-style: none; padding: 0; margin: 16px 0 20px; }
.check li { position: relative; padding: 4px 0 4px 24px; color: var(--text-dim); font-size: 14px; }
.check li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 4px;
	color: var(--green);
	font-weight: 700;
}
.plugin-sample {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
.plugin-sample .code { border-right: none; padding: 20px; }
.json-key { color: var(--accent); }
.json-str { color: var(--green); }
.json-num { color: var(--yellow); }

/* DOWNLOAD */
.dlgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 28px;
}
@media (max-width: 720px) { .dlgrid { grid-template-columns: 1fr; } }
.dl {
	display: block;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	transition: all 0.15s;
	color: var(--text);
}
.dl:hover {
	border-color: var(--accent);
	background: var(--bg-card-2);
	transform: translateY(-2px);
	color: var(--text);
}
.dl-os { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.dl-file { color: var(--accent); font-family: var(--mono); font-size: 13px; }
.dl-hint { color: var(--text-muted); font-size: 12px; margin-top: 8px; }

/* FAQ */
.faq { margin-top: 16px; max-width: 780px; }
.faq details {
	border-bottom: 1px solid var(--border);
	padding: 16px 0;
}
.faq summary {
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	padding-right: 24px;
	position: relative;
	color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 0;
	color: var(--accent);
	font-size: 20px;
	font-weight: 400;
	transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; font-size: 14px; max-width: 680px; }

/* FOOTER */
footer {
	background: var(--bg-2);
	border-top: 1px solid var(--border);
	padding: 40px 0 20px;
	color: var(--text-muted);
	font-size: 13px;
}
.foot {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: start;
}
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }
.foot-copy { margin: 8px 0 0; font-size: 13px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--text-dim); }
.foot-links a:hover { color: var(--accent); }
.foot-bottom {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	text-align: center;
	font-size: 12px;
	color: var(--text-muted);
}
