/* Elido Cortex marketing site */
:root {
	--bg: #08090b;
	--bg-soft: #0e1014;
	--bg-panel: #14171e;
	--text: #f4f1ea;
	--muted: #9b978c;
	--faint: #5c594f;
	--line: rgba(244, 241, 234, 0.1);
	--accent: #d6ff3f;
	--accent-ink: #101208;
	--teal: #5eead4;
	--danger: #ff7a7a;
	--radius-pill: 999px;
	--nav-h: 72px;
	--font-display: "Syne", "Segoe UI", sans-serif;
	--font-body: "Manrope", "Segoe UI", sans-serif;
	--shadow-hero: 0 40px 120px rgba(0, 0, 0, 0.55);
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	background:
		radial-gradient(1200px 600px at 70% -10%, rgba(214, 255, 63, 0.08), transparent 55%),
		radial-gradient(900px 500px at 10% 20%, rgba(94, 234, 212, 0.06), transparent 50%),
		linear-gradient(180deg, #0b0c10 0%, var(--bg) 40%, #050607 100%);
	color: var(--text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

.container {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--nav-h);
	display: flex;
	align-items: center;
	backdrop-filter: blur(16px);
	background: rgba(8, 9, 11, 0.72);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.site-nav.is-scrolled {
	border-bottom-color: var(--line);
	background: rgba(8, 9, 11, 0.9);
}

.site-nav .inner {
	width: min(1200px, calc(100% - 40px));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.brand-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.brand-wordmark {
	height: 28px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	display: block;
	/* Knock out black background from Fonts.png on dark UI */
	mix-blend-mode: screen;
}

.brand-mark {
	/* legacy fallback — prefer .brand-logo */
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background:
		conic-gradient(from 210deg, var(--accent), var(--teal), #7c8cff, var(--accent));
	position: relative;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-mark::after {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 4px;
	background: var(--bg);
}

.nav-links {
	display: flex;
	gap: 28px;
	justify-content: center;
	font-size: 14px;
	color: var(--muted);
}

.nav-links a:hover {
	color: var(--text);
}

.nav-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
}

.nav-text {
	font-size: 14px;
	color: var(--muted);
	padding: 8px 10px;
}

.nav-text:hover {
	color: var(--text);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	padding: 11px 20px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--text);
	color: var(--accent-ink);
}

.btn-primary:hover {
	background: #fff;
}

.btn-accent {
	background: var(--accent);
	color: var(--accent-ink);
}

.btn-accent:hover {
	filter: brightness(1.05);
}

.btn-ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--text);
}

.btn-ghost:hover {
	border-color: rgba(244, 241, 234, 0.28);
}

.btn-lg {
	padding: 14px 26px;
	font-size: 15px;
}

/* —— Hero —— */
.hero {
	padding: 56px 0 28px;
	text-align: center;
}

.hero-brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.8rem, 8vw, 5.4rem);
	letter-spacing: -0.04em;
	line-height: 0.95;
	margin: 0 0 22px;
	background: linear-gradient(180deg, #fff 20%, #cfc9b8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: rise 0.8s ease both;
}

.hero-identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin: 0 auto 22px;
	animation: rise 0.8s ease both;
}

.hero-wordmark {
	width: min(560px, 88vw);
	height: auto;
	object-fit: contain;
	mix-blend-mode: screen;
}

.hero h1 {
	font-family: var(--font-display);
	font-weight: 650;
	font-size: clamp(1.35rem, 3.2vw, 2rem);
	letter-spacing: -0.02em;
	line-height: 1.25;
	max-width: 18ch;
	margin: 0 auto 14px;
	color: var(--text);
	animation: rise 0.8s ease 0.08s both;
}

.hero-lead {
	margin: 0 auto 28px;
	max-width: 42ch;
	color: var(--muted);
	font-size: 1.05rem;
	animation: rise 0.8s ease 0.14s both;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-bottom: 48px;
	animation: rise 0.8s ease 0.2s both;
}

.hero-stage {
	position: relative;
	width: min(1080px, calc(100% - 24px));
	margin: 0 auto;
	animation: rise 1s ease 0.28s both;
}

.hero-stage::before {
	content: "";
	position: absolute;
	inset: 12% 8% -8%;
	background: radial-gradient(ellipse at center, rgba(214, 255, 63, 0.18), transparent 65%);
	filter: blur(20px);
	z-index: 0;
	pointer-events: none;
}

.product-frame {
	position: relative;
	z-index: 1;
	border: 1px solid var(--line);
	border-radius: 18px 18px 0 0;
	overflow: hidden;
	background: var(--bg-panel);
	box-shadow: var(--shadow-hero);
	aspect-ratio: 16 / 10;
	display: grid;
	grid-template-columns: 240px 1fr 300px;
	min-height: 420px;
}

.product-chrome {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.02);
	font-size: 12px;
	color: var(--faint);
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #3a3d46;
}

.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }

.pane {
	padding: 14px;
	border-right: 1px solid var(--line);
	overflow: hidden;
}

.pane:last-child {
	border-right: none;
}

.pane-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--faint);
	margin-bottom: 12px;
}

.task {
	padding: 10px 12px;
	border-radius: 10px;
	margin-bottom: 8px;
	background: rgba(255, 255, 255, 0.03);
	font-size: 13px;
}

.task.active {
	background: rgba(214, 255, 63, 0.1);
	outline: 1px solid rgba(214, 255, 63, 0.25);
}

.task small {
	display: block;
	color: var(--faint);
	margin-top: 4px;
	font-size: 11px;
}

.editor-lines {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.7;
	color: #c8c4b8;
}

.editor-lines .kw { color: var(--teal); }
.editor-lines .fn { color: #9db4ff; }
.editor-lines .str { color: #e8c27a; }
.editor-lines .cm { color: var(--faint); }

.agent-bubble {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
	font-size: 13px;
	margin-bottom: 10px;
}

.agent-bubble strong {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	color: var(--accent);
}

.agent-status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--muted);
	margin-top: 8px;
}

.pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	animation: pulse 1.4s ease infinite;
}

/* —— Sections —— */
.section {
	padding: 88px 0;
}

.section-label {
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	margin-bottom: 28px;
}

.trust-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px 40px;
	opacity: 0.45;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 13px;
	color: var(--muted);
}

.feature-split {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 48px;
	align-items: center;
}

.feature-copy h2 {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 14px;
}

.feature-copy p {
	color: var(--muted);
	margin: 0 0 18px;
	max-width: 36ch;
}

.link-accent {
	color: var(--accent);
	font-weight: 600;
	font-size: 14px;
}

.link-accent:hover {
	text-decoration: underline;
}

.feature-visual {
	border: 1px solid var(--line);
	border-radius: 16px;
	background: linear-gradient(160deg, #171a22, #101218);
	min-height: 320px;
	padding: 20px;
	position: relative;
	overflow: hidden;
}

.feature-visual::after {
	content: "";
	position: absolute;
	inset: auto -20% -40% 30%;
	height: 70%;
	background: radial-gradient(circle, rgba(94, 234, 212, 0.2), transparent 60%);
	pointer-events: none;
}

/* Pricing */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 36px;
}

.price-tier {
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px 24px;
	background: rgba(255, 255, 255, 0.02);
}

.price-tier.featured {
	border-color: rgba(214, 255, 63, 0.35);
	background: linear-gradient(180deg, rgba(214, 255, 63, 0.08), rgba(255, 255, 255, 0.02));
}

.price-tier h3 {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 1.25rem;
}

.price-tier .amount {
	font-size: 2rem;
	font-weight: 700;
	margin: 12px 0;
	letter-spacing: -0.03em;
}

.price-tier .amount span {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--muted);
}

.price-tier ul {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 14px;
}

.price-tier li {
	padding: 7px 0;
	border-top: 1px solid var(--line);
}

.price-tier li:first-child {
	border-top: none;
}

/* Download page */
.download-hero {
	padding: 72px 0 40px;
	text-align: center;
}

.download-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3.2rem);
	letter-spacing: -0.03em;
	margin: 0 0 12px;
}

.download-platforms {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 40px auto 0;
	max-width: 900px;
}

.platform-card {
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px 22px;
	background: rgba(255, 255, 255, 0.02);
	text-align: left;
}

.platform-card h3 {
	margin: 0 0 8px;
	font-family: var(--font-display);
}

.platform-card p {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 14px;
	min-height: 40px;
}

.platform-card.recommended {
	border-color: rgba(214, 255, 63, 0.4);
}

.badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent-ink);
	background: var(--accent);
	border-radius: var(--radius-pill);
	padding: 4px 10px;
	margin-bottom: 12px;
}

.note {
	margin-top: 28px;
	text-align: center;
	color: var(--faint);
	font-size: 13px;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 56px 0 32px;
	margin-top: 40px;
}

.footer-cta {
	text-align: center;
	margin-bottom: 48px;
}

.footer-cta h2 {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin: 0 0 18px;
	letter-spacing: -0.02em;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 24px;
	font-size: 14px;
	color: var(--muted);
}

.footer-grid strong {
	display: block;
	color: var(--text);
	margin-bottom: 12px;
	font-family: var(--font-display);
}

.footer-grid a {
	display: block;
	padding: 4px 0;
}

.footer-grid a:hover {
	color: var(--text);
}

.footer-bottom {
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--faint);
}

.mobile-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	color: var(--text);
	border-radius: 8px;
	padding: 8px 10px;
	cursor: pointer;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 960px) {
	.site-nav .inner {
		grid-template-columns: auto 1fr auto;
	}

	.nav-links {
		display: none;
	}

	.product-frame {
		grid-template-columns: 1fr;
		aspect-ratio: auto;
		min-height: 0;
	}

	.pane.sidebar,
	.pane.agent {
		display: none;
	}

	.feature-split,
	.pricing-grid,
	.download-platforms,
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.nav-text.contact {
		display: none;
	}

	.hero {
		padding-top: 36px;
	}

	.hero-cta .btn {
		width: 100%;
	}
}
