:root {
	--bg-base: #0b1017;
	--bg-panel: #121b26;
	--bg-panel-strong: #172333;
	--line: #243244;
	--line-soft: #1a2736;
	--text-main: #e8f1ff;
	--text-muted: #92a3b7;
	--accent: #b8ff6e;
	--accent-strong: #9be14f;
	--accent-ink: #0d1607;
	--alt: #53f6ff;
	--radius: 20px;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	/*height: 100%;*/
}

main {
  	flex: 1;
}

body {
	font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
	color: var(--text-main);
	background: radial-gradient(1200px 500px at 80% -10%, #17456b 0%, transparent 55%),
		radial-gradient(900px 350px at -10% 20%, #2e2f55 0%, transparent 58%),
		var(--bg-base);
	min-height: 100vh;
	line-height: 1.45;

	display: flex;
  	flex-direction: column;
  	min-height: 100vh;
}

.page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.shell {
	width: min(1080px, calc(100% - 2.4rem));
	margin: 0 auto;
}

.topbar {
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(10px);
	background: color-mix(in srgb, var(--bg-base) 70%, transparent);
	border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	color: var(--text-main);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: lowercase;
	font-size: 1.15rem;
}

.top-links {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.ghost-link {
	color: var(--text-muted);
	text-decoration: none;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	transition: color 180ms ease, background-color 180ms ease;
}

.ghost-link:hover {
	color: var(--text-main);
	background: rgba(255, 255, 255, 0.06);
}

.button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	padding: 0.72rem 1rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-solid {
	background: linear-gradient(90deg, var(--accent), var(--alt));
	color: var(--accent-ink);
	box-shadow: 0 8px 30px rgba(83, 246, 255, 0.18);
}

.button-solid:hover {
	box-shadow: 0 12px 36px rgba(83, 246, 255, 0.26);
}

.button-outline {
	border-color: var(--line);
	background: rgba(9, 15, 24, 0.4);
	color: var(--text-main);
}

.button-outline:hover {
	background: rgba(18, 27, 38, 0.9);
}

.button-block {
	width: 100%;
}

.hero {
	padding: clamp(2.3rem, 8vw, 5.6rem) 0 clamp(2rem, 7vw, 4.2rem);
	display: grid;
	gap: 1.4rem;
	grid-template-columns: 1.45fr 1fr;
	align-items: stretch;
}

.hero-minimal {
	grid-template-columns: 1fr;
	max-width: 760px;
	margin-inline: auto;
}

.hero-copy,
.hero-panel,
.auth-card {
	background: linear-gradient(150deg, rgba(18, 27, 38, 0.95), rgba(12, 18, 27, 0.95));
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.hero-copy {
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.03;
	margin: 0.6rem 0;
	max-width: 16ch;
}

.hero-lead {
	margin: 0;
	color: var(--text-muted);
	max-width: 48ch;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.5rem;
}

.hero-note {
	margin: 1.2rem 0 0;
	color: var(--text-muted);
	font-size: 0.83rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-family: "IBM Plex Mono", "Consolas", monospace;
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--alt);
}

.hero-panel {
	padding: 1.35rem;
	display: grid;
	grid-template-rows: auto auto auto 1fr;
	gap: 0.75rem;
}

.panel-label {
	margin: 0;
	font-family: "IBM Plex Mono", "Consolas", monospace;
	font-size: 0.73rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.panel-title {
	margin: 0;
	font-size: 1.42rem;
	font-weight: 600;
}

.panel-list {
	margin: 0;
	padding-left: 1rem;
	color: var(--text-muted);
	display: grid;
	gap: 0.45rem;
}

.panel-note {
	margin: 0;
	padding-top: 0.7rem;
	border-top: 1px solid var(--line-soft);
	color: var(--text-muted);
}

.auth-wrap {
	padding: clamp(2rem, 7vw, 4.6rem) 0;
	display: grid;
	place-items: center;
	flex: 1;
}

.auth-card {
	width: min(520px, 100%);
	padding: clamp(1.35rem, 5vw, 2rem);
}

.auth-title {
	margin: 0.6rem 0 0;
	font-size: clamp(1.8rem, 4vw, 2.45rem);
	line-height: 1.08;
}

.auth-copy {
	margin: 0.55rem 0 1.2rem;
	color: var(--text-muted);
}

.auth-form {
	display: grid;
	gap: 0.92rem;
}

.field {
	display: grid;
	gap: 0.35rem;
}

.field span {
	font-size: 0.92rem;
	color: var(--text-muted);
}

.field input {
	width: 100%;
	padding: 0.78rem 0.86rem;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--bg-panel-strong);
	color: var(--text-main);
	font-size: 1rem;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
	border-color: var(--alt);
	box-shadow: 0 0 0 3px rgba(83, 246, 255, 0.22);
}

.auth-meta {
	margin: 1.05rem 0 0;
	color: var(--text-muted);
	font-size: 0.93rem;
}

.auth-meta a {
	color: var(--alt);
	text-decoration: none;
}

.auth-meta a:hover {
	text-decoration: underline;
}

.alert {
	display: none;
	margin: 0 0 1rem;
	padding: 0.74rem 0.82rem;
	border-radius: 12px;
	border: 1px solid #784f57;
	background: #2a181d;
	color: #ffbcc8;
	font-size: 0.93rem;
}

.alert.is-visible {
	display: block;
}

.footer {
	padding: 0.6rem 0 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.mono {
	font-family: "IBM Plex Mono", "Consolas", monospace;
}

.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 430ms ease, transform 430ms ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 940px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-title {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.shell {
		width: min(1080px, calc(100% - 1.4rem));
	}

	.topbar {
		padding: 0.7rem 0;
	}

	.topbar-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.top-links {
		justify-content: space-between;
	}

	.hero-cta {
		flex-direction: column;
	}

	.footer {
		flex-direction: column;
		align-items: flex-start;
	}
}
