@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap");

:root {
	color-scheme: dark;
	--bg: #0b0d0c;
	--bg-2: #111310;
	--line: #20241d;
	--fg: #f7f5ef;
	--muted: #94958b;
	--dim: #6d6e66;
	--gold: #f3b33d;
	--gold-ink: #1a1203;
	--accent: #f3b33d;
	--border: #20241d;
	--danger: #ff9a8f;
	--radius: 14px;
	--space: 1rem;
	--font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: -20vh -20vw auto;
	height: 70vh;
	background: radial-gradient(ellipse at 70% 20%, rgba(243, 179, 61, 0.12), transparent 60%);
	pointer-events: none;
	z-index: 0;
}

a { color: inherit; text-decoration: none; }

.page {
	position: relative;
	z-index: 1;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Nav */
.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 0;
}

.brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }

.brand-logo {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
	background: #000;
	border: 1px solid var(--line);
}

.brand-name { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }

.brand-sub {
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav-link {
	font-size: 0.9rem;
	font-weight: 500;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--fg);
	background: var(--bg-2);
	white-space: nowrap;
	transition: border-color 0.2s;
}
.nav-link:hover { border-color: #3a3f33; }

/* Hero */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	padding: 3rem 0 4rem;
	align-items: center;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-2);
	font-size: 0.78rem;
	color: var(--muted);
	max-width: 100%;
}

.dot {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 4px rgba(243, 179, 61, 0.15);
}

h1 {
	margin: 1.4rem 0 1.1rem;
	font-size: clamp(2.6rem, 9vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 700;
}

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

.lede {
	margin: 0;
	max-width: 32rem;
	font-size: 1.08rem;
	color: var(--muted);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn-gold, .btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.95rem 1.4rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: 1rem;
	transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-gold {
	background: var(--gold);
	color: var(--gold-ink);
	box-shadow: 0 10px 30px -10px rgba(243, 179, 61, 0.55);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(243, 179, 61, 0.7); }

.btn-ghost { border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); }
.btn-ghost:hover { border-color: #3a3f33; }

.fine { margin: 1rem 0 0; font-size: 0.85rem; color: var(--dim); }

/* Mockup */
.mock {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: linear-gradient(180deg, #151813, #0e100d);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
	overflow: hidden;
}

.mock-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--line);
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2e26; }
.mock-bar em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: var(--dim); }

.mock-body { padding: 1.25rem; display: grid; gap: 1.1rem; }

.mock-logo {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: #000;
	border-radius: 12px;
	border: 1px solid var(--line);
}

.mock-rows { display: grid; gap: 0.55rem; }

.mock-row {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.015);
}
.mock-row > div { display: grid; min-width: 0; flex: 1; }
.mock-row strong { font-size: 0.9rem; font-weight: 600; }
.mock-row small { font-size: 0.75rem; color: var(--dim); }
.mock-row b {
	font-size: 0.78rem;
	padding: 0.3rem 0.7rem;
	border-radius: 8px;
	background: var(--gold);
	color: var(--gold-ink);
}
.mock-row.is-active { border-color: rgba(243, 179, 61, 0.35); background: rgba(243, 179, 61, 0.05); }

.mock-cube, .mock-plus {
	width: 32px;
	height: 32px;
	flex: none;
	border-radius: 8px;
	display: grid;
	place-items: center;
	font-style: normal;
	color: var(--muted);
	background: #1a1d17;
}
.mock-cube { background: linear-gradient(135deg, #6fbf3f 0 50%, #4a8a2a 50%); }

/* Features */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: 1rem;
	padding-bottom: 4rem;
}

.feature {
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
}
.feature-icon { color: var(--gold); }
.feature h3 { margin: 0.9rem 0 0.35rem; font-size: 1.05rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Panel */
.panel {
	max-width: 44rem;
	margin: 0 auto 4rem;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--bg-2);
	scroll-margin-top: 1rem;
}

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.panel h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; font-weight: 600; }

.tag {
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
}

.panel-text { margin: 0.8rem 0 1.25rem; color: var(--muted); }

.copy {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.4rem 0.4rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
}

.copy-text {
	flex: 1;
	min-width: 0;
	font-family: var(--mono);
	font-size: 0.85rem;
	color: var(--fg);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.copy-btn {
	flex: none;
	padding: 0.55rem 1rem;
	border: 0;
	border-radius: 9px;
	background: var(--line);
	color: var(--gold);
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.2s;
}
.copy-btn:hover { background: #2a2f26; }
.copy-btn.is-done { background: var(--gold); color: var(--gold-ink); }

.steps { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; display: grid; gap: 0.75rem; }
.steps li { display: flex; gap: 0.85rem; align-items: baseline; color: var(--muted); }
.steps b { color: var(--fg); font-weight: 600; }
.step-n { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); flex: none; }

.btn-wide { width: 100%; }

/* Footer */
.foot {
	display: grid;
	gap: 1.25rem;
	padding: 2rem 0 3rem;
	border-top: 1px solid var(--line);
	color: var(--dim);
	font-size: 0.85rem;
}
.foot p { margin: 0; max-width: 40rem; }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-weight: 500; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; background: #000; }

@media (max-width: 30rem) {
	.brand-sub { display: none; }
	.cta-row > a { width: 100%; }
	.panel { padding: 1.25rem; }
}

@media (min-width: 60rem) {
	.page { padding: 0 2rem; }
	.hero { grid-template-columns: 1.1fr 0.9fr; padding: 5rem 0 6rem; }
	.foot { grid-template-columns: 1fr auto; align-items: center; }
}

/* Seeded primitives */
.empty { padding: 2rem; text-align: center; color: var(--muted); }
.empty-title { margin: 0 0 0.25rem; color: var(--fg); font-weight: 600; }
.loading { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.5rem; color: var(--muted); }
.spinner {
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: fab-spin 0.7s linear infinite;
}
@keyframes fab-spin { to { transform: rotate(360deg); } }
.skeleton { display: block; height: 1rem; border-radius: 6px; background: var(--border); }
.alert { padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-left: 3px solid var(--muted); border-radius: var(--radius); }
.alert-error { border-left-color: var(--danger); color: var(--danger); }
.badge { display: inline-block; padding: 0.1rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.spinner { animation: none; }
	.btn-gold, .btn-ghost { transition: none; }
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
