/* STAGE 0: GLOBAL STYLES */
:root {
	--background-dark: #111827;
	--background-light: #1f2937;
	--text-primary: #f9fafb;
	--text-secondary: #9ca3af;
	--accent: #3b82f6;
	--border-color: #374151;

	--font-primary: 'Roboto', sans-serif;
	--font-secondary: 'Poppins', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	background-color: var(--background-dark);
	color: var(--text-primary);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--text-primary);
}

ul {
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-secondary);
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-primary);
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
}

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

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

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

.header__nav-link {
	color: var(--text-secondary);
	font-weight: 500;
	position: relative;
	padding: 0.5rem 0;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent);
	transition: width 0.3s ease;
}

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

.header__nav-link:hover::after {
	width: 100%;
}

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

/* Mobile Navigation */
.mobile-nav {
	position: fixed;
	top: 0;
	right: -100%; /* Initially hidden */
	width: 80%;
	max-width: 300px;
	height: 100vh;
	background-color: var(--background-light);
	z-index: 1001;
	padding: 2rem;
	transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	display: flex;
	flex-direction: column;
}

.mobile-nav.is-active {
	right: 0;
}

.mobile-nav__close {
	display: block;
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
}

.mobile-nav__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 4rem;
}

.mobile-nav__link {
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--text-primary);
}

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

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.footer__column--about {
	grid-column: span 1;
}

.footer__logo {
	margin-bottom: 1rem;
}

.footer__copyright {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

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

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

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--text-secondary);
}

.footer__list--contacts i {
	flex-shrink: 0;
	margin-top: 4px;
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem;
	}
}

@media (max-width: 768px) {
	.header__nav {
		display: none;
	}
	.header__burger {
		display: block;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.footer__list--contacts li {
		justify-content: center;
		text-align: left;
	}
}

/* STAGE 3: HERO SECTION */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px 0 60px;
	overflow: hidden;
	text-align: center;
}

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

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

.hero__content {
	max-width: 800px;
	margin: 0 auto;
	/* Animation */
	opacity: 0;
	transform: translateY(20px);
	animation: fadeIn 1s ease 0.5s forwards;
}

@keyframes fadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__title {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero__subtitle {
	font-size: 1.25rem;
	color: var(--text-secondary);
	margin-bottom: 2.5rem;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

/* General Button Styles */
.btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	font-family: var(--font-secondary);
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s ease;
}

.btn--primary {
	background-color: var(--accent);
	color: var(--text-primary);
}

.btn--primary:hover {
	background-color: #1d4ed8; /* Darker blue */
	color: var(--text-primary);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
	.hero {
		min-height: 80vh;
	}
	.hero__title {
		font-size: 2rem;
	}
	.hero__subtitle {
		font-size: 1.1rem;
	}
}

/* STAGE 3: ABOUT SECTION */
.about {
	padding: 6rem 0;
	background-color: var(--background-dark);
}

/* General Section Header Styles */
.section-header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.section-header__subtitle {
	display: inline-block;
	margin-bottom: 0.5rem;
	color: var(--accent);
	font-family: var(--font-secondary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section-header__title {
	font-size: 2.5rem;
}

.about__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.about__card {
	background-color: var(--background-light);
	padding: 2.5rem 2rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	background-color: var(--background-dark);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.about__card-icon i {
	width: 32px;
	height: 32px;
	color: var(--accent);
}

.about__card-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.about__card-text {
	color: var(--text-secondary);
	font-size: 1rem;
	line-height: 1.7;
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
	.about__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.about {
		padding: 4rem 0;
	}
	.section-header__title {
		font-size: 2rem;
	}
	.about__grid {
		gap: 1.5rem;
	}
}

/* STAGE 3: TECH SECTION */
.tech {
	padding: 6rem 0;
	background-color: var(--background-dark);
}

.tech__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.tech__image-wrapper {
	width: 100%;
	height: 100%;
	min-height: 400px;
	background-color: var(--background-light);
	border-radius: 12px;
	overflow: hidden;
}

.tech__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Accordion Styles */
.accordion__item {
	border-bottom: 1px solid var(--border-color);
}
.accordion__item:first-child {
	border-top: 1px solid var(--border-color);
}

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 0;
	cursor: pointer;
	width: 100%;
}

.accordion__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
}

.accordion__icon {
	flex-shrink: 0;
	margin-left: 1rem;
	transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding 0.4s ease;
}

.accordion__text {
	color: var(--text-secondary);
	padding-bottom: 1.5rem;
}

/* Accordion Active State */
.accordion__item.is-active .accordion__icon {
	transform: rotate(180deg);
}
.accordion__item.is-active .accordion__body {
	max-height: 300px; /* Adjust as needed */
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
	.tech__grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

@media (max-width: 768px) {
	.tech {
		padding: 4rem 0;
	}
	.accordion__title {
		font-size: 1.1rem;
	}
}

/* STAGE 3: FEATURES SECTION */
.features {
	padding: 6rem 0;
	background-color: var(--background-light);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.features__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 4rem;
	margin-bottom: 4rem;
}

.features__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background-color: var(--background-dark);
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

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

.features__item-icon {
	flex-shrink: 0;
	color: var(--accent);
}

.features__item-text {
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--text-primary);
}

.features__cta {
	text-align: center;
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.features {
		padding: 4rem 0;
	}
	.features__grid {
		grid-template-columns: 1fr;
	}
}

/* STAGE 3: PRICING SECTION */
.pricing {
	padding: 6rem 0;
	background-color: var(--background-dark);
}

.pricing__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	align-items: center;
	margin-top: 4rem;
}

.pricing-card {
	background-color: var(--background-light);
	border-radius: 12px;
	border: 2px solid var(--border-color);
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: all 0.3s ease;
	position: relative;
}

.pricing-card__header {
	text-align: center;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--border-color);
}

.pricing-card__title {
	font-size: 1.5rem;
	font-weight: 600;
}

.pricing-card__price {
	font-size: 3rem;
	font-weight: 700;
	font-family: var(--font-secondary);
	margin: 1rem 0;
	color: var(--accent);
}

.pricing-card__period {
	font-size: 1rem;
	font-weight: 400;
	color: var(--text-secondary);
}

.pricing-card__description {
	color: var(--text-secondary);
}

.pricing-card__features {
	list-style: none;
	padding: 2rem 0;
	flex-grow: 1; /* Pushes footer to the bottom */
}

.pricing-card__features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.icon-check {
	color: var(--accent);
	flex-shrink: 0;
}

.pricing-card__footer {
	margin-top: auto; /* Pushes itself to the bottom */
}

.btn--secondary {
	background-color: transparent;
	color: var(--accent);
	border-color: var(--accent);
	width: 100%;
}

.btn--secondary:hover {
	background-color: var(--accent);
	color: var(--text-primary);
}

.pricing-card--recommended {
	transform: scale(1.05);
	border-color: var(--accent);
}

.pricing-card__badge {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--accent);
	color: var(--text-primary);
	padding: 0.25rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
	font-family: var(--font-secondary);
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
	.pricing__grid {
		grid-template-columns: 1fr;
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
	}
	.pricing-card--recommended {
		transform: scale(1);
	}
}

@media (max-width: 768px) {
	.pricing {
		padding: 4rem 0;
	}
}

/* STAGE 4: CONTACT SECTION */
.contact {
	padding: 6rem 0;
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: center;
	margin-top: 4rem;
}

.contact__text-content h3 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

.contact__text-content p {
	color: var(--text-secondary);
	font-size: 1.1rem;
	line-height: 1.7;
}

.contact__text-content p:not(:last-child) {
	margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.form-input {
	width: 100%;
	padding: 0.8rem 1rem;
	background-color: var(--background-light);
	border: 2px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-primary);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
	color: var(--text-secondary);
}

.form-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input.is-invalid {
	border-color: #ef4444; /* Red for error */
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 1rem;
}

.form-checkbox {
	margin-top: 5px;
	flex-shrink: 0;
	width: 1.25em;
	height: 1.25em;
}

.form-label--checkbox {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.form-label--checkbox a {
	text-decoration: underline;
}

.contact-form button {
	width: 100%;
}

.form-success {
	display: none; /* Hidden by default */
	background-color: var(--background-light);
	border: 2px solid var(--accent);
	border-radius: 12px;
	padding: 3rem;
	text-align: center;
}

.form-success i {
	color: var(--accent);
	width: 48px;
	height: 48px;
	margin-bottom: 1.5rem;
}

.form-success h4 {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.contact__text-content {
		text-align: center;
	}
}

/* STAGE 5: COOKIE POP-UP & POLICY PAGES */

/* Cookie Pop-up */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--background-light);
	padding: 1.5rem;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	border-top: 1px solid var(--border-color);
	z-index: 2000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 0;
}

.cookie-popup__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.cookie-popup p {
	margin: 0;
	color: var(--text-secondary);
}

.cookie-popup a {
	text-decoration: underline;
}

.btn--small {
	padding: 0.6rem 1.5rem;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
} /* Policy Pages (privacy.html, terms.html, etc.) */
.pages {
	padding: 120px 0 60px; /* 120px top for fixed header */
}

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

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 1rem;
}

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

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

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

.pages a {
	text-decoration: underline;
}

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

/* RESPONSIVENESS */
@media (max-width: 768px) {
	.pages h1 {
		font-size: 2.2rem;
	}
	.pages h2 {
		font-size: 1.8rem;
	}
}
