/* CausaVault marketing site — dark-first, Mintlify/Framer-grade.
   Single committed theme: deep charcoal ground, ember (brand orange)
   as the one glow, green reserved for live/ok signals. */

:root {
	--bg: #0a0b0e;
	--bg-raise: #101216;
	--card: rgba(255, 255, 255, 0.025);
	--border: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.14);
	--text: #ecedee;
	--text-dim: #9ba1a9;
	--text-faint: #62676e;
	--ember: #f05a3a;
	--ember-deep: #e53e1d;
	--ember-glow: rgba(229, 62, 29, 0.55);
	--signal: #21ce99;
	--radius: 14px;
	--font-display: "Sora", "Avenir Next", system-ui, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { 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.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; }
::selection { background: rgba(229, 62, 29, 0.35); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	background: rgba(10, 11, 14, 0.72);
	border-bottom: 1px solid var(--border);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.brand .word {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.06em;
}
.brand .word em { font-style: normal; color: var(--ember); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
/* On phones the header CTA crowds the brand — the hero and waitlist
   card carry the same CTA a swipe away, so drop it from the nav. */
@media (max-width: 640px) {
	.nav-actions .btn-primary { display: none; }
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border-radius: 999px;
	padding: 9px 20px;
	transition: transform 0.18s ease, box-shadow 0.18s ease,
		background 0.18s ease, border-color 0.18s ease;
	cursor: pointer;
	border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.btn-primary {
	background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
	color: #fff;
	box-shadow: 0 0 0 0 var(--ember-glow);
}
.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 30px -8px var(--ember-glow);
}
.btn-ghost {
	color: var(--text-dim);
	border-color: var(--border-strong);
	background: transparent;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

/* ── Hero backdrop layers ───────────────────────────────────────── */
.hero {
	position: relative;
	padding: 176px 0 96px;
	overflow: hidden;
}
.backdrop {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
	will-change: transform;
}
.orb-a {
	width: 560px; height: 560px;
	left: -140px; top: -180px;
	background: radial-gradient(circle, rgba(229, 62, 29, 0.5), transparent 65%);
	animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-b {
	width: 460px; height: 460px;
	right: -120px; top: 40px;
	background: radial-gradient(circle, rgba(240, 90, 58, 0.28), transparent 65%);
	animation: drift-b 32s ease-in-out infinite alternate;
}
.orb-c {
	width: 380px; height: 380px;
	left: 42%; bottom: -220px;
	background: radial-gradient(circle, rgba(33, 206, 153, 0.16), transparent 65%);
	animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(70px, 50px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-60px, 70px) scale(0.94); } }
@keyframes drift-c { to { transform: translate(40px, -60px) scale(1.1); } }

.grid-layer {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 32%, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 32%, black 30%, transparent 75%);
}

/* Drifting redaction bars — the shield's motif, barely-there. */
.bars-layer {
	position: absolute;
	inset: -60px 0;
	opacity: 0.05;
	background-image: repeating-linear-gradient(
		0deg,
		transparent 0 34px,
		var(--text) 34px 42px,
		transparent 42px 96px
	);
	mask-image: linear-gradient(105deg, transparent 30%, black 55%, transparent 82%);
	-webkit-mask-image: linear-gradient(105deg, transparent 30%, black 55%, transparent 82%);
	animation: bars-drift 60s linear infinite;
}
@keyframes bars-drift { to { transform: translateY(-192px); } }

/* Per Erik: ambient background motion (orbs, bars, pulse) plays on
   every device — including phones with iOS Reduce Motion / Low Power
   Mode, which set prefers-reduced-motion. Only the scroll reveals
   degrade there, to instantly-visible (content must never stay hidden). */
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Hero content ───────────────────────────────────────────────── */
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--text-dim);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	padding: 6px 14px;
	background: var(--card);
}
.eyebrow .pulse {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 0 rgba(33, 206, 153, 0.6);
	animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(33, 206, 153, 0.55); }
	70% { box-shadow: 0 0 0 9px rgba(33, 206, 153, 0); }
	100% { box-shadow: 0 0 0 0 rgba(33, 206, 153, 0); }
}
h1 {
	font-family: var(--font-display);
	font-size: clamp(40px, 6.4vw, 68px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 26px 0 20px;
	text-wrap: balance;
}
h1 .seal {
	background: linear-gradient(100deg, var(--ember) 10%, #ff9a72 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-sub {
	font-size: 18.5px;
	color: var(--text-dim);
	max-width: 58ch;
	margin: 0 0 34px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Status strip ───────────────────────────────────────────────── */
.status-strip {
	position: relative;
	z-index: 1;
	margin-top: 84px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 14px 0;
}
.status-strip .wrap {
	display: flex;
	gap: 34px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--text-faint);
}
.status-strip b { color: var(--text-dim); font-weight: 500; }

/* ── Pillars ────────────────────────────────────────────────────── */
.pillars { padding: 96px 0 40px; position: relative; }
.pillars-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin-top: 44px;
}
.pillar {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
	padding: 26px 24px 24px;
	transition: transform 0.22s ease, border-color 0.22s ease;
}
.pillar:hover { transform: translateY(-3px); border-color: rgba(240, 90, 58, 0.35); }
.pillar .glyph {
	width: 38px; height: 38px;
	border-radius: 10px;
	border: 1px solid var(--border-strong);
	display: flex; align-items: center; justify-content: center;
	color: var(--ember);
	margin-bottom: 16px;
	background: rgba(229, 62, 29, 0.07);
}
.pillar h3 {
	font-family: var(--font-display);
	font-size: 17px;
	margin: 0 0 8px;
	font-weight: 600;
}
.pillar p { margin: 0; font-size: 14.5px; color: var(--text-dim); }

.section-kicker {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ember);
	margin: 0 0 14px;
}
h2 {
	font-family: var(--font-display);
	font-size: clamp(26px, 3.6vw, 38px);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0;
	font-weight: 700;
	text-wrap: balance;
}
.section-sub { color: var(--text-dim); max-width: 60ch; margin: 14px 0 0; }

/* ── Waitlist ───────────────────────────────────────────────────── */
.waitlist { padding: 96px 0 120px; position: relative; }
.waitlist-card {
	position: relative;
	border: 1px solid var(--border-strong);
	border-radius: 20px;
	background:
		radial-gradient(120% 140% at 50% -20%, rgba(229, 62, 29, 0.13), transparent 55%),
		var(--bg-raise);
	padding: 56px 32px 60px;
	text-align: center;
	overflow: hidden;
}
.waitlist-card h2 { margin-bottom: 10px; }
.waitlist-card .section-sub { margin: 0 auto 34px; }
.waitlist-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 420px;
	margin: 0 auto;
}
.waitlist-form input {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-strong);
	border-radius: 11px;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	padding: 13px 16px;
}
.waitlist-form input::placeholder { color: var(--text-faint); }
.waitlist-form input:focus {
	outline: none;
	border-color: var(--ember);
	box-shadow: 0 0 0 3px rgba(229, 62, 29, 0.18);
}
.waitlist-form .btn { justify-content: center; padding: 13px 20px; font-size: 15px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { font-size: 14px; margin: 6px 0 0; min-height: 20px; }
.form-msg.ok { color: var(--signal); }
.form-msg.err { color: var(--ember); }
.waitlist-note { font-size: 12.5px; color: var(--text-faint); margin-top: 18px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0 44px; }
.site-footer .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal { padding: 140px 0 100px; }
.legal-body { max-width: 68ch; }
.legal-body h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 6px; }
.legal-meta {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-faint);
	margin-bottom: 40px;
}
.legal-body h2 {
	font-size: 20px;
	margin: 42px 0 12px;
}
.legal-body p, .legal-body li { color: var(--text-dim); font-size: 15.5px; }
.legal-body ul { padding-left: 22px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--signal); }
