/* nerdpowered.tech — dark maker/tech theme */

:root {
	color-scheme: dark;

	--bg: #0b0d10;
	--surface: #12161b;
	--surface-2: #181d24;
	--border: #242b35;
	--text: #e9eef3;
	--muted: #97a4b2;
	--accent: #ffc53d;
	--accent-ink: #1a1300;
	--accent-2: #4fd8ff;
	--danger: #ff5a3c;

	--radius: 14px;
	--radius-lg: 22px;
	--max: 1160px;
	--gutter: clamp(16px, 4vw, 40px);

	--font-display: "Space Grotesk", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent-2);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--text);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.wrap {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 8px;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 8px 14px;
	border-radius: 8px;
	z-index: 10;
}

.skip-link:focus {
	left: 8px;
}

/* ---------- header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(11, 13, 16, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	text-decoration: none;
	font: 700 19px/1 var(--font-display);
	letter-spacing: -0.01em;
}

.brand img {
	width: 30px;
	height: 30px;
	flex: none;
}

.brand .wordmark span {
	color: var(--accent);
}

.site-nav {
	display: flex;
	gap: clamp(12px, 3vw, 28px);
	font-size: 15px;
}

.site-nav a {
	color: var(--muted);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--text);
}

@media (max-width: 560px) {
	.site-nav .nav-optional {
		display: none;
	}
}

/* ---------- type ---------- */
h1,
h2,
h3 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
}

h1 {
	font-size: clamp(38px, 6.4vw, 72px);
	font-weight: 700;
}

h2 {
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 700;
}

h3 {
	font-size: 21px;
	font-weight: 600;
}

.eyebrow {
	display: inline-block;
	font: 500 13px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 16px;
}

.lede {
	font-size: clamp(18px, 2vw, 21px);
	color: var(--muted);
	max-width: 62ch;
	margin: 20px 0 0;
}

.accent {
	color: var(--accent);
}

/* ---------- buttons ---------- */
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 22px;
	border-radius: 999px;
	font: 600 16px/1.25 var(--font-display);
	text-align: center;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

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

.btn-primary:hover {
	color: var(--accent-ink);
	background: #ffd46a;
}

.btn-ghost {
	color: var(--text);
	border-color: var(--border);
	background: var(--surface);
}

.btn-ghost:hover {
	border-color: #3a4452;
	color: var(--text);
}

.btn[aria-disabled="true"] {
	background: var(--surface-2);
	color: var(--muted);
	border-color: var(--border);
	cursor: default;
	transform: none;
}

.btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}

/* ---------- sections ---------- */
section {
	padding: clamp(56px, 9vw, 104px) 0;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 36px;
}

.section-head p {
	color: var(--muted);
	margin: 0;
	max-width: 52ch;
}

/* ---------- hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(64px, 10vw, 120px);
}

.hero::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto auto;
	width: 70vw;
	height: 70vw;
	max-width: 900px;
	max-height: 900px;
	background: radial-gradient(closest-side, rgba(255, 197, 61, 0.16), transparent 70%);
	pointer-events: none;
}

.hero .wrap {
	position: relative;
}

/* ---------- featured product ---------- */
.featured {
	padding-top: 0;
}

.feature-card {
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.feature-card .copy {
	padding: clamp(24px, 4vw, 44px);
	display: grid;
	gap: 12px 40px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.feature-card .copy {
		grid-template-columns: 1.3fr 1fr;
		align-items: end;
	}
}

.feature-card p {
	color: var(--muted);
	margin: 12px 0 0;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.chips li {
	font: 500 13px/1 var(--font-mono);
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 8px 12px;
}

.shot {
	background: #000;
	border-top: 1px solid var(--border);
}

.shot img {
	width: 100%;
	height: auto;
}

/* ---------- project grid ---------- */
.grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
	border-color: #3a4452;
	transform: translateY(-2px);
	color: var(--text);
}

.card .tag {
	font: 500 12px/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-2);
}

.card.product .tag {
	color: var(--accent);
}

.card p {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
}

.card .more {
	margin-top: auto;
	padding-top: 8px;
	font: 600 15px/1 var(--font-display);
	color: var(--text);
}

.card .more::after {
	content: " →";
	color: var(--accent);
}

/* ---------- product page ---------- */
.product-hero {
	padding-bottom: 40px;
}

.product-hero .meta {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.frame {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #000;
}

.features {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.feature {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
}

.feature .icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: rgba(255, 197, 61, 0.12);
	color: var(--accent);
	margin-bottom: 14px;
}

.feature .icon svg {
	width: 22px;
	height: 22px;
}

.feature.alert .icon {
	background: rgba(255, 90, 60, 0.14);
	color: var(--danger);
}

.feature p {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 16px;
}

.gallery {
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.gallery {
		grid-template-columns: 1fr 220px;
		align-items: start;
	}

	.gallery .wide {
		display: grid;
		gap: 18px;
	}
}

figure {
	margin: 0;
}

figcaption {
	margin-top: 10px;
	color: var(--muted);
	font-size: 14px;
}

.gallery .tall img {
	max-height: 760px;
	width: auto;
	margin: 0 auto;
}

.specs {
	display: grid;
	gap: 18px 48px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.specs {
		grid-template-columns: 1fr 1fr;
	}
}

.specs ul {
	margin: 16px 0 0;
	padding-left: 20px;
	color: var(--muted);
}

.specs li + li {
	margin-top: 8px;
}

.specs strong {
	color: var(--text);
	font-weight: 600;
}

.cta-band {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: clamp(28px, 5vw, 56px);
	text-align: center;
}

.cta-band .actions {
	justify-content: center;
}

/* ---------- footer ---------- */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 36px 0 48px;
	color: var(--muted);
	font-size: 14px;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 32px;
}

.site-footer p {
	margin: 0;
	max-width: 70ch;
}

.site-footer a {
	color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.btn,
	.card {
		transition: none;
	}
}
