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

/* CSS Variables */
:root {
    --background-color: #FFFFFF;
    --text-color: #1D1D1F;
    --primary-color: #4F46E5;
    --secondary-color: #6B7280;
    --accent-color: #10B981;
    --border-color: #E5E7EB;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

/* Global Styles & Resets */
*,
*::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(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

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

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

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 16px;
    color: var(--secondary-color);
    position: relative;
    padding: 8px 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::after {
    width: 100%;
}

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

.header__nav-link--button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.header__nav-link--button::after {
    display: none;
}

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

/* Footer */
.footer {
    background-color: #F8F9FA;
    padding: 60px 0 0;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
}

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

.footer__logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer__tagline {
    font-size: 14px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-color);
}

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

.footer__link {
    font-size: 14px;
    color: var(--secondary-color);
}

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

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

.footer__list--contacts i {
    flex-shrink: 0;
}

.footer__text {
    font-size: 14px;
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Mobile-first: Adaptations for tablets and desktops */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be toggled by JS */
        /* Styles for mobile menu will be added later */
    }

    .header__burger-btn {
        display: block;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--contacts li {
        justify-content: center;
    }
}

/* ... (попередні стилі залишаються без змін) ... */

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

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white;
}

.button:hover {
    background-color: #4338CA;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    color: white;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 60px 0;
}

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

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero__title-accent {
    color: var(--primary-color);
}

.hero__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 32px;
    max-width: 500px;
}

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

.hero__image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    /* Уявімо, що це буде якась абстрактна, технологічна ілюстрація */
}

/* Header */
/* ... (стилі хедера) ... */

/* Footer */
/* ... (стилі футера) ... */

/* Mobile-first: Adaptations */
@media (max-width: 992px) {
    .hero__title {
        font-size: 40px;
    }
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__content {
        order: 2;
    }
    .hero__image-wrapper {
        order: 1;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .header__nav {
        display: none; /* Will be toggled by JS */
    }
    .header__burger-btn {
        display: block;
    }
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__list--contacts li {
        justify-content: center;
    }
}

/* ... (попередні стилі залишаються без змін) ... */

/* Button */
/* ... (стилі кнопок) ... */

/* Hero Section */
/* ... (стилі Hero) ... */

/* Section Header (Reusable component) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #F8F9FA;
}

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

.features__card {
    background-color: var(--background-color);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(29, 29, 31, 0.1);
}

.features__card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background-color: #EEF2FF; /* Light version of primary color */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

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

.features__card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

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


/* Header */
/* ... (стилі хедера) ... */

/* Footer */
/* ... (стилі футера) ... */

/* Mobile-first: Adaptations */
@media (max-width: 992px) {
    .hero__title {
        font-size: 40px;
    }
    
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    /* ... (попередні мобільні стилі) ... */
    
    .section-header__title {
        font-size: 30px;
    }

    .features {
        padding: 60px 0;
    }

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

/* ... (попередні стилі залишаються без змін) ... */

/* Features Section */
/* ... (стилі Features) ... */

/* Tech Section */
.tech {
    padding: 80px 0;
}

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

.tech-step:not(:last-child) {
    margin-bottom: 80px;
}

.tech-step--reverse .tech-step__image-wrapper {
    order: 2;
}

.tech-step__image-wrapper img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(29, 29, 31, 0.08);
}

.tech-step__number {
    display: block;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.tech-step__title {
    font-size: 32px;
    margin-bottom: 16px;
}

.tech-step__text {
    color: var(--secondary-color);
    font-size: 16px;
    line-height: 1.7;
}


/* ... (стилі хедера, футера) ... */

/* Mobile-first: Adaptations */
@media (max-width: 992px) {
    /* ... (попередні адаптивні стилі) ... */

    .tech-step {
        gap: 40px;
    }
    .tech-step__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    /* ... (попередні мобільні стилі) ... */
    
    .tech {
        padding: 60px 0;
    }

    .tech-step,
    .tech-step--reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tech-step:not(:last-child) {
        margin-bottom: 60px;
    }

    .tech-step--reverse .tech-step__image-wrapper {
        order: 1; /* Reset order for mobile */
    }
    
    .tech-step__image-wrapper {
        margin-bottom: 24px;
        order: 1;
    }

    .tech-step__content {
        order: 2;
    }
}

/* ... (попередні стилі залишаються без змін) ... */

/* Tech Section */
/* ... (стилі Tech) ... */

/* Cases Section */
.cases {
    padding: 80px 0;
    background-color: #F8F9FA;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cases__card {
    background-color: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(29, 29, 31, 0.1);
}

.cases__card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cases__card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cases__card-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    background-color: #EEF2FF;
    color: var(--primary-color);
    margin-bottom: 16px;
    align-self: flex-start;
}

.cases__card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.cases__card-text {
    color: var(--secondary-color);
    font-size: 15px;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 24px;
}

.cases__card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.cases__card-link i {
    transition: transform 0.3s ease;
}

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


/* ... (стилі хедера, футера) ... */

/* Mobile-first: Adaptations */
@media (max-width: 992px) {
    /* ... (попередні адаптивні стилі) ... */

    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ... (попередні мобільні стилі) ... */

    .cases {
        padding: 60px 0;
    }
    
    .cases__grid {
        grid-template-columns: 1fr;
    }
}

/* ... (попередні стилі залишаються без змін) ... */

/* Cases Section */
/* ... (стилі Cases) ... */

/* Blog Section */
.blog {
    padding: 80px 0;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog__card {
    background-color: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(29, 29, 31, 0.1);
}

.blog__card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog__card:hover .blog__card-image {
    transform: scale(1.05);
}

.blog__card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog__card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
}

.blog__card-tag {
    display: inline-block;
    padding: 4px 12px;
    font-weight: 500;
    border-radius: 20px;
    background-color: #ECFDF5; /* Light accent color */
    color: var(--accent-color);
}

.blog__card-date {
    color: var(--secondary-color);
}

.blog__card-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog__card-title a {
    color: var(--text-color);
}

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

.blog__card-excerpt {
    color: var(--secondary-color);
    font-size: 15px;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 24px;
}

.blog__card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.blog__card-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}


/* ... (стилі хедера, футера) ... */

/* Mobile-first: Adaptations */
@media (max-width: 992px) {
    /* ... (попередні адаптивні стилі) ... */

    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ... (попередні мобільні стилі) ... */
    
    .blog {
        padding: 60px 0;
    }
    
    .blog__grid {
        grid-template-columns: 1fr;
    }
}

/* ... (попередні стилі залишаються без змін) ... */

/* Blog Section */
/* ... (стилі Blog) ... */

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #F8F9FA;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background-color: var(--background-color);
    padding: 60px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact__info-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.contact__info-text {
    color: var(--secondary-color);
    margin-bottom: 32px;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--secondary-color);
}

.contact__info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-group--checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
}

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

.contact__button {
    width: 100%;
    padding: 16px;
}

.form-success-message {
    border: 1px solid var(--accent-color);
    background-color: #ECFDF5;
    color: #065F46;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.form-success-message i {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.form-success-message h4 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #065F46;
}

/* ... (стилі хедера, футера) ... */

/* Mobile-first: Adaptations */
@media (max-width: 992px) {
    /* ... (попередні адаптивні стилі) ... */
    
    .contact__wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    /* ... (попередні мобільні стилі) ... */
    
    .contact {
        padding: 60px 0;
    }
    
    .contact__wrapper {
        padding: 30px 20px;
    }
}

/* ... (попередні стилі до Mobile-first: Adaptations залишаються без змін) ... */

/* Contact Section */
/* ... (стилі Contact) ... */

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

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

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

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

.cookie-popup__text a {
    color: white;
    text-decoration: underline;
}

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

.cookie-popup__button {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 8px 24px;
    flex-shrink: 0;
}

.cookie-popup__button:hover {
    background-color: #f0f0f0;
    color: var(--text-color);
    box-shadow: none;
    transform: none;
}

/* Styles for Policy Pages (privacy.html, terms.html, etc.) */
.pages {
    padding: 80px 0;
}

.pages h1 {
    font-size: 42px;
    margin-bottom: 32px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.pages p, .pages li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.pages a {
    text-decoration: underline;
}

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

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


/* ... (стилі хедера, футера) ... */

/* Mobile-first: Adaptations */
@media (max-width: 992px) {
    /* ... (попередні адаптивні стилі) ... */
}

@media (max-width: 768px) {
    /* ... (попередні мобільні стилі) ... */

    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
    }
}