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

/* --- CSS Variables --- */
:root {
    --bg-color: #0F172A;
    --surface-color: #1E293B;
    --primary-color: #38BDF8;
    --text-color: #E2E8F0;
    --text-muted-color: #94A3B8;
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
}

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

a:hover {
    color: #7dd3fc; /* Lighter shade of primary */
}

ul {
    list-style: none;
}

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

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

/* --- Header --- */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-color);
}

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

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

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

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

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

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

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.burger__line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

.footer__description {
    margin-top: 15px;
    color: var(--text-muted-color);
    max-width: 300px;
}

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

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

.footer__link {
    color: var(--text-muted-color);
}

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

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

.footer__list--contacts i {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--primary-color);
}

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

/* --- Mobile Styles (Mobile First) --- */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--surface-color);
        padding: 80px 20px 20px;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .nav--is-open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .nav__item {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .nav__link {
        font-size: 18px;
    }

    .burger {
        display: block;
    }
    
    .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);
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px; /* Header offset */
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__title {
    font-size: 3.5rem; /* 56px */
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem; /* 20px */
    color: var(--text-muted-color);
    margin-bottom: 40px;
}

.button {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-color);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

/* --- Responsive for Hero --- */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem; /* 40px */
    }

    .hero__subtitle {
        font-size: 1rem; /* 16px */
    }
}

/* --- Shared Section Styles --- */
.section-title {
    font-size: 2.5rem; /* 40px */
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem; /* 18px */
    text-align: center;
    color: var(--text-muted-color);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* --- Features Section --- */
.features {
    padding: 100px 0;
}

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

.features__card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--surface-color);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.features__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.features__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.features__card:nth-child(2) {
    margin-top: 50px;
}

.features__card:nth-child(3) {
    margin-top: -50px;
}

.features__icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.features__card-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 10px;
}

.features__card-text {
    color: var(--text-muted-color);
}

/* --- Responsive for Features --- */
@media (max-width: 992px) {
    .features__card:nth-child(2),
    .features__card:nth-child(3) {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
    .features__grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        margin-bottom: 40px;
    }
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 100px 0;
    background-color: #0d1321;
}

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

.how-it-works__timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--surface-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.how-it-works__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    display: flex;
    gap: 30px;
    align-items: center;

    /* Animation setup */
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.how-it-works__item:nth-child(odd) {
    left: 0;
    justify-content: flex-end;
    text-align: right;
    transform: translateX(-50px);
}

.how-it-works__item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.how-it-works__item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.how-it-works__item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
}

.how-it-works__item:nth-child(odd)::after {
    right: -10px;
}

.how-it-works__item:nth-child(even)::after {
    left: -10px;
}

.how-it-works__content {
    flex: 1;
}

.how-it-works__image-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--surface-color);
}
.how-it-works__item:nth-child(odd) .how-it-works__image-wrapper {
    order: 2;
}

.how-it-works__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how-it-works__step {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.how-it-works__title {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.how-it-works__text {
    color: var(--text-muted-color);
}

/* --- Responsive for How It Works --- */
@media (max-width: 992px) {
    .how-it-works__timeline::after {
        left: 20px;
    }

    .how-it-works__item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .how-it-works__item:nth-child(odd),
    .how-it-works__item:nth-child(even) {
        left: 0;
        justify-content: flex-start;
        text-align: left;
        transform: translateX(50px);
    }
    
    .how-it-works__item.is-visible {
        transform: translateX(0);
    }

    .how-it-works__item::after {
        left: 10px;
    }
    
    .how-it-works__item:nth-child(odd) .how-it-works__image-wrapper {
        order: 0;
    }
}

@media (max-width: 576px) {
    .how-it-works__item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
    }
    .how-it-works__item:nth-child(odd) .how-it-works__image-wrapper {
        order: 0;
    }
}
/* --- Examples Section --- */
.examples {
    padding: 100px 0;
}

.examples__layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: flex-start;
    min-height: 450px;
}

.examples__nav-wrapper {
    position: relative;
}

.examples__nav {
    position: relative;
    z-index: 2;
}

.examples__nav-item {
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted-color);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.examples__nav-item:hover {
    color: var(--text-color);
}

.examples__nav-item.is-active {
    color: var(--text-color);
}

.examples__nav-item i {
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

.examples__nav-item.is-active i {
    color: var(--primary-color);
}

.examples__nav-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 54px; /* Matches the height of a nav item */
    background-color: var(--surface-color);
    border-radius: 8px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.examples__content-wrapper {
    position: relative;
}

.examples__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.examples__content.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.examples__image-container {
    border-radius: 16px;
    overflow: hidden;
}

.examples__img {
    transition: transform 0.4s ease;
}

.examples__content:hover .examples__img {
    transform: scale(1.05);
}

.examples__content-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.examples__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-weight: 500;
}

.examples__link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.examples__link:hover i {
    transform: translateX(5px);
}

/* --- Responsive for Examples --- */
@media (max-width: 992px) {
    .examples__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .examples__nav {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
    .examples__nav-item {
        flex-direction: column;
        gap: 8px;
        font-size: 0.9rem;
        padding: 10px;
    }
    .examples__nav-indicator {
        height: 100%;
        width: 0; /* JS will set this */
    }
}

@media (max-width: 768px) {
    .examples__content {
        grid-template-columns: 1fr;
    }
    .examples__image-container {
        margin-bottom: 20px;
    }
    .examples__content-title {
        font-size: 1.5rem;
    }
}
@media (max-width: 576px) {
    .examples__nav-item span {
        display: none; /* Hide text on very small screens, show only icons */
    }
    .examples__nav-item {
        flex-grow: 1;
        justify-content: center;
    }
}

/* --- FAQ Section --- */
.faq {
    padding: 100px 0;
    background-color: #0d1321;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--surface-color);
}

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

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

.faq__question span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    font-family: var(--font-body);
}

.faq__icon {
    color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq__item.is-open .faq__icon {
    transform: rotate(180deg);
}

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

.faq__answer p {
    color: var(--text-muted-color);
    padding-bottom: 25px;
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
}

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

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

.contact__text {
    color: var(--text-muted-color);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact__cta-block {
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    background-color: var(--surface-color);
    border-radius: 0 8px 8px 0;
}

.contact__cta-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.contact__form-container {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
}

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

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

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

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

.contact__captcha .contact__input {
    max-width: 150px;
}

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

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

.contact__checkbox-label {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

.contact__button {
    width: 100%;
    margin-top: 10px;
}

.contact__success-message {
    display: none; /* Initially hidden */
    text-align: center;
    padding: 40px;
}

.contact__success-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.contact__success-icon i {
    width: 60px;
    height: 60px;
}

.contact__success-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact__success-text {
    color: var(--text-muted-color);
    font-size: 1.1rem;
}


/* --- Responsive for Contact --- */
@media (max-width: 992px) {
    .contact__layout {
        grid-template-columns: 1fr;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-top: 1px solid #334155;
    padding: 20px;
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    justify-content: center;
}

.cookie-popup--is-visible {
    bottom: 0;
}

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

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

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

.cookie-popup__button {
    padding: 10px 25px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Policy Pages Styles --- */
.pages {
    padding: 120px 0 60px; /* 120px top padding to offset the fixed header */
    min-height: 80vh;
}

.pages h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

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

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

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

.pages li {
    margin-bottom: 10px;
    color: var(--text-muted-color);
}

.pages a {
    text-decoration: underline;
}

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

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