/* === GOOGLE FONTS === */
/* inter-regular-400 */
/* space-grotesk-500,700 */

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

	/* Colors */
	--background-color: #0a0e1a;
	--surface-color: #1a202c;
	--primary-color: #00f5d4;
	--text-primary-color: #eaeaea;
	--text-secondary-color: #a0aec0;
	--white-color: #fff;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Space Grotesk', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 2rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

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

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

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: var(--white-color);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

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

/* === REUSABLE CSS CLASSES === */
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/* === HEADER === */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: transparent;
	z-index: var(--z-fixed);
	transition: background-color 0.3s, box-shadow 0.3s;
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--white-color);
	font-family: var(--title-font);
	font-weight: var(--font-medium);
}

.header__logo img {
	width: 32px;
	height: 32px;
}

.header__burger {
	position: relative;
	z-index: 999;
	font-size: 1.5rem;
	color: var(--white-color);
	cursor: pointer;
	background: none;
	border: none;
	display: block; /* Show by default on mobile */
}

@media screen and (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--surface-color);
		padding: 6rem 2rem 0;
		transition: right 0.4s ease;
	}
}

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

.header__nav-link {
	color: var(--text-primary-color);
	font-weight: var(--font-medium);
	transition: color 0.3s;
}

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

/* Show menu */
.show-menu {
	right: 0;
}

/* Add background to header on scroll */
.header-scrolled {
	background-color: var(--background-color);
	box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.2);
}

/* === FOOTER === */
.footer {
	padding-top: 4rem;
	padding-bottom: 2rem;
	background-color: var(--surface-color);
}

.footer__container {
	display: grid;
	gap: 3rem;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--white-color);
	font-family: var(--title-font);
	font-weight: var(--font-medium);
	margin-bottom: 1rem;
}

.footer__logo img {
	width: 28px;
	height: 28px;
}

.footer__description {
	color: var(--text-secondary-color);
	font-size: var(--small-font-size);
	max-width: 300px;
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1.5rem;
}

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

.footer__link {
	color: var(--text-secondary-color);
	transition: color 0.3s;
}

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

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer__list--contacts span,
.footer__list--contacts a {
	color: var(--text-secondary-color);
}

.footer__list--contacts i {
	color: var(--primary-color);
	flex-shrink: 0;
	margin-top: 2px;
}

.footer__bottom {
	margin-top: 4rem;
	text-align: center;
	color: var(--text-secondary-color);
	font-size: var(--small-font-size);
}

/* === MEDIA QUERIES === */

/* For medium devices */
@media screen and (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 768px) {
	.header__burger {
		display: none;
	}

	.header__nav {
		all: unset; /* Reset mobile styles */
	}

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

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

	.container {
		margin-left: auto;
		margin-right: auto;
	}

	.footer__container {
		grid-template-columns: 3fr repeat(3, 2fr);
		column-gap: 2rem;
	}
}

/* === HERO === */
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
	text-align: center;
}

.hero__content {
	max-width: 700px;
	margin: 0 auto;
}

.hero__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero__description {
	font-size: var(--normal-font-size);
	color: var(--text-secondary-color);
	margin-bottom: 2.5rem;
	line-height: 1.6;
}

.hero__cta {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 1rem 2.5rem;
	border-radius: 0.5rem;
	font-weight: var(--font-bold);
	font-family: var(--title-font);
	transition: transform 0.3s, box-shadow 0.3s;
}

.hero__cta:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px hsla(172, 100%, 50%, 0.2);
}

/* === REUSABLE SECTION STYLES === */
.section {
	padding: 6rem 0 2rem;
}

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

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

.section__subtitle {
	max-width: 600px;
	margin: 0 auto 3rem;
	color: var(--text-secondary-color);
}

/* === SOLUTIONS === */
.solutions__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

.solutions__card {
	background-color: var(--surface-color);
	padding: 2.5rem 2rem;
	border-radius: 0.75rem;
	border: 1px solid transparent;
	transition: transform 0.3s, border-color 0.3s;
	text-align: center;
}

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

.solutions__card-icon {
	margin-bottom: 1.5rem;
}

.solutions__card-icon i {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
}

.solutions__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.solutions__card-description {
	color: var(--text-secondary-color);
	line-height: 1.6;
}

/* === FEATURES & ACCORDION === */
.features__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

@media screen and (max-width: 767px) {
	.features__container {
		grid-template-columns: 1fr;
	}
}

.features__title,
.features__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.features__subtitle {
	margin-bottom: 2.5rem;
}

.accordion__item {
	background-color: var(--surface-color);
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	border: 1px solid transparent;
}

.accordion__item:last-child {
	margin-bottom: 0;
}

.accordion__header {
	display: flex;
	align-items: center;
	padding: 1.25rem;
	cursor: pointer;
	gap: 1rem;
}

.accordion__icon {
	color: var(--primary-color);
}

.accordion__title {
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
	color: var(--text-primary-color);
}

.accordion__arrow {
	margin-left: auto;
	transition: transform 0.4s;
}

.accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.accordion__description {
	padding: 0 1.25rem 1.25rem 3.5rem;
	color: var(--text-secondary-color);
	line-height: 1.6;
	font-size: var(--small-font-size);
}

/* Accordion active state */
.accordion__item.accordion-open {
	border-color: var(--primary-color);
}

.accordion__item.accordion-open .accordion__arrow {
	transform: rotate(180deg);
}

.features__info {
	text-align: center;
}

.features__img {
	border-radius: 0.75rem;
	margin-bottom: 1.5rem;
	max-width: 400px;
	width: 100%;
}

.features__info-box {
	background-color: var(--surface-color);
	padding: 2rem;
	border-radius: 0.75rem;
	max-width: 400px;
	margin: 0 auto;
}

.features__info-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.features__info-description {
	color: var(--text-secondary-color);
	margin-bottom: 1.5rem;
}

.features__info-button {
	display: inline-block;
	width: 100%;
	background-color: var(--background-color);
	color: var(--primary-color);
	padding: 1rem;
	border: 1px solid var(--primary-color);
	border-radius: 0.5rem;
	font-weight: var(--font-bold);
	transition: background-color 0.3s, color 0.3s;
}

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

/* === TECHNOLOGY (TIMELINE) === */
.timeline {
	position: relative;
	max-width: 700px;
	margin: 0 auto;
	padding: 2rem 0;
}

.timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--surface-color);
	top: 0;
	bottom: 0;
	left: 20px;
	margin-left: -1.5px;
}

.timeline__item {
	padding: 1rem 3rem;
	position: relative;
	background-color: transparent;
	width: 100%;
	padding-left: 5rem;
}

.timeline__icon {
	position: absolute;
	width: 40px;
	height: 40px;
	left: 0;
	top: 24px;
	background-color: var(--primary-color);
	border-radius: 50%;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.timeline__icon i {
	color: var(--background-color);
	width: 20px;
	height: 20px;
}

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

.timeline__title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.timeline__description {
	color: var(--text-secondary-color);
	font-size: var(--small-font-size);
	line-height: 1.6;
}

/* === FAQ === */
.faq__container {
	max-width: 800px;
	margin: 0 auto;
}

/* === CONTACT === */
.contact {
	padding-bottom: 6rem;
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

@media screen and (max-width: 767px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
}

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

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-top: 3rem;
}

.contact__details-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact__details-item i {
	color: var(--primary-color);
	width: 28px;
	height: 28px;
}

.contact__details-item h4 {
	font-size: var(--normal-font-size);
	font-weight: var(--font-medium);
}

.contact__details-item span {
	color: var(--text-secondary-color);
	font-size: var(--small-font-size);
}

.contact__form-container {
	background-color: var(--surface-color);
	padding: 2.5rem;
	border-radius: 0.75rem;
}

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

.contact__form-group {
	display: flex;
	flex-direction: column;
}

.contact__form-label {
	margin-bottom: 0.5rem;
	color: var(--text-secondary-color);
	font-size: var(--small-font-size);
}

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

.contact__form-input:focus {
	border-color: var(--primary-color);
}

.contact__form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.contact__form-checkbox {
	width: 1.25rem;
	height: 1.25rem;
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-secondary-color);
}

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

.contact__form-button {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 1rem;
	border-radius: 0.5rem;
	border: none;
	font-weight: var(--font-bold);
	font-size: var(--normal-font-size);
	cursor: pointer;
	transition: transform 0.3s, box-shadow 0.3s;
}

.contact__form-button:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px hsla(172, 100%, 50%, 0.2);
}

.contact__form-message {
	font-size: var(--small-font-size);
	text-align: center;
	margin-top: 1rem;
	min-height: 1.25rem;
}


/* === COOKIE POPUP === */
.cookie {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    box-shadow: 0 -2px 10px hsla(0, 0%, 0%, 0.2);
    z-index: var(--z-fixed);
    padding: 1.5rem;
    transition: bottom .4s ease-in-out;
}

.cookie.show {
    bottom: 0; /* Show popup */
}

.cookie__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto;
}

.cookie__text {
    color: var(--text-secondary-color);
    text-align: center;
}

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

.cookie__button {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: transform .3s;
}

.cookie__button:hover {
    transform: scale(1.05);
}

/* Media query for larger screens */
@media screen and (min-width: 768px) {
    .cookie__content {
        flex-direction: row;
        justify-content: space-between;
    }
    .cookie__text {
        text-align: left;
    }
}

/* === STYLES FOR POLICY PAGES === */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 100vh;
}

.pages h1, .pages h2 {
    font-family: var(--title-font);
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

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

.pages h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
}

.pages p, .pages li {
    color: var(--text-secondary-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

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

.pages a:hover {
    color: var(--white-color);
}

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