/* ================================================================
   ExtForge UI — landing, auth, dashboard, 404
   Scoped under .extforge / .ef-shell so themes stay untouched.
   ================================================================ */

.extforge,
.ef-shell {
	--ef-brand: #7c5cff;
	--ef-brand-2: #e4b55f;
	--ef-ink: #f4f0fb;
	--ef-ink-2: #9a90b4;
	--ef-line: #2c2440;
	--ef-paper: #1a1527;
	--ef-tint: #15111f;
	--ef-plate: #0e0b16;
	--ef-radius: 18px;
	--ef-shadow: 0 24px 60px -32px rgba(0, 0, 0, .9);
	--ef-shadow-lg: 0 34px 80px -36px rgba(0, 0, 0, .95);

	color: var(--ef-ink);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.extforge h1,
.extforge h2,
.extforge h3,
.ef-shell h1,
.ef-shell h2 { font-stretch: 110%; }

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

/* ---------------- typography ---------------- */

.ef-h1 {
	margin: 0 0 18px;
	font-size: clamp(2.1rem, 5.4vw, 3.6rem);
	line-height: 1.07;
	font-weight: 780;
	letter-spacing: -0.025em;
}

.ef-h2 {
	margin: 0;
	font-size: clamp(1.5rem, 3.2vw, 2.25rem);
	line-height: 1.18;
	font-weight: 720;
	letter-spacing: -0.02em;
}

.ef-h3 {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 680;
}

.ef-grad {
	display: block;
	background: linear-gradient(100deg, var(--ef-brand), var(--ef-brand-2) 55%, #ec4899);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ef-lede {
	margin: 0 0 26px;
	max-width: 54ch;
	font-size: 1.08rem;
	color: var(--ef-ink-2);
}

.ef-link {
	color: var(--ef-brand);
	font-weight: 600;
	text-decoration: none;
}

.ef-link:hover { text-decoration: underline; }

/* ---------------- icons ---------------- */

.ef-i {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	display: inline-block;
	vertical-align: -5px;
}

.ef-i-lg { width: 30px; height: 30px; }
.ef-i-xl { width: 42px; height: 42px; }

.ef-ill {
	width: 100%;
	height: auto;
	max-width: 520px;
	display: block;
}

/* ---------------- animations ---------------- */

@keyframes ef-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

@keyframes ef-float-slow {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-9px) rotate(-.6deg); }
}

@keyframes ef-twinkle {
	0%, 100% { opacity: .25; transform: scale(.76); }
	50% { opacity: 1; transform: scale(1.12); }
}

@keyframes ef-pulse {
	0%, 100% { opacity: .55; transform: scale(.88); }
	50% { opacity: 1; transform: scale(1.1); }
}

@keyframes ef-spin { to { transform: rotate(360deg); } }

@keyframes ef-draw {
	from { stroke-dasharray: 60; stroke-dashoffset: 60; }
	to { stroke-dasharray: 60; stroke-dashoffset: 0; }
}

@keyframes ef-rise {
	from { transform: scaleY(.25); opacity: .35; }
	to { transform: scaleY(1); opacity: 1; }
}

@keyframes ef-flicker {
	0%, 100% { opacity: 0; }
	45% { opacity: .55; }
	55% { opacity: .1; }
}

@keyframes ef-flame {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.22); opacity: .7; }
}

@keyframes ef-tick {
	0%, 100% { transform: rotate(0deg); }
	50% { transform: rotate(14deg); }
}

@keyframes ef-tumble {
	0%, 100% { transform: translateY(0) rotate(-8deg); }
	50% { transform: translateY(-16px) rotate(10deg); }
}

@keyframes ef-pop {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-18px) scale(1.05); }
}

@keyframes ef-key {
	0%, 100% { transform: translateX(0) rotate(0deg); }
	50% { transform: translateX(-12px) rotate(-7deg); }
}

@keyframes ef-fly {
	0% { transform: translate(0, 0); opacity: 0; }
	35% { opacity: 1; }
	100% { transform: translate(44px, -32px); opacity: 0; }
}

@keyframes ef-typeline {
	0% { clip-path: inset(0 100% 0 0); }
	60%, 100% { clip-path: inset(0 0 0 0); }
}

@keyframes ef-type {
	0%, 100% { opacity: .5; }
	50% { opacity: 1; }
}

@keyframes ef-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(2.5px); }
}

@keyframes ef-orb {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(26px, -22px) scale(1.07); }
	66% { transform: translate(-20px, 16px) scale(.95); }
}

@keyframes ef-sheen {
	from { transform: translateX(-120%); }
	to { transform: translateX(220%); }
}

@keyframes ef-reveal-up {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: none; }
}

@keyframes ef-indeterminate {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(340%); }
}

.ef-a-float { animation: ef-float 6s ease-in-out infinite; }
.ef-a-float-slow { animation: ef-float-slow 8s ease-in-out infinite; }
.ef-a-twinkle { animation: ef-twinkle 2.6s ease-in-out infinite; transform-origin: center; }
.ef-a-pulse { animation: ef-pulse 2.4s ease-in-out infinite; transform-origin: center; }
.ef-a-spin-slow { animation: ef-spin 14s linear infinite; transform-origin: 12px 12px; }
.ef-a-draw { animation: ef-draw 1.6s ease-in-out infinite alternate; }
.ef-a-rise { animation: ef-rise 1.6s ease-in-out infinite alternate; transform-origin: bottom; }
.ef-a-flicker { animation: ef-flicker 2.2s ease-in-out infinite; }
.ef-a-flame { animation: ef-flame 1.1s ease-in-out infinite; transform-origin: 9px 19px; }
.ef-a-tick { animation: ef-tick 3s ease-in-out infinite; transform-origin: 12px 12px; }
.ef-a-tumble { animation: ef-tumble 5s ease-in-out infinite; transform-origin: 372px 128px; }
.ef-a-pop { animation: ef-pop 4.4s ease-in-out infinite; }
.ef-a-key { animation: ef-key 3.4s ease-in-out infinite; }
.ef-a-fly { animation: ef-fly 3.2s ease-in-out infinite; }
.ef-a-typeline { animation: ef-typeline 4.5s ease-in-out infinite; }
.ef-a-type { animation: ef-type 1.4s ease-in-out infinite; }
.ef-a-bounce { animation: ef-bounce 1.5s ease-in-out infinite; }

.ef-d1 { animation-delay: .45s; }
.ef-d2 { animation-delay: .9s; }
.ef-d3 { animation-delay: 1.35s; }

@media (prefers-reduced-motion: reduce) {
	.extforge *,
	.ef-shell * {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

/* ---------------- decorative orbs ---------------- */

.ef-orb {
	position: absolute;
	opacity: .45;
	border-radius: 50%;
	filter: blur(42px);
	opacity: .55;
	pointer-events: none;
	animation: ef-orb 18s ease-in-out infinite;
}

.ef-orb--1 { width: 360px; height: 360px; top: -90px; left: -70px; background: #5b3fd4; }
.ef-orb--2 { width: 320px; height: 320px; bottom: -80px; right: -60px; background: #8a5f1f; animation-delay: 3s; }
.ef-orb--3 { width: 230px; height: 230px; top: 42%; right: 18%; background: #4c2f93; animation-delay: 6s; }

.ef-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(124, 92, 255, .09) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(124, 92, 255, .09) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%);
	pointer-events: none;
}

/* ---------------- buttons ---------------- */

.ef-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 650;
	line-height: 1.2;
	border: 1px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ef-btn:hover { transform: translateY(-2px); }
.ef-btn:active { transform: translateY(0); }

.ef-btn--lg { padding: 15px 28px; font-size: 1.03rem; }
.ef-btn--full { width: 100%; }

.ef-btn--primary {
	color: #fff;
	background: linear-gradient(100deg, var(--ef-brand), var(--ef-brand-2));
	box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--ef-brand) 80%, transparent);
}

.ef-btn--primary .ef-i { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }

.ef-btn--primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: translateX(-120%);
}

.ef-btn--primary:hover::after { animation: ef-sheen .85s ease; }

.ef-btn--soft {
	color: var(--ef-ink);
	background: var(--ef-paper);
	border-color: var(--ef-line);
}

.ef-btn--soft:hover { border-color: var(--ef-brand); }

.ef-btn--ghost-light {
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .32);
}

.ef-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.ef-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--ef-line);
	border-radius: 12px;
	background: var(--ef-paper);
	color: var(--ef-ink-2);
	text-decoration: none;
	font-size: 1.3rem;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease;
}

.ef-icon-btn:hover { border-color: var(--ef-brand); color: var(--ef-brand); }
.ef-icon-btn--danger:hover { border-color: #f43f5e; color: #f43f5e; }

:where(.extforge, .ef-shell) :focus-visible {
	outline: 2px solid var(--ef-brand);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---------------- pills, notes, badges ---------------- */

.ef-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px 7px 11px;
	margin-bottom: 20px;
	font-size: .84rem;
	font-weight: 600;
	color: var(--ef-brand);
	background: color-mix(in srgb, var(--ef-brand) 11%, transparent);
	border: 1px solid color-mix(in srgb, var(--ef-brand) 24%, transparent);
	border-radius: 999px;
}

.ef-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ef-brand);
}

.ef-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	margin: 0 0 18px;
	font-size: .92rem;
	border-radius: 12px;
	border: 1px solid;
}

.ef-note--bad { color: #ffd4da; background: rgba(255,107,129,.12); border-color: rgba(255,107,129,.34); }
.ef-note--good { color: #9bf0d2; background: rgba(69,214,168,.12); border-color: rgba(69,214,168,.32); }
.ef-note--big { padding: 16px 20px; font-size: 1rem; }

@media (prefers-color-scheme: dark) {
	.ef-note--bad { background: rgba(244, 63, 94, .12); color: #fda4af; border-color: rgba(244, 63, 94, .35); }
	.ef-note--good { background: rgba(16, 185, 129, .12); color: #6ee7b7; border-color: rgba(16, 185, 129, .35); }
}

.ef-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--ef-ink-2);
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: 999px;
}

.ef-badge--plan {
	color: #fff;
	background: linear-gradient(100deg, var(--ef-brand), var(--ef-brand-2));
	border-color: transparent;
}

/* ================================================================
   LANDING
   ================================================================ */

.ef-landing { margin: 0 auto; max-width: 1180px; }

.ef-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: 48px;
	padding: 64px 0 72px;
	overflow: hidden;
}

.ef-hero-bg { position: absolute; inset: -60px; z-index: 0; }
.ef-hero-copy,
.ef-hero-art { position: relative; z-index: 1; }

.ef-hero-art { animation: ef-reveal-up .8s .1s both ease-out; }

.ef-hero-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.ef-hero-input {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 300px;
}

.ef-hero-input .ef-i {
	position: absolute;
	left: 14px;
	pointer-events: none;
}

.ef-hero-input .ef-input { padding-left: 46px; }

.ef-input,
.ef-textarea {
	width: 100%;
	padding: 13px 16px;
	font: inherit;
	color: var(--ef-ink);
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: 12px;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ef-input:focus,
.ef-textarea:focus {
	border-color: var(--ef-brand);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--ef-brand) 15%, transparent);
	outline: none;
}

.ef-hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
	color: var(--ef-ink-2);
}

.ef-hero-trust li { display: flex; align-items: center; gap: 7px; }
.ef-hero-trust .ef-i { width: 18px; height: 18px; }

/* ---------------- stats ---------------- */

.ef-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	padding: 26px;
	margin-bottom: 72px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	box-shadow: var(--ef-shadow);
}

.ef-stat { display: grid; justify-items: center; text-align: center; gap: 4px; }
.ef-stat strong { font-size: 1.05rem; font-weight: 700; }
.ef-stat span { font-size: .86rem; color: var(--ef-ink-2); }

/* ---------------- sections ---------------- */

.ef-section { padding: 72px 0; }

.ef-section--tint {
	padding: 72px 36px;
	margin: 0 -36px;
	background: var(--ef-tint);
	border-radius: 32px;
}

.ef-section-head { max-width: 46ch; margin: 0 auto 44px; text-align: center; }

/* ---------------- steps ---------------- */

.ef-steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ef;
}

.ef-step-card {
	position: relative;
	padding: 32px 26px 26px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	box-shadow: var(--ef-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}

.ef-step-card:hover { transform: translateY(-6px); box-shadow: var(--ef-shadow-lg); }
.ef-step-card h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.ef-step-card p { margin: 0; font-size: .95rem; color: var(--ef-ink-2); }

.ef-step-num {
	position: absolute;
	top: -16px;
	left: 26px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	font-weight: 750;
	color: #fff;
	background: linear-gradient(135deg, var(--ef-brand), var(--ef-brand-2));
	border-radius: 12px;
	box-shadow: 0 10px 22px -12px var(--ef-brand);
}

/* ---------------- features ---------------- */

.ef-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 18px;
}

.ef-feature {
	padding: 26px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	transition: transform .25s ease, border-color .25s ease;
}

.ef-feature:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--ef-brand) 45%, var(--ef-line)); }
.ef-feature h3 { margin: 14px 0 8px; font-size: 1.08rem; }
.ef-feature p { margin: 0; font-size: .94rem; color: var(--ef-ink-2); }

/* ---------------- idea cards ---------------- */

.ef-ideas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.ef-idea {
	padding: 22px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: 16px;
	transition: transform .25s ease;
}

.ef-idea:hover { transform: translateY(-4px) rotate(-.5deg); }
.ef-idea h3 { margin: 12px 0 6px; font-size: 1rem; }
.ef-idea p { margin: 0; font-size: .91rem; font-style: italic; color: var(--ef-ink-2); }

/* ---------------- pricing ---------------- */

.ef-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
	max-width: 760px;
	margin: 0 auto;
}

.ef-plan {
	position: relative;
	padding: 32px 28px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	box-shadow: var(--ef-shadow);
}

.ef-plan--best {
	border-color: transparent;
	box-shadow: var(--ef-shadow-lg);
	outline: 2px solid var(--ef-brand);
}

.ef-plan-tag {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 14px;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(100deg, var(--ef-brand), var(--ef-brand-2));
	border-radius: 999px;
	white-space: nowrap;
}

.ef-plan h3 { margin: 0 0 6px; font-size: 1.15rem; }

.ef-plan-price {
	margin: 0 0 18px;
	font-size: 2.2rem;
	font-weight: 780;
	letter-spacing: -.03em;
}

.ef-plan-price span { font-size: .95rem; font-weight: 500; color: var(--ef-ink-2); }

.ef-plan ul {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	font-size: .94rem;
}

.ef-plan li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 10px;
	color: var(--ef-ink-2);
}

.ef-plan .ef-i { width: 19px; height: 19px; margin-top: 2px; }

/* ---------------- final CTA ---------------- */

.ef-cta {
	position: relative;
	margin: 20px 0 10px;
	padding: 66px 32px;
	text-align: center;
	color: #fff;
	background: linear-gradient(120deg, var(--ef-brand), var(--ef-brand-2) 60%, #ec4899);
	border-radius: 32px;
	overflow: hidden;
}

.ef-cta-inner { position: relative; max-width: 42ch; margin: 0 auto; }
.ef-cta .ef-h2 { margin: 16px 0 10px; }
.ef-cta p { margin: 0 0 26px; opacity: .92; }

.ef-cta-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

/* ================================================================
   AUTH
   ================================================================ */

.ef-shell { margin: 0; min-height: 100vh; background: var(--ef-plate); color: var(--ef-ink); }

.ef-shell-wrap {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 36px 20px;
	overflow: hidden;
}

.ef-shell-bg { position: absolute; inset: 0; z-index: 0; }

.ef-auth {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 44px;
	width: 100%;
	max-width: 980px;
}

.ef-auth--narrow { grid-template-columns: 1fr; max-width: 480px; }

.ef-auth-art { text-align: center; }
.ef-auth-art .ef-ill { margin: 0 auto 22px; }
.ef-auth-art-title { margin: 0 0 10px; font-size: 1.45rem; font-weight: 700; }
.ef-auth-art-sub { margin: 0; color: var(--ef-ink-2); }

.ef-auth-perks {
	display: inline-grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
	font-size: .96rem;
	color: var(--ef-ink-2);
}

.ef-auth-perks li { display: flex; align-items: center; gap: 10px; }

.ef-auth-panel {
	padding: 38px 34px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: 24px;
	box-shadow: var(--ef-shadow-lg);
	animation: ef-reveal-up .55s both ease-out;
}

.ef-auth-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	font-weight: 750;
	font-size: 1.05rem;
	color: var(--ef-ink);
	text-decoration: none;
}

.ef-auth-icon { margin-bottom: 14px; }
.ef-auth-title { margin: 0 0 6px; font-size: 1.6rem; font-weight: 740; letter-spacing: -.02em; }
.ef-auth-sub { margin: 0 0 24px; color: var(--ef-ink-2); font-size: .96rem; }
.ef-auth-sent { text-align: center; }
.ef-auth-sent .ef-ill { margin: 0 auto 10px; max-width: 300px; }

.ef-auth-foot { margin: 20px 0 0; text-align: center; font-size: .93rem; color: var(--ef-ink-2); }

.ef-authform { display: grid; gap: 16px; }

.ef-field { display: grid; gap: 7px; }

.ef-field-label { font-size: .85rem; font-weight: 600; color: var(--ef-ink-2); }

.ef-field-wrap { position: relative; display: flex; align-items: center; }

.ef-field-wrap > .ef-i {
	position: absolute;
	left: 14px;
	pointer-events: none;
	opacity: .9;
}

.ef-field-wrap .ef-input { padding-left: 46px; }

.ef-reveal {
	position: absolute;
	right: 8px;
	padding: 6px 8px;
	font-size: 1rem;
	line-height: 1;
	background: none;
	border: 0;
	cursor: pointer;
	opacity: .55;
}

.ef-reveal:hover { opacity: 1; }

.ef-field-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: .9rem;
}

.ef-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ef-ink-2); }

.ef-meter {
	display: block;
	height: 5px;
	background: var(--ef-line);
	border-radius: 999px;
	overflow: hidden;
}

.ef-meter-fill {
	display: block;
	width: 0;
	height: 100%;
	background: #f43f5e;
	border-radius: 999px;
	transition: width .3s ease, background .3s ease;
}

.ef-meter-text { font-size: .78rem; color: var(--ef-ink-2); }

.ef-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================================================================
   404
   ================================================================ */

.ef-404 {
	position: relative;
	z-index: 1;
	max-width: 620px;
	text-align: center;
}

.ef-404-art .ef-ill { margin: 0 auto; max-width: 440px; }

.ef-404-code {
	margin: 6px 0 0;
	font-size: clamp(3.2rem, 11vw, 5.6rem);
	font-weight: 820;
	line-height: 1;
	letter-spacing: -.05em;
	background: linear-gradient(100deg, var(--ef-brand), var(--ef-brand-2) 55%, #ec4899);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ef-404-title { margin: 10px 0 10px; font-size: clamp(1.3rem, 3.6vw, 1.9rem); font-weight: 730; }
.ef-404-sub { margin: 0 auto 28px; max-width: 46ch; color: var(--ef-ink-2); }

.ef-404-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}

.ef-404-search {
	display: flex;
	gap: 10px;
	max-width: 440px;
	margin: 0 auto;
}

/* ================================================================
   DASHBOARD
   ================================================================ */

.ef-dash { max-width: 1060px; margin: 0 auto; }

.ef-dash-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	padding: 24px 26px;
	margin-bottom: 26px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	box-shadow: var(--ef-shadow);
}

.ef-dash-hello { display: flex; align-items: center; gap: 14px; }

.ef-avatar {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	font-size: 1.25rem;
	font-weight: 750;
	color: #fff;
	background: linear-gradient(135deg, var(--ef-brand), var(--ef-brand-2));
	border-radius: 16px;
}

.ef-dash-title { margin: 0; font-size: 1.3rem; font-weight: 720; }
.ef-dash-sub { margin: 0; font-size: .92rem; color: var(--ef-ink-2); }

.ef-dash-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ---------------- history ---------------- */

.ef-history { margin-top: 34px; }

.ef-history-head { margin-bottom: 16px; }

.ef-count {
	padding: 2px 10px;
	font-size: .8rem;
	font-weight: 700;
	color: var(--ef-brand);
	background: color-mix(in srgb, var(--ef-brand) 12%, transparent);
	border-radius: 999px;
}

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

.ef-build {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: 16px;
	transition: transform .2s ease, border-color .2s ease;
}

.ef-build:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--ef-brand) 45%, var(--ef-line)); }

.ef-build-icon { flex: 0 0 auto; }
.ef-build-body { flex: 1 1 auto; min-width: 0; }
.ef-build-body h3 { margin: 0 0 3px; font-size: 1rem; font-weight: 670; }

.ef-build-idea {
	margin: 0 0 5px;
	font-size: .9rem;
	color: var(--ef-ink-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ef-build-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: .8rem;
	color: var(--ef-ink-2);
}

.ef-build-meta .ef-i { width: 15px; height: 15px; }

.ef-build-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.ef-empty {
	padding: 42px 24px;
	text-align: center;
	background: var(--ef-paper);
	border: 1px dashed var(--ef-line);
	border-radius: var(--ef-radius);
}

.ef-empty .ef-ill { margin: 0 auto 14px; max-width: 280px; }
.ef-empty h3 { margin: 0 0 6px; font-size: 1.08rem; }
.ef-empty p { margin: 0; color: var(--ef-ink-2); font-size: .94rem; }

/* ---------------- gate ---------------- */

.ef-gate {
	max-width: 520px;
	margin: 0 auto;
	padding: 36px 28px;
	text-align: center;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	box-shadow: var(--ef-shadow);
}

.ef-gate .ef-ill { margin: 0 auto 10px; max-width: 280px; }
.ef-gate h3 { margin: 0 0 6px; font-size: 1.2rem; }
.ef-gate p { margin: 0 0 20px; color: var(--ef-ink-2); }
.ef-gate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------------- builder progress ---------------- */

.ef-progress {
	position: relative;
	height: 5px;
	margin-top: 12px;
	background: var(--ef-line);
	border-radius: 999px;
	overflow: hidden;
}

.ef-progress-bar {
	position: absolute;
	inset: 0 auto 0 0;
	width: 30%;
	background: linear-gradient(100deg, var(--ef-brand), var(--ef-brand-2));
	border-radius: 999px;
	animation: ef-indeterminate 1.5s ease-in-out infinite;
}

/* ---------------- scroll reveal ---------------- */

.ef-reveal-pending { opacity: 0; transform: translateY(26px); }

.ef-revealed { animation: ef-reveal-up .6s both cubic-bezier(.2, .7, .3, 1); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 860px) {
	.ef-hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 48px; }
	.ef-hero-art { order: -1; max-width: 420px; margin: 0 auto; }
	.ef-auth { grid-template-columns: 1fr; max-width: 460px; }
	.ef-auth-art { display: none; }
	.ef-section { padding: 52px 0; }
	.ef-section--tint { padding: 52px 20px; margin: 0 -20px; border-radius: 24px; }
}

@media (max-width: 560px) {
	.ef-auth-panel { padding: 28px 20px; }
	.ef-dash-top { flex-direction: column; align-items: flex-start; }
	.ef-build { flex-wrap: wrap; }
	.ef-build-actions { width: 100%; justify-content: flex-end; }
	.ef-cta { padding: 48px 20px; border-radius: 24px; }
}

/* ================================================================
   SITE — the dark rebuild. Everything above this point is the older
   shared furniture (buttons, fields, auth panels); this section owns
   the public pages.
   ================================================================ */

.ef-site { max-width: 1120px; margin: 0 auto; padding-bottom: 40px; }

.ef-site .ef-h2 {
	font-size: clamp(1.55rem, 3.4vw, 2.3rem);
	line-height: 1.12;
	letter-spacing: -.028em;
	font-stretch: 112%;
	font-weight: 640;
	margin: 0;
}

.ef-display {
	margin: 0 0 20px;
	font-size: clamp(2.3rem, 6vw, 4.1rem);
	line-height: 1.02;
	letter-spacing: -.04em;
	font-stretch: 116%;
	font-weight: 680;
}

.ef-display span {
	display: block;
	background: linear-gradient(96deg, #f0c877, #e4b55f 32%, #a98bff 78%, #7c5cff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ef-site .ef-lede { max-width: 56ch; margin: 0 0 28px; font-size: 1.06rem; color: var(--ef-ink-2); }

.ef-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 22px;
	padding: 7px 15px 7px 10px;
	font-size: .82rem;
	font-weight: 550;
	color: var(--ef-ink-2);
	background: rgba(124, 92, 255, .1);
	border: 1px solid rgba(124, 92, 255, .26);
	border-radius: 999px;
}

.ef-kicker .ef-i { width: 17px; height: 17px; }

/* ---------------- hero ---------------- */

.ef-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.08fr .92fr;
	align-items: center;
	gap: 44px;
	padding: 70px 0 84px;
}

.ef-hero__bg { position: absolute; inset: -80px -40px; z-index: 0; }
.ef-hero__copy, .ef-hero__art { position: relative; z-index: 1; }

.ef-catch { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ef-catch .ef-input { flex: 1 1 280px; }
.ef-catch .ef-btn { flex: 0 0 auto; }

.ef-undersay { margin: 0; font-size: .88rem; color: var(--ef-ink-2); }

/* ---------------- bands ---------------- */

.ef-band { padding: 66px 0; border-top: 1px solid var(--ef-line); }
.ef-band__head { max-width: 54ch; margin-bottom: 36px; }
.ef-band__head p { margin: 12px 0 0; color: var(--ef-ink-2); }

.ef-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin: 40px 0 0; }

.ef-specs > div { padding: 20px 24px 20px 0; border-top: 1px solid var(--ef-line); }
.ef-specs dt { font-size: .8rem; color: var(--ef-brand-2); margin-bottom: 7px; }
.ef-specs dd { margin: 0; font-size: .94rem; color: var(--ef-ink-2); max-width: 32ch; }

/* ---------------- split band ---------------- */

.ef-split-band {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
	padding: 66px 0;
	border-top: 1px solid var(--ef-line);
}

.ef-split-band__copy p { margin: 14px 0 22px; color: var(--ef-ink-2); max-width: 46ch; }

.ef-ticks { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: .94rem; color: var(--ef-ink-2); }
.ef-ticks li { display: flex; align-items: center; gap: 11px; }
.ef-ticks .ef-i { width: 19px; height: 19px; flex: 0 0 auto; }

/* ---------------- tiles ---------------- */

.ef-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); gap: 16px; }

.ef-tile {
	padding: 26px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
	transition: border-color .2s ease, transform .2s ease;
}

.ef-tile:hover { border-color: rgba(124, 92, 255, .45); transform: translateY(-3px); }
.ef-tile h3 { margin: 14px 0 7px; font-size: 1.08rem; font-weight: 620; }
.ef-tile p { margin: 0; font-size: .91rem; color: var(--ef-ink-2); }

/* ---------------- price plates ---------------- */

.ef-plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; max-width: 780px; }

.ef-plate {
	padding: 32px 28px;
	background: var(--ef-paper);
	border: 1px solid var(--ef-line);
	border-radius: var(--ef-radius);
}

.ef-plate--lit {
	border-color: rgba(124, 92, 255, .4);
	box-shadow: 0 0 0 1px rgba(124, 92, 255, .2), 0 30px 70px -40px rgba(124, 92, 255, .6);
}

.ef-plate h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 620; }

.ef-plate__price {
	margin: 0 0 22px;
	font-size: 2.4rem;
	font-weight: 680;
	font-stretch: 110%;
	letter-spacing: -.035em;
}

.ef-plate__price span { font-size: .9rem; font-weight: 400; color: var(--ef-ink-2); letter-spacing: 0; }

.ef-plate ul { margin: 0 0 26px; padding: 0; list-style: none; font-size: .93rem; color: var(--ef-ink-2); }
.ef-plate li { padding: 9px 0; border-top: 1px solid var(--ef-line); }
.ef-plate li:first-child { border-top: 0; }

/* ---------------- close ---------------- */

.ef-close { padding: 80px 0 40px; text-align: center; border-top: 1px solid var(--ef-line); }
.ef-close .ef-h2 { max-width: 20ch; margin: 0 auto 28px; }

.ef-quiet-link {
	display: block;
	margin-top: 18px;
	font-size: .9rem;
	color: var(--ef-ink-2);
	text-decoration: none;
}

.ef-quiet-link:hover { color: var(--ef-ink); }

/* ---------------- art ---------------- */

.ef-site .ef-scene { display: block; width: 100%; height: auto; }
.ef-site .ef-glyph { display: block; }

.ef-s-float { animation: ef-hover 5.5s ease-in-out infinite; }
.ef-s-glow { animation: ef-breathe-soft 4.5s ease-in-out infinite; transform-origin: center; }
.ef-s-sparks circle { animation: ef-rise-spark 3s ease-in-out infinite; transform-origin: center; }
.ef-s-sparks circle:nth-child(2) { animation-delay: .6s; }
.ef-s-sparks circle:nth-child(3) { animation-delay: 1.2s; }
.ef-s-sparks circle:nth-child(4) { animation-delay: 1.8s; }
.ef-s-part { animation: ef-travel-wide 7s linear infinite; }
.ef-s-type { animation: ef-typeline 5s ease-in-out infinite; }
.ef-s-flow { animation: ef-flow 1.6s linear infinite; }
.ef-s-card { animation: ef-card-in 4.5s ease-in-out infinite; transform-origin: left center; }
.ef-s-pop { animation: ef-hover 5s ease-in-out infinite; }
.ef-s-pin { animation: ef-breathe-pin 3.4s ease-in-out infinite; transform-origin: 352px 50px; }
.ef-s-badge { animation: ef-twinkle 2.8s ease-in-out infinite; transform-origin: center; }

.ef-g-spark { animation: ef-twinkle 2.6s ease-in-out infinite; transform-origin: center; }
.ef-g-hand { animation: ef-nudge 3s ease-in-out infinite; transform-origin: 24px 25px; }
.ef-g-lift { animation: ef-lift 2.8s ease-in-out infinite; }
.ef-g-line { animation: ef-draw-line 2.6s ease-in-out infinite; }

@keyframes ef-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ef-breathe-soft { 0%, 100% { opacity: .14; transform: scale(.94); } 50% { opacity: .3; transform: scale(1.04); } }
@keyframes ef-rise-spark { 0% { opacity: 0; transform: translateY(10px) scale(.5); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-28px) scale(1.1); } }
@keyframes ef-travel-wide { 0% { transform: translateX(0); } 100% { transform: translateX(120px); } }
@keyframes ef-flow { to { stroke-dashoffset: -22; } }
@keyframes ef-card-in { 0%, 12% { opacity: 0; transform: translateX(-14px); } 28%, 100% { opacity: 1; transform: none; } }
@keyframes ef-breathe-pin { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes ef-twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes ef-nudge { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(16deg); } }
@keyframes ef-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes ef-draw-line { 0% { stroke-dasharray: 40; stroke-dashoffset: 40; } 60%, 100% { stroke-dasharray: 40; stroke-dashoffset: 0; } }

.ef-d1 { animation-delay: 2.3s; }
.ef-d2 { animation-delay: 4.6s; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
	.ef-hero { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 54px; }
	.ef-hero__art { order: -1; max-width: 420px; margin: 0 auto; }
	.ef-split-band { grid-template-columns: 1fr; gap: 28px; }
	.ef-split-band__art { order: -1; }
	.ef-band, .ef-split-band { padding: 48px 0; }
	.ef-close { padding: 56px 0 30px; }
}
