/* MorphCam landing — neon magenta / AI premium */
:root {
	--bg: #0a0a12;
	--primary: #ff2e9f;
	--accent: #7c3aed;
	--secondary: #1e1b2e;
	--text: #f1f5f9;
	--muted: #94a3b8;
	--text-muted: var(--muted);
	--bg-elevated: #161326;
	--border: rgba(255, 255, 255, 0.08);
	--glass: rgba(30, 27, 46, 0.55);
	--glow-primary: 0 0 25px rgba(255, 46, 159, 0.35);
	--glow-accent: 0 0 30px rgba(124, 58, 237, 0.35);
	--glow-hover: 0 0 35px rgba(255, 46, 159, 0.6);
	--card-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	--radius: 12px;
	--radius-lg: 16px;
	--font: "Inter", ui-sans-serif, system-ui, sans-serif;
	--header-h: 4rem;
	--max: 72rem;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
a:hover {
	color: #c4b5fd;
}

img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* --- Mesh / glow background --- */
.mesh-bg {
	position: relative;
	background:
		radial-gradient(circle at 20% 30%, rgba(255, 46, 159, 0.15), transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.15), transparent 40%),
		var(--bg);
}

.glow-orb {
	position: absolute;
	pointer-events: none;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.5;
	animation: float-orb 14s ease-in-out infinite;
}
.glow-orb--1 {
	width: 22rem;
	height: 22rem;
	background: var(--primary);
	top: 10%;
	left: 5%;
	animation-delay: 0s;
}
.glow-orb--2 {
	width: 18rem;
	height: 18rem;
	background: var(--accent);
	bottom: 15%;
	right: 0;
	animation-delay: -5s;
	animation-direction: reverse;
}

@keyframes float-orb {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(20px, -16px) scale(1.05);
	}
}

@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse-soft {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(255, 46, 159, 0.35);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(255, 46, 159, 0);
	}
}

/* --- Layout --- */
.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
	padding-block: clamp(3.5rem, 10vw, 6rem);
	position: relative;
}
.section--tight {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.section-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
	color: var(--text);
}
.section-lead {
	margin: 0 auto;
	max-width: 40rem;
	color: var(--text-muted);
	font-size: 1.0625rem;
}
.section-lead--narrow {
	max-width: 28rem;
}

.text-center {
	text-align: center;
}

code {
	font-size: 0.88em;
	padding: 0.12em 0.4em;
	border-radius: 0.35rem;
	background: rgba(255, 46, 159, 0.12);
	border: 1px solid var(--border);
	color: #d8b4fe;
}

.dl-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--text);
	letter-spacing: -0.02em;
}
.dl-blurb {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.5;
}
.version-card {
	max-width: 36rem;
	margin-inline: auto;
}
.version-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text);
}

/* --- Header / nav --- */
.site-header {
	position: fixed;
	/* v3-13 (revised) — push header below the v3 banner so they don't
	 * overlap. Falls back to 0 on browsers that don't compute the var
	 * (banner-h is set in the v3-13 block at the bottom of this file). */
	top: var(--v3-banner-h, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid var(--border);
	background: rgba(10, 10, 18, 0.88);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.site-header__inner {
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--text);
	letter-spacing: -0.02em;
}
.brand:hover {
	color: var(--text);
}
.brand__mark {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.65rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	display: grid;
	place-items: center;
	font-size: 0.875rem;
	color: #fff;
	box-shadow: var(--glow-primary);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 0.5rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	cursor: pointer;
	color: var(--text);
}
.nav-toggle span {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.2s var(--ease);
}

.nav {
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 3vw, 2rem);
}
.nav__links {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2rem);
}
.nav__link {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-muted);
	padding: 0.35rem 0;
	position: relative;
}
.nav__link:hover {
	color: var(--text);
}
.nav__link--active {
	color: var(--accent);
}
.nav__link--active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	border-radius: 2px;
}

@media (max-width: 768px) {
	.nav-toggle {
		display: flex;
	}
	.nav__links {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 1.25rem 1.5rem;
		background: rgba(10, 10, 18, 0.97);
		border-bottom: 1px solid var(--border);
		gap: 0;
		transform: translateY(-120%);
		opacity: 0;
		visibility: hidden;
		transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0.28s;
	}
	.nav__links.is-open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}
	.nav__link {
		padding: 0.85rem 0;
		border-bottom: 1px solid var(--border);
	}
	.nav__link:last-child {
		border-bottom: none;
	}
}

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--radius);
	border: none;
	cursor: pointer;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
	text-decoration: none;
}
.btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.btn--primary {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 12px 20px;
	box-shadow: 0 0 25px rgba(255, 46, 159, 0.35);
}
.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 35px rgba(255, 46, 159, 0.6);
	color: #fff;
}
.btn--ghost {
	background: var(--glass);
	color: var(--text);
	border: 1px solid var(--border);
	backdrop-filter: blur(12px);
	border-radius: var(--radius-lg);
}
.btn--ghost:hover {
	border-color: rgba(124, 58, 237, 0.45);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
}
.btn--lg {
	padding: 14px 26px;
	font-size: 1.05rem;
	border-radius: var(--radius-lg);
}
.btn--lg.btn--primary {
	border-radius: 12px;
}
.btn--block {
	width: 100%;
}

/* --- Cards (secondary surface + glass) --- */
.card {
	background: var(--secondary);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--card-shadow);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 46, 159, 0.25);
	box-shadow: var(--glow-primary), var(--card-shadow);
}
.card__icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	display: grid;
	place-items: center;
	background: rgba(124, 58, 237, 0.2);
	color: var(--accent);
	border: 1px solid rgba(255, 46, 159, 0.25);
	margin-bottom: 1rem;
}
.card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
}
.card p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.55;
}
.card__lead {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	color: var(--text-muted);
	line-height: 1.55;
}
.card--center {
	text-align: center;
}
.card--center .card__icon {
	margin-inline: auto;
}
.step-num {
	font-weight: 800;
	font-size: 1.1rem;
}

/* --- Hero --- */
.hero {
	min-height: min(100vh, 52rem);
	/* v3-13: + var(--v3-banner-h) so the hero clears both the header AND
	 * the launch banner above it. */
	padding-top: calc(var(--header-h) + var(--v3-banner-h, 0px) + clamp(2rem, 8vw, 4rem));
	padding-bottom: clamp(3rem, 8vw, 5rem);
	display: flex;
	align-items: center;
}
.hero__content {
	position: relative;
	z-index: 1;
	max-width: 48rem;
	margin-inline: auto;
	text-align: center;
}
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--glass);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent);
	margin-bottom: 1.5rem;
	animation: fade-up 0.7s var(--ease) both;
}
.hero__badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 12px #34d399;
}
.hero h1 {
	margin: 0;
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	animation: fade-up 0.7s var(--ease) 0.06s both;
}
.hero__line1 {
	background: linear-gradient(180deg, #fff, #cbd5e1);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__line2 {
	display: block;
	margin-top: 0.35rem;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__sub {
	margin: 1.5rem auto 0;
	max-width: 36rem;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	color: var(--text-muted);
	animation: fade-up 0.7s var(--ease) 0.12s both;
}
.hero__actions {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	animation: fade-up 0.7s var(--ease) 0.18s both;
}
.hero__actions .btn--primary {
	animation: pulse-soft 3s ease-in-out infinite;
}

/* --- Grid --- */
.grid-2 {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.grid-2 {
		grid-template-columns: 1fr 1fr;
	}
}
.grid-3 {
	display: grid;
	gap: clamp(1.25rem, 3vw, 1.5rem);
	grid-template-columns: 1fr;
}
@media (min-width: 640px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* --- Video frame --- */
.video-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--secondary);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--card-shadow);
	padding: 4px;
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video-card:hover {
	border-color: rgba(255, 46, 159, 0.35);
	box-shadow: var(--glow-accent), var(--card-shadow);
}
.video-card__label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	padding: 0.35rem 0.65rem;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 0.5rem;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid var(--border);
	color: var(--text);
}
.video-card__inner {
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #12101c;
}
.video-card video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- CTA strip --- */
.cta {
	text-align: center;
	padding-block: clamp(4rem, 12vw, 6rem);
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--border);
}
.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(255, 46, 159, 0.12),
		transparent 45%,
		rgba(124, 58, 237, 0.14)
	);
	pointer-events: none;
}
.cta .wrap {
	position: relative;
	z-index: 1;
}
.cta .section-title {
	background: linear-gradient(90deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --- Footer --- */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 2rem 0;
	background: rgba(0, 0, 0, 0.25);
}
.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
	color: var(--text-muted);
}
@media (min-width: 640px) {
	.site-footer__inner {
		flex-direction: row;
	}
}

/* --- Download page --- */
.dl-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	max-width: 40rem;
	margin-inline: auto;
}
@media (min-width: 560px) {
	.dl-grid {
		grid-template-columns: 1fr 1fr;
	}
}
.dl-card {
	text-align: center;
}
.dl-card .btn {
	width: 100%;
}
.steps {
	counter-reset: step;
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
	max-width: 36rem;
	margin-inline: auto;
	text-align: left;
}
.steps li {
	position: relative;
	padding-left: 3rem;
	margin-bottom: 1.5rem;
	color: var(--text-muted);
}
.steps li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 0.5rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	display: grid;
	place-items: center;
	box-shadow: var(--glow-primary);
}
.steps strong {
	color: var(--text);
}

/* --- Pricing (home) --- */
.pricing-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
	margin-top: 3rem;
}
@media (min-width: 640px) {
	.pricing-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1100px) {
	.pricing-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
.plan-card {
	position: relative;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--secondary);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--card-shadow);
	padding: 1.5rem;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.plan-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--glow-primary), var(--card-shadow);
}
.plan-card--best {
	border-color: rgba(255, 46, 159, 0.45);
	background: linear-gradient(165deg, rgba(255, 46, 159, 0.12), rgba(30, 27, 46, 0.95));
	box-shadow: var(--glow-primary), var(--glow-accent);
}
.plan-card__badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	color: #fff;
}
.plan-card__name {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0 0 0.5rem;
}
.plan-card--best .plan-card__name {
	color: #d8b4fe;
}
.plan-card__price {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--text);
	margin: 0;
}
.plan-card__meta {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 0.75rem;
}
.pricing-grid__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--text-muted);
	padding: 2rem 1rem;
	margin: 0;
	font-size: 0.95rem;
}

.pricing-error {
	text-align: center;
	color: #fbbf24;
	font-size: 0.9rem;
	margin-top: 1rem;
}

/* --- Page hero (inner pages) --- */
.page-hero {
	/* v3-13: + var(--v3-banner-h) to also clear the launch banner. */
	padding-top: calc(var(--header-h) + var(--v3-banner-h, 0px) + 3rem);
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--border);
}
.page-hero h1 {
	margin: 0;
	font-size: clamp(1.85rem, 4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.page-hero p {
	margin: 0.75rem 0 0;
	color: var(--text-muted);
	max-width: 36rem;
}

/* --- Utility --- */
.mt-0 {
	margin-top: 0;
}
.mt-1 {
	margin-top: 0.5rem;
}
.mt-2 {
	margin-top: 1rem;
}
.mt-3 {
	margin-top: 1.5rem;
}
.mt-4 {
	margin-top: 2rem;
}
.mt-5 {
	margin-top: 2.5rem;
}

.scroll-target {
	scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.text-strong-muted {
	color: #e9d5ff;
	font-weight: 600;
}
.mb-0 {
	margin-bottom: 0;
}
.py-section {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}
.border-t {
	border-top: 1px solid var(--border);
}
.bg-elevated {
	background: var(--bg-elevated);
}

/* v3-13 (revised after user feedback) — launch banner.
 *
 * Fixed at the very top of the viewport, with the site header pushed
 * down by --v3-banner-h. Locked-height single-line layout so it never
 * grows on mobile and forces the rest of the page to recalculate.
 * On narrow screens the message + link are hidden (only the "NEW v3"
 * pill stays visible) so the bar doesn't go two-lines tall. */
:root {
	--v3-banner-h: 40px;
}

.v3-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 101;
	height: var(--v3-banner-h);
	background: linear-gradient(
		90deg,
		color-mix(in srgb, #7c5cff 32%, #0a0a12),
		color-mix(in srgb, #20d0d0 28%, #0a0a12)
	);
	border-bottom: 1px solid color-mix(in srgb, #7c5cff 45%, transparent);
	color: #f5f5f7;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
}

.v3-banner__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: nowrap;
	min-width: 0;
	width: 100%;
}

.v3-banner__pill {
	background: #ffffff;
	color: #111;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	flex-shrink: 0;
}

.v3-banner__msg {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v3-banner__link {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
	white-space: nowrap;
	flex-shrink: 0;
}

.v3-banner__link:hover {
	border-bottom-color: #fff;
}

/* Mobile: hide the message + link, keep just the NEW v3 pill so the
 * banner stays single-line and never grows past --v3-banner-h. */
@media (max-width: 720px) {
	.v3-banner__msg,
	.v3-banner__link {
		display: none;
	}
}
