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

/* --- CSS Variables --- */
:root {
    --bg-color: #FDFEFF;
    --text-color: #1A1D2D;
    --primary-color: #4A6CFA;
    --secondary-color: #F0F2F5;
    --accent-color: #2CE59A;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --container-padding: 1.5rem;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

a:hover {
    color: #3b56c8; /* Darker shade of primary */
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* --- Header --- */
.header {
    background-color: var(--bg-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-color);
}

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

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

.header__nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.25rem;
}

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

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

.header__nav-link--button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.header__nav-link--button:hover {
    background-color: #3b56c8;
    color: white;
    transform: translateY(-2px);
}

.header__nav-link--button::after {
    display: none; /* No underline for button */
}

.header__burger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary-color);
    padding-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

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

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    display: inline-block;
    margin-bottom: 1rem;
}

.footer__tagline {
    font-size: 0.9rem;
    color: #6c757d;
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

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

.footer__link {
    font-size: 0.95rem;
    color: #495057;
}
.footer__link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    margin-top: 2px;
}

.footer__bottom {
    background-color: #e9ecef;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}


/* --- Responsive (Mobile-First) --- */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Hide nav menu on mobile */
    }

    .header__burger-menu {
        display: block; /* Show burger icon */
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--contacts .footer__list-item {
       justify-content: center;
    }
}

/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden; /* To contain the absolute shapes */
    background: radial-gradient(circle at 10% 20%, rgba(74, 108, 250, 0.05), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(44, 229, 154, 0.05), transparent 40%);
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero__content {
    flex: 1 1 55%; /* Takes up 55% of the space */
    z-index: 2;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero__text {
    font-size: 1.125rem;
    color: #495057;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero__cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(74, 108, 250, 0.3);
}

.hero__cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(74, 108, 250, 0.4);
    color: white;
}

.hero__visual {
    flex: 1 1 40%; /* Takes up 40% of the space */
    position: relative;
    z-index: 2;
}

.hero__image-wrapper {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.hero__image {
    border-radius: var(--border-radius);
}

/* --- Animated Shapes --- */
.hero__shape {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    transition: transform 5s ease-in-out;
    z-index: 1;
}

.hero__shape--1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    background-color: var(--accent-color);
}

.hero__shape--2 {
    width: 100px;
    height: 100px;
    top: 70%;
    left: 40%;
}

.hero__shape--3 {
    width: 50px;
    height: 50px;
    top: 20%;
    right: 10%;
    background-color: var(--accent-color);
}


/* --- Responsive (Mobile-First) for Hero --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero__container {
        flex-direction: column;
    }

    .hero__title {
        font-size: 2.2rem;
    }

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

/* --- Shared Section Header --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header__subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.7;
}

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

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

.how-it-works__step-card {
    background-color: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.how-it-works__step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Step number in the background */
.how-it-works__step-card::before {
    content: '0' counter(step);
    counter-increment: step;
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    z-index: 1;
}

.how-it-works__step-card:nth-child(1) { counter-reset: step 1; }
.how-it-works__step-card:nth-child(2) { counter-reset: step 2; }
.how-it-works__step-card:nth-child(3) { counter-reset: step 3; }


.how-it-works__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: rgba(74, 108, 250, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

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

.how-it-works__card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.how-it-works__card-text {
    color: #495057;
    position: relative;
    z-index: 2;
}

.how-it-works__card-text strong {
    color: var(--primary-color);
}


/* --- Responsive (Mobile-First) for How It Works --- */
@media (max-width: 992px) {
    .how-it-works__steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 4rem 0;
    }
    .section-header__title {
        font-size: 2rem;
    }
}

/* --- Examples Section --- */
.examples {
    padding: 6rem 0;
}

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

.examples__tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
    border: 1px solid #dee2e6;
    background-color: transparent;
    color: var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.examples__tab-btn:hover {
    background-color: var(--secondary-color);
    border-color: #ced4da;
}

.examples__tab-btn--active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.examples__tab-btn--active:hover {
    background-color: #3b56c8;
    border-color: #3b56c8;
}

.examples__tab-btn i {
    width: 18px;
    height: 18px;
}

.examples__tab-pane {
    display: none;
    align-items: center;
    gap: 4rem;
    animation: fadeIn 0.5s ease;
}

.examples__tab-pane--active {
    display: flex;
}

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

.examples__pane-visual {
    flex: 1 1 50%;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.examples__pane-img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.examples__pane-content {
    flex: 1 1 50%;
}

.examples__pane-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.examples__pane-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 2rem;
    max-width: 500px;
}

.examples__pane-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.examples__pane-link:hover {
    text-decoration: underline;
}

.examples__pane-link i {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-speed) ease;
}

.examples__pane-link:hover i {
    transform: translateX(4px);
}

/* --- Responsive (Mobile-First) for Examples --- */
@media (max-width: 768px) {
    .examples {
        padding: 4rem 0;
    }

    .examples__tab-pane {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .examples__tab-pane--active {
        display: flex;
    }

    .examples__pane-text {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Tools Section --- */
.tools {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.tools__grid {
    display: grid;
    /* Responsive grid: creates as many 300px columns as fit, and stretches them */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tools__card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
}

.tools__card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tools__card-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 1.5rem;
}

.tools__card-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.tools__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tools__card-description {
    color: #6c757d;
    line-height: 1.6;
}


/* --- Responsive (Mobile-First) for Tools --- */
@media (max-width: 768px) {
    .tools {
        padding: 4rem 0;
    }
}

/* --- FAQ Section --- */
.faq {
    padding: 6rem 0;
}

.faq__accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #dee2e6;
}

.faq__item {
    border-bottom: 1px solid #dee2e6;
}

.faq__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq__question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 1rem;
}

.faq__item-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.faq__item-icon i {
    width: 20px;
    height: 20px;
}

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

.faq__answer {
    padding-bottom: 1.5rem;
    color: #495057;
    line-height: 1.7;
    max-width: 95%;
}

.faq__answer strong {
    color: var(--text-color);
}

/* --- Active State for Accordion --- */
.faq__item--active .faq__item-body {
    max-height: 300px; /* Adjust if answers are very long */
    transition: max-height 0.5s ease-in;
}

.faq__item--active .faq__item-icon {
    transform: rotate(45deg);
}

/* --- Responsive (Mobile-First) for FAQ --- */
@media (max-width: 768px) {
    .faq {
        padding: 4rem 0;
    }
    .faq__question {
        font-size: 1.1rem;
    }
}

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

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--bg-color);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.contact__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact__subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group__input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 250, 0.2);
}

.form-group__input.invalid {
    border-color: #dc3545;
}

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

.form-group__checkbox {
    margin-top: 5px;
    flex-shrink: 0;
}

.form-group__checkbox-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.contact__submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.contact__submit-btn:hover {
    background-color: #3b56c8;
    transform: translateY(-2px);
}

/* Success Message */
.contact__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    background-color: #f0fff9;
}

.contact__success-message--visible {
    display: block;
}

.contact__success-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.contact__success-icon i {
    width: 50px;
    height: 50px;
}
.contact__success-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.contact__success-text {
    color: #495057;
}

/* --- Responsive (Mobile-First) for Contact --- */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
    .contact__text-content {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 200;
    transition: bottom 0.5s ease-in-out;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.cookie-popup__text {
    margin: 0;
    text-align: center;
}

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

.cookie-popup__btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color var(--transition-speed) ease;
    flex-shrink: 0;
}

.cookie-popup__btn:hover {
    background-color: #3b56c8;
}


/* --- Policy Pages (privacy.html, terms.html, etc.) --- */
.pages {
    padding: 5rem 0;
}

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

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

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

.pages p {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

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

.pages li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #495057;
}

.pages a {
    text-decoration: underline;
}

.pages strong {
    color: var(--text-color);
}