/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
	--primary-color: #00f5d4;
	--secondary-color: #0f1419;
	--background-color: #1a1f2e;
	--text-color: #cbd5e0;
	--heading-color: #ffffff;
	--white-color: #2d3748;
	--card-bg: #252b3a;
	--border-color: #3a4555;

	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Inter', sans-serif;

	--header-height: 80px;
}

/* --- Global Styles & Reset --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-headings);
	color: var(--heading-color);
	line-height: 1.2;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

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

/* --- Utility Classes --- */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* --- Header --- */
.header {
	background-color: var(--secondary-color);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-family-headings);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--heading-color);
}

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

.header__nav {
	display: none; /* Hidden on mobile */
}

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

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

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

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

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

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

/* --- Footer --- */
.footer {
	background-color: var(--secondary-color);
	color: var(--background-color);
	padding-top: 4rem;
}

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

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

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

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

.footer__description {
	max-width: 300px;
	color: #a0aec0;
}

.footer__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--white-color);
	margin-bottom: 1rem;
}

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

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

.footer__list--contacts .lucide {
	flex-shrink: 0;
	color: var(--primary-color);
}

.footer__link,
.footer__text {
	color: #a0aec0;
}

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

.footer__bottom {
	border-top: 1px solid var(--border-color);
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.9rem;
	color: #a0aec0;
}

/* --- Responsive Design (Mobile-First) --- */

/* Tablet */
@media (min-width: 768px) {
	.header__nav {
		display: block;
	}

	.header__burger {
		display: none;
	}

	.footer__container {
		grid-template-columns: 2fr 1fr 1fr;
		gap: 2rem;
	}

	.footer__column--about {
		grid-column: auto;
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 3rem;
	}
}

/* Mobile Nav Styles */
@media (max-width: 767.98px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--secondary-color);
		display: flex;
		justify-content: center;
		align-items: center;
		transform: translateX(-100%);
		transition: transform 0.3s ease-in-out;
	}

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

	.header__nav-list {
		flex-direction: column;
		text-align: center;
		gap: 2rem;
	}

	.header__nav-link {
		font-size: 1.5rem;
	}
}

/* --- Buttons --- */
.btn {
	display: inline-block;
	padding: 0.8rem 2rem;
	border-radius: 50px;
	font-family: var(--font-family-headings);
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: none;
}

.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn--primary:hover {
	background-color: #00e0c4; /* Slightly lighter for hover */
}

/* --- Hero Section --- */
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	overflow: hidden; /* For animations */
}

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

.hero__title {
	font-size: 1.5rem; /* 40px */
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.hero__subtitle {
	font-size: 1.125rem; /* 18px */
	max-width: 500px;
	margin-bottom: 2.5rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
}

.hero__actions-note {
	font-size: 0.9rem;
	color: var(--text-color);
}

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

.hero__image {
	max-width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Tablet and above */
@media (min-width: 768px) {
	.hero {
		padding-top: calc(var(--header-height) + 5rem);
		padding-bottom: 5rem;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
	}

	.hero__title {
		font-size: 2rem; /* 52px */
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.hero__container {
		grid-template-columns: 1.2fr 1fr; /* Give more space to text */
	}

	.hero__title {
		font-size: 2.5rem; /* 64px */
	}
}

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

.section-header__tagline {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	background-color: var(--card-bg);
	color: var(--text-color);
	font-size: 0.9rem;
	font-weight: 500;
}

.section-header__title {
	font-size: 2.25rem; /* 36px */
	margin-bottom: 1rem;
}

.section-header__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--text-color);
}

/* --- Features Section --- */
.features {
	padding: 5rem 0;
	background-color: var(--background-color);
}

.features__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

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

.features__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.features__card-icon .lucide {
	color: var(--secondary-color);
	width: 32px;
	height: 32px;
}

.features__card-title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 0.75rem;
}

.features__card-text {
	font-size: 1rem;
	line-height: 1.6;
}

/* Tablet */
@media (min-width: 768px) {
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.section-header__title {
		font-size: 2.5rem; /* 40px */
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.features__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* --- How It Works Section --- */
.how-it-works {
	padding: 5rem 0;
	background-color: var(--background-color);
}

.how-it-works__steps {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	position: relative; /* For the connecting line */
}

.how-it-works__step {
	position: relative;
	padding-left: 80px; /* Space for the icon */
	min-height: 64px;
}

.how-it-works__step-number {
	position: absolute;
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
	font-size: 5rem;
	font-weight: 700;
	color: var(--border-color);
	z-index: 1;
	line-height: 1;
}

.how-it-works__step-icon {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	z-index: 2;
}

.how-it-works__step-icon .lucide {
	color: var(--primary-color);
	width: 32px;
	height: 32px;
}

.how-it-works__step-content {
	z-index: 2;
	position: relative;
}

.how-it-works__step-title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 0.5rem;
}

/* Tablet */
@media (min-width: 768px) {
	.how-it-works__steps {
		flex-direction: row;
		justify-content: space-between;
		gap: 2rem;
	}

	.how-it-works__step {
		padding-left: 0;
		padding-top: 80px; /* Space for icon */
		text-align: center;
		width: 30%;
	}

	.how-it-works__step-number {
		top: 30px;
		left: 50%;
		transform: translateX(-50%);
	}

	.how-it-works__step-icon {
		top: 0;
		left: 50%;
		transform: translateX(-50%);
	}

	/* Connecting Line */
	.how-it-works__steps::before {
		content: '';
		position: absolute;
		top: 32px; /* Vertically center with icons */
		left: 15%;
		right: 15%;
		height: 2px;
		background-image: linear-gradient(
			to right,
			var(--primary-color) 50%,
			transparent 50%
		);
		background-size: 16px 2px;
		background-repeat: repeat-x;
		z-index: 1;
	}
}

@media (min-width: 1024px) {
	.how-it-works__steps::before {
		left: 10%;
		right: 10%;
	}
}

/* --- Income Section --- */
.income {
	padding: 5rem 0;
	background-color: var(--background-color);
	overflow: hidden;
}

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

.income__content .section-header {
	text-align: left;
	margin: 0 0 2.5rem 0;
	max-width: none;
}

.income__features-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.income__feature-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	font-size: 1.1rem;
}

.income__feature-item .lucide {
	flex-shrink: 0;
	color: var(--primary-color);
	margin-top: 4px;
}

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

.income__image {
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Tablet and above */
@media (min-width: 768px) {
	.income__container {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

@media (min-width: 1024px) {
	.income__container {
		grid-template-columns: 1.1fr 1fr;
	}
}

/* --- Contact Section --- */
.contact {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
}

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

.form__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

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

.form__input::placeholder {
    color: #718096;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.3);
}

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

.form__checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25em;
    height: 1.25em;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-top: 0.2em;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

.form__checkbox-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form__checkbox-input:checked::after {
    content: '✔';
    position: absolute;
    color: var(--secondary-color);
    font-size: 0.9em;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form__checkbox-label {
    font-size: 0.9rem;
    line-height: 1.5;
}
.form__checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form__submit {
    width: 100%;
}

/* Success Message */
.form__success-message {
    display: none; /* Initially hidden */
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--primary-color);
    border-radius: 16px;
}

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

.form__success-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Contact Info Block */
.contact__info {
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--background-color);
    border-radius: 12px;
}

.contact__info-title {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact__info-text {
    color: #a0aec0;
    margin-bottom: 2rem;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    color: #a0aec0;
}
.contact__info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.contact__info-list .lucide {
    color: var(--primary-color);
}

.contact__info-note {
    background-color: rgba(0, 245, 212, 0.1);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

@media(min-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1.2fr 1fr;
        padding: 3rem;
    }
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 1.5rem 1rem;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

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

.cookie-popup__text {
    text-align: center;
    font-size: 0.9rem;
}

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

.cookie-popup__btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family-headings);
    transition: background-color 0.3s;
}

.cookie-popup__btn:hover {
    background-color: #00e0c4;
}

@media(min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
    }
    .cookie-popup__text {
        text-align: left;
    }
}


/* --- Policy Pages Styles --- */
.pages {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
}

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

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

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

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

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

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

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