@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/assets/fonts/montserrat-400.woff2') format('woff2');
}

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/assets/fonts/montserrat-600.woff2') format('woff2');
}

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
}

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

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body {
	min-height: 100dvh;
	font-family: Montserrat, Arial, sans-serif;
	background: #111827;
	color: #fff;
	-webkit-font-smoothing: antialiased;
}

.hero {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom right, rgb(17 24 39 / 0.70), rgb(17 24 39 / 0.50), rgb(17 24 39 / 0.70));
}

.shell {
	position: relative;
	z-index: 1;
	min-height: 100dvh;
	display: flex;
	align-items: safe center;
	justify-content: center;
	padding: 1rem;
}

.card {
	width: 100%;
	max-width: 32rem;
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid rgb(255 255 255 / 0.20);
	background: rgb(255 255 255 / 0.10);
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

.card--wide {
	max-width: 42rem;
}

.logo {
	display: inline-block;
	margin-bottom: 2rem;
}

.logo img {
	display: block;
	height: 2.5rem;
	width: auto;
}

.icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 1.5rem;
	border-radius: 9999px;
}

.icon svg {
	width: 1.75rem;
	height: 1.75rem;
}

.theme-danger .icon {
	background: rgb(244 106 106 / 0.20);
	color: #fda8a8;
}

.theme-warning .icon {
	background: rgb(241 180 76 / 0.20);
	color: #fcd06a;
}

.theme-info .icon {
	background: rgb(66 133 244 / 0.20);
	color: #5eaaff;
}

.code {
	margin: 0 0 1rem;
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #fff;
}

h1 {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.33;
	color: rgb(255 255 255 / 0.90);
}

.lead {
	margin: 0 0 2rem;
	font-size: 1rem;
	line-height: 1.5;
	color: rgb(255 255 255 / 0.70);
}

.lead:last-child {
	margin-bottom: 0;
}

.note {
	margin: 1rem 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: rgb(255 255 255 / 0.50);
}

a {
	color: #5eaaff;
	text-decoration: none;
	transition: color 180ms ease-out;
}

a:hover {
	color: #84c5ff;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	text-decoration: none;
	transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.btn-primary {
	background: rgb(66 133 244 / 0.90);
	color: #fff;
}

.btn-primary:hover {
	background: #4285f4;
	color: #fff;
}

.btn-secondary {
	background: rgb(255 255 255 / 0.10);
	border-color: rgb(255 255 255 / 0.20);
	color: #fff;
}

.btn-secondary:hover {
	background: rgb(255 255 255 / 0.20);
	color: #fff;
}

.trace {
	margin: 0 0 2rem;
	padding: 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid rgb(255 255 255 / 0.10);
	background: rgb(255 255 255 / 0.05);
	color: rgb(255 255 255 / 0.70);
	font-size: 0.875rem;
	line-height: 1.5;
	overflow-x: auto;
}

.trace:empty {
	display: none;
}

.trace a {
	color: #5eaaff;
}

.footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 0.20);
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.50);
}

.ray {
	font-variant-numeric: tabular-nums;
	word-break: break-all;
}

@media (min-width: 768px) {
	.card {
		padding: 3rem;
	}

	.code {
		font-size: 2.25rem;
	}
}

@media (max-width: 768px) {
	.card {
		background: rgb(17 24 39 / 0.60);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
	}

	.logo {
		display: flex;
		justify-content: center;
		margin-bottom: 1.5rem;
	}

	.icon,
	.code,
	h1,
	.lead {
		text-align: center;
	}

	.icon {
		margin-left: auto;
		margin-right: auto;
	}

	.actions {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

	.footer {
		flex-direction: column;
		text-align: center;
	}
}
