/* MorphCam landing + legal — shared styles. Matches the v4 app design system:
   dark base, violet→cyan brand gradient, Instrument Serif display + Inter body. */

:root {
	--bg: #050612;
	--bg-muted: #0a0b1a;
	--card: rgba(255, 255, 255, 0.035);
	--card-strong: rgba(255, 255, 255, 0.06);
	--text: #ecedf5;
	--text-muted: #9aa1b8;
	--text-faint: #5a5f78;
	--brand-violet: #7c5cff;
	--brand-cyan: #20d0d0;
	--grad-brand: linear-gradient(135deg, #7c5cff 0%, #20d0d0 100%);
	--hairline: rgba(255, 255, 255, 0.08);
	--hairline-strong: rgba(255, 255, 255, 0.16);
	--font-display: "Instrument Serif", "Iowan Old Style", Cambria, Georgia, serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Aurora + floating glow orbs (ambience, inspired by the original site) */
.aurora {
	position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
	background:
		radial-gradient(circle at 18% 22%, rgba(124,92,255,0.10), transparent 42%),
		radial-gradient(circle at 82% 68%, rgba(32,208,208,0.09), transparent 42%);
}
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.55; }
.aurora::before {
	width: 640px; height: 640px; top: -200px; left: -140px;
	background: radial-gradient(circle at center, rgba(124,92,255,0.6), transparent 70%);
	animation: float-orb 18s ease-in-out infinite;
}
.aurora::after {
	width: 580px; height: 580px; top: 40px; right: -180px;
	background: radial-gradient(circle at center, rgba(32,208,208,0.45), transparent 70%);
	animation: float-orb 22s ease-in-out infinite reverse;
}
.orb { position: fixed; z-index: -1; border-radius: 50%; filter: blur(95px); opacity: 0.38; pointer-events: none; }
.orb--3 { width: 440px; height: 440px; bottom: -180px; left: 32%; background: radial-gradient(circle at center, rgba(124,92,255,0.42), transparent 70%); animation: float-orb 27s ease-in-out infinite; }
@keyframes float-orb {
	0%, 100% { transform: translate(0,0) scale(1); }
	33% { transform: translate(44px,-32px) scale(1.08); }
	66% { transform: translate(-30px,22px) scale(0.95); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse-soft { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.fade-up { animation: fade-up 0.75s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.16s; }
.fade-up.d3 { animation-delay: 0.24s; }
.fade-up.d4 { animation-delay: 0.32s; }

/* Hero art frame (holds the Ideogram render; gradient fallback if absent) */
.hero__art {
	margin: 56px auto 0; max-width: 960px; border-radius: 22px; overflow: hidden; position: relative;
	border: 1px solid var(--hairline-strong); box-shadow: 0 44px 130px rgba(0,0,0,0.62);
	background: radial-gradient(circle at 32% 42%, rgba(124,92,255,0.28), transparent 55%), radial-gradient(circle at 72% 64%, rgba(32,208,208,0.22), transparent 55%), #08091a;
	aspect-ratio: 16/9;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__art .live {
	position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
	font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	background: rgba(255,60,90,0.18); color: #ff5f6d; border: 1px solid rgba(255,60,90,0.45); padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero__art .live b { width: 7px; height: 7px; border-radius: 50%; background: #ff5f6d; box-shadow: 0 0 8px #ff5f6d; animation: pulse-soft 2s ease-in-out infinite; }

/* Nav */
.nav {
	position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
	background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand__mark {
	width: 28px; height: 28px; border-radius: 8px; background: var(--grad-brand);
	box-shadow: 0 4px 16px rgba(124,92,255,0.45); display: inline-flex; align-items: center; justify-content: center;
}
.brand__mark::after { content: "M"; font-family: var(--font-display); font-size: 19px; line-height: 1; color: #fff; }
.nav-toggle { display: none; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--text); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	font: 600 15px/1 var(--font-body); padding: 13px 22px; border-radius: 12px;
	border: 1px solid transparent; cursor: pointer; transition: transform .12s, filter .15s, background .15s;
}
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 26px rgba(124,92,255,0.34); }
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn--ghost { background: var(--card-strong); color: var(--text); border-color: var(--hairline-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
	border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 7px 14px; margin-bottom: 26px; background: var(--card);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 10px var(--brand-cyan); }
h1.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; margin: 0 0 22px; }
.display .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 640px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* Showcase frame */
.showcase {
	margin: 60px auto 0; max-width: 900px; border-radius: 20px; overflow: hidden; border: 1px solid var(--hairline-strong);
	background: linear-gradient(180deg, rgba(124,92,255,0.10), rgba(32,208,208,0.05)); box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}
.showcase__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.showcase__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--hairline-strong); display: inline-block; }
.showcase__body {
	aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative;
	background: radial-gradient(circle at 30% 40%, rgba(124,92,255,0.25), transparent 55%), radial-gradient(circle at 72% 65%, rgba(32,208,208,0.2), transparent 55%), #08091a;
}
.showcase__body .live {
	position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px;
	font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	background: rgba(255,60,90,0.16); color: #ff5f6d; border: 1px solid rgba(255,60,90,0.4); padding: 6px 11px; border-radius: 999px;
}
.showcase__body .live b { width: 7px; height: 7px; border-radius: 50%; background: #ff5f6d; box-shadow: 0 0 8px #ff5f6d; }
.showcase__body .face { font-family: var(--font-display); font-size: 30px; color: var(--text-muted); font-style: italic; }

/* Sections */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p { color: var(--text-muted); margin: 0; font-size: 17px; }

/* Steps + features */
.steps, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step, .feature { border: 1px solid var(--hairline); border-radius: 16px; padding: 26px; background: var(--card); }
.feature { transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.step__n { font-family: var(--font-mono); font-size: 13px; color: var(--brand-cyan); margin-bottom: 14px; }
.step h3, .feature h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p, .feature p { color: var(--text-muted); margin: 0; font-size: 15px; }
.feature__ico { width: 42px; height: 42px; border-radius: 11px; background: var(--grad-brand); opacity: .92; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; }

/* Responsibility band */
.band { border: 1px solid var(--hairline-strong); border-radius: 20px; padding: 44px; background: linear-gradient(135deg, rgba(124,92,255,0.10), rgba(32,208,208,0.06)); text-align: center; }
.band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); margin: 0 0 14px; letter-spacing: -0.02em; }
.band p { color: var(--text-muted); max-width: 680px; margin: 0 auto 10px; font-size: 16px; }
.band a.inline { color: var(--brand-cyan); text-decoration: underline; text-underline-offset: 3px; }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 56px); margin: 0 0 18px; letter-spacing: -0.02em; }
.cta-final p { color: var(--text-muted); margin: 0 0 30px; font-size: 18px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--hairline); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; background: var(--card); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-cyan); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-muted); margin: 0 0 18px; font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 54px 0 40px; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { color: var(--text-muted); font-size: 14px; transition: color .15s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--text-faint); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 60px 0 90px; max-width: 820px; }
.legal .back { color: var(--text-muted); font-size: 14px; display: inline-flex; gap: 6px; margin-bottom: 30px; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin: 0 0 12px; }
.legal .intro { color: var(--text-muted); font-size: 16px; border-left: 2px solid var(--brand-violet); padding-left: 16px; margin: 20px 0 34px; }
.legal h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--text); }
.legal .callout { background: var(--card); border: 1px solid var(--hairline-strong); border-radius: 12px; padding: 16px 18px; margin: 22px 0; }
.legal a { color: var(--brand-cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal .toc { background: var(--card); border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 22px; margin: 24px 0 34px; }
.legal .toc a { color: var(--text-muted); text-decoration: none; }
.legal .toc a:hover { color: var(--text); }
.legal .toc li { margin-bottom: 5px; }

@media (max-width: 820px) {
	.nav__links { display: none; }
	.steps, .features { grid-template-columns: 1fr; }
	section { padding: 56px 0; }
	.band { padding: 30px 22px; }
}
