/* APRStac Website — Design System
   Matches the application's dark theme with teal accents.
   Fonts: IBM Plex Sans (UI), IBM Plex Mono (data/code). */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: 'IBM Plex Sans', sans-serif;
	background-color: #080b10;
	color: #cdd5de;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: #5a9e9e; text-decoration: none; transition: color 0.15s; }
a:hover { color: #7ec4c4; }
img { max-width: 100%; display: block; }

/* ── Variables ─────────────────────────────────────────────────────── */

:root {
	--base-950: #080b10;
	--base-900: #0d1117;
	--base-850: #111720;
	--base-800: #161d27;
	--base-750: #1a2332;
	--base-700: #1e2a3a;
	--base-600: #2a3a4e;
	--base-500: #3d4f63;
	--base-400: #5a6b7d;
	--base-300: #8494a7;
	--base-200: #aab8c7;
	--base-100: #cdd5de;
	--base-50: #e8ecf0;
	--accent: #4a7c7c;
	--accent-bright: #5a9e9e;
	--accent-dim: #3a6262;
	--accent-subtle: rgba(74, 124, 124, 0.12);
	--font-mono: 'IBM Plex Mono', monospace;
}

/* ── Layout ────────────────────────────────────────────────────────── */

.container { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.section { padding: 56px 0; }
.section-sm { padding: 24px 0; }

/* ── Navigation ────────────────────────────────────────────────────── */

.nav {
	position: sticky; top: 0; z-index: 100;
	background: rgba(8, 11, 16, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--base-750);
}
.nav .container {
	display: flex; align-items: center; justify-content: space-between;
	height: 60px;
}
.nav-brand {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--font-mono); font-weight: 700; font-size: 18px;
	color: var(--base-50); text-decoration: none;
}
.nav-brand svg { color: var(--accent-bright); }
.nav-brand small { font-size: 11px; color: var(--base-500); font-weight: 600; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
	font-size: 14px; font-weight: 600; color: var(--base-300);
	text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--base-50); }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
	padding: 60px 0 32px;
	text-align: center;
	background: linear-gradient(180deg, rgba(74,124,124,0.08) 0%, transparent 60%);
}
.hero h1 {
	font-family: var(--font-mono); font-size: 48px; font-weight: 700;
	color: var(--base-50); margin-bottom: 8px; letter-spacing: -0.02em;
}
.hero .subtitle {
	font-size: 13px; color: var(--base-400); letter-spacing: 0.08em;
	text-transform: uppercase; font-weight: 600; margin-bottom: 20px;
}
.hero p {
	font-size: 18px; color: var(--base-300); max-width: 640px;
	margin: 0 auto 20px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 28px; border-radius: 6px;
	font-size: 14px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.04em; transition: all 0.15s; border: none; cursor: pointer;
	text-decoration: none;
}
.btn-primary {
	background: var(--accent-dim); color: var(--base-50);
	border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 0 20px rgba(74,124,124,0.25); color: #fff; }
.btn-secondary {
	background: transparent; color: var(--base-200);
	border: 1px solid var(--base-600);
}
.btn-secondary:hover { border-color: var(--base-400); color: var(--base-50); }

/* ── Showcase Banner ───────────────────────────────────────────────── */

.showcase {
	margin: 0 auto; max-width: 1200px;
	border-radius: 12px; overflow: hidden;
	border: 1px solid var(--base-700);
	box-shadow: 0 8px 40px rgba(0,0,0,0.5);
	background: var(--base-900);
	aspect-ratio: 16/9;
	display: flex; align-items: center; justify-content: center;
	color: var(--base-500); font-size: 14px;
}
.showcase img { width: 100%; height: 100%; object-fit: cover; }

/* ── Features Grid ─────────────────────────────────────────────────── */

.features-heading {
	text-align: center; margin-bottom: 48px;
}
.features-heading h2 {
	font-family: var(--font-mono); font-size: 28px; font-weight: 700;
	color: var(--base-50); margin-bottom: 8px;
}
.features-heading p { font-size: 16px; color: var(--base-400); }

.features-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}
.feature-card {
	padding: 28px; border-radius: 8px;
	background: var(--base-900); border: 1px solid var(--base-750);
	transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent-dim); }
.feature-card h3 {
	font-size: 16px; font-weight: 700; color: var(--base-100);
	margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.feature-card h3 .icon {
	width: 20px; height: 20px; color: var(--accent-bright); flex-shrink: 0;
}
.feature-card p { font-size: 14px; color: var(--base-400); line-height: 1.6; }

/* ── Platform Bar ──────────────────────────────────────────────────── */

.platform-bar {
	display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
	padding: 32px 0;
}
.platform-badge {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 24px; border-radius: 6px;
	background: var(--base-900); border: 1px solid var(--base-750);
	font-size: 14px; font-weight: 600; color: var(--base-200);
}
.platform-badge svg { color: var(--accent-bright); flex-shrink: 0; }

/* ── Features Grid (large cards, 3 across) ─────────────────────────── */

.features-grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.feature-card {
	padding: 32px; border-radius: 10px;
	background: var(--base-850); border: 1px solid var(--base-750);
	transition: border-color 0.2s, transform 0.15s;
}
.feature-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.feature-card .icon {
	width: 32px; height: 32px; color: var(--accent-bright);
	margin-bottom: 16px;
}
.feature-card h3 {
	font-size: 18px; font-weight: 700; color: var(--base-50);
	margin-bottom: 10px;
}
.feature-card p {
	font-size: 15px; color: var(--base-400); line-height: 1.7;
}

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

/* ── Documentation ─────────────────────────────────────────────────── */

.docs-layout { display: flex; gap: 40px; align-items: flex-start; }
.docs-sidebar {
	width: 220px; flex-shrink: 0; position: sticky; top: 80px;
}
.docs-sidebar ul { list-style: none; }
.docs-sidebar a {
	display: block; padding: 10px 18px; font-size: 17px; font-weight: 600;
	color: var(--base-400); border-left: 2px solid transparent;
	transition: all 0.15s;
}
.docs-sidebar a:hover, .docs-sidebar a.active {
	color: var(--base-50); border-color: var(--accent-bright);
	background: var(--accent-subtle);
}
.docs-content { flex: 1; min-width: 0; }
.docs-content h2 {
	font-family: var(--font-mono); font-size: 28px; font-weight: 700;
	color: var(--base-50); margin-bottom: 20px; padding-top: 32px;
	border-top: 1px solid var(--base-750);
}
.docs-content h2:first-child { border-top: none; padding-top: 0; }
.docs-content h3 {
	font-size: 20px; font-weight: 700; color: var(--base-200);
	margin: 28px 0 10px;
}
.docs-content p { margin-bottom: 18px; font-size: 17px; color: var(--base-300); line-height: 1.7; }
.docs-content ul { margin-bottom: 18px; padding-left: 24px; }
.docs-content li {
	font-size: 17px; color: var(--base-300); margin-bottom: 8px; line-height: 1.6;
}
.docs-content code {
	font-family: var(--font-mono); font-size: 15px;
	background: var(--base-800); color: var(--accent-bright);
	padding: 2px 6px; border-radius: 3px;
}
.docs-content pre {
	background: var(--base-900); border: 1px solid var(--base-750);
	border-radius: 6px; padding: 16px 20px; margin-bottom: 18px;
	overflow-x: auto;
}
.docs-content pre code {
	background: none; padding: 0; font-size: 14px; color: var(--base-200);
}
.info-box {
	background: var(--accent-subtle); border: 1px solid var(--accent-dim);
	border-radius: 6px; padding: 16px 20px; margin-bottom: 16px;
	font-size: 14px; color: var(--base-200);
}

/* ── Downloads ─────────────────────────────────────────────────────── */

.downloads-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px; margin-top: 40px;
}
.download-card {
	padding: 32px; border-radius: 8px; text-align: center;
	background: var(--base-900); border: 1px solid var(--base-750);
	transition: border-color 0.2s;
}
.download-card:hover { border-color: var(--accent-dim); }
.download-card .platform {
	font-family: var(--font-mono); font-size: 20px; font-weight: 700;
	color: var(--base-50); margin-bottom: 4px;
}
.download-card .arch {
	font-size: 12px; color: var(--base-500); margin-bottom: 16px;
	text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.download-card .filename {
	font-family: var(--font-mono); font-size: 13px; color: var(--base-400);
	margin-top: 12px;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.footer {
	padding: 40px 0; text-align: center;
	border-top: 1px solid var(--base-750);
}
.footer p { font-size: 13px; color: var(--base-500); }
.footer a { color: var(--accent-bright); }

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.hero h1 { font-size: 32px; }
	.hero p { font-size: 16px; }
	.nav-links { gap: 20px; }
	.nav-links a { font-size: 12px; }
	.docs-layout { flex-direction: column; }
	.docs-sidebar { width: 100%; position: static; }
	.arch-bar { gap: 24px; }
}
