/* --- Variables --- */
:root {
    /* Palette */
    --color-primary: #4F46E5; /* Indigo for trust/tech */
    --color-primary-dark: #4338ca;
    --color-accent: #84CC16; /* Lime for energy/innovation */
    --color-bg: #F8FAFC; /* Light slate */
    --color-bg-dark: #0F172A; /* Dark slate for footer/contrast */
    --color-text: #334155;
    --color-text-light: #94A3B8;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    padding-top: var(--header-height); /* Prevent content hiding behind fixed header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-heading);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

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

.header__logo-icon {
    width: 32px;
    height: 32px;
}

.header__site-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-bg-dark);
}

/* Desktop Nav */
.nav__list {
    display: none; /* Mobile first */
}

@media (min-width: 992px) {
    .nav__list {
        display: flex;
        gap: 30px;
    }
    
    .nav__link {
        font-weight: 500;
        font-size: 1rem;
        position: relative;
    }
    
    .nav__link:hover, .nav__link--active {
        color: var(--color-primary);
    }
    
    .nav__link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-accent);
        transition: width 0.3s ease;
    }
    
    .nav__link:hover::after {
        width: 100%;
    }
}

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

.header__btn {
    display: none;
}

@media (min-width: 992px) {
    .header__btn {
        display: inline-block;
    }
}

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

@media (min-width: 992px) {
    .header__burger {
        display: none;
    }
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.mobile-menu__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu__link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-bg-dark);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 60px 0 20px;
    margin-top: auto; /* Push to bottom if content is short */
}

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

@media (min-width: 576px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

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

.footer__logo-icon {
    width: 32px;
    height: 32px;
}

.footer__site-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

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

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

.footer__link {
    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: 12px;
    font-size: 0.9rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

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

/* --- Hero Section --- */
.hero {
    padding: 60px 0 80px;
    overflow: hidden; /* To contain floating circles */
    position: relative;
}

@media (min-width: 992px) {
    .hero {
        padding: 100px 0 120px;
        min-height: 85vh; /* Full screen feel on desktop */
        display: flex;
        align-items: center;
    }
}

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

@media (min-width: 992px) {
    .hero__wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* Content Side */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__badge-icon {
    width: 16px;
    height: 16px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--color-bg-dark);
    margin-bottom: 24px;
}

.hero__title--highlight {
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.hero__title--highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--color-accent);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-10deg);
}

@media (min-width: 992px) {
    .hero__title {
        font-size: 3rem;
    }
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

@media (min-width: 576px) {
    .hero__actions {
        flex-direction: row;
    }
}

.btn--outline {
    border: 2px solid #E2E8F0;
    color: var(--color-bg-dark);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--color-bg-dark);
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.hero__stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid #E2E8F0;
    padding-top: 24px;
}

.hero__stat-item {
    display: flex;
    flex-direction: column;
}

.hero__stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Visual Side (Animation) */
.hero__visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.1s linear; /* Smooth parallax */
}

.hero__img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transform: rotate(-2deg);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Floating Elements */
.hero__floating-ui {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3;
    animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__floating-ui--top {
    top: 10%;
    right: -10px;
    border-left: 4px solid var(--color-accent);
}

.hero__floating-ui--bottom {
    bottom: 10%;
    left: -10px;
    border-left: 4px solid var(--color-primary);
    animation-delay: 2s; /* Sync offset */
}

.hero__icon-ui {
    width: 20px;
    height: 20px;
    color: var(--color-bg-dark);
}

/* Background Circles */
.hero__circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
    filter: blur(40px);
}

.hero__circle--1 {
    width: 300px;
    height: 300px;
    background-color: rgba(132, 204, 22, 0.2); /* Lime */
    top: -50px;
    right: -50px;
}

.hero__circle--2 {
    width: 200px;
    height: 200px;
    background-color: rgba(79, 70, 229, 0.2); /* Indigo */
    bottom: 0;
    left: 20px;
}

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

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

.section__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-bg-dark);
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

/* Feature Card */
.feature-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-primary);
}

.feature-card__icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(132, 204, 22, 0.15); /* Lime tint */
    color: #65A30D; /* Darker lime for icon */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background-color 0.3s ease;
}

.feature-card__icon-box svg {
    width: 32px;
    height: 32px;
}

.feature-card:hover .feature-card__icon-box {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

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

/* Highlight mandatory phrases subtly */
.feature-card__text strong {
    font-weight: 600;
    color: var(--color-primary);
}

/* --- Section Variances --- */
.section--white {
    background-color: var(--color-white);
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

/* --- Steps / Timeline --- */
.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .steps {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 350px;
}

.step__number {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.1); /* Ring effect */
    position: relative;
    z-index: 2;
}

.step__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-bg-dark);
    margin-bottom: 10px;
}

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

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

/* Connector Arrows */
.step__connector {
    display: none; /* Hidden on mobile */
    color: var(--color-text-light);
    padding-top: 20px;
}

@media (min-width: 992px) {
    .step__connector {
        display: block;
    }
}

/* --- Section Footer (CTA) --- */
.section__footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.section__note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* --- Tabs Navigation --- */
.tabs__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tabs__btn {
    background: transparent;
    border: 2px solid #E2E8F0;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.tabs__btn i {
    width: 18px;
    height: 18px;
}

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

.tabs__btn--active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.tabs__btn--active:hover {
    color: var(--color-white); /* Keep white on hover if active */
}

/* --- Tabs Content --- */
.tabs__pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tabs__pane--active {
    display: block;
}

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

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

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Tool Card --- */
.tool-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

.tool-card:hover {
    border-color: var(--color-primary);
}

.tool-card__head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tool-card__icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.tool-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.tool-card__desc {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 20px;
    flex-grow: 1; /* Push link to bottom */
}

.tool-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tool-card__link i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.tool-card__link:hover i {
    transform: translate(3px, -3px);
}

/* --- Geo Alert --- */
.geo-alert {
    margin-top: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--color-text-light);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-text);
    font-size: 0.9rem;
    text-align: center;
}

.geo-alert__icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

/* --- Contact Section --- */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-box {
    background-color: var(--color-bg); /* Slight contrast against white section */
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
}

@media (min-width: 768px) {
    .form-box {
        padding: 50px;
    }
}

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

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-white);
}

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

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

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

.form-check-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
    cursor: pointer;
}

.form-submit {
    width: 100%;
    border: none;
    font-size: 1.1rem;
}

.form-submit:disabled {
    background-color: var(--color-text-light);
    border-color: var(--color-text-light);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Success Message */
.success-message {
    display: none; /* Hidden initially */
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

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

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

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -200px; /* Приховано за межами екрану знизу */
    left: 0;
    width: 100%;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 20px 0;
    z-index: 2000; /* Поверх всього, навіть мобільного меню */
    transition: bottom 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

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

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

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

.cookie-popup__text {
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0;
}

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

.cookie-popup__text a:hover {
    text-decoration: none;
}

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

/* --- Policy Pages Styling (privacy.html etc) --- */
/* Цей блок стилізує контент на окремих сторінках */

.pages {
    padding: 80px 0; /* Відступ зверху для хедера */
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Зручна ширина для читання тексту */
}

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

.pages h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-bg-dark);
    margin: 40px 0 20px;
}

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

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

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

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

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

.pages strong {
    color: var(--color-bg-dark);
}