/* Byte Mojo Entertainment — site styles */

:root {
	--cream: #fff8ee;
	--paper: #ffffff;
	--ink: #17112b;
	--ink-soft: #4b4462;
	--ink-faint: #8a84a0;
	--violet: #6b3df5;
	--violet-deep: #2a1766;
	--violet-tint: #efe9ff;
	--lime: #c9f23d;
	--pink: #ff5d8f;
	--sky: #7fd4ff;
	--sun: #ffc94d;

	--font-display: 'Unbounded', 'Avenir Next', 'Arial Black', sans-serif;
	--font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

	--border: 2px solid var(--ink);
	--radius-lg: 28px;
	--radius: 20px;
	--radius-sm: 14px;
	--shadow: 8px 8px 0 var(--ink);
	--shadow-sm: 4px 4px 0 var(--ink);
	--container: 1200px;
	--gutter: clamp(20px, 5vw, 48px);
	--header-h: 76px;
}

/* ---------- Base ---------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

h1,
h2,
h3,
p {
	margin: 0;
}

::selection {
	background: var(--lime);
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--violet);
	outline-offset: 3px;
	border-radius: 6px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--lime);
	border: var(--border);
	border-radius: 999px;
	font-weight: 700;
}

.skip-link:focus {
	top: 12px;
}

.dot-grid {
	background-image: radial-gradient(rgba(23, 17, 43, 0.13) 1.5px, transparent 1.6px);
	background-size: 24px 24px;
}

/* ---------- Shared pieces ---------- */

.label {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.label::before {
	content: '';
	width: 9px;
	height: 9px;
	background: var(--violet);
	box-shadow: 9px 0 0 var(--lime);
}

.section-dark .label::before {
	background: var(--lime);
	box-shadow: 9px 0 0 var(--pink);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	background: var(--paper);
	border: var(--border);
	border-radius: 999px;
	box-shadow: 3px 3px 0 var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.chip svg {
	width: 16px;
	height: 16px;
}

.chip-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--lime);
	border: 2px solid var(--ink);
	animation: pulse 2s ease-in-out infinite;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 24px;
	border: var(--border);
	border-radius: 999px;
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		background-color 0.18s ease;
}

.btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.btn:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
	transform: translate(3px, 3px);
	box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
	background: var(--lime);
}

.btn-dark {
	background: var(--ink);
	color: var(--cream);
}

.btn-sm {
	min-height: 44px;
	padding: 8px 18px;
	font-size: 15px;
}

.section {
	padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
	max-width: 780px;
	margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head h2,
.section-title {
	margin: 20px 0 18px;
	font-family: var(--font-display);
	font-size: clamp(30px, 3.6vw, 50px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.section-lead {
	max-width: 640px;
	color: var(--ink-soft);
	font-size: clamp(17px, 1.5vw, 19px);
	line-height: 1.65;
}

.section-dark {
	background-color: var(--violet-deep);
	background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.6px);
	background-size: 24px 24px;
	color: var(--cream);
	border-block: var(--border);
}

.section-dark .section-lead {
	color: rgba(255, 248, 238, 0.76);
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--cream);
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--ink);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.brand img {
	width: 44px;
	height: 44px;
}

.brand-name {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand-name strong {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.brand-name strong span {
	color: var(--violet);
}

.brand-name small {
	margin-top: 5px;
	font-family: var(--font-mono);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.32em;
	color: var(--ink-soft);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.site-nav > a:not(.btn) {
	position: relative;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	transition: background-color 0.18s ease;
}

.site-nav > a:not(.btn):hover,
.site-nav > a.is-current {
	background: var(--violet-tint);
}

.site-nav .btn {
	margin-left: 10px;
}

.menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	place-items: center;
	padding: 0;
	background: var(--paper);
	border: var(--border);
	border-radius: 14px;
	box-shadow: 3px 3px 0 var(--ink);
}

.menu-toggle svg {
	width: 22px;
	height: 22px;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 9vw, 112px);
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	align-items: center;
	gap: clamp(40px, 5vw, 72px);
}

.hero h1 {
	margin: 26px 0 22px;
	font-family: var(--font-display);
	font-size: clamp(38px, 4.5vw, 62px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.hl {
	background: linear-gradient(transparent 56%, var(--lime) 56%, var(--lime) 92%, transparent 92%);
	color: inherit;
	padding: 0 0.06em;
}

/* The headline only slides, so its text is visible from the first frame. */
.hero-copy {
	animation: slide-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-visual {
	animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}

.hero-lead {
	max-width: 520px;
	color: var(--ink-soft);
	font-size: clamp(17px, 1.5vw, 19px);
	line-height: 1.65;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 26px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
}

.hero-points li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero-points svg {
	width: 26px;
	height: 26px;
	padding: 5px;
	background: var(--lime);
	border: var(--border);
	border-radius: 8px;
}

.hero-visual {
	position: relative;
	padding: 18px 26px 56px 8px;
}

.tv {
	position: relative;
	padding: clamp(10px, 1.4vw, 16px);
	background: var(--ink);
	border-radius: 26px;
	box-shadow: 14px 14px 0 var(--violet);
}

.tv::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -24px;
	width: 16%;
	height: 26px;
	background: var(--ink);
	transform: translateX(-50%);
	clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.tv::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -32px;
	width: 34%;
	height: 12px;
	background: var(--ink);
	border-radius: 8px;
	transform: translateX(-50%);
}

.tv-screen {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 14px;
	background: var(--cream);
	container-type: inline-size;
}

.browser {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.browser-tabs {
	display: flex;
	align-items: flex-end;
	gap: 0.8cqw;
	padding: 1.3cqw 2cqw 0;
	background: var(--violet-deep);
}

.browser-tab {
	display: flex;
	align-items: center;
	gap: 0.9cqw;
	padding: 1cqw 1.8cqw;
	border-radius: 1.2cqw 1.2cqw 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.85cqw;
	font-weight: 600;
	white-space: nowrap;
}

.browser-tab.is-active {
	background: var(--paper);
	color: var(--ink);
}

.browser-tab i {
	width: 1.8cqw;
	height: 1.8cqw;
	border-radius: 0.5cqw;
	background: var(--lime);
}

.browser-tab:nth-child(2) i {
	background: var(--pink);
}

.browser-tab:nth-child(3) i {
	background: var(--sky);
}

.browser-tab-add {
	padding: 0 0 1cqw 0.8cqw;
	color: rgba(255, 255, 255, 0.7);
	font-size: 2.4cqw;
	line-height: 1;
}

.browser-bar {
	display: flex;
	align-items: center;
	gap: 1.1cqw;
	padding: 1.2cqw 2cqw;
	background: var(--paper);
	border-bottom: 0.3cqw solid var(--ink);
}

.browser-btn {
	display: grid;
	place-items: center;
	flex: none;
	width: 3.8cqw;
	height: 3.8cqw;
	border-radius: 50%;
	background: var(--violet-tint);
}

.browser-btn svg {
	width: 2.1cqw;
	height: 2.1cqw;
}

.browser-address {
	display: flex;
	align-items: center;
	gap: 1cqw;
	flex: 1;
	min-width: 0;
	height: 4.4cqw;
	padding: 0 1.8cqw;
	background: #f5f1ff;
	border: 0.28cqw solid var(--ink);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 1.95cqw;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
}

.browser-address svg {
	width: 1.9cqw;
	height: 1.9cqw;
	flex: none;
	color: var(--violet);
}

.caret {
	flex: none;
	width: 0.3cqw;
	height: 2.4cqw;
	margin-left: -0.6cqw;
	background: var(--violet);
	animation: blink 1s steps(1) infinite;
}

.browser-page {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1.9cqw;
	padding: 2.8cqw 4.2cqw 3cqw;
}

.page-greeting {
	font-family: var(--font-display);
	font-size: 3.5cqw;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.page-greeting span {
	color: var(--violet);
}

.page-search {
	display: flex;
	align-items: center;
	gap: 1.3cqw;
	height: 5.6cqw;
	padding: 0 2.2cqw;
	background: var(--paper);
	border: 0.3cqw solid var(--ink);
	border-radius: 999px;
	box-shadow: 0.6cqw 0.6cqw 0 var(--ink);
	color: var(--ink-faint);
	font-size: 2cqw;
}

.page-search svg {
	width: 2.4cqw;
	height: 2.4cqw;
	color: var(--ink);
}

.page-tiles {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.8cqw;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.page-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1cqw;
	font-size: 1.55cqw;
	font-weight: 700;
}

.page-tile-icon {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1;
	border: 0.3cqw solid var(--ink);
	border-radius: 2.2cqw;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		outline-color 0.3s ease;
	outline: 0.55cqw solid transparent;
	outline-offset: 0.6cqw;
}

.page-tile-icon svg {
	width: 44%;
	height: 44%;
}

.page-tile:nth-child(1) .page-tile-icon {
	background: var(--lime);
}

.page-tile:nth-child(2) .page-tile-icon {
	background: var(--sky);
}

.page-tile:nth-child(3) .page-tile-icon {
	background: var(--pink);
}

.page-tile:nth-child(4) .page-tile-icon {
	background: var(--sun);
}

.page-tile:nth-child(5) .page-tile-icon {
	background: var(--violet);
	color: var(--paper);
}

.page-tile:nth-child(6) .page-tile-icon {
	background: var(--paper);
}

.page-tile.is-focused .page-tile-icon {
	transform: translate(-0.4cqw, -0.4cqw) scale(1.06);
	box-shadow: 0.8cqw 0.8cqw 0 var(--ink);
	outline-color: var(--violet);
}

.hero-remote {
	position: absolute;
	right: -4px;
	bottom: -6px;
	z-index: 2;
	width: clamp(64px, 11%, 92px);
	transform: rotate(14deg);
	filter: drop-shadow(5px 5px 0 var(--ink));
	animation: float 6s ease-in-out infinite;
}

.sticker {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: var(--border);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.sticker svg {
	width: 17px;
	height: 17px;
}

.sticker-top {
	top: -2px;
	left: 6%;
	background: var(--pink);
	transform: rotate(-6deg);
}

.sticker-side {
	left: -16px;
	bottom: 34px;
	background: var(--lime);
	transform: rotate(5deg);
}

.pixel-spark {
	position: absolute;
	width: 9px;
	height: 9px;
	background: currentColor;
	box-shadow:
		9px 0 0 currentColor,
		-9px 0 0 currentColor,
		0 9px 0 currentColor,
		0 -9px 0 currentColor;
	pointer-events: none;
}

.hero .pixel-spark:nth-of-type(1) {
	top: 14%;
	right: 4%;
	color: var(--pink);
}

.hero .pixel-spark:nth-of-type(2) {
	bottom: 12%;
	left: 46%;
	color: var(--violet);
}

/* ---------- Marquee ---------- */

.marquee {
	overflow: hidden;
	background: var(--violet-deep);
	border-block: var(--border);
	color: var(--cream);
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: marquee 38s linear infinite;
}

.marquee-group {
	display: flex;
	align-items: center;
	flex: none;
}

.marquee-group span {
	display: inline-flex;
	align-items: center;
	gap: 26px;
	padding: 20px 13px;
	font-family: var(--font-display);
	font-size: clamp(17px, 2vw, 24px);
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.marquee-group svg {
	width: 22px;
	height: 22px;
	color: var(--lime);
}

/* ---------- Flagship browser ---------- */

.flagship {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	align-items: center;
	gap: clamp(36px, 5vw, 64px);
}

.flagship-media {
	position: relative;
	padding: clamp(20px, 3.4vw, 40px) clamp(16px, 3vw, 34px) clamp(14px, 2.4vw, 28px);
	background-color: var(--violet);
	background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.6px);
	background-size: 22px 22px;
	border: var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.flagship-media .chip {
	position: absolute;
	top: -16px;
	right: 24px;
	background: var(--lime);
	transform: rotate(3deg);
}

.flagship-media img {
	width: 100%;
	height: auto;
}

.flagship-copy .section-lead {
	margin-bottom: 30px;
}

.steps {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps li {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.steps b {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	background: var(--lime);
	border: var(--border);
	border-radius: 10px;
	font-family: var(--font-mono);
	font-size: 14px;
}

.steps li:nth-child(2) b {
	background: var(--sky);
}

.steps li:nth-child(3) b {
	background: var(--pink);
}

.features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: clamp(56px, 7vw, 88px) 0 0;
	padding: 0;
	list-style: none;
}

.feature {
	padding: 28px 26px 30px;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.feature:hover {
	transform: translate(-3px, -3px);
	box-shadow: 7px 7px 0 var(--ink);
}

.feature-icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 22px;
	background: var(--lime);
	border: var(--border);
	border-radius: 15px;
}

.feature-icon svg {
	width: 26px;
	height: 26px;
}

.feature:nth-child(3n + 2) .feature-icon {
	background: var(--pink);
}

.feature:nth-child(3n) .feature-icon {
	background: var(--sky);
}

.feature h3 {
	margin-bottom: 10px;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.feature p {
	color: var(--ink-soft);
	font-size: 16px;
}

/* ---------- App lineup ---------- */

.bento {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px;
}

.app-card {
	display: flex;
	flex-direction: column;
	grid-column: span 2;
	overflow: hidden;
	background: var(--cream);
	color: var(--ink);
	border: var(--border);
	border-radius: 26px;
	box-shadow: 8px 8px 0 #0d0724;
	transition: transform 0.25s ease;
}

.app-card:hover {
	transform: translateY(-4px);
}

.app-card--flagship {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-column: span 4;
}

.app-art {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: var(--border);
}

.app-card--flagship .app-art {
	display: flex;
	align-items: center;
	aspect-ratio: auto;
	background: var(--violet);
	border-bottom: 0;
	border-right: var(--border);
}

.app-card--flagship .app-art img {
	height: auto;
	object-fit: contain;
}

.app-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.app-card:hover .app-art img {
	transform: scale(1.04);
}

.app-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 24px;
}

.app-card--flagship .app-body {
	justify-content: center;
	padding: 30px;
}

.app-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.badge {
	padding: 3px 10px;
	background: var(--pink);
	border: var(--border);
	border-radius: 999px;
	color: var(--ink);
}

.app-card h3 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.app-card--flagship h3 {
	font-size: clamp(24px, 2.4vw, 30px);
}

.app-card p {
	color: var(--ink-soft);
	font-size: 16px;
}

.app-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: auto;
	padding-top: 10px;
	font-size: 14px;
	font-weight: 700;
}

.app-foot span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.app-foot svg {
	width: 17px;
	height: 17px;
}

.app-foot a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--violet);
}

.app-foot a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.app-card--soon {
	align-items: flex-start;
	justify-content: center;
	gap: 16px;
	padding: 30px;
	background: transparent;
	color: var(--cream);
	border: 2px dashed rgba(255, 248, 238, 0.45);
	box-shadow: none;
}

.app-card--soon h3 {
	color: var(--cream);
}

.app-card--soon p {
	color: rgba(255, 248, 238, 0.74);
}

.soon-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	background: var(--lime);
	border: var(--border);
	border-radius: 16px;
	color: var(--ink);
	transform: rotate(-6deg);
}

.soon-icon svg {
	width: 28px;
	height: 28px;
}

.bento-note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 36px;
	color: rgba(255, 248, 238, 0.8);
	font-size: 15px;
}

.bento-note svg {
	width: 20px;
	height: 20px;
	flex: none;
	color: var(--lime);
}

/* ---------- About ---------- */

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(40px, 6vw, 88px);
}

.about-copy p + p {
	margin-top: 18px;
}

.about-copy .section-lead {
	color: var(--ink);
	font-size: clamp(18px, 1.7vw, 21px);
}

.about-copy p:not(.section-lead) {
	color: var(--ink-soft);
}

.motto {
	position: relative;
	margin: 40px 0 0;
	padding: 34px 32px 30px;
	background: var(--pink);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transform: rotate(-1.5deg);
}

.motto p {
	font-family: var(--font-display);
	font-size: clamp(20px, 2.2vw, 27px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.motto footer {
	margin-top: 16px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.motto .chip {
	position: absolute;
	top: -18px;
	right: 22px;
	background: var(--lime);
	transform: rotate(4deg);
}

.principles {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.principle {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 20px;
	padding: 24px;
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.principle-num {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	background: var(--violet);
	border: var(--border);
	border-radius: 15px;
	color: var(--cream);
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 700;
}

.principle h3 {
	margin: 2px 0 6px;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.principle p {
	color: var(--ink-soft);
	font-size: 16px;
}

/* ---------- FAQ ---------- */

.faq {
	border-top: var(--border);
}

.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	align-items: start;
	gap: clamp(36px, 6vw, 80px);
}

.faq-intro {
	position: sticky;
	top: calc(var(--header-h) + 32px);
}

.faq-intro .section-lead a {
	color: var(--violet);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.faq-list {
	display: grid;
	gap: 14px;
}

.faq-item {
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	transition: background-color 0.2s ease;
}

.faq-item[open] {
	background: #f8fde6;
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 22px 20px 24px;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-display);
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.3;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	background: var(--lime);
	border: var(--border);
	border-radius: 10px;
}

.faq-toggle svg {
	width: 18px;
	height: 18px;
}

.faq-toggle svg {
	transition: transform 0.25s ease;
}

.faq-item[open] .faq-toggle {
	background: var(--pink);
}

.faq-item[open] .faq-toggle svg {
	transform: rotate(45deg);
}

.faq-answer {
	padding: 0 24px 22px;
	color: var(--ink-soft);
}

.faq-answer a {
	color: var(--violet);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Contact ---------- */

.contact {
	padding-top: 0;
}

.contact-panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
	align-items: center;
	gap: clamp(32px, 4vw, 56px);
	overflow: hidden;
	padding: clamp(32px, 5.5vw, 68px);
	background: var(--lime);
	border: var(--border);
	border-radius: 36px;
	box-shadow: 12px 12px 0 var(--ink);
}

.contact-panel .label::before {
	background: var(--ink);
	box-shadow: 9px 0 0 var(--violet);
}

.contact-panel h2 {
	margin: 20px 0 18px;
	font-family: var(--font-display);
	font-size: clamp(32px, 4.2vw, 58px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.04;
}

.contact-panel .section-lead {
	color: var(--ink);
}

.email-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.email-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 14px 24px;
	background: var(--ink);
	border: var(--border);
	border-radius: 999px;
	color: var(--cream);
	font-family: var(--font-display);
	font-size: clamp(14px, 1.35vw, 17px);
	font-weight: 600;
	letter-spacing: -0.03em;
	word-break: break-all;
	transition: transform 0.18s ease;
}

.email-link svg {
	width: 22px;
	height: 22px;
	flex: none;
	color: var(--lime);
}

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

.btn-copy {
	min-height: 60px;
}

.btn-copy.is-copied {
	background: var(--violet);
	color: var(--paper);
}

.contact-cards {
	display: grid;
	gap: 14px;
	position: relative;
	z-index: 1;
}

.contact-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: var(--cream);
	border: var(--border);
	border-radius: 18px;
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.contact-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--ink);
}

.contact-card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	background: var(--violet);
	border: var(--border);
	border-radius: 13px;
	color: var(--paper);
}

.contact-card-icon svg {
	width: 22px;
	height: 22px;
}

.contact-card strong {
	display: block;
	font-size: 17px;
	line-height: 1.3;
}

.contact-card small {
	display: block;
	color: var(--ink-soft);
	font-size: 14px;
	line-height: 1.4;
}

.contact-card > svg {
	width: 20px;
	height: 20px;
}

.contact-panel .pixel-spark {
	top: 30px;
	right: 34px;
	color: var(--violet);
}

.contact-panel .pixel-spark + .pixel-spark {
	top: auto;
	right: auto;
	bottom: 30px;
	left: 46%;
	color: var(--pink);
}

/* ---------- Footer ---------- */

.site-footer {
	overflow: hidden;
	padding: 72px 0 30px;
	background: var(--ink);
	color: var(--cream);
}

.footer-top {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 0.9fr) minmax(0, 1.45fr);
	gap: 40px 28px;
}

.footer-brand .brand-name small {
	color: rgba(255, 248, 238, 0.6);
}

.footer-brand .brand-name strong span {
	color: var(--lime);
}

.footer-brand p {
	max-width: 280px;
	margin: 20px 0 22px;
	color: rgba(255, 248, 238, 0.72);
	font-size: 16px;
}

.footer-brand .chip {
	background: var(--lime);
	color: var(--ink);
	box-shadow: none;
}

.footer-col h3 {
	margin-bottom: 16px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lime);
}

.footer-col ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col a {
	color: rgba(255, 248, 238, 0.78);
	font-size: 15px;
	overflow-wrap: anywhere;
	transition: color 0.15s ease;
}

.footer-col a:hover {
	color: var(--lime);
}

.footer-col small {
	display: block;
	color: rgba(255, 248, 238, 0.45);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.footer-wordmark {
	margin: 64px 0 0;
	font-family: var(--font-display);
	font-size: clamp(56px, 14.5vw, 210px);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.85;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 248, 238, 0.22);
	user-select: none;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 248, 238, 0.16);
	color: rgba(255, 248, 238, 0.6);
	font-size: 13px;
}

.footer-bottom p {
	max-width: 620px;
}

.footer-bottom a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cream);
	font-weight: 600;
}

.footer-bottom a:hover {
	color: var(--lime);
}

.footer-bottom svg {
	width: 16px;
	height: 16px;
}

/* ---------- Legal pages ---------- */

.legal-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 84px) 0 clamp(52px, 7vw, 80px);
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 13px;
	color: rgba(255, 248, 238, 0.7);
}

.crumbs li + li::before {
	content: '/';
	margin-right: 10px;
	color: var(--lime);
}

.crumbs a:hover {
	color: var(--lime);
}

.legal-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(38px, 6.4vw, 80px);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
}

.legal-hero h1 span {
	color: var(--lime);
}

.legal-hero .section-lead {
	margin-top: 20px;
}

.legal-switch {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 32px;
	padding: 5px;
	background: rgba(255, 255, 255, 0.08);
	border: 2px solid rgba(255, 248, 238, 0.24);
	border-radius: 999px;
}

.legal-switch a {
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	transition: background-color 0.18s ease;
}

.legal-switch a:hover {
	background: rgba(255, 255, 255, 0.1);
}

.legal-switch a.is-active {
	background: var(--lime);
	color: var(--ink);
}

.legal-hero .pixel-spark {
	color: var(--lime);
	top: 30%;
	right: 10%;
}

.legal-hero .pixel-spark + .pixel-spark {
	color: var(--pink);
	top: auto;
	bottom: 22%;
	right: 24%;
}

.legal-body {
	padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 112px);
}

.legal-grid {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	align-items: start;
	gap: clamp(36px, 5vw, 72px);
}

.legal-aside {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 20px;
}

.toc {
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 12px;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.toc summary::-webkit-details-marker {
	display: none;
}

.toc summary svg {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.toc[open] summary svg {
	transform: rotate(180deg);
}

.toc ol {
	max-height: calc(100vh - var(--header-h) - 320px);
	min-height: 160px;
	overflow: auto;
	margin: 0;
	padding: 0 10px 12px;
	list-style: none;
	counter-reset: toc;
}

.toc a {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--ink-soft);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.4;
	transition: background-color 0.15s ease;
}

.toc a::before {
	counter-increment: toc;
	content: counter(toc, decimal-leading-zero);
	padding-top: 1px;
	color: var(--ink-faint);
	font-family: var(--font-mono);
	font-size: 11px;
}

.toc a:hover {
	background: var(--violet-tint);
	color: var(--ink);
}

.toc a.is-active {
	background: var(--lime);
	color: var(--ink);
}

.toc a.is-active::before {
	color: var(--ink);
}

.legal-help {
	padding: 24px 22px;
	background: var(--pink);
	border: var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.legal-help h2 {
	margin-bottom: 8px;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.legal-help p {
	margin-bottom: 16px;
	font-size: 15px;
	line-height: 1.5;
}

.legal-help .btn {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font-size: 15px;
}

.legal-help-email {
	display: block;
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.legal-content {
	max-width: 780px;
	color: var(--ink-soft);
	font-size: 17px;
	line-height: 1.78;
	overflow-wrap: break-word;
}

.legal-content > p {
	margin-bottom: 20px;
}

.legal-content .effective {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	padding: 8px 16px;
	background: var(--paper);
	border: var(--border);
	border-radius: 999px;
	box-shadow: 3px 3px 0 var(--ink);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.legal-content .effective::before {
	content: '';
	width: 9px;
	height: 9px;
	background: var(--lime);
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.legal-content h2 {
	position: relative;
	margin: 56px 0 18px;
	padding-top: 26px;
	border-top: var(--border);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(18px, 1.9vw, 22px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	scroll-margin-top: calc(var(--header-h) + 20px);
}

.legal-content h2::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 0;
	width: 10px;
	height: 10px;
	background: var(--violet);
	box-shadow: 10px 0 0 var(--lime);
}

.legal-content ul {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.legal-content li {
	position: relative;
	margin-bottom: 12px;
	padding-left: 28px;
}

.legal-content li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.66em;
	width: 9px;
	height: 9px;
	background: var(--violet);
}

.legal-content a {
	color: var(--violet);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.read-progress {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	height: 5px;
	background: var(--lime);
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}

.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	background: var(--lime);
	border: var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow-sm);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top svg {
	width: 22px;
	height: 22px;
}

/* ---------- 404 ---------- */

.lost {
	padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 9vw, 112px);
	text-align: center;
}

.lost-tv {
	position: relative;
	width: min(420px, 100%);
	margin: 0 auto 64px;
	padding: 14px;
	background: var(--ink);
	border-radius: 24px;
	box-shadow: 12px 12px 0 var(--pink);
}

.lost-tv::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -26px;
	width: 40%;
	height: 12px;
	background: var(--ink);
	border-radius: 8px;
	transform: translateX(-50%);
}

.lost-screen {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: repeating-linear-gradient(90deg, var(--cream) 0 14.28%, var(--sun) 0 28.56%, var(--sky) 0 42.84%, var(--lime) 0 57.12%, var(--pink) 0 71.4%, var(--violet) 0 85.68%, var(--violet-deep) 0 100%);
}

.lost-screen span {
	padding: 10px 18px;
	background: var(--ink);
	border-radius: 10px;
	color: var(--cream);
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.16em;
	animation: blink 1.6s steps(1) infinite;
}

.lost h1 {
	font-family: var(--font-display);
	font-size: clamp(36px, 6vw, 72px);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1.04;
}

.lost h1 span {
	color: var(--violet);
}

.lost .section-lead {
	margin: 20px auto 32px;
}

.lost .hero-actions {
	justify-content: center;
}

/* ---------- Motion ---------- */

@keyframes blink {
	50% {
		opacity: 0;
	}
}

@keyframes pulse {
	50% {
		transform: scale(1.25);
	}
}

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

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

@keyframes slide-up {
	from {
		transform: translateY(24px);
	}
}

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

.js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.7s ease,
		transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.site-nav > a:not(.btn) {
		padding: 10px 10px;
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-copy {
		max-width: 700px;
	}

	.hero-visual {
		max-width: 720px;
		width: 100%;
		margin: 0 auto;
	}

	.flagship {
		grid-template-columns: minmax(0, 1fr);
	}

	.features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.app-card,
	.app-card--soon {
		grid-column: span 1;
	}

	.app-card--flagship {
		grid-column: 1 / -1;
	}

	.footer-top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.footer-brand,
	.footer-col--email {
		grid-column: 1 / -1;
	}

	.footer-col--email ul {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

@media (max-width: 860px) {
	.menu-toggle {
		display: grid;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 14px var(--gutter) 22px;
		background: var(--cream);
		border-bottom: var(--border);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-header:has(.site-nav.is-open) {
		border-bottom-color: var(--ink);
	}

	.site-nav > a:not(.btn) {
		padding: 14px 12px;
		font-size: 18px;
	}

	.site-nav .btn {
		margin: 10px 0 0;
	}

	.about-grid,
	.faq-grid,
	.contact-panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.faq-intro {
		position: static;
	}

	.legal-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.legal-aside {
		position: static;
	}

	.toc ol {
		max-height: 300px;
	}
}

@media (max-width: 640px) {
	:root {
		--header-h: 68px;
	}

	body {
		font-size: 16px;
	}

	.brand img {
		width: 40px;
		height: 40px;
	}

	.brand-name strong {
		font-size: 19px;
	}

	.hero h1 {
		font-size: clamp(34px, 9.6vw, 46px);
	}

	.hero-actions .btn {
		flex: 1 1 100%;
	}

	.hero-visual {
		padding: 16px 12px 46px 0;
	}

	.tv {
		border-radius: 18px;
		box-shadow: 8px 8px 0 var(--violet);
	}

	.tv-screen {
		border-radius: 10px;
	}

	.sticker {
		padding: 7px 12px;
		font-size: 11px;
	}

	.sticker svg {
		width: 14px;
		height: 14px;
	}

	.sticker-side {
		left: -6px;
		bottom: 0;
	}

	.hero-remote {
		width: 52px;
		right: -2px;
	}

	.features,
	.bento {
		grid-template-columns: minmax(0, 1fr);
	}

	.app-card--flagship {
		grid-template-columns: minmax(0, 1fr);
	}

	.app-card--flagship .app-art {
		aspect-ratio: 16 / 10;
		border-right: 0;
		border-bottom: var(--border);
	}

	.app-card--flagship .app-body {
		padding: 22px 24px 24px;
	}

	.principle {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 22px;
	}

	.contact-panel {
		padding: 36px 22px 26px;
		border-radius: 28px;
		box-shadow: 8px 8px 0 var(--ink);
	}

	.email-link,
	.btn-copy {
		width: 100%;
		justify-content: center;
	}

	.email-link {
		padding: 14px 16px;
		font-family: var(--font-body);
		font-size: 16px;
		font-weight: 700;
		letter-spacing: 0;
		word-break: normal;
	}

	.email-link svg {
		display: none;
	}

	.contact-card {
		padding: 16px;
		gap: 14px;
	}

	.footer-top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-col--email ul {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.legal-switch a {
		padding: 9px 14px;
		font-size: 14px;
	}

	.legal-content {
		font-size: 16px;
	}

	.to-top {
		right: 14px;
		bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
}
