:root {
	--bg-dark: #0b0d17;
	--bg-section: #121426;
	--accent: #5ef2b5;
	--accent-soft: rgba(94, 242, 181, 0.2);
	--text-main: #f3f6ff;
	--text-muted: #9aa3c2;
	--screen-bg: #071019;
	--screen-border: #1f2d3a;
	--screen-glow: #5ef2b5;
	--stage-height: min(80vh, 640px);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--bg-dark);
	color: var(--text-main);
	scroll-behavior: smooth;
}

.hero {
	position: relative;
	height: 80vh;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #0b0d17;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		0deg,
		rgba(11, 13, 23, 0.60) 0%,
		rgba(11, 13, 23, 0.13) 60%,
		rgba(11, 13, 23, 0.60) 100%
	);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3rem 1.5rem;
}

.hero-overlay h1 {
	margin: 0 0 1rem;
	font-size: clamp(2.5rem, 4vw, 3.8rem);
	letter-spacing: 0.05em;
	color: #fff176;
}

.hero-overlay p {
	margin: 0;
	color: #fff176;
	font-size: clamp(1rem, 2.3vw, 1.3rem);
}

main {
	position: relative;
}

.agent-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem;
	background: var(--bg-section);
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.agent-section:nth-child(odd) {
	background: #101225;
}

.agent-stage {
	width: min(1100px, 100%);
	min-height: var(--stage-height);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	position: relative;
}

.agent-animation,
.agent-static {
	flex: 1 1 60%;
	max-width: 640px;
	min-height: clamp(240px, 50vh, 420px);
	border-radius: 24px;
	background: radial-gradient(circle at 30% 20%, rgba(94, 242, 181, 0.45), transparent 55%),
		radial-gradient(circle at 70% 80%, rgba(78, 147, 255, 0.4), transparent 55%),
		linear-gradient(135deg, rgba(10, 17, 34, 0.9), rgba(21, 32, 56, 0.9));
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.agent-animation::before {
	content: "";
	position: absolute;
	inset: 12%;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(94, 242, 181, 0.3));
	border-radius: 16px;
	filter: blur(0);
	opacity: 0;
}

.agent-animation.running::before {
	animation: agentWalk 4s ease-in-out forwards;
}

.agent-animation::after {
	content: "";
	width: 150px;
	height: 150px;
	background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6), transparent 70%);
	border-radius: 50%;
	opacity: 0;
	transform: translateX(-120%) scale(0.6);
}

.agent-animation.running::after {
	animation: agentStunt 4s ease-in-out forwards;
}

.agent-static {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.agent-static::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("https://images.unsplash.com/photo-1545239351-1141bd82e8a6?auto=format&fit=crop&w=900&q=60") center/cover;
	filter: saturate(1.3);
	mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.2));
}

.agent-static--custom {
	background: none !important;
}

.agent-static--custom::before {
	display: none;
}

.agent-static--custom img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.agent-screen {
	flex: 1 1 40%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.screen-typing,
.screen-static {
	background: var(--screen-bg);
	border: 2px solid var(--screen-border);
	border-radius: 18px;
	padding: 1.5rem;
	color: var(--accent);
	font-family: "Fira Code", "Source Code Pro", monospace;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	min-height: 220px;
	line-height: 1.6;
	overflow: hidden;
	position: relative;
}

.screen-typing::after {
	content: "▋";
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	color: var(--screen-glow);
	animation: cursorBlink 0.9s steps(1) infinite;
}

.screen-static {
	color: var(--text-main);
	white-space: pre-wrap;
}

.hidden {
	display: none !important;
}

.font-comic,
.font-comic code,
.font-comic pre {
	font-family: "Kalam", cursive;
}

.sketchy {
	filter: url(#sketchy);
}

.comic-computer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	width: 100%;
	max-width: 520px;
	color: #111;
	filter: grayscale(100%);
}

.comic-monitor {
	width: 100%;
	padding: 0.65rem;
	border-radius: 24px;
	border: 3px solid #111;
	background: #fdfdfd;
	box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.15);
	position: relative;
}

.comic-monitor::after {
	content: "";
	position: absolute;
	inset: 0.75rem;
	border: 2px dashed #111;
	border-radius: 18px;
	pointer-events: none;
}

.comic-monitor-frame {
	background: #ffffff;
	border: 2px solid #111;
	border-radius: 18px;
	padding: 0.9rem 1rem 1.05rem;
	box-shadow: inset 6px 6px 0 rgba(0, 0, 0, 0.06);
}

.comic-screen {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 0.65rem 0.8rem;
	background: #ffffff;
	border: 2px dashed #111;
	border-radius: 14px;
}

.comic-tabs {
	display: flex;
	gap: 0.6rem;
	font-weight: 700;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.comic-tab {
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	border: 2px solid #111;
	background: #f7f7f7;
	color: #111;
}

.comic-tab.active {
	background: #111;
	color: #fff;
}

.comic-code {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	background: #fff;
	border: 2px solid #111;
	border-radius: 12px;
	padding: 0.9rem 1.1rem;
	font-size: 1.05rem;
	box-shadow: inset 6px 6px 0 rgba(0, 0, 0, 0.08);
	color: #111;
}

.comic-code,
.comic-code code,
.comic-line,
.comic-line code,
.comic-comment code,
.comic-cursor {
	font-family: "Comic Neue", "Comic Sans MS", "Comic Sans", cursive !important;
	letter-spacing: 0.05em;
}

.comic-line {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.comic-line-no {
	min-width: 2rem;
	text-align: right;
	font-weight: 700;
	color: #666;
}

.comic-comment {
	color: #333;
	font-style: italic;
}

.comic-cursor {
	display: inline-block;
	width: 0.55rem;
	height: 1.2rem;
	background: #111;
	border-radius: 2px;
	margin-left: 0.35rem;
	animation: cursorBlink 0.9s steps(1) infinite;
	vertical-align: middle;
}

.comic-stand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	width: 68%;
	max-width: 340px;
}

.comic-stand-neck {
	width: 26%;
	min-width: 78px;
	height: 12px;
	background: #fff;
	border: 3px solid #111;
	border-radius: 10px;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.comic-stand-foot {
	width: 92%;
	min-width: 180px;
	height: 10px;
	background: #fff;
	border: 3px solid #111;
	border-radius: 12px;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.comic-keyboard {
	width: 95%;
	padding: 0.6rem;
	border-radius: 16px;
	border: 3px solid #111;
	background: #fdfdfd;
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	gap: 0.16rem;
	transform: scale(0.7) skewX(-10deg);
	transform-origin: top center;
}

.comic-keyboard-inner {
	gap: 0.16rem;
}

.comic-keyboard-row {
	gap: 0.16rem;
}

.chat-widget {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
	z-index: 120;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chat-widget__toggle {
	min-width: 3.5rem;
	min-height: 3.5rem;
	padding: 0.75rem 1.2rem;
	border-radius: 999px;
	border: 2px solid rgba(94, 242, 181, 0.9);
	background: rgba(255, 255, 255, 0.95);
	color: #062024;
	font-size: 0.95rem;
	font-weight: 700;
	box-shadow: 0 20px 45px rgba(94, 242, 181, 0.3);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-widget__toggle:hover {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 24px 55px rgba(94, 242, 181, 0.4);
}

.chat-widget--open .chat-widget__toggle {
	background: rgba(94, 242, 181, 0.9);
	color: #041219;
	box-shadow: 0 22px 55px rgba(94, 242, 181, 0.45);
}

.chat-widget__panel {
	width: clamp(260px, 32vw, 340px);
	height: clamp(320px, 44vh, 420px);
	display: flex;
	flex-direction: column;
	background: rgba(7, 12, 22, 0.95);
	border-radius: 18px;
	border: 1px solid rgba(94, 242, 181, 0.35);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
	overflow: hidden;
}

.chat-widget__header {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.85rem 1rem 0.65rem;
	background: linear-gradient(135deg, rgba(94, 242, 181, 0.18), rgba(78, 147, 255, 0.12));
	border-bottom: 1px solid rgba(94, 242, 181, 0.22);
	position: relative;
}

.chat-widget__title {
	font-weight: 700;
	font-size: 1rem;
	color: var(--text-main);
}

.chat-widget__agent {
	font-size: 0.78rem;
	color: var(--text-muted);
}

.chat-widget__close {
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
	background: transparent;
	border: none;
	color: var(--text-main);
	cursor: pointer;
	font-size: 0.85rem;
	padding: 0.3rem;
	line-height: 1;
}

.chat-widget__body {
	flex: 1;
	padding: 0.5rem 0.75rem 0.25rem;
	display: flex;
	flex-direction: column;
}

.chat-widget__messages {
	flex: 1;
	padding: 0.5rem 0.35rem 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	overflow-y: auto;
}

.chat-message {
	display: flex;
	width: 100%;
}

.chat-message--agent {
	justify-content: flex-start;
}

.chat-message--user {
	justify-content: flex-end;
}

.chat-message__bubble {
	max-width: 82%;
	padding: 0.6rem 0.85rem;
	border-radius: 14px;
	font-size: 0.92rem;
	line-height: 1.4;
	word-break: break-word;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.chat-message--agent .chat-message__bubble {
	background: rgba(94, 242, 181, 0.15);
	color: var(--text-main);
	border: 1px solid rgba(94, 242, 181, 0.3);
	border-bottom-left-radius: 4px;
}

.chat-message--user .chat-message__bubble {
	background: rgba(94, 242, 181, 0.85);
	color: #071019;
	border-bottom-right-radius: 4px;
}

.chat-widget__form {
	display: flex;
	flex-direction: column;
	padding: 0 0.75rem 0.75rem;
	gap: 0.5rem;
}

.chat-widget__toolbar {
	display: flex;
	gap: 0.5rem;
}

.chat-widget__icon {
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0.25rem;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.chat-widget__icon:hover {
	background: rgba(94, 242, 181, 0.12);
	color: var(--accent);
}

.chat-widget__input {
	min-height: 64px;
	resize: none;
	border-radius: 12px;
	border: 1px solid rgba(94, 242, 181, 0.2);
	background: rgba(8, 12, 22, 0.85);
	color: var(--text-main);
	padding: 0.6rem 0.8rem;
	font-size: 0.92rem;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chat-widget__input:focus {
	outline: none;
	border-color: rgba(94, 242, 181, 0.5);
	box-shadow: 0 0 0 3px rgba(94, 242, 181, 0.15);
}

.chat-widget__send {
	align-self: flex-end;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	border: none;
	background: var(--accent);
	color: #041219;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 12px 30px rgba(94, 242, 181, 0.45);
}

.chat-widget__send:hover {
	transform: translateY(-1px) scale(1.01);
	box-shadow: 0 14px 34px rgba(94, 242, 181, 0.55);
}

@media (max-width: 640px) {
	.chat-widget__panel {
		width: clamp(240px, 92vw, 320px);
		height: clamp(280px, 60vh, 360px);
	}

	.chat-widget__toggle {
		min-width: 3.25rem;
		min-height: 3.25rem;
	}
}

.comic-key {
	flex: 1;
	height: 20px;
	background: #fff;
	border: 2px solid #111;
	border-radius: 8px;
	position: relative;
}

.comic-key::before {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 5px;
	border: 1px solid rgba(0, 0, 0, 0.35);
}

.comic-key--wide {
	flex: 1.2;
}

.comic-key--xwide {
	flex: 1.45;
}

.comic-key--xxwide {
	flex: 1.7;
}

.comic-key--space {
	flex: 4.2;
}

.comic-footer {
	width: 100%;
	text-align: right;
}

.comic-bubble {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	border: 2px solid #111;
	border-radius: 12px;
	background: #fff;
	font-weight: 700;
	color: #111;
	box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
}

.hero-audio-toggle {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
}

.site-nav {
	display: flex;
	justify-content: center;
	padding: 1.625rem 1.5rem;
	position: sticky;
	top: 0;
	z-index: 20;
	background: inherit;
	border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.site-nav__inner {
	max-width: 1100px;
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.25rem;
}

.site-nav__links {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
}

.site-nav .nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 1.1rem;
	border: none;
	border-radius: 1.2rem 0.95rem 1.15rem 0.9rem;
	background: #ffffff;
	color: #000;
	font-family: "Comic Neue", "Comic Sans MS", "Comic Sans", cursive;
	font-weight: 700;
	box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.3);
	transition: transform 0.2s ease;
	text-decoration: none;
	overflow: visible;
	filter: url(#sketchy);
}

.site-nav .nav-link::before {
	content: "";
	position: absolute;
	inset: -5px;
	border: 2px solid #0f172a;
	border-radius: 1.35rem 1.05rem 1.3rem 1.1rem;
	transform: rotate(-2.5deg) translate(2px, -2px) scale(1.04);
	opacity: 0.8;
	pointer-events: none;
}

.site-nav .nav-link::after {
	content: "";
	position: absolute;
	inset: -7px;
	border: 2px solid rgba(15, 23, 42, 0.65);
	border-radius: 1.4rem 1.15rem 1.25rem 1.05rem;
	transform: rotate(1.8deg) translate(-3px, 3px) scale(1.02);
	opacity: 0.6;
	pointer-events: none;
}

.site-nav__logo img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.info-section,
.pricing-section {
	max-width: 1100px;
	margin: 4rem auto 0;
	padding: 0 1.5rem;
}

.info-section h2,
.pricing-section h2 {
	font-size: 2.25rem;
	margin-bottom: 1.75rem;
}

.info-bubble {
	position: relative;
	background: #fffdf0;
	padding: 2.5rem;
	border-radius: 1.4rem 1.1rem 1.35rem 1.05rem;
	box-shadow: 14px 14px 0 rgba(15, 23, 42, 0.22);
	filter: url(#sketchy);
}

.info-bubble::before,
.info-bubble::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 1.55rem 1.2rem 1.45rem 1.15rem;
	pointer-events: none;
}

.info-bubble::before {
	border: 2px solid rgba(15, 23, 42, 0.85);
	transform: rotate(-2.4deg) translate(4px, -5px);
}

.info-bubble::after {
	border: 2px solid rgba(15, 23, 42, 0.45);
	transform: rotate(2.1deg) translate(-6px, 6px);
}

.info-bubble h2,
.info-bubble h3,
.info-bubble p,
.info-bubble li,
.pricing-section h2,
.pricing-card__price {
	color: #000;
}

.info-bubble__body {
	margin-bottom: 1.2rem;
	line-height: 1.6;
}

.bubble-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}

.bubble-list li {
	position: relative;
	padding-left: 1.4rem;
	line-height: 1.55;
}

.bubble-list li::before {
	content: "✶";
	position: absolute;
	left: 0;
	top: 0.1rem;
	color: #0f172a;
}

.info-bubble--wide {
	max-width: 100%;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
	align-items: stretch;
}

.pricing-card {
	padding: 2rem 2.25rem 2.5rem;
}

.pricing-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.pricing-card__header h3 {
	font-size: 1.8rem;
	margin: 0;
}

.pricing-card__price {
	font-size: 2.15rem;
	font-weight: 800;
}

.pricing-btn {
	margin-top: 2.5rem;
	width: 100%;
	border: none;
	border-radius: 1rem;
	padding: 0.85rem 1.1rem;
	background: #0f172a;
	color: #fff;
	font-family: "Comic Neue", "Comic Sans MS", "Comic Sans", cursive;
	font-weight: 800;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-btn:hover {
	transform: translateY(-2px);
}

.pricing-btn-link {
	display: block;
	text-align: center;
	text-decoration: none;
}

@keyframes agentWalk {
	0% {
		transform: translateX(-140%) scale(0.8);
		opacity: 0;
	}
	25% {
		transform: translateX(-20%) scale(0.95);
		opacity: 1;
	}
	45% {
		transform: translateX(0) scale(1);
		opacity: 1;
	}
	65% {
		transform: translateX(0) scale(1.05);
		opacity: 1;
	}
	100% {
		transform: translateX(140%) scale(0.8);
		opacity: 0;
	}
}

@keyframes agentStunt {
	0% {
		transform: translate(-160%, 20%) scale(0.6) rotate(-15deg);
		opacity: 0;
	}
	35% {
		transform: translate(-10%, 0) scale(1) rotate(0deg);
		opacity: 1;
	}
	50% {
		transform: translate(-10%, -6%) scale(1.05) rotate(-12deg);
	}
	60% {
		transform: translate(0, 6%) scale(1.1) rotate(8deg);
	}
	75% {
		transform: translate(15%, 0) scale(1.05) rotate(-6deg);
	}
	100% {
		transform: translate(160%, 5%) scale(0.6) rotate(12deg);
		opacity: 0;
	}
}

@keyframes cursorBlink {
	0%, 50% {
		opacity: 1;
	}
	50.01%, 100% {
		opacity: 0;
	}
}

@media (max-width: 960px) {
	.agent-stage {
		flex-direction: column;
	}
	.agent-animation,
	.agent-static,
	.agent-screen {
		width: 100%;
		max-width: none;
	}
}

.agent-stage:first-of-type .agent-animation {
	background: none;
}

.agent-stage:first-of-type .agent-animation::before,
.agent-stage:first-of-type .agent-animation::after {
	display: none;
}

.agent-stage:first-of-type .agent-animation video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 24px;
}

.language-select {
	color: #000 !important;
	background-color: #ffffff;
}

.language-select option {
	color: #000 !important;
	background-color: #ffffff !important;
}

.site-footer {
	background: #0f172a;
	color: #fff;
	padding: 2rem clamp(1.5rem, 5vw, 4rem);
	margin-top: 4rem;
	font-family: "Comic Neue", "Comic Sans MS", cursive;
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.footer-logo {
	flex-shrink: 0;
}

.footer-text {
	font-size: 1rem;
	font-weight: 700;
	opacity: 0.9;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.footer-links a {
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 700;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
	opacity: 1;
	transform: translateY(-1px);
}

@media (max-width: 768px) {
	.footer-inner {
		flex-direction: column;
		text-align: center;
	}
	.footer-links {
		justify-content: center;
	}
}
