:root {
	--bg: #080713;
	--bg2: #13081f;
	--ink: #fff7ea;
	--muted: rgba( 255, 247, 234, 0.72 );
	--line: rgba( 255, 255, 255, 0.16 );
	--hot: #ff4fa8;
	--violet: #9d6bff;
	--cyan: #70f5ff;
	--gold: #ffe08a;
	color-scheme: dark;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var( --ink );
	background:
		radial-gradient( circle at 20% 12%, rgba( 255, 79, 168, 0.22 ), transparent 34rem ),
		radial-gradient( circle at 86% 22%, rgba( 112, 245, 255, 0.16 ), transparent 32rem ),
		linear-gradient( 145deg, var( --bg ), var( --bg2 ) 64%, #080713 );
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: -20%;
	z-index: -4;
	background:
		conic-gradient( from 90deg at 50% 50%, #ff4fa8, #ffe08a, #70f5ff, #9d6bff, #ff4fa8 );
	filter: blur( 80px ) saturate( 1.3 );
	opacity: 0.18;
	animation: spin-soup 18s linear infinite;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		radial-gradient( circle at var( --mx, 50vw ) var( --my, 30vh ), rgba( 255, 255, 255, 0.18 ), transparent 13rem ),
		repeating-linear-gradient( 115deg, rgba( 255, 255, 255, 0.045 ) 0 1px, transparent 1px 18px );
	mix-blend-mode: screen;
}

@keyframes spin-soup {
	to { transform: rotate( 1turn ) scale( 1.08 ); }
}

a {
	color: inherit;
}

.shell {
	width: min( 1120px, calc( 100% - 40px ) );
	margin: 0 auto;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transform: rotate( -2deg );
}

/* ---------- Iris (canonical eye, used by brand mark + confetti) ---------- */

.brand-eye {
	display: inline-block;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 14px 36px rgba( 255, 79, 168, 0.24 );
	animation: eye-wiggle 3.5s ease-in-out infinite;
}

.iris-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.iris-blinker {
	transform-box: fill-box;
	transform-origin: 50% 50%;
	animation: iris-blink 11s ease-in-out infinite;
}

.iris-pupil {
	transform-box: fill-box;
	transform-origin: 50% 50%;
	animation: pupil-scan 2.2s ease-in-out infinite alternate;
}

.conf-eye .iris-blinker {
	animation: iris-blink 9s ease-in-out infinite;
	animation-delay: -1.5s;
}

@keyframes eye-wiggle {
	0%, 100% { transform: rotate( -5deg ) scale( 1 ); }
	50% { transform: rotate( 7deg ) scale( 1.08 ); }
}

@keyframes iris-blink {
	0%, 86%, 90%, 100% { transform: scaleY( 1 ); }
	88% { transform: scaleY( 0.05 ); }
}

@keyframes pupil-scan {
	0% { transform: translate( -2px, -1px ); }
	100% { transform: translate( 2px, 2px ); }
}

.navlinks {
	display: flex;
	align-items: center;
	gap: 18px;
	color: var( --muted );
	font-size: 14px;
}

.navlinks a {
	text-decoration: none;
	position: relative;
}

.navlinks a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -7px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient( 90deg, var( --hot ), var( --gold ), var( --cyan ) );
	transform: scaleX( 0 );
	transform-origin: left;
	transition: transform 180ms ease;
}

.navlinks a:hover::after {
	transform: scaleX( 1 );
}

.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 320px, 480px );
	gap: 54px;
	align-items: center;
	padding: 54px 0 72px;
}

.kicker {
	color: var( --cyan );
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 12px;
}

h1 {
	margin: 14px 0 20px;
	font-size: clamp( 48px, 8vw, 92px );
	line-height: 0.88;
	letter-spacing: -0.08em;
	max-width: 740px;
	text-shadow:
		0.045em 0.045em 0 #ff4fa8,
		-0.035em 0.03em 0 #70f5ff,
		0 24px 80px rgba( 255, 79, 168, 0.28 );
	animation: headline-pop 5s steps( 2, end ) infinite;
}

@keyframes headline-pop {
	0%, 86%, 100% { filter: none; transform: rotate( 0deg ); }
	88% { filter: hue-rotate( 110deg ) saturate( 1.8 ); transform: rotate( -1deg ); }
	90% { filter: hue-rotate( -80deg ) saturate( 1.5 ); transform: rotate( 1deg ); }
}

.lede {
	max-width: 640px;
	margin: 0 0 28px;
	color: var( --muted );
	font-size: clamp( 18px, 2.4vw, 23px );
	line-height: 1.45;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 28px 0 18px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	border: 1px solid var( --line );
	background: rgba( 255, 255, 255, 0.08 );
	backdrop-filter: blur( 14px );
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover {
	transform: translateY( -3px ) rotate( -1deg ) scale( 1.03 );
	filter: saturate( 1.25 );
}

.button.primary {
	border: none;
	color: #12051f;
	background: linear-gradient( 135deg, var( --gold ), var( --cyan ) 48%, #ff94ce );
	box-shadow: 0 18px 44px rgba( 112, 245, 255, 0.18 );
	animation: candy-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes candy-pulse {
	from { box-shadow: 0 18px 44px rgba( 112, 245, 255, 0.18 ); }
	to { box-shadow: 0 18px 60px rgba( 255, 79, 168, 0.36 ); }
}

.note {
	color: rgba( 255, 247, 234, 0.58 );
	font-size: 14px;
}

.preview {
	position: relative;
	border: 1px solid var( --line );
	border-radius: 32px;
	padding: 14px;
	background: linear-gradient( 180deg, rgba( 255, 255, 255, 0.12 ), rgba( 255, 255, 255, 0.04 ) );
	box-shadow: 0 30px 90px rgba( 0, 0, 0, 0.38 );
	overflow: hidden;
	transform:
		perspective( 900px )
		rotateX( var( --tilt-x, 0deg ) )
		rotateY( var( --tilt-y, 0deg ) );
	transition: transform 90ms ease-out;
}

.preview::before {
	content: "LIVE DESKTOP GOOP";
	position: absolute;
	z-index: 4;
	top: 20px;
	right: -42px;
	padding: 9px 54px;
	background: #ffe08a;
	color: #19051f;
	font-weight: 950;
	font-size: 12px;
	letter-spacing: 0.12em;
	transform: rotate( 20deg );
	box-shadow: 0 16px 28px rgba( 0, 0, 0, 0.28 );
}

/* ---------- Sticker family ---------- */

.sticker {
	position: absolute;
	z-index: 4;
	padding: 8px 16px;
	font-weight: 950;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #12051f;
	background: var( --sticker-accent, var( --gold ) );
	border-radius: 6px;
	border: 2px solid rgba( 18, 5, 31, 0.7 );
	box-shadow:
		0 10px 24px rgba( 0, 0, 0, 0.36 ),
		inset 0 -3px 0 rgba( 18, 5, 31, 0.18 );
	transform: rotate( var( --sticker-rot, -6deg ) );
	pointer-events: none;
	white-space: nowrap;
	animation: sticker-bob 7s ease-in-out infinite alternate;
	will-change: transform;
}

.sticker::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 50%;
	width: 30px;
	height: 11px;
	transform: translateX( -50% ) rotate( -8deg );
	background: rgba( 255, 247, 234, 0.45 );
	border-left: 1px solid rgba( 255, 255, 255, 0.55 );
	border-right: 1px solid rgba( 255, 255, 255, 0.55 );
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.18 );
}

.sticker::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 8px;
	background: var( --sticker-accent, var( --gold ) );
	z-index: -1;
	filter: blur( 14px );
	opacity: 0.45;
}

@keyframes sticker-bob {
	0%   { transform: rotate( var( --sticker-rot, -6deg ) ) translateY( 0 ); }
	100% { transform: rotate( calc( var( --sticker-rot, -6deg ) + 3deg ) ) translateY( -4px ); }
}

.sticker-1 { --sticker-accent: var( --cyan );   --sticker-rot: -7deg;  top: 6%;   right: -28px; }
.sticker-2 { --sticker-accent: var( --gold );   --sticker-rot: 5deg;   bottom: -18px; left: 6%;   animation-duration: 9s; }
.sticker-3 { --sticker-accent: var( --hot );    --sticker-rot: 8deg;   top: 34%;  left: -32px;  animation-duration: 8s; }
.sticker-4 { --sticker-accent: #7cf7b5;         --sticker-rot: -10deg; top: 62%;  right: -32px; animation-duration: 10s; }
.sticker-5 { --sticker-accent: var( --violet ); --sticker-rot: 6deg;   top: -8px; right: 10%;   animation-duration: 8s; color: #fdfaf2; border-color: rgba( 18, 5, 31, 0.85 ); }
.sticker-6 { --sticker-accent: #fdfaf2;         --sticker-rot: -4deg;  top: 6px;  right: 12%;   animation-duration: 11s; }

@media (max-width: 980px) {
	.sticker-3,
	.sticker-4,
	.sticker-5 {
		display: none;
	}
}

@media (max-width: 600px) {
	.sticker {
		display: none;
	}
}

.desktop {
	aspect-ratio: 16 / 10;
	border-radius: 24px;
	background:
		radial-gradient( circle at 63% 30%, rgba( 112, 245, 255, 0.24 ), transparent 18% ),
		radial-gradient( circle at 24% 36%, rgba( 255, 79, 168, 0.24 ), transparent 22% ),
		linear-gradient( 135deg, #12051f, #07172a 62%, #170821 );
	position: relative;
	overflow: hidden;
	animation: desktop-hue 8s ease-in-out infinite alternate;
}

@keyframes desktop-hue {
	to { filter: hue-rotate( 24deg ) saturate( 1.18 ); }
}

.rainbow-road {
	position: absolute;
	inset: auto -20% 12% -20%;
	height: 38%;
	background:
		repeating-linear-gradient( 90deg, rgba( 255, 79, 168, 0.55 ) 0 28px, rgba( 255, 224, 138, 0.55 ) 28px 56px, rgba( 112, 245, 255, 0.55 ) 56px 84px, rgba( 157, 107, 255, 0.55 ) 84px 112px );
	transform: perspective( 400px ) rotateX( 66deg );
	filter: blur( 6px );
	opacity: 0.45;
	animation: road-slide 2.8s linear infinite;
}

@keyframes road-slide {
	to { background-position: 112px 0; }
}

.portal-hole {
	position: absolute;
	right: 9%;
	top: 9%;
	width: 120px;
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient( circle, #07020e 0 24%, transparent 25% ),
		conic-gradient( from 0deg, var( --hot ), var( --gold ), var( --cyan ), var( --violet ), var( --hot ) );
	filter: blur( 0.3px ) drop-shadow( 0 0 22px rgba( 112, 245, 255, 0.5 ) );
	animation: portal-spin 4s linear infinite;
}

@keyframes portal-spin {
	to { transform: rotate( 1turn ) scale( 1.08 ); }
}

.dock {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX( -50% );
	display: flex;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 24px;
	background: rgba( 6, 8, 18, 0.52 );
	border: 1px solid rgba( 255, 255, 255, 0.16 );
	backdrop-filter: blur( 18px );
	animation: dock-bob 2.6s ease-in-out infinite;
}

.dock span {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: linear-gradient( 135deg, var( --hot ), var( --violet ) 52%, var( --cyan ) );
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.32 ), 0 10px 24px rgba( 0, 0, 0, 0.28 );
	animation: icon-hop 1.4s ease-in-out infinite;
}

.dock span:nth-child( 2 ) { animation-delay: 0.12s; }
.dock span:nth-child( 3 ) { animation-delay: 0.24s; }
.dock span:nth-child( 4 ) { animation-delay: 0.36s; }
.dock span:nth-child( 5 ) { animation-delay: 0.48s; }

@keyframes dock-bob {
	50% { transform: translateX( -50% ) translateY( -5px ); }
}

@keyframes icon-hop {
	0%, 100% { transform: translateY( 0 ) rotate( 0deg ); }
	50% { transform: translateY( -8px ) rotate( 8deg ); }
}

.window {
	position: absolute;
	inset: 30px 30px 88px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-radius: 18px;
	border: 1px solid rgba( 255, 255, 255, 0.18 );
	background: rgba( 5, 7, 16, 0.68 );
	backdrop-filter: blur( 20px );
	box-shadow: 0 24px 70px rgba( 0, 0, 0, 0.42 );
	padding: 14px 16px 16px;
	animation: window-float 4.2s ease-in-out infinite;
}

@keyframes window-float {
	50% { transform: translateY( -6px ) rotate( -0.6deg ); }
}

.window-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.08 );
}

.window-bar .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.4 );
}

.window-bar .dot-r { background: #ff5f56; }
.window-bar .dot-y { background: #ffbd2e; }
.window-bar .dot-g { background: #27c93f; }

.window-title {
	margin-left: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba( 255, 247, 234, 0.7 );
	text-transform: uppercase;
}

.window-tabs {
	display: flex;
	gap: 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba( 255, 247, 234, 0.42 );
}

.window-tab.is-active {
	color: var( --gold );
	position: relative;
	animation: tab-pulse 1.6s ease-in-out infinite alternate;
}

.window-tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient( 90deg, var( --hot ), var( --gold ), var( --cyan ) );
}

@keyframes tab-pulse {
	from { opacity: 0.7; }
	to   { opacity: 1; text-shadow: 0 0 12px rgba( 255, 224, 138, 0.6 ); }
}

.tiles {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 10px;
	margin-top: 8px;
	flex: 1;
}

.tile {
	position: relative;
	border-radius: 12px;
	border: 1px solid rgba( 255, 255, 255, 0.08 );
	overflow: hidden;
	animation: tile-shimmer 6s ease-in-out infinite alternate;
	will-change: filter;
}

.tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient( circle at 30% 30%, rgba( 255, 255, 255, 0.18 ), transparent 36% ),
		radial-gradient( circle at 70% 70%, rgba( 18, 5, 31, 0.4 ), transparent 60% );
}

.tile-1 {
	background: radial-gradient( circle at 30% 30%, var( --hot ), #5a35d6 60%, #170821 );
	animation-delay: 0s;
}

.tile-2 {
	background: radial-gradient( circle at 70% 30%, var( --cyan ), #2d7ad6 55%, #0a2236 );
	animation-delay: -1.5s;
}

.tile-3 {
	background: radial-gradient( circle at 30% 70%, var( --gold ), #ff7ad9 55%, #2a0a3d );
	animation-delay: -3s;
}

.tile-4 {
	background: linear-gradient( 135deg, #7cf7b5 0%, var( --cyan ) 50%, var( --violet ) 100% );
	animation-delay: -4.5s;
}

@keyframes tile-shimmer {
	from { filter: hue-rotate( 0deg ) brightness( 1 ); }
	to   { filter: hue-rotate( 30deg ) brightness( 1.1 ); }
}

.tile-check {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var( --gold );
	box-shadow: 0 0 12px rgba( 255, 224, 138, 0.7 );
}

.tile-check::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 7px;
	width: 4px;
	height: 7px;
	border-right: 2px solid #12051f;
	border-bottom: 2px solid #12051f;
	transform: rotate( 45deg );
}

.icon-ribbon {
	display: flex;
	gap: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba( 255, 255, 255, 0.08 );
}

.icon-ribbon .ico {
	flex: 1;
	height: 22px;
	border-radius: 6px;
	border: 1px solid rgba( 255, 255, 255, 0.1 );
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.18 );
	animation: ico-pop 3s ease-in-out infinite alternate;
}

.icon-ribbon .ico:nth-child( 2 ) { animation-delay: -0.5s; }
.icon-ribbon .ico:nth-child( 3 ) { animation-delay: -1s; }
.icon-ribbon .ico:nth-child( 4 ) { animation-delay: -1.5s; }
.icon-ribbon .ico:nth-child( 5 ) { animation-delay: -2s; }

.ico-1 { background: linear-gradient( 135deg, var( --hot ), #5a35d6 ); }
.ico-2 { background: linear-gradient( 135deg, var( --cyan ), #2d7ad6 ); }
.ico-3 { background: linear-gradient( 135deg, var( --gold ), var( --hot ) ); }
.ico-4 { background: linear-gradient( 135deg, #7cf7b5, var( --cyan ) ); }
.ico-5 { background: linear-gradient( 135deg, var( --violet ), var( --hot ) ); }

@keyframes ico-pop {
	from { transform: translateY( 0 ); }
	to   { transform: translateY( -2px ) scale( 1.05 ); }
}

.pair-sticker {
	position: absolute;
	z-index: 4;
	top: 28px;
	left: -34px;
	padding: 7px 38px;
	background: var( --hot );
	color: #fdfaf2;
	font-weight: 950;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transform: rotate( -20deg );
	box-shadow: 0 14px 26px rgba( 0, 0, 0, 0.32 );
	border: 2px solid rgba( 18, 5, 31, 0.7 );
	pointer-events: none;
}

.grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 18px;
	padding: 26px 0 72px;
}

.card {
	padding: 24px;
	padding-right: 116px;
	border: 1px solid var( --line );
	border-radius: 24px;
	background: rgba( 255, 255, 255, 0.06 );
	position: relative;
	overflow: hidden;
	transform:
		perspective( 700px )
		rotateX( var( --tilt-x, 0deg ) )
		rotateY( var( --tilt-y, 0deg ) );
	transition: transform 220ms ease-out, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card.wild-card:hover {
	transform: translateY( -4px );
	border-color: var( --card-accent, var( --hot ) );
	box-shadow: 0 22px 48px rgba( 0, 0, 0, 0.34 ), 0 0 0 1px var( --card-accent, var( --hot ) );
	background: rgba( 255, 255, 255, 0.08 );
}

.card.wild-card:hover .card-art {
	transform: translateX( 8px ) rotate( 2deg );
}

.card::before {
	content: "";
	position: absolute;
	inset: -60%;
	background: conic-gradient( from 0deg, transparent, rgba( 255, 79, 168, 0.36 ), transparent, rgba( 112, 245, 255, 0.32 ), transparent );
	animation: card-spin 7s linear infinite;
	opacity: 0;
	transition: opacity 180ms ease;
}

.card:hover::before {
	opacity: 1;
}

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

@keyframes card-spin {
	to { transform: rotate( 1turn ); }
}

.card h3 {
	margin: 0 0 10px;
	font-size: 18px;
}

.card p {
	margin: 0;
	color: var( --muted );
	line-height: 1.55;
}

/* ---------- Feature card art ---------- */

.card-art {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 84px;
	height: 84px;
	border-radius: 14px;
	background: rgba( 255, 255, 255, 0.05 );
	border: 1px solid rgba( 255, 255, 255, 0.08 );
	overflow: hidden;
	transition: transform 220ms ease;
	z-index: 2;
}

/* Kanban art — three columns + four task dots that hop right every few seconds */

.kanban-art .kanban-col {
	position: absolute;
	top: 22px;
	width: 16px;
	bottom: 14px;
	border-radius: 5px;
	background: rgba( 255, 255, 255, 0.07 );
	border: 1px solid rgba( 255, 255, 255, 0.06 );
}

.kanban-art .kanban-col:nth-child( 1 ) { left: 12px; }
.kanban-art .kanban-col:nth-child( 2 ) { left: 34px; }
.kanban-art .kanban-col:nth-child( 3 ) { left: 56px; }

.kanban-head {
	position: absolute;
	top: 10px;
	left: 12px;
	right: 12px;
	height: 6px;
	border-radius: 3px;
	background: linear-gradient( 90deg, var( --hot ), var( --cyan ), var( --gold ) );
	opacity: 0.55;
}

.kanban-task {
	position: absolute;
	width: 12px;
	height: 6px;
	border-radius: 2px;
	left: 14px;
	animation: kanban-hop 9s steps( 3, end ) infinite;
}

.kanban-task.k-1 { top: 28px;  background: var( --hot );    animation-delay: 0s;     }
.kanban-task.k-2 { top: 38px;  background: var( --cyan );   animation-delay: -2.25s; }
.kanban-task.k-3 { top: 50px;  background: var( --gold );   animation-delay: -4.5s;  }
.kanban-task.k-4 { top: 62px;  background: var( --violet ); animation-delay: -6.75s; }

@keyframes kanban-hop {
	0%, 33%   { transform: translateX( 0 ); }
	34%, 66%  { transform: translateX( 22px ); }
	67%, 100% { transform: translateX( 44px ); }
}

/* Wallpaper art — square that morphs through three gradient scenes */

.wallpaper-art .wp-frame {
	position: absolute;
	inset: 8px;
	border-radius: 10px;
	background:
		radial-gradient( circle at 30% 30%, var( --hot ), #5a35d6 60%, #170821 );
	animation: wp-cycle 9s ease-in-out infinite;
}

@keyframes wp-cycle {
	0%, 100% { background: radial-gradient( circle at 30% 30%, var( --hot ),    #5a35d6 60%, #170821 ); }
	33%      { background: radial-gradient( circle at 70% 30%, var( --cyan ),   #2d7ad6 55%, #0a2236 ); }
	66%      { background: linear-gradient( 135deg, #7cf7b5 0%, var( --gold ) 60%, #ff7ad9 100% ); }
}

.wallpaper-art .wp-cycle {
	position: absolute;
	inset: 8px;
	border-radius: 10px;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba( 255, 255, 255, 0.18 );
}

.wallpaper-art .wp-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 5px;
}

.wallpaper-art .wp-dots i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba( 255, 247, 234, 0.4 );
}

.wallpaper-art .wp-dots i:nth-child( 1 ) { animation: wp-dot 9s ease-in-out 0s    infinite; }
.wallpaper-art .wp-dots i:nth-child( 2 ) { animation: wp-dot 9s ease-in-out -3s   infinite; }
.wallpaper-art .wp-dots i:nth-child( 3 ) { animation: wp-dot 9s ease-in-out -6s   infinite; }

@keyframes wp-dot {
	0%, 33%, 100% { background: rgba( 255, 247, 234, 0.4 ); transform: scale( 1 ); }
	16%           { background: var( --gold );              transform: scale( 1.4 ); }
}

/* Search art — mac app store-style search bar with typing caret + result chips */

.search-art .search-bar {
	position: absolute;
	left: 8px;
	right: 8px;
	top: 14px;
	height: 18px;
	border-radius: 9px;
	background: rgba( 255, 247, 234, 0.94 );
	display: flex;
	align-items: center;
	padding: 0 7px;
	gap: 5px;
	box-shadow: 0 4px 10px rgba( 0, 0, 0, 0.24 );
}

.search-art .search-mag {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 1.5px solid #12051f;
	position: relative;
	flex: none;
}

.search-art .search-mag::after {
	content: "";
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 4px;
	height: 1.5px;
	background: #12051f;
	transform: rotate( 45deg );
	border-radius: 1px;
}

.search-art .search-text {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient( 90deg, #12051f 0%, #12051f 60%, transparent 60%, transparent 100% );
	background-size: 100% 100%;
	animation: search-type 4.5s steps( 12, end ) infinite;
}

@keyframes search-type {
	0%, 90%, 100% { background-size: 0 100%; }
	50%, 80%      { background-size: 70% 100%; }
}

.search-art .search-caret {
	width: 1.5px;
	height: 9px;
	background: #12051f;
	animation: caret-blink 0.7s steps( 2, end ) infinite;
}

@keyframes caret-blink {
	to { opacity: 0; }
}

.search-result {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 9px;
	border-radius: 3px;
	background: rgba( 255, 255, 255, 0.16 );
	border: 1px solid rgba( 255, 255, 255, 0.1 );
}

.search-result.r-1 {
	top: 42px;
	background: linear-gradient( 90deg, var( --gold ) 22%, rgba( 255, 255, 255, 0.16 ) 22% );
}

.search-result.r-2 {
	top: 56px;
	background: linear-gradient( 90deg, var( --cyan ) 22%, rgba( 255, 255, 255, 0.16 ) 22% );
}

@media (max-width: 820px) {
	.card {
		padding-right: 24px;
	}

	.card-art {
		position: relative;
		top: auto;
		right: auto;
		width: 84px;
		height: 84px;
		margin: 0 0 14px;
	}
}

footer {
	position: relative;
	padding: 28px 0 46px;
	color: rgba( 255, 247, 234, 0.54 );
	font-size: 14px;
}

.goo {
	position: fixed;
	inset: 0;
	z-index: -3;
	pointer-events: none;
	filter: blur( 38px ) saturate( 1.3 );
}

.goo span {
	position: absolute;
	width: 13vw;
	min-width: 160px;
	max-width: 260px;
	aspect-ratio: 1;
	border-radius: 38% 62% 54% 46% / 45% 35% 65% 55%;
	background: linear-gradient( 135deg, var( --hot ), var( --cyan ) );
	opacity: 0.14;
	animation: blob-dance 16s ease-in-out infinite alternate;
}

.goo span:nth-child( 1 ) { left: 4%; top: 22%; }
.goo span:nth-child( 2 ) { right: 6%; top: 56%; animation-delay: -4s; background: linear-gradient( 135deg, var( --gold ), var( --violet ) ); }
.goo span:nth-child( 3 ) { left: 48%; bottom: 4%; animation-delay: -8s; background: linear-gradient( 135deg, var( --cyan ), #7cf7b5 ); }

@keyframes blob-dance {
	to {
		transform: translate3d( 40px, -30px, 0 ) rotate( 110deg ) scale( 1.15 );
		border-radius: 65% 35% 42% 58% / 55% 70% 30% 45%;
	}
}

.confetti {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	overflow: hidden;
}

.confetti-shape {
	position: absolute;
	display: block;
	height: auto;
	opacity: 0.7;
	filter: drop-shadow( 0 4px 10px rgba( 0, 0, 0, 0.22 ) );
	animation: confetti-bob 11s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes confetti-bob {
	0% { transform: translate3d( 0, 0, 0 ) rotate( var( --r, 0deg ) ); }
	50% { transform: translate3d( var( --dx, 10px ), var( --dy, -14px ), 0 ) rotate( calc( var( --r, 0deg ) + 14deg ) ); }
	100% { transform: translate3d( calc( var( --dx, 10px ) * -0.5 ), calc( var( --dy, -14px ) * -0.5 ), 0 ) rotate( calc( var( --r, 0deg ) - 10deg ) ); }
}

/* All shapes sit in the outer 12% margins — never overlapping the central
   content column where the H1, lede, and cards live. */
.conf-squiggle { left: 2%;  top: 4%;   width: 64px; color: var( --cyan );    --r: -8deg;  --dx: 14px;  --dy: -10px; animation-duration: 12s; }
.conf-bullseye { right: 3%; top: 5%;   width: 52px; color: var( --hot );     --r: 14deg;  --dx: -12px; --dy: 14px;  animation-duration: 13s; }
.conf-star     { left: 3%;  top: 90%;  width: 38px; color: var( --gold );    --r: -14deg; --dx: 12px;  --dy: -16px; animation-duration: 10s; }
.conf-zigzag   { right: 2%; top: 88%;  width: 64px; color: #7cf7b5;          --r: 8deg;   --dx: -10px; --dy: -14px; animation-duration: 12s; }
.conf-dots     { left: 4%;  top: 38%;  width: 42px; color: var( --violet );  --r: 12deg;  --dx: 8px;   --dy: 12px;  animation-duration: 14s; opacity: 0.55; }
.conf-spiral   { right: 4%; top: 64%;  width: 48px; color: var( --cyan );    --r: -20deg; --dx: -14px; --dy: -8px;  animation-duration: 15s; }
.conf-plus     { left: 6%;  top: 18%;  width: 30px; color: #ff7ad9;          --r: 22deg;  --dx: 10px;  --dy: -16px; animation-duration: 9s;  }
.conf-triangle { right: 5%; top: 38%;  width: 36px; color: var( --gold );    --r: -6deg;  --dx: 12px;  --dy: -12px; animation-duration: 11s; }
.conf-eye      { right: 3%; top: 22%;  width: 56px; --r: -6deg;              --dx: -8px;  --dy: 10px;  animation-duration: 10s; }
.conf-cross    { left: 5%;  top: 64%;  width: 24px; color: #fdfaf2;          --r: 18deg;  --dx: -10px; --dy: 10px;  animation-duration: 8s;  opacity: 0.5; }
.conf-arc      { right: 6%; top: 2%;   width: 60px; color: var( --hot );     --r: 10deg;  --dx: 10px;  --dy: 16px;  animation-duration: 13s; }
.conf-ring     { left: 4%;  top: 78%;  width: 40px; color: var( --gold );    --r: -12deg; --dx: 12px;  --dy: -10px; animation-duration: 12s; }

@media (max-width: 980px) {
	.conf-dots,
	.conf-cross,
	.conf-ring,
	.conf-spiral,
	.conf-triangle,
	.conf-plus {
		display: none;
	}

	.confetti-shape {
		opacity: 0.6;
	}
}

@media (max-width: 600px) {
	.confetti-shape {
		display: none;
	}

	.conf-squiggle,
	.conf-bullseye,
	.conf-star,
	.conf-arc {
		display: block;
		transform: scale( 0.75 );
	}
}

.ticker {
	margin: -18px 0 34px;
	border-block: 1px solid var( --line );
	overflow: hidden;
	background: rgba( 255, 255, 255, 0.06 );
	transform: rotate( -1deg );
}

.ticker div {
	display: flex;
	width: max-content;
	gap: 20px;
	padding: 12px 0;
	animation: ticker-roll 18s linear infinite;
}

.ticker span {
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #12051f;
	background: linear-gradient( 90deg, var( --gold ), var( --cyan ), #ff94ce );
	padding: 8px 14px;
	border-radius: 999px;
}

@keyframes ticker-roll {
	to { transform: translateX( -50% ); }
}

.apps {
	position: relative;
	padding: 6px 0 36px;
}

.apps-head {
	max-width: 640px;
	margin: 0 0 16px;
}

.apps-head h2 {
	margin: 6px 0 8px;
	font-size: clamp( 20px, 2.6vw, 32px );
	line-height: 1.1;
	letter-spacing: -0.03em;
	text-shadow:
		0.03em 0.03em 0 #ff4fa8,
		-0.02em 0.02em 0 #70f5ff;
}

.apps-head .lede {
	margin: 0;
	font-size: clamp( 14px, 1.5vw, 16px );
	line-height: 1.5;
}

.app-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 10px;
}

.app-card {
	position: relative;
	display: grid;
	grid-template-columns: 28px 1fr;
	grid-template-rows: auto auto 1fr;
	align-items: start;
	column-gap: 10px;
	row-gap: 4px;
	min-height: 168px;
	padding: 12px 14px 14px;
	border: 1px solid var( --line );
	border-radius: 14px;
	background:
		linear-gradient( 180deg, rgba( 255, 255, 255, 0.1 ), rgba( 255, 255, 255, 0.03 ) );
	box-shadow: 0 8px 22px rgba( 0, 0, 0, 0.2 );
	overflow: hidden;
	outline: none;
	transform:
		perspective( 700px )
		rotate( var( --rot, -0.4deg ) )
		rotateX( var( --tilt-x, 0deg ) )
		rotateY( var( --tilt-y, 0deg ) );
	transition: transform 220ms ease-out, box-shadow 220ms ease, filter 220ms ease, border-color 220ms ease;
}

.app-card:nth-child( 3n ) { --rot: 0.4deg; }
.app-card:nth-child( 3n + 1 ) { --rot: -0.35deg; }
.app-card:nth-child( 3n + 2 ) { --rot: 0.2deg; }

.app-card > p {
	grid-column: 1 / -1;
	margin-top: 6px;
}

.app-card > .app-tags {
	grid-column: 1 / -1;
	align-self: end;
	padding-top: 12px;
}

.app-card::before {
	content: "";
	position: absolute;
	inset: -30%;
	background: conic-gradient( from 0deg, transparent, var( --app-a, var( --hot ) ), transparent, var( --app-b, var( --cyan ) ), transparent );
	opacity: 0;
	transition: opacity 220ms ease;
	z-index: 0;
}

.app-card:hover,
.app-card:focus-visible {
	transform:
		perspective( 700px )
		translate3d( 0, -4px, 0 )
		rotate( var( --tilt, 0deg ) )
		scale( 1.02 );
	box-shadow:
		0 18px 36px rgba( 0, 0, 0, 0.34 ),
		0 0 0 1px var( --app-a, var( --hot ) ),
		0 0 28px -4px var( --app-a, var( --hot ) );
	filter: saturate( 1.1 );
	border-color: var( --app-a, var( --hot ) );
	z-index: 2;
}

.app-card:focus-visible {
	box-shadow:
		0 18px 36px rgba( 0, 0, 0, 0.34 ),
		0 0 0 3px var( --app-a, var( --hot ) ),
		0 0 28px -4px var( --app-a, var( --hot ) );
}

.app-card:hover::before,
.app-card:focus-visible::before {
	opacity: 0.55;
}

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

.install-sticker {
	position: absolute;
	top: 6px;
	right: -34px;
	z-index: 5;
	padding: 4px 38px;
	font-size: 9px;
	font-weight: 950;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #12051f;
	background: var( --app-a, var( --hot ) );
	border: 1px solid rgba( 18, 5, 31, 0.5 );
	transform: rotate( 28deg ) scale( 0.6 );
	transform-origin: center;
	box-shadow: 0 8px 14px rgba( 0, 0, 0, 0.3 );
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease, transform 220ms ease;
}

.app-card:hover .install-sticker,
.app-card:focus-visible .install-sticker {
	opacity: 1;
	transform: rotate( 22deg ) scale( 1 );
}

.app-icon {
	width: 28px;
	height: 28px;
	padding: 3px;
	border-radius: 7px;
	background:
		linear-gradient( 135deg, rgba( 255, 255, 255, 0.12 ), rgba( 255, 255, 255, 0.04 ) );
	border: 1px solid rgba( 255, 255, 255, 0.1 );
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.2 );
}

.app-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.app-card h3 {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	align-self: center;
}

.app-card p {
	margin: 0;
	color: var( --muted );
	line-height: 1.4;
	font-size: 12px;
}

.app-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 0;
}

.app-tags span {
	padding: 2px 6px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #12051f;
	background: linear-gradient( 135deg, var( --app-a, var( --hot ) ), var( --app-b, var( --cyan ) ) );
}

.apps-foot {
	margin: 14px 0 0;
	font-size: 13px;
}

.apps-foot code {
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba( 255, 255, 255, 0.12 );
	font-size: 0.9em;
}

.scene-strip {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0 0 58px;
}

.scene-pill {
	cursor: default;
	padding: 14px 18px;
	border: 1px solid var( --line );
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.08 );
	font-weight: 900;
	transform: rotate( -2deg );
	transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.scene-pill:nth-child( even ) {
	transform: rotate( 2deg );
}

.scene-pill:hover {
	transform: rotate( 0deg ) scale( 1.12 );
	color: #12051f;
	background: linear-gradient( 135deg, var( --gold ), var( --cyan ), #ff94ce );
}

.cursor-comet {
	position: fixed;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	pointer-events: none;
	z-index: 999;
	opacity: 0;
	background: hsl( var( --hue, 180 ) 100% 70% );
	box-shadow: 0 0 18px hsl( var( --hue, 180 ) 100% 70% );
}

.cursor-comet.is-on {
	animation: comet-fade 650ms ease-out forwards;
}

@keyframes comet-fade {
	0% { opacity: 0.95; transform: scale( 1 ); }
	100% { opacity: 0; transform: scale( 3.4 ); }
}

.wobble-text {
	display: inline-block;
	animation: label-wobble 1.6s ease-in-out infinite alternate;
}

@keyframes label-wobble {
	to { transform: rotate( 2deg ) translateY( -2px ); filter: hue-rotate( 80deg ); }
}

.chaos-mode .preview,
.chaos-mode .card,
.chaos-mode .brand,
.chaos-mode h1 {
	animation: chaos-shake 120ms linear infinite;
}

@keyframes chaos-shake {
	0% { transform: translate( 0, 0 ) rotate( 0deg ); }
	25% { transform: translate( 5px, -3px ) rotate( 1.5deg ); }
	50% { transform: translate( -4px, 5px ) rotate( -1deg ); }
	75% { transform: translate( 3px, 3px ) rotate( 2deg ); }
	100% { transform: translate( 0, 0 ) rotate( 0deg ); }
}

.scene-hover {
	filter: hue-rotate( var( --scene-hue, 120deg ) );
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	scroll-behavior: auto !important;
	transition-duration: 0.001ms !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}
}

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

	.nav {
		align-items: flex-start;
		gap: 18px;
		flex-direction: column;
	}

	.navlinks {
		flex-wrap: wrap;
	}

	h1 {
		font-size: clamp( 44px, 15vw, 68px );
	}

	.preview::before {
		right: -58px;
	}

	.pair-sticker {
		left: -50px;
	}

	.portal-hole {
		width: 84px;
	}

	.cursor-comet {
		display: none;
	}

	.app-grid {
		grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	}
}

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