/* GLOBAL STYLES */
:root {
    --color-background: #0A0A1A;
    --color-surface: #14142B;
    --color-primary: #4D53E0;
    --color-primary-hover: #6C70E8;
    --color-text-main: #F5F5FA;
    --color-text-secondary: #8B8BAB;
    --font-primary: 'Manrope', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

*,
*::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-secondary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* HEADER */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-main);
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 24px;
}

.logo__icon {
    color: var(--color-primary);
    width: 42px;
    height: 42px;
}

.nav__list {
    display: flex;
    gap: 30px;
}

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

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

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

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger__line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* FOOTER */
.footer {
    background-color: var(--color-surface);
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__column--about .footer__logo {
    margin-bottom: 20px;
}

.footer__description {
    font-size: 14px;
    max-width: 300px;
}

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

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

.footer__item span {
    display: block;
}

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

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

.footer__link {
    font-size: 14px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}


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


@media (max-width: 768px) {
    .nav {
        /* padding-top: 80px; */
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        padding: 80px 20px 20px 20px;
    }
    
    .nav.is-active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav__link {
        font-size: 20px;
    }

    .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);
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__column--about,
    .footer__list--contacts .footer__item {
        justify-content: center;
        align-items: center;
    }
    .footer__description {
        margin: 0 auto;
    }
}

/* assets/css/style.css (доповнення) */

/* ... після стилів для FOOTER ... */

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

.button:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-3px);
    color: var(--color-text-main);
}


/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Header height */
    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: 750px;
    margin: 0 auto;
    animation: fadeInSlideUp 1s ease-out forwards;
}

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

.hero__title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero__subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    font-size: 18px;
}

.hero__features {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

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

/* ADAPTIVE STYLES (доповнення) */
@media (max-width: 768px) {
    .hero__title {
        font-size: 42px;
    }
    .hero__subtitle {
        font-size: 16px;
    }
    .hero__features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* assets/css/style.css (доповнення) */

/* ... після HERO SECTION ... */

/* REUSABLE COMPONENTS */
.section-tag {
    display: block;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}


/* ABOUT SECTION */
.about {
    padding: 100px 0;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.5;
    transition: transform 0.4s ease;
}

.about__image-wrapper:hover::before {
    transform: translate(10px, 10px);
}

.about__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    border-top: 1px solid rgba(139, 139, 171, 0.2);
    padding-top: 25px;
}

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

.about__feature-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.about__feature-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-text-main);
}

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


/* ADAPTIVE STYLES (доповнення) */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 36px;
    }
}

/* assets/css/style.css (доповнення) */

/* ... після ABOUT SECTION ... */

/* FEATURES SECTION */
.features {
    padding: 100px 0;
    background-color: var(--color-background);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(77, 83, 224, 0.1), transparent 40%);
    pointer-events: none;
}

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

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.features__card {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(77, 83, 224, 0.1);
}

.features__card-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(77, 83, 224, 0.1);
    color: var(--color-primary);
    margin-bottom: 20px;
}

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

.features__card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

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

/* ADAPTIVE STYLES (доповнення) */
@media (max-width: 768px) {
    .features {
        padding: 80px 0;
    }
}
@media (max-width: 340px) {
    .features__grid {
         grid-template-columns: 1fr;
    }
}

/* assets/css/style.css (доповнення) */

/* ... після FEATURES SECTION ... */

/* HOW IT WORKS SECTION */
.how-it-works {
    padding: 100px 0;
    background-color: var(--color-surface);
}

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

.how-it-works__steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline line */
.how-it-works__steps::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: rgba(77, 83, 224, 0.2);
    top: 20px;
    bottom: 20px;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.how-it-works__step {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

/* Place steps on opposite sides */
.how-it-works__step:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.how-it-works__step:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

/* Reverse icon order for even steps */
.how-it-works__step:nth-child(even) .how-it-works__step-content {
}

.how-it-works__step-content {
    padding: 30px;
    background-color: var(--color-background);
    position: relative;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.how-it-works__step:hover .how-it-works__step-content {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.how-it-works__step-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-primary);
    font-size: 80px;
    font-weight: 800;
    color: rgba(245, 245, 250, 0.05);
    z-index: 0;
}

.how-it-works__step:nth-child(odd) .how-it-works__step-number {
    right: 40px;
}
.how-it-works__step:nth-child(even) .how-it-works__step-number {
    left: 40px;
}

.how-it-works__step-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.how-it-works__step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.how-it-works__step-text {
    font-size: 15px;
}

/* ADAPTIVE STYLES (доповнення) */
@media (max-width: 768px) {
    .how-it-works {
        padding: 80px 0;
    }
    
    .how-it-works__steps::after {
        left: 30px;
    }

    .how-it-works__step,
    .how-it-works__step:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 15px;
    }

    .how-it-works__step:nth-child(odd) {
        text-align: left;
    }

    .how-it-works__step:nth-child(even) .how-it-works__step-content {

    }
    
    .how-it-works__step-number {
        display: none; /* Hide large numbers on mobile for clarity */
    }
}

/* assets/css/style.css (доповнення) */

/* ... після HOW IT WORKS SECTION ... */

/* FAQ SECTION */
.faq {
    padding: 100px 0;
}

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

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

.faq__item {
    border-bottom: 1px solid var(--color-surface);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq__question span {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-main);
    padding-right: 15px;
}

.faq__icon {
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.faq__answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    padding-right: 30px; /* Space to not overlap with icon area */
}

/* Active State */
.faq__item.is-active .faq__answer {
    padding-bottom: 20px;
    /* max-height will be set by JS */
}

.faq__item.is-active .faq__icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* ADAPTIVE STYLES (доповнення) */
@media (max-width: 768px) {
    .faq {
        padding: 80px 0;
    }
    .faq__question span {
        font-size: 16px;
    }
}

/* assets/css/style.css (доповнення) */

/* ... після FAQ SECTION ... */

/* CONTACT SECTION */
.contact {
    padding: 100px 0;
    background-color: var(--color-surface);
}

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

.contact__info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    border-top: 1px solid rgba(139, 139, 171, 0.2);
    padding-top: 30px;
}

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

.contact__info-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact__info-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 5px;
}

.contact__form-wrapper {
    background-color: var(--color-background);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.contact__form-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Group Styling */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group__input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-surface);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group__label {
    position: absolute;
    top: 14px;
    left: 15px;
    color: var(--color-text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group__input:focus ~ .form-group__label,
.form-group__input:not(:placeholder-shown) ~ .form-group__label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--color-primary);
    background-color: var(--color-background);
    padding: 0 5px;
}

/* Checkbox */
.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.form-group--checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.form-group--checkbox label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.form-group--checkbox a {
    color: var(--color-text-main);
    text-decoration: underline;
}
.form-group--checkbox a:hover {
    color: var(--color-primary);
}

.contact__form-button {
    width: 100%;
}

/* Success Message */
.contact__success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.contact__success-message.is-visible {
    opacity: 1;
    visibility: visible;
}

.contact__success-message i {
    width: 60px;
    height: 60px;
    color: #28a745; /* Success Green */
    margin-bottom: 20px;
}
.contact__success-message h4 {
    font-size: 24px;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

/* ADAPTIVE STYLES (доповнення) */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(139, 139, 171, 0.2);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 1001;
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__text {
    font-size: 14px;
}

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

.cookie-popup__button {
    padding: 8px 20px;
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}


/* POLICY PAGES */
.pages {
    padding: 120px 0 80px;
}

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

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

.pages p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

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

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

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

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