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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--background: #121212;
	--surface: #1e1e1e;
	--text-primary: #eaeaea;
	--text-secondary: #b3b3b3;
	--accent: #00f5d4;

	/* Typography */
	--font-family: 'Inter', sans-serif;
	--h1-size: 2.5rem;
	--h2-size: 2rem;
	--h3-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Spacing */
	--header-height: 5rem;
	--container-padding: 1.5rem;
}

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

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* ==================== LOGO ==================== */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--text-primary);
	transition: opacity 0.3s ease;
}

.logo:hover {
	opacity: 0.8;
}

.logo__img {
	width: 32px;
	height: 32px;
}

.logo__img .logo__accent-stroke {
	stroke: var(--accent);
}

.logo__img .logo__primary-stroke {
	stroke: var(--text-primary);
}

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

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

.nav__list {
	display: flex;
	gap: 2rem;
}

.nav__link {
	position: relative;
	color: var(--text-secondary);
	font-weight: 500;
	transition: color 0.3s ease;
}

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

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

.nav__link:hover::after {
	width: 100%;
}

.burger {
	display: none; /* Hidden on desktop */
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	background: transparent;
	border: none;
}

.burger__line {
	width: 25px;
	height: 2px;
	background-color: var(--text-primary);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.footer__column--main {
	flex-basis: 30%;
}

.footer__logo {
	margin-bottom: 1rem;
}

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

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

.footer__list li {
	margin-bottom: 0.75rem;
}

.footer__link {
	color: var(--text-secondary);
	transition: color 0.3s ease, padding-left 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__link:hover {
	color: var(--accent);
	padding-left: 5px;
}

.footer__icon {
	width: 16px;
	height: 16px;
}

.footer__bottom {
	border-top: 1px solid var(--background);
	padding: 1.5rem 0;
}

.footer__bottom-container {
	text-align: center;
}

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

/* ==================== MEDIA QUERIES (Mobile First) ==================== */
@media screen and (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		right: -100%; /* Initially hidden */
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--background);
		transition: right 0.4s ease-in-out;
		padding-top: 2rem;
	}

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

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 2.5rem;
	}

	.nav__link {
		font-size: var(--h3-size);
	}

	.burger {
		display: flex;
	}

	.burger.is-active .burger__line:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.burger.is-active .burger__line:nth-child(2) {
		opacity: 0;
	}

	.burger.is-active .burger__line:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	body.no-scroll {
		overflow: hidden;
	}
}

/* ==================== BUTTONS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--accent);
	color: var(--background);
	padding: 0.8rem 1.5rem;
	border-radius: 50px; /* pill shape */
	font-weight: 500;
	border: 2px solid var(--accent);
	transition: background-color 0.3s ease, color 0.3s ease;
	cursor: pointer;
}

.button:hover {
	background-color: transparent;
	color: var(--accent);
}

.button__icon {
	width: 20px;
	height: 20px;
}

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

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

.hero__content {
	max-width: 550px;
}

.hero__title {
	font-size: 2.5rem; /* Slightly larger for hero */
	line-height: 1.2;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

.hero__subtitle {
	font-size: 1.125rem;
	color: var(--text-secondary);
	margin-bottom: 2.5rem;
	max-width: 500px;
}

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

.hero__img {
	width: 100%;
	height: auto;
	border-radius: 20px;
	animation: pulse 5s infinite ease-in-out;
}

/* Animation for hero image */
@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.3);
	}
	50% {
		transform: scale(1.02);
		box-shadow: 0 0 20px 30px rgba(0, 245, 212, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(0, 245, 212, 0);
	}
}

/* ==================== MEDIA QUERIES for HERO ==================== */
@media screen and (max-width: 992px) {
	.hero__title {
		font-size: 2rem;
	}
	.hero__container {
		gap: 2rem;
	}
}

@media screen and (max-width: 768px) {
	.hero {
		padding-top: calc(var(--header-height) + 2rem);
		min-height: auto;
		padding-bottom: 4rem;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__content {
		max-width: 100%;
		order: 2; /* Text goes below image on mobile */
	}
	.hero__visual {
		order: 1;
		margin-bottom: 3rem;
	}
	.hero__img {
		max-width: 300px;
	}
	.hero__title {
		font-size: 1.5rem;
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==================== GENERIC SECTION STYLES ==================== */
.section {
	padding-top: 6rem;
	padding-bottom: 6rem;
	overflow: hidden; /* For AOS animations */
}

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

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

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

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

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

.how-it-works__card:hover {
	transform: translateY(-8px);
	border-color: var(--accent);
}

.how-it-works__icon-wrapper {
	display: inline-flex;
	padding: 1rem;
	background-color: rgba(0, 245, 212, 0.1); /* Accent with alpha */
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.how-it-works__icon {
	width: 32px;
	height: 32px;
	color: var(--accent);
}

.how-it-works__card-title {
	font-size: var(--h3-size);
	margin-bottom: 0.75rem;
	color: var(--text-primary);
}

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

/* ==================== MEDIA QUERIES for HOW IT WORKS ==================== */
@media screen and (max-width: 992px) {
	.how-it-works__grid {
		grid-template-columns: 1fr;
		max-width: 450px;
		margin: 0 auto;
	}
}

@media screen and (max-width: 768px) {
	.section {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
	.section__header {
		margin-bottom: 3rem;
	}
}

/* ==================== EXAMPLES SECTION (TABS) ==================== */
.examples {
	background-color: var(--surface);
}

.examples__tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}

.examples__tab-button {
	padding: 0.75rem 1.5rem;
	border-radius: 50px;
	border: 1px solid var(--text-secondary);
	background-color: transparent;
	color: var(--text-secondary);
	font-size: var(--normal-font-size);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.examples__tab-button:hover {
	border-color: var(--accent);
	color: var(--accent);
}

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

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

.examples__pane.is-active {
	display: block;
}

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

.examples__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto;
}

.examples__list li {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background-color: var(--background);
	padding: 1.25rem;
	border-radius: 12px;
}

.examples__list-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--accent);
	margin-top: 3px;
}

/* ==================== MEDIA QUERIES for EXAMPLES ==================== */
@media screen and (max-width: 768px) {
	.examples__list {
		grid-template-columns: 1fr;
	}
}

/* ==================== TOOLS SECTION ==================== */
.tools__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

.tools__card {
	background-color: var(--surface);
	border-radius: 16px;
	padding: 2rem;
	border: 1px solid var(--surface);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tools__card-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.tools__card-logo {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	background-color: var(--background); /* Placeholder bg */
}

.tools__card-title {
	font-size: 1.15rem;
	color: var(--text-primary);
}

.tools__card-description {
	color: var(--text-secondary);
	font-size: var(--normal-font-size);
}

/* ==================== MEDIA QUERIES for TOOLS ==================== */
@media screen and (max-width: 768px) {
	.tools__grid {
		grid-template-columns: 1fr;
	}
}

/* ==================== FOR WHOM SECTION (ACCORDION) ==================== */
.for-whom {
	background-color: var(--surface);
}

.for-whom__accordion {
	max-width: 800px;
	margin: 0 auto;
}

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

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1.5rem;
	background-color: transparent;
	border: none;
	color: var(--text-primary);
	font-size: 1.1rem;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
}

.accordion__icon {
	transition: transform 0.3s ease;
}

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

.accordion__description {
	padding: 0 1.5rem 1.5rem 1.5rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

/* Active state for accordion */
.accordion__item.is-active .accordion__icon {
	transform: rotate(180deg);
}
.accordion__item.is-active .accordion__header {
	color: var(--accent);
}

/* ==================== CONTACT SECTION ==================== */
.contact__wrapper {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--surface);
	padding: 3rem;
	border-radius: 16px;
}

.contact__form .form__group {
	position: relative;
	margin-bottom: 2rem;
}

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

.form__control:focus {
	border-color: var(--accent);
}

.form__label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--text-secondary);
	pointer-events: none;
	transition: all 0.3s ease;
}

.form__control:focus ~ .form__label,
.form__control:not(:placeholder-shown) ~ .form__label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--accent);
	background-color: var(--surface);
	padding: 0 0.25rem;
}

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

.form__group--checkbox input[type='checkbox'] {
	margin-top: 5px;
	accent-color: var(--accent); /* Simple styling for checkbox */
}

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

.form__group--checkbox a {
	color: var(--accent);
	text-decoration: underline;
}

.contact__button {
	width: 100%;
	padding: 1rem;
}

/* Success Message */
.success-message {
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--accent);
	border-radius: 16px;
	animation: fadeIn 0.5s ease;
}

.success-message.is-hidden {
	display: none;
}

.success-message__icon-wrapper {
	width: 60px;
	height: 60px;
	margin: 0 auto 1.5rem auto;
	background-color: rgba(0, 245, 212, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.success-message__icon {
	width: 32px;
	height: 32px;
	color: var(--accent);
}

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

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

/* ==================== COOKIE POP-UP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--surface);
	padding: 1.5rem 0;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	z-index: 200;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

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

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

.cookie-popup__button {
	padding: 0.6rem 1.2rem;
	flex-shrink: 0;
}

/* For JS hiding */
.cookie-popup.is-hidden {
	display: none;
}

@media screen and (max-width: 768px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

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

.pages .container {
	max-width: 800px; /* Optimal width for reading text */
}

.pages h1 {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 2rem;
	color: var(--text-primary);
}

.pages h2 {
	font-size: 1.5rem;
	line-height: 1.3;
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

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

.pages ul {
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
	list-style-type: disc;
}

.pages ul li {
	margin-bottom: 0.75rem;
}

.pages a {
	color: var(--accent);
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.pages a:hover {
	opacity: 0.8;
}

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