:root {
	--bg: #0c0d10;
	--bg-elev: #14151b;
	--border: #252732;
	--text: #e8e9ed;
	--muted: #8b8fa3;
	--accent: #6ea8fe;
	--accent-dim: #4b7dd6;
	--danger: #f07178;
	--radius: 12px;
	--font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	background: radial-gradient(1200px 600px at 20% -10%, #1a2238 0%, var(--bg) 55%);
	color: var(--text);
	line-height: 1.5;
}

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

.wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

header.site {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0 2rem;
	border-bottom: 1px solid var(--border);
}

.brand {
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}
.brand span {
	color: var(--accent);
}

.hero {
	padding: 3.5rem 0 2rem;
}
.hero h1 {
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
}
.hero p.lead {
	font-size: 1.125rem;
	color: var(--muted);
	max-width: 42ch;
	margin: 0 0 2rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active {
	transform: translateY(1px);
}
.btn-primary {
	background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
	color: #0a0b0e;
	border-color: #2c3f66;
}
.btn-primary:hover {
	filter: brightness(1.05);
}
.btn-ghost {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}
.btn-ghost:hover {
	border-color: var(--muted);
	background: var(--bg-elev);
}

.panel {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	margin-top: 2rem;
}

label {
	display: block;
	font-size: 0.875rem;
	color: var(--muted);
	margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"],
input[type="file"] {
	width: 100%;
	max-width: 420px;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	font-size: 1rem;
}
input:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
}

.form-row {
	margin-bottom: 1rem;
}

.flash {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}
.flash-error {
	background: rgba(240, 113, 120, 0.12);
	border: 1px solid rgba(240, 113, 120, 0.35);
	color: #ffb4b9;
}
.flash-ok {
	background: rgba(110, 168, 254, 0.12);
	border: 1px solid rgba(110, 168, 254, 0.35);
	color: #b8d4ff;
}

table.files {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
	font-size: 0.9375rem;
}
table.files th,
table.files td {
	text-align: left;
	padding: 0.65rem 0.5rem;
	border-bottom: 1px solid var(--border);
}
table.files th {
	color: var(--muted);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.meta {
	color: var(--muted);
	font-size: 0.875rem;
}

.upload-box {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

footer.site {
	margin-top: 4rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.8125rem;
}

.features {
	display: grid;
	gap: 1rem;
	margin-top: 2.5rem;
}
@media (min-width: 640px) {
	.features {
		grid-template-columns: repeat(3, 1fr);
	}
}
.feature {
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
}
.feature h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}
.feature p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
}
