/* === GLOBAL STYLES === */
:root {
	--color-background: #0d0d10;
	--color-surface: #1a1a1f;
	--color-primary: #3a65fe;
	--color-text-primary: #eaeaeb;
	--color-text-secondary: #a0a0a5;

	--font-family-base: 'Inter', sans-serif;
	--font-family-heading: 'Montserrat', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text-primary);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
	list-style: none;
}

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

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

/* === LOGO === */
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-family-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--color-text-primary);
}

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

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

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

.header__nav-list {
	display: flex;
	gap: 30px;
}

.header__nav-link {
	font-size: 16px;
	font-weight: 500;
	color: var(--color-text-secondary);
	position: relative;
	padding: 5px 0;
}

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

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

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

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

/* === FOOTER === */
.footer {
	padding: 80px 0;
	background-color: var(--color-surface);
	border-top: 1px solid rgba(234, 234, 235, 0.1);
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
}

.footer__column--main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.footer__copyright {
	color: var(--color-text-secondary);
	font-size: 14px;
	margin-top: 20px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
	color: var(--color-text-primary);
}

.footer__list li {
	margin-bottom: 10px;
}

.footer__link,
.footer__address {
	color: var(--color-text-secondary);
	font-size: 15px;
}
.footer__link:hover {
	color: var(--color-primary);
}
.footer__address {
	line-height: 1.7;
}

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

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--color-background);
		display: flex;
		align-items: center;
		justify-content: center;
		transform: translateX(-100%);
		transition: transform 0.4s ease-in-out;
		z-index: 1000;
		opacity: 1;
	}

	.header__nav.is-open {
		transform: translateX(0);
	}

	.header__nav-list {
		flex-direction: column;
		gap: 40px;
		text-align: center;
	}

	.header__nav-link {
		font-size: 24px;
		font-weight: 600;
		color: var(--color-text-primary);
	}

	.header__burger {
		display: block;
		z-index: 1001;
		position: relative;
		width: 24px;
		height: 24px;
	}

	.header__burger svg {
		width: 24px;
		height: 24px;
		transition: opacity 0.2s ease;
	}

	.header__burger .close-icon {
		position: absolute;
		top: 0;
		left: 0;
		opacity: 0;
	}

	.header__burger.is-open .menu-icon {
		opacity: 0;
	}

	.header__burger.is-open .close-icon {
		opacity: 1;
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column--main {
		align-items: center;
	}
}

/* === GENERAL COMPONENTS (BUTTON) === */
.btn {
	display: inline-block;
	padding: 14px 32px;
	font-family: var(--font-family-heading);
	font-weight: 600;
	font-size: 16px;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.3s ease, background-color 0.3s ease;
	border: none;
}

.btn--primary {
	background-color: var(--color-primary);
	color: #fff;
}

.btn--primary:hover {
	background-color: #2d54d5; /* Slightly darker shade for hover */
	color: #fff;
	transform: translateY(-3px);
}

/* === 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;
}

.hero__title {
	font-size: 56px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 20px;
	animation: fadeInDown 1s ease-out;
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	max-width: 600px;
	margin: 0 auto 40px;
	animation: fadeInUp 1s ease-out 0.3s;
	animation-fill-mode: both; /* Keep state after animation */
}

.hero .btn {
	animation: fadeInUp 1s ease-out 0.6s;
	animation-fill-mode: both;
}

@media (max-width: 768px) {
	.hero__title {
		font-size: 40px;
	}

	.hero__subtitle {
		font-size: 16px;
	}
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* === SECTION STYLES === */
.section {
	padding: 100px 0;
}

.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.section__title {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 15px;
	line-height: 1.3;
}

.section__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* === HOW IT WORKS SECTION === */
.how-it-works__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.how-it-works__card {
	background-color: var(--color-surface);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid rgba(234, 234, 235, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;

	/* Animation setup */
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation delay for cards */
.how-it-works__card:nth-child(2) {
	animation-delay: 0.2s;
}
.how-it-works__card:nth-child(3) {
	animation-delay: 0.4s;
}

.how-it-works__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.how-it-works__card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 25px;
}

.how-it-works__card-step {
	font-family: var(--font-family-heading);
	font-size: 24px;
	font-weight: 600;
	color: var(--color-text-secondary);
}

.how-it-works__card-icon {
	width: 48px;
	height: 48px;
	color: var(--color-primary);
}

.how-it-works__card-title {
	font-size: 22px;
	margin-bottom: 15px;
}

.how-it-works__card-text {
	font-size: 16px;
	color: var(--color-text-secondary);
}

/* === ADAPTIVE STYLES FOR SECTION & HOW-IT-WORKS === */
@media (max-width: 992px) {
	.how-it-works__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 80px 0;
	}

	.section__title {
		font-size: 32px;
	}

	.section__subtitle {
		font-size: 16px;
	}
}

/* === SPHERES SECTION === */
.spheres__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.spheres__card {
	position: relative;
	height: 400px;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	color: var(--color-text-primary);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spheres__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.spheres__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.spheres__card:hover .spheres__card-img {
	transform: scale(1.05);
}

.spheres__card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		180deg,
		rgba(13, 13, 16, 0) 50%,
		rgba(13, 13, 16, 0.8) 100%
	);
	transition: background-color 0.3s ease;
}

.spheres__card:hover .spheres__card-overlay {
	background: linear-gradient(
		180deg,
		rgba(13, 13, 16, 0) 40%,
		rgba(13, 13, 16, 0.9) 100%
	);
}

.spheres__card-title {
	position: absolute;
	bottom: 30px;
	left: 30px;
	font-size: 24px;
	font-weight: 600;
	z-index: 2;
}

/* === ADAPTIVE STYLES FOR SPHERES === */
@media (max-width: 768px) {
	.spheres__card {
		height: 350px;
	}
}

/* === TOOLS SECTION === */
.tools-container {
	max-width: 900px;
	margin: 0 auto;
}

.tools__tabs {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 40px;
}

.tools__tab-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	font-family: var(--font-family-heading);
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text-secondary);
	background-color: transparent;
	border: 1px solid var(--color-surface);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tools__tab-btn:hover {
	color: var(--color-text-primary);
	background-color: var(--color-surface);
}

.tools__tab-btn.is-active {
	color: #fff;
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.tools__tab-btn .lucide {
	width: 20px;
	height: 20px;
}

.tools__panel {
	display: none;
	animation: fadeIn 0.5s ease;
}

.tools__panel.is-active {
	display: grid;
	gap: 20px;
}

.tool-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
	background-color: var(--color-surface);
	border: 1px solid rgba(234, 234, 235, 0.1);
	border-radius: 12px;
}

.tool-item__icon-wrapper {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(58, 101, 254, 0.1);
	border-radius: 8px;
	color: var(--color-primary);
}

.tool-item__info {
	flex-grow: 1;
}

.tool-item__title {
	font-size: 18px;
	margin-bottom: 5px;
}

.tool-item__description {
	color: var(--color-text-secondary);
	font-size: 15px;
}

.tool-item__btn {
	padding: 8px 20px;
	font-size: 14px;
	flex-shrink: 0;
}

/* === KEYFRAME ANIMATIONS (add if not present) === */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* === ADAPTIVE STYLES FOR TOOLS === */
@media (max-width: 768px) {
	.tools__tabs {
		gap: 10px;
	}
	.tools__tab-btn {
		padding: 10px 16px;
		font-size: 14px;
	}
	.tool-item {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
	.tool-item__btn {
		margin-top: 15px;
		width: 100%;
	}
}
@media (max-width: 480px) {
	.tools__tabs {
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* === CASES SECTION (ACCORDION) === */
.accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid rgba(234, 234, 235, 0.1);
	border-radius: 12px;
	overflow: hidden;
}

.accordion__item {
	background-color: var(--color-surface);
	border-bottom: 1px solid rgba(234, 234, 235, 0.1);
}

.accordion__item:last-child {
	border-bottom: none;
}

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 20px 25px;
	background: none;
	border: none;
	color: var(--color-text-primary);
	font-family: var(--font-family-heading);
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.accordion__header:hover {
	background-color: rgba(234, 234, 235, 0.05);
}

.accordion__item.is-active .accordion__header {
	color: var(--color-primary);
}

.accordion__icon {
	flex-shrink: 0;
	margin-left: 15px;
	transition: transform 0.4s ease;
}

.accordion__item.is-active .accordion__icon {
	transform: rotate(180deg);
}

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

.case-content {
	padding: 0 25px 25px 25px;
	color: var(--color-text-secondary);
	font-size: 16px;
	line-height: 1.7;
}

.case-content__block {
	margin-bottom: 20px;
}
.case-content__block:last-child {
	margin-bottom: 0;
}

.case-content strong {
	color: var(--color-text-primary);
	display: block;
	margin-bottom: 8px;
}

.case-content__img {
	border-radius: 8px;
	margin-top: 10px;
}

.case-content pre {
	background-color: var(--color-background);
	padding: 15px;
	border-radius: 8px;
	margin-top: 10px;
	white-space: pre-wrap;
	font-family: 'Courier New', Courier, monospace;
}

/* === CONTACT SECTION === */
.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 60px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
}

.contact__info-title {
	font-size: 24px;
	margin-bottom: 15px;
}

.contact__info-text {
	color: var(--color-text-secondary);
	margin-bottom: 30px;
}

.contact__info-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.contact__info-list a {
	color: var(--color-text-secondary);
	font-size: 16px;
}
.contact__info-list a:hover {
	color: var(--color-primary);
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form__group {
	display: flex;
	flex-direction: column;
}

.form__label {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--color-text-secondary);
}

.form__input {
	width: 100%;
	padding: 12px 16px;
	background-color: var(--color-surface);
	border: 1px solid rgba(234, 234, 235, 0.1);
	border-radius: 8px;
	color: var(--color-text-primary);
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(58, 101, 254, 0.2);
}

.form__group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	margin-top: 5px;
}

.form__checkbox {
	margin-top: 4px;
	flex-shrink: 0;
}

.form__checkbox-label {
	font-size: 14px;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

.form-success-message {
	display: none; /* Initially hidden */
	text-align: center;
	padding: 40px;
	background-color: var(--color-surface);
	border: 1px solid var(--color-primary);
	border-radius: 12px;
}

.form-success-message.is-visible {
	display: block;
	animation: fadeIn 0.5s ease;
}

.form-success-message .lucide {
	width: 48px;
	height: 48px;
	color: var(--color-primary);
	margin-bottom: 15px;
}

.form-success-message h4 {
	font-size: 22px;
	margin-bottom: 10px;
}

/* === ADAPTIVE STYLES FOR CONTACT === */
@media (max-width: 768px) {
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.contact__info {
		text-align: center;
	}
	.contact__info-list {
		align-items: center;
	}
}

/* === COOKIE POP-UP === */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-surface);
	border-top: 1px solid rgba(234, 234, 235, 0.1);
	padding: 20px;
	z-index: 200;

	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;

	transform: translateY(150%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	transform: translateY(0);
}

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

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

.cookie-popup__btn {
	padding: 8px 20px;
	font-size: 14px;
	flex-shrink: 0;
}

/* === ADAPTIVE STYLES FOR COOKIE POP-UP === */
@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* === STATIC PAGES (PRIVACY, TERMS, ETC.) === */
.pages {
	padding: 140px 0 80px; /* Extra top padding to offset the fixed header */
	line-height: 1.8;
}

.pages .container {
	max-width: 800px;
}

.pages h1 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 30px;
}

.pages h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	color: var(--color-text-secondary);
	margin-bottom: 20px;
}

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

.pages a:hover {
	text-decoration: none;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 20px;
}

.pages li {
	margin-bottom: 10px;
	color: var(--color-text-secondary);
}

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