:root {
	--bg: #0b0f14;
	--bg-elevated: #111720;
	--bg-card: #151c27;
	--bg-soft: rgba(255, 255, 255, 0.03);
	--border: rgba(255, 255, 255, 0.09);
	--border-strong: rgba(245, 158, 11, 0.22);
	--text: #eef2f7;
	--text-dim: #a1acbd;
	--text-muted: #6f7b8e;
	--amber: #f7a528;
	--amber-soft: rgba(247, 165, 40, 0.14);
	--amber-deep: #d98208;
	--green: #29c98d;
	--red: #ef5b5b;
	--teal: #45d8d1;
	--mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;
	--sans: "DM Sans", system-ui, sans-serif;
	--shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(
			circle at top left,
			rgba(247, 165, 40, 0.14),
			transparent 30%
		),
		radial-gradient(circle at 85% 5%, rgba(69, 216, 209, 0.11), transparent 24%),
		var(--bg);
	color: var(--text);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
}

.backdrop {
	pointer-events: none;
	position: fixed;
	inset: 0;
	z-index: 0;
}

.backdrop-grid {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
}

.backdrop-glow {
	background:
		radial-gradient(circle at 50% 0%, rgba(247, 165, 40, 0.2), transparent 36%),
		radial-gradient(circle at 15% 20%, rgba(69, 216, 209, 0.1), transparent 18%);
	opacity: 0.9;
}

.backdrop-glow-alt {
	background:
		radial-gradient(
			circle at 75% 15%,
			rgba(247, 165, 40, 0.12),
			transparent 20%
		),
		radial-gradient(
			circle at 35% 40%,
			rgba(69, 216, 209, 0.08),
			transparent 18%
		);
}

.page {
	position: relative;
	z-index: 1;
}

.section,
.site-header,
.site-footer {
	width: min(1180px, calc(100% - 2rem));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	margin-top: 1rem;
	padding: 1rem 1.15rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: rgba(10, 14, 20, 0.74);
	backdrop-filter: blur(22px);
	box-shadow: var(--shadow);
}

.site-header-compact {
	margin-bottom: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
}

.brand span:last-child {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.brand strong {
	font-size: 1rem;
	letter-spacing: -0.02em;
}

.brand small {
	color: var(--text-muted);
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.brand-mark {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	color: #0b0f14;
	background: linear-gradient(160deg, #ffd26d, var(--amber));
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	flex: 0 0 auto;
}

.brand-mark svg {
	width: 20px;
	height: 20px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.15rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.site-nav a {
	color: var(--text-dim);
	font-family: var(--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.site-nav a:hover {
	color: var(--text);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.85rem 1.15rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: linear-gradient(180deg, #ffbb44, var(--amber));
	color: #0b0f14;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	box-shadow: 0 14px 30px rgba(247, 165, 40, 0.22);
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.button:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 36px rgba(247, 165, 40, 0.28);
}

.button-secondary {
	background: rgba(255, 255, 255, 0.02);
	color: var(--text);
	border-color: var(--border);
	box-shadow: none;
}

.button-secondary:hover {
	border-color: var(--border-strong);
	box-shadow: none;
}

.section {
	position: relative;
}

.hero,
.split,
.workflow,
.cta {
	padding-top: 5rem;
	padding-bottom: 4rem;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	gap: 2rem;
	align-items: center;
	min-height: calc(100vh - 5rem);
}

.hero-copy h1,
.section-heading h2,
.cta h2,
.demo-hero h1 {
	margin: 0;
	letter-spacing: -0.05em;
	line-height: 0.96;
}

.hero-copy h1 {
	max-width: 12ch;
	font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.lede {
	max-width: 60ch;
	color: var(--text-dim);
	font-size: clamp(1.05rem, 1.9vw, 1.22rem);
	line-height: 1.7;
	margin: 1.5rem 0 0;
}

.eyebrow {
	margin: 0 0 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--amber);
	font-family: var(--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.eyebrow-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--amber);
	box-shadow: 0 0 0 6px rgba(247, 165, 40, 0.14);
}

.hero-actions,
.cta-actions {
	display: flex;
	gap: 0.85rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.panel {
	position: relative;
	border: 1px solid var(--border);
	border-radius: 28px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
		rgba(17, 23, 32, 0.82);
	backdrop-filter: blur(18px);
	box-shadow: var(--shadow);
}

.panel-inner {
	border: 1px solid var(--border);
	border-radius: 22px;
	background: var(--bg-soft);
}

.hero-panel {
	padding: 1.25rem;
}

.panel-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
	font-family: var(--mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text-dim);
}

.status-pill-live {
	border-color: rgba(41, 201, 141, 0.26);
	color: var(--green);
}

.transcript-mini {
	display: grid;
	gap: 0.9rem;
}

.transcript-mini article {
	padding: 0.95rem 1rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.speaker {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0.45rem;
	font-family: var(--mono);
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.speaker-tech {
	color: #7fb2ff;
}

.speaker-vektra {
	color: var(--amber);
}

.transcript-mini p,
.feature-card p,
.step-card p,
.cta p,
.demo-hero p,
.turnstile-box p,
.limit-card,
.rail-item strong {
	margin: 0;
	color: var(--text-dim);
	line-height: 1.7;
}

.metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.9rem;
}

.metric {
	padding: 1.35rem 1.2rem;
}

.metric strong {
	display: block;
	font-family: var(--mono);
	font-size: clamp(1.45rem, 3vw, 2rem);
	color: var(--amber);
}

.metric span {
	display: block;
	margin-top: 0.35rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-family: var(--mono);
	font-size: 0.66rem;
}

.split,
.workflow,
.cta {
	display: grid;
	gap: 1.75rem;
}

.section-heading {
	display: grid;
	gap: 0.8rem;
}

.section-heading h2,
.cta h2,
.demo-hero h1 {
	max-width: 12ch;
	font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.feature-grid,
.step-grid,
.demo-grid {
	display: grid;
	gap: 0.9rem;
}

.feature-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.step-card,
.demo-sidebar,
.demo-stage,
.demo-rail {
	padding: 1.4rem;
}

.feature-card h3,
.step-card h3 {
	margin: 0 0 0.55rem;
	font-size: 1.06rem;
	letter-spacing: -0.03em;
}

.step-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	font-family: var(--mono);
	font-size: 2rem;
	color: rgba(255, 255, 255, 0.14);
}

.cta {
	align-items: start;
}

.cta-copy {
	max-width: 58ch;
}

.site-footer {
	padding: 1.5rem 0 3rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	color: var(--text-muted);
	font-family: var(--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.footer-brand {
	color: var(--text);
}

/* ── Demo page ─────────────────────────────── */

.page-demo {
	min-height: 100dvh;
}

.demo-main {
	width: min(640px, calc(100% - 2rem));
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - 6rem);
}

/* Setup screen */

.demo-setup {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 0;
	animation: demo-in 600ms ease both;
}

.demo-card {
	width: 100%;
	max-width: 420px;
	padding: 2.5rem 2rem;
	border-radius: 28px;
	border: 1px solid var(--border);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%),
		rgba(17, 23, 32, 0.88);
	backdrop-filter: blur(24px);
	box-shadow:
		0 32px 80px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.demo-card-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: linear-gradient(160deg, #ffd26d, var(--amber));
	color: #0b0f14;
	box-shadow:
		0 12px 32px rgba(247, 165, 40, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.demo-card-icon svg {
	width: 28px;
	height: 28px;
}

.demo-card h1 {
	margin: 0;
	font-size: 1.75rem;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.demo-card-sub {
	margin: 0;
	color: var(--text-dim);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Invite input */

.demo-form {
	margin-top: 0.25rem;
}

.demo-field {
	position: relative;
}

.demo-field input {
	width: 100%;
	min-height: 52px;
	padding: 0 2.5rem 0 1.15rem;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font-family: var(--mono);
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	transition:
		border-color 200ms,
		box-shadow 200ms;
}

.demo-field input::placeholder {
	color: var(--text-muted);
	font-family: var(--sans);
	letter-spacing: 0;
}

.demo-field input:focus {
	outline: none;
	border-color: var(--amber);
	box-shadow: 0 0 0 4px rgba(247, 165, 40, 0.12);
}

.demo-field-clear {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--text-muted);
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 150ms;
}

.demo-field-clear:hover {
	color: var(--text);
}

/* Turnstile */

.demo-turnstile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.demo-turnstile-note {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.78rem;
	transition: color 200ms;
}

/* Start button */

.demo-go {
	position: relative;
	width: 100%;
	min-height: 52px;
	border: none;
	border-radius: 16px;
	background: linear-gradient(180deg, #ffbb44, var(--amber));
	color: #0b0f14;
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	cursor: pointer;
	box-shadow: 0 14px 36px rgba(247, 165, 40, 0.25);
	transition:
		transform 200ms,
		box-shadow 200ms,
		opacity 200ms;
	overflow: hidden;
}

.demo-go:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 18px 44px rgba(247, 165, 40, 0.32);
}

.demo-go:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.demo-go-busy {
	display: none;
}

.demo-go[data-loading="1"] .demo-go-label {
	visibility: hidden;
}

.demo-go[data-loading="1"] .demo-go-busy {
	display: flex;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.demo-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(11, 15, 20, 0.25);
	border-top-color: #0b0f14;
	border-radius: 50%;
	animation: demo-spin 600ms linear infinite;
}

.demo-card-foot {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.82rem;
}

.demo-card-foot a {
	color: var(--amber);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.demo-card-foot a:hover {
	color: var(--text);
}

/* Session view */

.demo-live {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1rem 0 2rem;
	animation: demo-in 500ms ease both;
	min-height: calc(100dvh - 6rem);
}

.demo-chat {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.5rem 0;
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent,
		#000 1rem,
		#000 calc(100% - 1rem),
		transparent
	);
	mask-image: linear-gradient(
		to bottom,
		transparent,
		#000 1rem,
		#000 calc(100% - 1rem),
		transparent
	);
}

.demo-chat::-webkit-scrollbar {
	width: 4px;
}
.demo-chat::-webkit-scrollbar-track {
	background: transparent;
}
.demo-chat::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 4px;
}

/* Messages */

.demo-msg {
	max-width: 82%;
	padding: 0.85rem 1.1rem;
	border-radius: 20px;
	line-height: 1.6;
	font-size: 0.95rem;
	animation: demo-msg 280ms ease both;
	word-break: break-word;
}

.demo-msg-vektra {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom-left-radius: 6px;
}

.demo-msg-user {
	align-self: flex-end;
	background: linear-gradient(
		135deg,
		rgba(247, 165, 40, 0.18),
		rgba(247, 165, 40, 0.08)
	);
	border: 1px solid rgba(247, 165, 40, 0.15);
	border-bottom-right-radius: 6px;
}

.demo-msg-system {
	align-self: center;
	max-width: 90%;
	padding: 0.45rem 0.9rem;
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-size: 0.8rem;
	text-align: center;
}

.demo-msg-error {
	align-self: center;
	max-width: 90%;
	padding: 0.55rem 1rem;
	background: rgba(239, 91, 91, 0.08);
	border: 1px solid rgba(239, 91, 91, 0.15);
	color: var(--red);
	font-size: 0.82rem;
	text-align: center;
}

/* Voice controls */

.demo-voice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	padding-top: 1rem;
}

.demo-voice-status {
	margin: 0;
	color: var(--text-muted);
	font-family: var(--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	transition: color 200ms;
	min-height: 1.2em;
}

.demo-voice-status[data-live="1"] {
	color: var(--green);
}

.demo-mic-ring {
	position: relative;
	width: 120px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.demo-mic-viz {
	position: absolute;
	inset: -40px;
	width: 200px;
	height: 200px;
	pointer-events: none;
}

.demo-mic {
	position: relative;
	z-index: 1;
	width: 80px;
	height: 80px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(180deg, #ffd166, var(--amber));
	color: #0b0f14;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow:
		0 12px 36px rgba(247, 165, 40, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	transition:
		transform 150ms,
		box-shadow 150ms;
}

.demo-mic svg {
	width: 28px;
	height: 28px;
	pointer-events: none;
}

.demo-mic:hover {
	transform: scale(1.06);
	box-shadow:
		0 16px 44px rgba(247, 165, 40, 0.38),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.demo-mic:active,
.demo-mic[data-rec="1"] {
	transform: scale(0.96);
	box-shadow:
		0 8px 24px rgba(247, 165, 40, 0.4),
		0 0 0 3px rgba(247, 165, 40, 0.2),
		0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.demo-mic:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.demo-voice-hint {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.78rem;
}

.demo-voice-hint kbd {
	display: inline-block;
	padding: 0.15em 0.5em;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.04);
	font-family: var(--mono);
	font-size: 0.72rem;
}

/* End session button */

.demo-end-btn {
	min-height: 36px;
	padding: 0.5rem 1rem;
	font-size: 0.66rem;
}

/* Hidden helper */

[hidden] {
	display: none !important;
}

/* ── Animations ────────────────────────────── */

@keyframes demo-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes demo-msg {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

/* ── Shared: reveal ────────────────────────── */

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 420ms ease,
		transform 420ms ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Media queries ─────────────────────────── */

@media (max-width: 1024px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.feature-grid,
	.step-grid,
	.metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.site-header {
		flex-direction: column;
		align-items: stretch;
	}

	.site-nav {
		justify-content: flex-start;
	}

	.hero-copy h1 {
		max-width: none;
	}

	.feature-grid,
	.step-grid,
	.metrics {
		grid-template-columns: 1fr;
	}

	.site-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.demo-card {
		padding: 2rem 1.5rem;
	}

	.demo-mic {
		width: 72px;
		height: 72px;
	}

	.demo-mic svg {
		width: 24px;
		height: 24px;
	}
}
