/* GLOBAL STYLES */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --color-bg: #FFFFFF;
    --color-bg-light: #F4F6FC;
    --color-dark: #1B1D2A;
    --color-primary: #4A90E2;
    --color-primary-hover: #3a75c4;
    --color-text: #343a40;
    --color-text-secondary: #6c757d;

    --container-width: 1200px;
    --container-padding: 15px;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--color-dark);
    line-height: 1.2;
}

.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-primary);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* HEADER */
.header {
    background-color: var(--color-bg);
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.header__logo {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
}

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

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

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

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

.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-dark);
}
.header__nav-link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.header__burger-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
}

/* FOOTER */
.footer {
    background-color: var(--color-dark);
    color: #aeb1b8;
    padding-top: 60px;
}

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

.footer__logo {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    margin-bottom: 15px;
}
.footer__logo:hover {
    color: #fff;
}

.footer__description {
    max-width: 300px;
}

.footer__title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: #aeb1b8;
}

.footer__link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer__text {
    color: #aeb1b8;
}

.footer__bottom {
    background-color: #11131e;
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 14px;
    color: #868a92;
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
    .header__burger-button {
        display: none;
    }
    .header__nav {
        display: block;
    }
    .header__button {
        display: inline-block;
    }
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
        gap: 40px;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-dark);
    color: #fff;
    text-align: center;
}

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

.hero__animation-bg .orb {
    position: absolute;
    border-radius: 50%;
    background-image: linear-gradient(135deg, rgba(74, 144, 226, 0.5) 0%, rgba(136, 92, 239, 0.5) 100%);
    filter: blur(40px);
    will-change: transform, opacity;
}

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

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

.hero__pretitle {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.button--secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.button--secondary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* MEDIA QUERIES for HERO */
@media (min-width: 768px) {
    .hero__title {
        font-size: 4rem;
    }
    .hero__subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1rem;
    }
    .hero__actions .button {
        width: 100%;
    }
}

/* SHARED SECTION STYLES */
.section {
    padding: 80px 0;
}

.section:nth-of-type(odd) {
    background-color: var(--color-bg-light);
}

.section__pretitle {
    display: inline-block;
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 600px;
}

.section__description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin-bottom: 30px;
}

/* PLATFORM SECTION */
.platform__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.platform__image-wrapper {
    text-align: center;
}

.platform__image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.platform__features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.platform__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.platform__feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
}

.platform__feature-icon i {
    width: 24px;
    height: 24px;
}

.platform__feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

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


/* MEDIA QUERIES for PLATFORM */
@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
    .section__title {
        font-size: 2.8rem;
    }
    .platform__grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* FEATURES SECTION */
.features {
    background-color: var(--color-bg);
}

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

.features__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.features__tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features__tab-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
    text-align: left;
    background-color: var(--color-bg-light);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.features__tab-button:hover {
    background-color: #e9ecef;
    color: var(--color-primary);
}

.features__tab-button--active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.features__tab-button--active:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
}

.features__tab-button i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.features__tabs-content {
    position: relative;
    min-height: 400px; /* Adjust as needed */
}

.features__tab-pane {
    display: none;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.features__tab-pane--active {
    display: flex;
    opacity: 1;
}

.features__tab-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.features__tab-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

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

/* MEDIA QUERIES for FEATURES */
@media (min-width: 1024px) {
    .features__container {
        flex-direction: row;
        gap: 50px;
    }
    .features__tabs-nav {
        flex: 1;
    }
    .features__tabs-content {
        flex: 2;
    }
    .features__tab-pane {
        flex-direction: row;
        align-items: center;
    }
    .features__tab-image {
        flex: 1;
        max-width: 50%;
    }
    .features__tab-text {
        flex: 1;
    }
}

/* HOW IT WORKS SECTION */
.how-it-works {
    background-color: var(--color-bg-light);
}

.how-it-works__steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    margin-bottom: 50px;
}

.how-it-works__step {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works__step:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.1);
}

.how-it-works__step-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.how-it-works__step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    z-index: 2;
}

.how-it-works__step-icon i {
    width: 30px;
    height: 30px;
}

.how-it-works__step-number {
    position: absolute;
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: #f0f0f0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    line-height: 1;
}

.how-it-works__step-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.how-it-works__step-description {
    color: var(--color-text-secondary);
}

.how-it-works__cta {
    text-align: center;
}

/* MEDIA QUERIES for HOW IT WORKS */
@media (min-width: 768px) {
    .how-it-works__steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    .how-it-works__step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 60px; /* Align with icon center */
        left: calc(100% + 12px); /* Position between cards */
        width: calc(100% - 25px); /* Span across the gap */
        height: 2px;
        background-image: linear-gradient(to right, var(--color-primary) 50%, transparent 50%);
        background-size: 10px 2px;
        background-repeat: repeat-x;
        transform: translateY(-50%);
        z-index: 0;
    }

    .how-it-works__step-header {
        justify-content: flex-start;
    }
    
    .how-it-works__step-number {
        left: auto;
        right: 0;
        transform: translate(0, -50%);
    }

    .how-it-works__step {
        text-align: left;
    }
}
/* REVIEWS SECTION */
.reviews {
    background-color: var(--color-bg);
}

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.reviews__card {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.reviews__card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviews__card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reviews__card-author {
    flex-grow: 1;
}

.reviews__card-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

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

.reviews__card-rating {
    display: flex;
    gap: 4px;
    color: #f5b942; /* Star color */
}

.reviews__card-rating i {
    width: 18px;
    height: 18px;
    fill: #f5b942;
}

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

/* MEDIA QUERIES for REVIEWS */
@media (min-width: 768px) {
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* CONTACT SECTION */
.contact {
    background-color: var(--color-bg-light);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.contact__benefits {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact__benefits i {
    color: var(--color-primary);
    width: 22px;
    height: 22px;
}

.contact__form-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
    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(74, 144, 226, 0.2);
}

.form-group--captcha .captcha__group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha__group span {
    font-size: 1.1rem;
    font-weight: 500;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-group--checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
.form-group--checkbox a {
    text-decoration: underline;
}

.button--full-width {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.form-success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px 20px;
}
.form-success-message__icon {
    width: 70px;
    height: 70px;
    background-color: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.form-success-message__icon i {
    width: 40px;
    height: 40px;
}
.form-success-message__title {
    font-size: 2rem;
    margin-bottom: 10px;
}
.form-success-message__text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}


@media (min-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact__form-wrapper {
        padding: 40px;
    }
}

/* COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__text {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-popup__text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-popup__button {
    padding: 10px 25px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-popup {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
    }
    .cookie-popup__text {
        text-align: left;
    }
}

/* GENERIC PAGES STYLING (Privacy, Terms, etc.) */
.pages {
    padding: 60px 0;
    background-color: #fff;
}

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

.pages h1, .pages h2 {
    margin-bottom: 25px;
    font-weight: 700;
}

.pages h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pages h2 {
    font-size: 1.8rem;
    margin-top: 40px;
}

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

.pages a {
    font-weight: 500;
    text-decoration: underline;
}

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

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

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