/* --- Variables & Reset --- */
:root {
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-accent: #F59E0B;
    --color-dark: #1E293B;
    --color-gray: #64748B;
    --color-light: #F8FAFC;
    --color-white: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Header --- */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.header__logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

.header__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-dark);
}

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

.header__menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header__link {
    font-weight: 500;
    color: var(--color-dark);
    font-size: 0.95rem;
    position: relative;
}

.header__link:not(.header__link--cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.header__link:not(.header__link--cta):hover::after,
.header__link--active::after {
    width: 100%;
}

.header__link--cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.header__link--cta:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- Main (Placeholder style) --- */
.main {
    flex: 1;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer__logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer__desc {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer__copyright {
    color: #64748B;
    font-size: 0.8rem;
    margin-top: auto;
}

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

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

.footer__link {
    color: #CBD5E1;
    font-size: 0.9rem;
}

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

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #CBD5E1;
    font-size: 0.9rem;
}

.footer__icon {
    min-width: 20px;
    color: var(--color-primary);
}

/* --- Media Queries (Mobile First adaptation) --- */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__burger {
        display: block;
    }

    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden */
        transition: var(--transition);
    }

    .header__nav.is-open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Visible */
    }

    .header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header__link--cta {
        width: 100%;
        text-align: center;
        display: inline-block;
    }

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

/* --- UI Components (Buttons & Badges) --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.text-accent {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 60px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-light) 0%, #EBF4FF 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 140px); /* Full height minus header */
}

/* Hero Content */
.hero__content {
    max-width: 600px;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--color-dark);
}

.hero__desc {
    font-size: 1.15rem;
    color: var(--color-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 90%;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--color-dark);
}

.hero__check {
    color: #10B981; /* Green */
    width: 20px;
    height: 20px;
}

/* Hero Visual (Right Side) */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* For 3D effect */
}

.hero__card-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth follow */
}

.hero__card-content {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: var(--color-white);
    padding: 10px;
    z-index: 2;
}

.hero__image {
    width: 100%;
    border-radius: 15px;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: #CBD5E1; /* Placeholder fallback color */
}

/* Floating Elements */
.hero__float {
    position: absolute;
    background: var(--color-white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.hero__float--1 {
    top: 40px;
    left: -30px;
    transform: translateZ(30px); /* 3D pop */
}

.hero__float--1 i {
    color: #10B981;
}

.hero__float--2 {
    bottom: 50px;
    right: -40px;
    animation-delay: 2s;
    transform: translateZ(50px); /* 3D pop more */
}

.hero__avatar-group {
    display: flex;
    margin-right: 5px;
}

.hero__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #CBD5E1;
    border: 2px solid #fff;
    margin-left: -8px;
}

.hero__avatar:first-child { margin-left: 0; background-color: #FFB1B1; }
.hero__avatar:nth-child(2) { background-color: #B1DFFF; }
.hero__avatar:nth-child(3) { background-color: #D1FFB1; }

/* Blob Background */
.hero__blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0) translateZ(30px); }
    50% { transform: translateY(-15px) translateZ(30px); }
    100% { transform: translateY(0) translateZ(30px); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero__title { font-size: 2.5rem; }
    .hero__container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero__content { margin: 0 auto; }
    .hero__actions { justify-content: center; }
    .hero__badge { margin: 0 auto 20px; }
    .hero__visual { max-width: 500px; margin: 0 auto; }
    .hero__float--1 { left: 0; }
    .hero__float--2 { right: 0; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .hero__actions { flex-direction: column; gap: 15px; }
    .hero__float { display: none; /* Hide floating elements on very small screens */ }
}

/* --- Shared Section Styles --- */
.section {
    padding: 80px 0;
}

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

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

.section__label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.section__desc {
    color: var(--color-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Technology Grid --- */
.technology {
    background-color: var(--color-white);
}

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

/* --- Card Component --- */
.card {
    background-color: var(--color-white);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.card__icon-box {
    width: 60px;
    height: 60px;
    background-color: #EFF6FF; /* Light blue bg */
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    color: var(--color-primary);
    transition: var(--transition);
}

.card__icon-box i {
    width: 30px;
    height: 30px;
    stroke-width: 2px;
}

.card:hover .card__icon-box {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.card__text {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.6;
}

.card__text strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- Responsive for Technology --- */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section__title { font-size: 2rem; }
    .technology__grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

/* --- Steps Section (Dark Theme) --- */
.steps {
    background-color: var(--color-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.text-white {
    color: var(--color-white);
}

.steps__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

/* Connecting Line (Desktop) */
.steps__wrapper::before {
    content: '';
    position: absolute;
    top: 30px; /* Aligns with circle center */
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(37, 99, 235, 0) 0%, 
        var(--color-primary) 15%, 
        var(--color-primary) 85%, 
        rgba(37, 99, 235, 0) 100%
    );
    z-index: 0;
    opacity: 0.3;
}

/* Individual Step */
.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    text-align: center;
}

.step-item__number {
    width: 60px;
    height: 60px;
    background-color: var(--color-dark);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 25px;
    box-shadow: 0 0 0 10px var(--color-dark); /* Fakes gap around line */
    transition: var(--transition);
}

.step-item:hover .step-item__number {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.step-item__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-white);
}

.step-item__desc {
    color: #94A3B8; /* Lighter gray for dark bg */
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-item__desc strong {
    color: var(--color-white);
}

/* Steps Bottom Action */
.steps__action {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.steps__note {
    font-size: 0.85rem;
    color: #64748B;
}

/* Responsive Steps */
@media (max-width: 992px) {
    .steps__wrapper {
        grid-template-columns: 1fr;
        gap: 0; /* Removing grid gap, using padding instead */
    }

    .steps__wrapper::before {
        /* Change line to vertical */
        top: 0;
        left: 29px; /* Align with circle center (width 60 / 2 - border 1) */
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, 
            var(--color-primary) 0%, 
            rgba(37, 99, 235, 0) 100%
        );
    }

    .step-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 40px;
        padding-left: 0;
    }

    .step-item:last-child {
        margin-bottom: 0;
    }

    .step-item__number {
        flex-shrink: 0;
        margin-right: 25px;
        margin-bottom: 0;
    }
}

/* --- FAQ Section --- */
.faq__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left side smaller, right side wider */
    gap: 60px;
}

.faq__cta-box {
    margin-top: 30px;
    padding: 25px;
    background-color: #EFF6FF;
    border-radius: 15px;
    border: 1px solid #DBEAFE;
}

.faq__cta-box p {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-dark);
}

/* --- Accordion Component --- */
.accordion__item {
    border-bottom: 1px solid #E2E8F0;
}

.accordion__item:first-child {
    border-top: 1px solid #E2E8F0;
}

.accordion__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

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

.accordion__icon {
    transition: transform 0.3s ease;
    color: var(--color-primary);
    min-width: 24px;
}

/* Active State Styles */
.accordion__item.is-active .accordion__icon {
    transform: rotate(180deg);
}

.accordion__item.is-active .accordion__header {
    color: var(--color-primary);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion__body {
    padding-bottom: 25px;
    color: var(--color-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive FAQ */
@media (max-width: 992px) {
    .faq__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Contact Section --- */
.contact {
    background-color: #F8FAFC;
    padding-bottom: 100px;
}

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

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

.contact__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--color-dark);
}

/* --- Form Styles --- */
.contact__form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form__input-wrapper {
    position: relative;
}

.form__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
    width: 20px;
    height: 20px;
}

.form__input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Left padding for icon */
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form__input.is-error {
    border-color: #EF4444;
}

/* Checkbox */
.form__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form__checkbox {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.form__checkbox-label {
    font-size: 0.85rem;
    color: var(--color-gray);
    line-height: 1.4;
    cursor: pointer;
}

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

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Success Message --- */
.success-message {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.success-message__icon {
    width: 80px;
    height: 80px;
    background-color: #DCFCE7; /* Light green */
    color: #10B981; /* Green */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.success-message__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.success-message__text {
    color: var(--color-gray);
    margin-bottom: 30px;
}

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

/* Loader for button */
.btn.is-loading {
    opacity: 0.8;
    cursor: wait;
}

.btn.is-loading span, 
.btn.is-loading i {
    opacity: 0; /* Hide text */
}

.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: -100px; /* Hidden initially */
    left: 20px;
    right: 20px;
    background-color: var(--color-white);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    border-radius: 15px;
    border: 1px solid #E2E8F0;
    max-width: 600px;
    margin: 0 auto; /* Center on large screens if needed, usually stays left/right constrained */
    transition: bottom 0.5s ease-out;
}

.cookie-popup.is-visible {
    bottom: 20px;
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-popup__text {
    font-size: 0.9rem;
    color: var(--color-dark);
    margin: 0;
}

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

.btn--sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-popup__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .btn--sm {
        width: 100%;
        justify-content: center;
    }
}

/* --- Legal Pages Styles (Privacy, Terms, etc.) --- */
/* Ці стилі працюють всередині <section class="pages"> */

.pages {
    padding: 80px 0;
    background-color: var(--color-white);
}

.pages .container {
    max-width: 800px; /* Краща читабельність для довгих текстів */
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 30px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 20px;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-top: 40px;
    margin-bottom: 15px;
}

.pages p {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--color-gray);
}

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

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

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

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