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

/* --- CSS Variables --- */
:root {
    --color-background: #0D1117;
    --color-surface: #161B22;
    --color-primary: #58A6FF; /* Яскравий синій для акцентів */
    --color-secondary-accent: #3FB950; /* Зелений для успішних дій */
    --color-text-primary: #C9D1D9;
    --color-text-secondary: #8B949E;
    --color-border: #30363D;

    --font-family-headings: 'Space Grotesk', sans-serif;
    --font-family-body: 'Roboto', sans-serif;

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

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-text-primary);
    font-weight: 700;
}

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

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

ul {
    list-style: none;
}

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

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

/* --- Header --- */
.header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

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

.header__link {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

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

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

.header__cta-button {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.header__cta-button:hover {
    background-color: var(--color-secondary-accent);
    color: var(--color-background);
    transform: translateY(-2px);
}

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

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

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

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

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

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

.footer__list--contacts .footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-secondary);
}

.footer__list--contacts .lucide {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--color-primary);
}

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

/* --- Responsive (Mobile First Example) --- */
@media (max-width: 768px) {
    .header__nav {
        /* In a real project, this would be a hamburger menu */
        display: none;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--contacts .footer__contact-item {
        justify-content: center;
    }
}

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

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__title-sub {
    display: block;
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

.hero__cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-family-headings);
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.2);
}

.hero__cta-button:hover {
    background-color: var(--color-secondary-accent);
    color: var(--color-background);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(63, 185, 80, 0.3);
}

.hero__visual {
    position: relative;
}

.hero__visual img {
    border-radius: 20px;
    border: 1px solid var(--color-border);
}


/* --- Hero Background Shapes for Animation --- */
.hero__bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.1), rgba(88, 166, 255, 0));
    transition: transform 0.2s linear;
}

.hero__shape--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
}

.hero__shape--2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 40%;
}

.hero__shape--3 {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 10%;
}

.hero__shape--4 {
    width: 400px;
    height: 400px;
    bottom: 5%;
    right: -10%;
}

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

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        text-align: center;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__visual {
        grid-row: 1; /* Image appears above text on mobile */
    }
}

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

.section-header__subtitle {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header__title {
    font-size: 42px;
    margin-bottom: 15px;
}

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

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background-color: var(--color-surface);
}

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

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

.features__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.features__icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background-color: rgba(88, 166, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.features__icon-wrapper .lucide {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.features__item-title {
    font-size: 22px;
    margin-bottom: 15px;
}

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

/* --- Responsive for Features --- */
@media (max-width: 768px) {
    .features {
        padding: 80px 0;
    }
    .section-header__title {
        font-size: 34px;
    }
}

/* --- Tech Section --- */
.tech {
    padding: 100px 0;
    position: relative;
}

.tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(88, 166, 255, 0.05), transparent 30%),
                      radial-gradient(circle at 90% 80%, rgba(63, 185, 80, 0.05), transparent 30%);
    z-index: -1;
}


.tech__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.tech__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tech__icon-container {
    width: 100px;
    height: 100px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech__item:hover .tech__icon-container {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.1);
}

.tech__icon {
    width: 50px; /* Adjust size as needed */
    height: 50px;
    object-fit: contain;
}

.tech__name {
    color: var(--color-text-secondary);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tech__item:hover .tech__name {
    opacity: 1;
    transform: translateY(0);
    color: var(--color-text-primary);
}


/* --- Responsive for Tech --- */
@media (max-width: 768px) {
    .tech {
        padding: 80px 0;
    }
    .tech__grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
    }
    .tech__icon-container {
        width: 80px;
        height: 80px;
    }
    .tech__icon {
        width: 40px;
        height: 40px;
    }
    /* On mobile, make names always visible for clarity */
    .tech__name {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Cases Section --- */
.cases {
    padding: 100px 0;
    background-color: var(--color-surface);
}

.cases__tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.cases__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    background-color: var(--color-background);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.cases__nav-button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-family: var(--font-family-headings);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cases__nav-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

.cases__nav-button--active {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.cases__nav-button--active:hover {
     color: var(--color-background);
     background-color: var(--color-secondary-accent);
}

.cases__nav-button .lucide {
    width: 20px;
    height: 20px;
}

.cases__panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.cases__panel--active {
    display: block;
}

.cases__panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    background-color: var(--color-background);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.cases__panel-title {
    font-size: 28px;
    margin-bottom: 20px;
}

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

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

.cases__panel-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cases__panel-list .lucide {
    color: var(--color-secondary-accent);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cases__panel-visual img {
    border-radius: 8px;
}

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

/* --- Responsive for Cases --- */
@media (max-width: 768px) {
    .cases {
        padding: 80px 0;
    }
    .cases__nav {
        flex-direction: column;
    }
    .cases__panel-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
     .cases__panel-visual {
        grid-row: 1;
        margin-bottom: 20px;
    }
    .cases__panel-list {
        text-align: left;
    }
}

/* --- Process Section --- */
.process {
    padding: 100px 0;
}

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 2px;
    background-color: var(--color-border);
}

.process__item {
    position: relative;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.process__item:not(:last-child) {
    margin-bottom: 50px;
}

.process__icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.process__item:hover .process__icon-wrapper {
    border-color: var(--color-primary);
    background-color: var(--color-background);
}

.process__icon-wrapper .lucide {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
}

.process__content {
    background-color: var(--color-surface);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    width: 100%;
}

.process__item:hover .process__content {
    border-color: var(--color-border);
}

.process__step {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.process__item-title {
    font-size: 24px;
    margin-bottom: 10px;
}

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

/* --- Responsive for Process --- */
@media (max-width: 768px) {
    .process {
        padding: 80px 0;
    }
    .process__timeline::before {
        left: 20px;
    }
    .process__icon-wrapper {
        width: 40px;
        height: 40px;
    }
    .process__icon-wrapper .lucide {
        width: 20px;
        height: 20px;
    }
    .process__item {
        gap: 20px;
    }
    .process__item-title {
        font-size: 20px;
    }
}

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

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

.contact__title {
    font-size: 42px;
    margin-bottom: 20px;
}

.contact__description {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact__notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-surface);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.contact__notice .lucide {
    color: var(--color-primary);
    width: 20px;
    flex-shrink: 0;
}

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

.contact__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.contact__input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.contact__captcha {
    margin-bottom: 20px;
}

.contact__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.contact__checkbox {
    margin-top: 4px;
    flex-shrink: 0;
}

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

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

.contact__submit-button {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-family-headings);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact__submit-button:hover {
    background-color: var(--color-secondary-accent);
    transform: translateY(-2px);
}

.contact__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px;
}

.contact__success-message .lucide {
    width: 60px;
    height: 60px;
    color: var(--color-secondary-accent);
    margin-bottom: 20px;
}

.contact__success-message h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* --- Responsive for Contact --- */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .contact {
        padding: 80px 0;
    }
    .contact__wrapper {
        padding: 30px;
    }
    .contact__title {
        font-size: 32px;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 20px;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 20px;
}

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

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

.cookie-popup__button {
    background-color: var(--color-primary);
    color: var(--color-background);
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--color-secondary-accent);
}


/* --- Styles for Static Policy Pages --- */
.pages {
    padding: 80px 0;
}

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

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

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

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

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

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

.pages a {
    text-decoration: underline;
}

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

/* --- Responsive for Cookie Pop-up --- */
@media (max-width: 768px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}