/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto+Mono:wght@500&display=swap');

/* ===== VARIABLES ===== */
:root {
	--header-height: 5rem;

	/* Colors */
	--background-color: #121212;
	--surface-color: #1e1e1e;
	--primary-color: #00f5d4; /* Яркая бирюза */
	--text-color: #e0e0e0;
	--text-color-muted: #888888;
	--border-color: #333333;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--heading-font: 'Roboto Mono', monospace;

	/* Font sizes */
	--big-font-size: 2.5rem;
	--h1-font-size: 2.25rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Font weight */
	--font-medium: 500;
	--font-bold: 700;

	/* Margins */
	--mb-0-5: 0.5rem;
	--mb-1: 1rem;
	--mb-1-5: 1.5rem;
	--mb-2: 2rem;

	/* z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
}

@media screen and (min-width: 992px) {
	:root {
		--big-font-size: 3.5rem;
		--h1-font-size: 2.75rem;
		--h2-font-size: 1.75rem;
		--h3-font-size: 1.5rem;
		--normal-font-size: 1.125rem;
		--small-font-size: 0.938rem;
	}
}

/* ===== BASE ===== */
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

h1,
h2,
h3 {
	color: var(--text-color);
	font-family: var(--heading-font);
	font-weight: var(--font-medium);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--text-color);
}

img {
	max-width: 100%;
	height: auto;
}

/* ===== LAYOUT ===== */
.container {
	max-width: 1120px;
	margin: 0 auto;
	padding-left: var(--mb-1-5);
	padding-right: var(--mb-1-5);
}

/* ===== LOGO ===== */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--heading-font);
	font-weight: var(--font-medium);
	color: var(--text-color);
	transition: color 0.3s ease;
}

.logo:hover {
	color: var(--primary-color);
}

.logo__svg-shape--primary {
	stroke: var(--primary-color);
}

.logo__svg-shape--secondary {
	stroke: var(--text-color);
}

/* ===== HEADER ===== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: rgba(18, 18, 18, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
}

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__burger {
	display: none;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	position: relative;
	padding-bottom: 0.5rem;
	transition: color 0.3s ease;
}

.header__nav-link:hover {
	color: var(--primary-color);
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--primary-color);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.header__nav-link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* ===== FOOTER ===== */
.footer {
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--border-color);
	background-color: var(--surface-color);
}

.footer__container {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__column--info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.footer__copyright {
	font-size: var(--small-font-size);
	color: var(--text-color-muted);
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-1);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link {
	color: var(--text-color-muted);
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
	color: var(--primary-color);
	padding-left: 0.25rem;
}

.footer__list--contacts {
	gap: 1rem;
}

.footer__list--contacts .footer__link,
.footer__address {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-color-muted);
}
.footer__address {
	color: var(--text-color-muted);
}
.footer__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--primary-color);
}

/* ===== BREAKPOINTS ===== */
/* For medium devices */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--surface-color);
		padding: 4rem 2rem 0;
		z-index: var(--z-fixed);
		transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	}

	.header__nav--show {
		right: 0;
	}

	.header__nav-list {
		flex-direction: column;
		gap: 2.5rem;
	}

	.header__burger {
		display: block;
	}

	.header__burger--close i[data-lucide='menu'] {
		display: none;
	}

	.header__burger i[data-lucide='x'] {
		display: none;
	}

	.header__burger--close i[data-lucide='x'] {
		display: block;
	}
}

/* For small devices */
@media screen and (max-width: 350px) {
	.container {
		margin-left: var(--mb-1);
		margin-right: var(--mb-1);
	}
}

/* ===== BUTTONS ===== */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.9rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: var(--font-medium);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button--primary {
	background-color: var(--primary-color);
	color: var(--background-color);
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px -10px var(--primary-color);
}

.button__icon {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.button:hover .button__icon {
	transform: translateX(4px);
}

/* ===== HERO SECTION ===== */
.hero {
	padding-top: var(--header-height);
	min-height: 100vh;
	display: flex;
	align-items: center;
}

.hero__container {
	width: 100%;
	display: grid;
	align-items: center;
	gap: 2rem;
	grid-template-columns: 1fr;
	padding: 2rem;
}

@media screen and (min-width: 992px) {
	.hero__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

.hero__content {
	text-align: center;
}

@media screen and (min-width: 992px) {
	.hero__content {
		text-align: left;
	}
}

.hero__title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: var(--mb-1-5);
	min-height: 116px;
}

@media screen and (min-width: 992px) {
	.hero__title {
		min-height: 86px;
	}
}

.hero__title::after {
	content: '|';
	animation: blink 0.7s infinite;
	font-weight: var(--font-bold);
	color: var(--primary-color);
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__description {
	color: var(--text-color-muted);
	font-size: var(--normal-font-size);
	margin-bottom: var(--mb-2);
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

@media screen and (min-width: 992px) {
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
}

.hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__img {
	width: 80%;
	border-radius: 1rem;
	filter: grayscale(1);
	opacity: 0.5;
}

/* ===== REUSABLE CSS CLASSES ===== */
.section {
	padding: 6rem 0 2rem;
}

.section__title,
.section__subtitle {
	text-align: center;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: var(--mb-1);
	font-family: var(--heading-font);
}

.section__subtitle {
	display: block;
	margin-bottom: 3rem;
	color: var(--text-color-muted);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ===== STAGES (TIMELINE) SECTION ===== */
.timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* The vertical line */
.timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--border-color);
	top: 0;
	bottom: 0;
	left: 1.5rem;
}

@media screen and (min-width: 768px) {
	.timeline::after {
		left: 50%;
		margin-left: -1.5px;
	}
}

.timeline__item {
	padding: 1rem 3rem;
	position: relative;
	width: 100%;
}

@media screen and (min-width: 768px) {
	.timeline__item {
		width: 50%;
	}

	/* Place items to the left */
	.timeline__item:nth-child(odd) {
		left: 0;
		padding-right: 4rem;
	}

	/* Place items to the right */
	.timeline__item:nth-child(even) {
		left: 50%;
		padding-left: 4rem;
	}
}

.timeline__content {
	padding: 1.5rem;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	position: relative;
}

.timeline__icon {
	position: absolute;
	top: -1.25rem;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	padding: 8px;
	background-color: var(--primary-color);
	color: var(--background-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.timeline__title {
	font-size: var(--h3-font-size);
	margin-top: var(--mb-1-5);
	margin-bottom: var(--mb-0-5);
}

.timeline__description {
	font-size: var(--small-font-size);
	color: var(--text-color-muted);
}

/* ===== PLATFORMS SECTION ===== */
.platforms__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	justify-content: center;
}

.platforms__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 2rem 1rem;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.platforms__item:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
}

.platforms__icon {
	width: 48px;
	height: 48px;
	fill: var(--text-color-muted);
	transition: fill 0.3s ease;
}

.platforms__item:hover .platforms__icon {
	fill: var(--primary-color);
}

.platforms__name {
	font-family: var(--body-font);
	font-weight: var(--font-medium);
	color: var(--text-color-muted);
	transition: color 0.3s ease;
}

.platforms__item:hover .platforms__name {
	color: var(--text-color);
}

/* ===== EXAMPLES (TABS) SECTION ===== */
.examples__tabs {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

@media screen and (min-width: 600px) {
	.examples__tabs {
		flex-direction: row;
		justify-content: flex-start;
	}
}

.examples__tab-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--border-color);
	background-color: transparent;
	color: var(--text-color-muted);
	border-radius: 0.5rem;
	cursor: pointer;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.examples__tab-button:hover {
	background-color: var(--surface-color);
	color: var(--text-color);
}

.examples__tab-button--active {
	background-color: var(--primary-color);
	color: var(--background-color);
	border-color: var(--primary-color);
}

.examples__tab-button--active:hover {
	background-color: var(--primary-color);
	color: var(--background-color);
}

.examples__tab-icon {
	width: 20px;
	height: 20px;
}

.examples__content-area {
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	padding: 2rem;
}

.examples__content {
	display: none;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
}

@media screen and (min-width: 768px) {
	.examples__content {
		grid-template-columns: repeat(2, 1fr);
	}
	.examples__content-area {
		padding: 3rem;
	}
}

.examples__content--active {
	display: grid;
}

.examples__content-title {
	font-size: var(--h2-font-size);
	margin-bottom: var(--mb-1);
}

.examples__content-description {
	color: var(--text-color-muted);
	margin-bottom: var(--mb-1-5);
}

.examples__feature-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.examples__feature-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.examples__feature-icon {
	color: var(--primary-color);
	width: 20px;
	height: 20px;
}

.examples__content-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.examples__content-img {
	border-radius: 0.5rem;
	filter: grayscale(1);
	opacity: 0.6;
}

/* ===== TOOLS SECTION ===== */
.tools__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	justify-content: center;
	max-width: 800px;
	margin: 0 auto;
}

.tools__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 2rem 1rem;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	transition: transform 0.3s ease;
	filter: grayscale(1);
	opacity: 0.7;
}

.tools__item:hover {
	transform: translateY(-5px);
	filter: grayscale(0);
	opacity: 1;
}

.tools__icon {
	width: 48px;
	height: 48px;
}

/* Specific fix for Rasa SVG */
.tools__item:hover .tools__icon path {
	fill: var(--primary-color);
}

.tools__name {
	font-family: var(--body-font);
	font-weight: var(--font-medium);
	color: var(--text-color-muted);
}

/* ===== CONTACT SECTION ===== --> */
.contact__container {
	display: grid;
	gap: 3rem;
}

@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}
}

.contact__subtitle {
	text-align: left;
	margin: 0;
}

.contact__form-group {
	position: relative;
	margin-bottom: 1.5rem;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--border-color);
	background-color: var(--surface-color);
	color: var(--text-color);
	border-radius: 0.5rem;
	outline: none;
	font-size: var(--normal-font-size);
	transition: border-color 0.3s ease;
}

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--text-color-muted);
	pointer-events: none;
	transition: top 0.3s ease, font-size 0.3s ease, background-color 0.3s ease;
	padding: 0 0.25rem;
}

/* Input focus and value animations */
.contact__form-input:focus {
	border-color: var(--primary-color);
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	background-color: var(--surface-color);
	color: var(--primary-color);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.contact__form-checkbox {
	width: 1rem;
	height: 1rem;
	margin-top: 0.25rem;
	accent-color: var(--primary-color);
}

.contact__form-terms {
	font-size: var(--small-font-size);
	color: var(--text-color-muted);
}

.contact__form-terms a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
	justify-content: center;
}

.contact__form-message {
	font-size: var(--small-font-size);
	text-align: center;
	margin-top: 1rem;
	display: none; /* Initially hidden */
}

.contact__form-message.success {
	color: var(--primary-color);
}

.contact__form-message.error {
	color: #ff6b6b;
}

/* ===== COOKIE POP-UP ===== */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	background-color: var(--surface-color);
	color: var(--text-color-muted);
	padding: 1rem 1.5rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	z-index: var(--z-fixed);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

	transform: translateY(200%);
	opacity: 0;
	transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
		opacity 0.5s ease;
}

.cookie-popup--show {
	transform: translateY(0);
	opacity: 1;
}

.cookie-popup__text {
	font-size: var(--small-font-size);
}

.cookie-popup__link {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie-popup__button {
	background-color: var(--primary-color);
	color: var(--background-color);
	border: none;
	padding: 0.6rem 1.2rem;
	border-radius: 0.5rem;
	cursor: pointer;
	font-weight: var(--font-medium);
	white-space: nowrap; /* Prevent button text from wrapping */
	transition: transform 0.3s ease;
}

.cookie-popup__button:hover {
	transform: scale(1.05);
}

/* ===== GENERIC PAGES STYLING (privacy.html, terms.html, etc.) ===== */
.pages {
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 4rem;
}

.pages .container {
	max-width: 800px; /* Limit width for better readability */
}

.pages h1 {
	font-size: 1.5rem;
	margin: 2rem 0 1.5rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin: 2.5rem 0 1rem;
}

.pages p {
	color: var(--text-color-muted);
	line-height: 1.7;
	margin-bottom: 1rem;
}

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
}

.pages ul {
	list-style-type: disc;
	padding-left: 2rem;
	margin-bottom: 1.5rem;
}

.pages li {
	color: var(--text-color-muted);
	margin-bottom: 0.75rem;
	padding-left: 0.5rem;
}

.pages strong {
	color: var(--text-color);
	font-weight: var(--font-medium);
}
