:root {
	color-scheme: dark;
	--bg: #07070b;
	--text: #f4f3f8;
	--muted: #888791;
	--line: rgba(255, 255, 255, 0.075);
	--violet: #a98cff;
	--cyan: #78ddec;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
	width: 100%;
	height: 100%;
}

body {
	height: 100vh;
	margin: 0;
	overflow: hidden;
	color: var(--text);
	background:
		radial-gradient(circle at 15% 22%, rgba(169, 140, 255, 0.055), transparent 27%),
		radial-gradient(circle at 84% 55%, rgba(120, 221, 236, 0.04), transparent 29%),
		linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		var(--bg);
	background-size: auto, auto, 68px 68px, 68px 68px, auto;
}

.mave-page {
	width: min(100% - 56px, 1180px);
	height: 100vh;
	margin: 0 auto;
	display: grid;
	grid-template-rows: 72px minmax(0, 1fr) 54px;
}

.mave-header {
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-bottom: 1px solid var(--line);
}

.mave-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.mave-brand-mark {
	width: 52px;
	height: 52px;
	display: block;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: contain;
}

.mave-wordmark {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
}

.mave-security {
	padding: 8px 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: #898892;
	background: rgba(255, 255, 255, 0.02);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 8px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mave-security-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cyan);
	box-shadow: 0 0 12px rgba(120, 221, 236, 0.78);
}

.mave-content {
	min-height: 0;
	padding: clamp(24px, 4vh, 48px) 0;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
	align-items: center;
	gap: clamp(48px, 7vw, 96px);
}

.mave-intro {
	max-width: 660px;
}

h1 {
	max-width: 680px;
	margin: 0;
	font-size: clamp(54px, min(6.6vw, 10vh), 94px);
	font-weight: 500;
	letter-spacing: -0.068em;
	line-height: 1.02;
}

h1 span {
	display: inline-block;
	margin-top: 0.08em;
	color: #777680;
}

.mave-description {
	max-width: 580px;
	margin: 32px 0 0;
	color: #92919a;
	font-size: 16px;
	line-height: 1.8;
}

.mave-signin {
	max-width: 420px;
	margin-top: 32px;
}

.mave-google-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 44px;
	padding: 0 20px;
	border: 1px solid #dadce0;
	border-radius: 999px;
	background: #ffffff;
	color: #3c4043;
	font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.25px;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	filter: drop-shadow(0 12px 28px rgba(75, 110, 255, 0.14));
}

.mave-google-button:hover:not(:disabled) {
	background: #f7f8f8;
	border-color: #d2e3fc;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.mave-google-button:focus-visible {
	outline: 2px solid #4b6eff;
	outline-offset: 2px;
}

.mave-google-button:disabled {
	cursor: default;
	opacity: 0.65;
}

.mave-google-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.mave-google-label {
	white-space: nowrap;
}

.mave-status {
	min-height: 21px;
	margin: 13px 0 0;
	color: #74737d;
	font-size: 12px;
	line-height: 1.55;
}

.mave-status.success {
	color: #86efac;
}

.mave-status.error {
	color: #fca5a5;
}

.mave-privacy {
	max-width: 400px;
	margin: 18px 0 0;
	color: #55545e;
	font-size: 10px;
	line-height: 1.65;
}

.mave-visual {
	position: relative;
	width: min(100%, 470px);
	height: min(54vh, 500px);
	min-height: 360px;
	margin-left: auto;
	overflow: visible;
	isolation: isolate;
	background: transparent;
	perspective: 900px;
}

.mave-visual::before {
	content: "";
	position: absolute;
	z-index: -2;
	top: -32vh;
	right: -18vw;
	bottom: -30vh;
	left: -48vw;
	opacity: 0.72;
	pointer-events: none;
	background-image:
		radial-gradient(circle, rgba(169, 140, 255, 0.7) 0 1px, transparent 1.6px),
		radial-gradient(circle, rgba(120, 221, 236, 0.52) 0 1px, transparent 1.6px),
		radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.5px);
	background-position: 12px 18px, 46px 72px, 88px 34px;
	background-size: 97px 89px, 131px 117px, 163px 149px;
	-webkit-mask-image: radial-gradient(ellipse at 68% 52%, #000 0, rgba(0, 0, 0, 0.85) 48%, transparent 82%);
	mask-image: radial-gradient(ellipse at 68% 52%, #000 0, rgba(0, 0, 0, 0.85) 48%, transparent 82%);
	animation: particle-drift 14s linear infinite;
}

.mave-visual::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 46%;
	bottom: -6%;
	width: 150%;
	height: 52%;
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(91, 57, 255, 0.19), rgba(73, 44, 210, 0.07) 40%, transparent 72%);
	filter: blur(20px);
	transform: translateX(-50%);
	animation: aura-pulse 4.8s ease-in-out infinite;
}

.mave-energy {
	position: absolute;
	z-index: 0;
	left: 46%;
	bottom: -3%;
	width: 145%;
	aspect-ratio: 3.5 / 1;
	pointer-events: none;
	transform: translateX(-50%) rotateX(69deg);
	transform-style: preserve-3d;
}

.mave-energy-ring {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(113, 77, 255, 0.62);
	border-radius: 50%;
	box-shadow: 0 0 12px rgba(91, 57, 255, 0.62), inset 0 0 12px rgba(91, 57, 255, 0.34);
	animation: ring-pulse 3.6s ease-in-out infinite;
}

.mave-energy-ring--inner {
	inset: 18%;
	border-color: rgba(120, 221, 236, 0.42);
	animation-delay: -1.8s;
	animation-duration: 4.4s;
}

.mave-energy-core {
	position: absolute;
	inset: 34% 20%;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(120, 221, 236, 0.3), rgba(91, 57, 255, 0.17) 42%, transparent 72%);
	filter: blur(6px);
	animation: core-glow 3s ease-in-out infinite;
}

.mave-scene {
	position: absolute;
	inset: 9% 7%;
	transform-style: preserve-3d;
	transform: rotateX(8deg) rotateY(-13deg);
	animation: scene-drift 10s ease-in-out infinite;
}

.mave-panel-wrap {
	position: absolute;
	transform-style: preserve-3d;
}

.mave-panel {
	width: 100%;
	height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 17px;
	background: linear-gradient(145deg, rgba(169, 140, 255, 0.16), rgba(120, 221, 236, 0.035));
	box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	animation: panel-float-up 2.9s ease-in-out infinite;
}

.mave-panel-wrap--one {
	top: 14%;
	left: 5%;
	width: 39%;
	aspect-ratio: 3 / 4;
	transform: translateZ(-65px) rotate(-8deg);
}

.mave-panel-wrap--two {
	top: 2%;
	right: 1%;
	width: 43%;
	aspect-ratio: 3 / 4;
	transform: translateZ(35px) rotate(5deg);
}

.mave-panel-wrap--three {
	right: 17%;
	bottom: 0;
	width: 49%;
	aspect-ratio: 3 / 4;
	transform: translateZ(105px) rotate(-3deg);
}

.mave-panel-wrap--four {
	left: 9%;
	bottom: 2%;
	width: 39%;
	aspect-ratio: 3 / 4;
	transform: translateZ(-18px) rotate(5deg);
}

.mave-panel-wrap--two .mave-panel {
	animation-name: panel-float-down;
	background: linear-gradient(145deg, rgba(169, 140, 255, 0.14), rgba(70, 65, 115, 0.06));
}

.mave-panel-wrap--three .mave-panel {
	animation-name: panel-float-up;
	background: linear-gradient(145deg, rgba(120, 221, 236, 0.19), rgba(169, 140, 255, 0.055));
}

.mave-panel-wrap--four .mave-panel {
	animation-name: panel-float-down;
}

.mave-footer {
	min-height: 0;
	display: flex;
	align-items: center;
	border-top: 1px solid var(--line);
	color: #56555e;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 8px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

@keyframes panel-float-up {
	0%,
	100% {
		transform: translateY(-14px);
	}
	50% {
		transform: translateY(14px);
	}
}

@keyframes panel-float-down {
	0%,
	100% {
		transform: translateY(14px);
	}
	50% {
		transform: translateY(-14px);
	}
}

@keyframes scene-drift {
	0%,
	100% {
		transform: rotateX(8deg) rotateY(-13deg) translateY(0);
	}
	50% {
		transform: rotateX(5deg) rotateY(-10deg) translateY(-7px);
	}
}

@keyframes particle-drift {
	0% {
		background-position: 12px 18px, 46px 72px, 88px 34px;
	}
	50% {
		background-position: 28px -24px, 20px 34px, 112px 2px;
	}
	100% {
		background-position: 109px -71px, -85px -45px, 251px -115px;
	}
}

@keyframes ring-pulse {
	0%,
	100% {
		opacity: 0.42;
		transform: scale(0.92);
	}
	50% {
		opacity: 0.95;
		transform: scale(1.04);
	}
}

@keyframes core-glow {
	0%,
	100% {
		opacity: 0.45;
		transform: scale(0.88);
	}
	50% {
		opacity: 1;
		transform: scale(1.12);
	}
}

@keyframes aura-pulse {
	0%,
	100% {
		opacity: 0.48;
		transform: translateX(-50%) scale(0.9);
	}
	50% {
		opacity: 0.88;
		transform: translateX(-50%) scale(1.08);
	}
}

@media (max-width: 900px) {
	.mave-content {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
		gap: 36px;
	}
	h1 {
		font-size: clamp(50px, min(7.8vw, 9vh), 72px);
	}
	.mave-visual {
		height: min(48vh, 440px);
		min-height: 320px;
	}
}

@media (max-width: 720px) {
	body {
		height: auto;
		min-height: 100vh;
		overflow-x: hidden;
		overflow-y: auto;
	}
	.mave-page {
		width: min(100% - 36px, 620px);
		height: auto;
		min-height: 100vh;
		grid-template-rows: 68px auto 50px;
	}
	.mave-content {
		padding: 42px 0;
		grid-template-columns: 1fr;
		gap: 42px;
	}
	.mave-intro {
		max-width: none;
	}
	h1 {
		font-size: clamp(48px, 14vw, 72px);
	}
	.mave-description {
		font-size: 15px;
	}
	.mave-visual {
		width: min(100%, 400px);
		height: 380px;
		min-height: 0;
		margin: 0 auto;
	}
}

@media (max-width: 420px) {
	.mave-security {
		display: none;
	}
	.mave-google-button {
		max-width: 100%;
	}
}

@media (max-height: 760px) and (min-width: 721px) {
	.mave-page {
		grid-template-rows: 62px minmax(0, 1fr) 42px;
	}
	.mave-brand-mark {
		width: 46px;
		height: 46px;
	}
	.mave-wordmark {
		font-size: 24px;
	}
	.mave-description {
		margin-top: 22px;
		font-size: 14px;
		line-height: 1.6;
	}
	.mave-signin {
		margin-top: 22px;
	}
	.mave-privacy {
		margin-top: 10px;
	}
	.mave-content {
		padding: 18px 0;
	}
	.mave-visual {
		height: min(52vh, 400px);
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mave-scene,
	.mave-panel,
	.mave-visual::before,
	.mave-visual::after,
	.mave-energy-ring,
	.mave-energy-core {
		animation: none !important;
	}
}
