@font-face {
	font-family: "Lilita One";
	src:
		url("../fonts/LilitaOne-Regular.ttf") format("truetype"),
		local("Lilita One"),
		local("LilitaOne-Regular");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root {
	--bg: #09111c;
	--bg-2: #12253a;
	--line: rgba(125, 211, 252, 0.16);
	--line-strong: rgba(125, 211, 252, 0.24);
	--text: #f8fafc;
	--muted: #94a3b8;
	--panel: rgba(11, 18, 32, 0.74);
	--panel-edge: rgba(255, 255, 255, 0.06);
	--cyan: #35d7ff;
	--amber: #f6b93b;
	--green: #3ddc97;
	--mac-red: #ff5f57;
	--mac-yellow: #febc2e;
	--mac-green: #28c840;
	--display-font: "Lilita One", "Sora", "Segoe UI", sans-serif;
	--body-font: "Sora", "Segoe UI", sans-serif;
	--shadow-soft: 0 24px 60px rgba(2, 6, 23, 0.36);
	--shadow-strong: 0 30px 80px rgba(2, 6, 23, 0.52);
}

html {
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--text);
	font-family: var(--body-font);
	background:
		radial-gradient(circle at 12% 14%, rgba(53, 215, 255, 0.18), transparent 24%),
		radial-gradient(circle at 88% 10%, rgba(61, 220, 151, 0.16), transparent 24%),
		radial-gradient(circle at 18% 92%, rgba(246, 185, 59, 0.18), transparent 32%),
		linear-gradient(155deg, var(--bg) 0%, var(--bg-2) 52%, #0a1730 100%);
	min-height: 100vh;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(circle at 50% 34%, black 34%, transparent 84%);
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(5, 10, 19, 0.12) 0%, rgba(5, 10, 19, 0) 22%, rgba(5, 10, 19, 0.3) 100%);
}

.glow {
	position: fixed;
	width: 340px;
	aspect-ratio: 1;
	border-radius: 50%;
	filter: blur(72px);
	opacity: 0.22;
	z-index: 0;
	animation: float 8s ease-in-out infinite alternate;
}

.glow.a {
	background: var(--cyan);
	top: -92px;
	left: -90px;
}

.glow.b {
	background: var(--amber);
	bottom: -80px;
	right: -86px;
	animation-delay: 1.6s;
}

.shell {
	position: relative;
	z-index: 1;
	width: min(1120px, 92vw);
	padding: 24px 0 48px;
	margin: 0 auto;
}

nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
	padding-inline: 2px;
	opacity: 0;
	animation: enter 520ms ease forwards;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--display-font);
	font-size: clamp(1.1rem, 1.8vw, 1.26rem);
	line-height: 1;
	letter-spacing: 0.01em;
	text-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}

.brand-mark {
	position: relative;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 12px;
	border: 1px solid rgba(125, 211, 252, 0.2);
	background:
		radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 22%),
		linear-gradient(155deg, rgba(8, 18, 34, 0.98), rgba(17, 35, 58, 0.88));
	box-shadow:
		0 14px 30px rgba(2, 6, 23, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		inset 0 -10px 18px rgba(53, 215, 255, 0.08);
	overflow: hidden;
	isolation: isolate;
}

.brand-mark::before {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 10px;
	background: linear-gradient(145deg, rgba(53, 215, 255, 0.98), rgba(61, 220, 151, 0.95) 56%, rgba(246, 185, 59, 0.96));
	clip-path: polygon(50% 8%, 90% 28%, 78% 92%, 22% 92%, 10% 28%);
	opacity: 0.22;
}

.brand-mark::after {
	content: "A";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--display-font);
	font-size: 1.2rem;
	line-height: 1;
	color: #f8fafc;
	text-shadow:
		0 1px 0 rgba(255, 255, 255, 0.2),
		0 8px 18px rgba(53, 215, 255, 0.22);
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid rgba(61, 220, 151, 0.28);
	color: #baf8d8;
	font-family: var(--body-font);
	font-size: 0.79rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: linear-gradient(180deg, rgba(5, 46, 22, 0.42), rgba(5, 46, 22, 0.28));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 8px 24px rgba(5, 46, 22, 0.12);
}

.status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
	animation: pulse 1.8s ease-out infinite;
}

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

.panel {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 28px;
	padding: clamp(22px, 3vw, 36px);
	background:
		linear-gradient(160deg, rgba(15, 23, 42, 0.92), var(--panel)),
		radial-gradient(circle at top right, rgba(53, 215, 255, 0.08), transparent 28%);
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow-soft);
}

.copy {
	overflow: hidden;
	border-color: var(--line-strong);
	box-shadow: var(--shadow-strong);
	opacity: 0;
	animation: enter 650ms ease 120ms forwards;
}

.copy::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 84% 22%, rgba(53, 215, 255, 0.12), transparent 22%),
		radial-gradient(circle at 14% 100%, rgba(246, 185, 59, 0.12), transparent 24%);
	pointer-events: none;
}

.copy::after {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: 27px;
	border: 1px solid var(--panel-edge);
	pointer-events: none;
}

.copy > * {
	position: relative;
	z-index: 1;
}

.window-chrome {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: -8px -6px 30px;
	padding: 0 6px 16px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.window-controls {
	display: inline-flex;
	gap: 8px;
}

.window-title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.76rem;
	letter-spacing: 0.04em;
	color: rgba(191, 219, 254, 0.52);
	text-transform: lowercase;
	white-space: nowrap;
}

.window-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.28),
		0 0 0 1px rgba(15, 23, 42, 0.3);
}

.window-dot.red {
	background: var(--mac-red);
}

.window-dot.yellow {
	background: var(--mac-yellow);
}

.window-dot.green {
	background: var(--mac-green);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 auto 18px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgba(53, 215, 255, 0.3);
	color: #b8f2ff;
	background: rgba(7, 20, 36, 0.42);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	font-family: var(--body-font);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

h1 {
	margin: 0 auto;
	display: grid;
	gap: 12px;
	max-width: none;
	justify-items: center;
	text-align: center;
	text-wrap: balance;
}

.title-line {
	display: block;
	font-family: var(--body-font);
	font-size: clamp(1.02rem, 1.9vw, 1.32rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.18;
	color: #d8e7fb;
}

.brand-name {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 0;
	font-family: var(--display-font);
	font-size: clamp(3.35rem, 7vw, 5.8rem);
	line-height: 0.88;
	letter-spacing: -0.04em;
	white-space: nowrap;
	filter: drop-shadow(0 18px 40px rgba(15, 23, 42, 0.26));
}

.brand-name > * {
	display: inline-block;
}

.accent {
	position: relative;
	display: inline-block;
	background: linear-gradient(120deg, #ffe15c 10%, #f6b93b 45%, #53d9ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 10px 24px rgba(53, 215, 255, 0.14));
}

.at-mark {
	display: inline-block;
	margin-inline: 0;
	font-family: var(--display-font);
	font-size: 0.98em;
	font-weight: 400;
	letter-spacing: 0;
	color: #ffe58d;
	text-shadow:
		0 0 22px rgba(252, 211, 77, 0.28),
		0 1px 0 rgba(255, 255, 255, 0.18);
	transform: translateY(-0.01em);
}

.lead {
	position: relative;
	margin: 26px auto 0;
	max-width: 62ch;
	min-height: 172px;
	padding: 28px 28px 24px;
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 22px;
	background: linear-gradient(150deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28));
	color: #d9e4f4;
	line-height: 1.84;
	font-size: clamp(1rem, 1.6vw, 1.08rem);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 14px 32px rgba(2, 6, 23, 0.18);
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	text-wrap: pretty;
}

.lead-copy {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	transition: opacity 220ms ease, transform 220ms ease;
}

.lead::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 12px;
	width: 84px;
	height: 4px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: linear-gradient(90deg, #fcd34d 0%, #22d3ee 100%);
}

.lead-author {
	display: block;
	margin-top: 14px;
	color: #b8c9dd;
	font-family: var(--display-font);
	font-size: 0.92rem;
	letter-spacing: 0.04em;
	transition: opacity 220ms ease, transform 220ms ease;
}

.lead.is-swapping .lead-copy,
.lead.is-swapping .lead-author {
	opacity: 0;
	transform: translateY(6px);
}

.actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 30px;
	justify-content: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 192px;
	padding: 14px 22px;
	border-radius: 16px;
	border: 1px solid transparent;
	text-decoration: none;
	font-family: var(--body-font);
	font-size: 0.97rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	backdrop-filter: blur(12px);
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease,
		background 180ms ease;
}

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

.btn.primary {
	color: #0f172a;
	background: linear-gradient(135deg, #ffe15c, var(--amber));
	box-shadow:
		0 14px 28px rgba(246, 185, 59, 0.26),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-github {
	gap: 12px;
	padding-inline: 16px 24px;
	color: #f8fafc;
	background: linear-gradient(180deg, #070707, #111111);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow:
		0 14px 28px rgba(2, 6, 23, 0.26),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-github:hover {
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow:
		0 18px 32px rgba(2, 6, 23, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.github-badge {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #ffffff;
	color: #050505;
	box-shadow:
		0 8px 18px rgba(255, 255, 255, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.github-badge-icon {
	width: 1.18rem;
	height: 1.18rem;
}

.btn-website {
	color: #0f172a;
	background: linear-gradient(135deg, #53d9ff 0%, #8bffcf 48%, #ffe15c 100%);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow:
		0 14px 28px rgba(83, 217, 255, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn-website:hover {
	box-shadow:
		0 18px 34px rgba(83, 217, 255, 0.26),
		inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn.secondary {
	color: #e2e8f0;
	background: rgba(15, 23, 42, 0.56);
	border-color: rgba(148, 163, 184, 0.32);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn.secondary:hover {
	border-color: rgba(191, 219, 254, 0.42);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 12px 28px rgba(2, 6, 23, 0.18);
}

.bento {
	margin-top: 32px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.tile {
	position: relative;
	min-height: 150px;
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 20px;
	padding: 18px 16px 16px;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.48));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	opacity: 0;
	transform: translateY(10px);
	animation: reveal 520ms ease forwards;
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		background 180ms ease;
}

.tile::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 0;
	width: 48px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #53d9ff 0%, #22d3ee 100%);
}

.tile::after {
	position: absolute;
	top: 16px;
	right: 16px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: rgba(186, 230, 253, 0.42);
}

.tile:nth-child(1)::after {
	content: "01";
}

.tile:nth-child(2)::after {
	content: "02";
}

.tile:nth-child(3)::after {
	content: "03";
}

.tile:nth-child(4)::after {
	content: "04";
}

.tile:nth-child(2)::before {
	background: linear-gradient(90deg, #34d399 0%, #53d9ff 100%);
}

.tile:nth-child(3)::before {
	background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 100%);
}

.tile:nth-child(4)::before {
	background: linear-gradient(90deg, #93c5fd 0%, #53d9ff 100%);
}

.tile:nth-child(2) {
	animation-delay: 90ms;
}

.tile:nth-child(3) {
	animation-delay: 170ms;
}

.tile:nth-child(4) {
	animation-delay: 240ms;
}

.tile:hover {
	transform: translateY(-4px);
	border-color: rgba(191, 219, 254, 0.28);
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.58));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.03),
		0 18px 34px rgba(2, 6, 23, 0.22);
}

.tile strong {
	display: block;
	margin-bottom: 8px;
	padding-right: 28px;
	font-family: var(--body-font);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tile span {
	color: #a9b9cc;
	font-size: 0.92rem;
	line-height: 1.62;
	text-wrap: pretty;
}

@keyframes pulse {
	70% {
		box-shadow: 0 0 0 10px rgba(61, 220, 151, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(61, 220, 151, 0);
	}
}

@keyframes enter {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes reveal {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes float {
	from {
		transform: translateY(-8px) scale(1);
	}

	to {
		transform: translateY(8px) scale(1.07);
	}
}

@media (max-width: 940px) {
	.bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	nav {
		align-items: center;
		flex-direction: column;
		gap: 14px;
		margin-bottom: 22px;
		text-align: center;
	}

	.brand {
		justify-content: center;
		width: 100%;
	}

	.status {
		align-self: center;
	}

	.panel {
		border-radius: 30px;
	}

	.copy::after {
		border-radius: 29px;
	}

	.window-chrome {
		justify-content: center;
		margin: -2px 0 22px;
		padding: 10px 0 0;
		border-bottom: none;
	}

	.window-chrome::before {
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		width: 72px;
		height: 4px;
		transform: translateX(-50%);
		border-radius: 999px;
		background: rgba(191, 219, 254, 0.24);
	}

	.window-controls {
		display: none;
	}

	.window-title {
		position: static;
		display: inline-block;
		transform: none;
		font-size: 0.72rem;
		color: rgba(191, 219, 254, 0.66);
	}

	.eyebrow {
		margin-bottom: 16px;
		font-size: 0.72rem;
		letter-spacing: 0.14em;
	}

	h1 {
		gap: 8px;
	}

	.title-line {
		font-size: 0.98rem;
	}

	.brand-name {
		font-size: clamp(2.95rem, 13.5vw, 4.35rem);
		line-height: 0.9;
	}

	.lead {
		max-width: none;
		margin-top: 22px;
		min-height: 164px;
		padding: 24px 18px 18px;
		text-align: left;
		line-height: 1.72;
	}

	.lead-copy {
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}

	.lead::before {
		left: 18px;
		top: 14px;
		width: 58px;
		transform: none;
	}

	.actions {
		gap: 12px;
		margin-top: 20px;
	}

	.btn {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		padding: 15px 18px;
		border-radius: 18px;
	}

	.bento {
		grid-template-columns: 1fr;
		margin-top: 26px;
		gap: 12px;
	}

	.tile {
		min-height: 0;
		padding: 18px 18px 18px 22px;
		border-radius: 20px;
	}

	.tile::before {
		left: 0;
		top: 18px;
		width: 4px;
		height: 42px;
	}

	.tile::after {
		display: grid;
		place-items: center;
		width: 34px;
		height: 34px;
		border-radius: 50%;
		background: rgba(15, 23, 42, 0.58);
		border: 1px solid rgba(148, 163, 184, 0.14);
	}

	.tile strong {
		margin-bottom: 6px;
		padding-right: 44px;
	}
}

@media (max-width: 560px) {
	.shell {
		width: 100%;
		padding: 16px 12px 34px;
	}

	.panel {
		border-radius: 28px;
		padding: 18px 16px;
	}

	.copy::after {
		border-radius: 27px;
	}

	.brand {
		font-size: 0.98rem;
		gap: 10px;
	}

	.brand-mark {
		width: 30px;
		height: 30px;
	}

	.brand-name {
		font-size: clamp(2.45rem, 14vw, 3.55rem);
	}

	.title-line {
		font-size: 0.94rem;
	}

	.lead {
		min-height: 156px;
		padding: 22px 16px 18px;
		font-size: 0.96rem;
	}

	.lead::before {
		left: 16px;
		width: 52px;
	}

	.tile {
		padding: 17px 16px 16px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
