/* ------------------- */
/* GLOBAL STYLES       */
/* ------------------- */
:root {
    --clr-dark: #121826;
    --clr-light: #F2F5F9;
    --clr-accent: #36E2B4;
    --clr-grey: #334155;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-light);
}

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

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

ul {
    list-style: none;
}

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

/* ------------------- */
/* HEADER              */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--clr-grey);
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-light);
}
.header__logo:hover {
    color: var(--clr-light);
}

.header__burger {
    display: none;
    background: none;
    border: none;
    color: var(--clr-light);
    cursor: pointer;
    z-index: 1001;
}

.header__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__link {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}
.header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}
.header__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__link--button {
    background-color: var(--clr-accent);
    color: var(--clr-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.header__link--button:hover {
    background-color: var(--clr-light);
    color: var(--clr-dark);
}
.header__link--button::after {
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .header__burger {
        display: block;
    }
    .header__nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--clr-dark);
        padding: 6rem 2rem 2rem;
        transition: left 0.4s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    .header__nav.is-active {
        left: 0;
    }
    .header__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .header__link {
        font-size: 1.2rem;
    }
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
    padding: 4rem 0 2rem;
    background-color: #0D1117;
    border-top: 1px solid var(--clr-grey);
}

.footer__container {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__copy {
    font-size: 0.9rem;
    color: #a0aec0;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--clr-accent);
}

.footer__list li:not(:last-child) {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer__address {
    font-size: 0.95rem;
    color: #a0aec0;
    font-style: normal;
}

.footer__list--contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
/* ------------------- */
/* HERO                */
/* ------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for fixed header */
}

.hero__container {
    text-align: left;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero__highlight {
    color: var(--clr-accent);
    position: relative;
}

/* Typing cursor effect */
.hero__highlight::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
    color: var(--clr-accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 650px;
    color: #a0aec0;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero__cta {
    display: inline-block;
    background-color: var(--clr-accent);
    color: var(--clr-dark);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero__cta:hover {
    transform: translateY(-3px);
    background-color: var(--clr-light);
    color: var(--clr-dark);
}
/* ------------------- */
/* STRATEGY            */
/* ------------------- */
.strategy {
    padding: 6rem 0;
}

.strategy__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.strategy__subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.strategy__accordion {
    max-width: 750px;
    margin: 0 auto;
    border-top: 1px solid var(--clr-grey);
}

.accordion__item {
    border-bottom: 1px solid var(--clr-grey);
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion__title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-light);
}

.accordion__icon {
    color: var(--clr-accent);
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.accordion__item.is-active .accordion__icon {
    transform: rotate(180deg);
}

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

.accordion__content p {
    padding: 0 1rem 1.5rem 1rem;
    color: #a0aec0;
    line-height: 1.7;
}
/* ------------------- */
/* MARKET              */
/* ------------------- */
.market {
    padding: 6rem 0;
    background-color: #0D1117; /* Slight background change for section separation */
}

.market__container {
    display: grid;
    align-items: center;
    gap: 3rem;
}

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

.market__image-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.market__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.market__intro {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 2.5rem;
}

.market__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.market__item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.market__item-icon {
    flex-shrink: 0;
    color: var(--clr-accent);
    margin-top: 4px;
}

.market__item-title {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--clr-light);
    margin-bottom: 0.5rem;
}

.market__item-text {
    color: #a0aec0;
    line-height: 1.6;
}
/* ------------------- */
/* CASES               */
/* ------------------- */
.cases {
    padding: 6rem 0;
}

.cases__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.cases__subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.cases__grid {
    display: grid;
    gap: 1.5rem;
}

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

.case-card {
    background-color: var(--clr-grey);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--clr-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.case-card__header {
    border-bottom: 1px solid #4a5568;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.case-card__title {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--clr-light);
}

.case-card__meta {
    font-size: 0.9rem;
    color: var(--clr-accent);
    margin-top: 0.5rem;
}

.case-card__body {
    flex-grow: 1;
}

.case-card__body p {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.case-card__body p:not(:last-child) {
    margin-bottom: 1rem;
}

.case-card__body strong {
    color: var(--clr-light);
}

.case-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #4a5568;
    text-align: center;
}

.case-card__result-label {
    display: block;
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.case-card__result-value {
    display: block;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-accent);
}
/* ------------------- */
/* BLOG                */
/* ------------------- */
.blog {
    padding: 6rem 0;
    background-color: #0D1117;
}

.blog__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.blog__subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.blog__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
    background-color: var(--clr-dark);
    border: 1px solid var(--clr-grey);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-card__image-link {
    display: block;
}

.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: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__category {
    color: var(--clr-accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.blog-card__title {
    font-size: 1.2rem;
    font-family: var(--font-secondary);
    margin-bottom: 0.75rem;
}

.blog-card__title a {
    color: var(--clr-light);
}
.blog-card__title a:hover {
    color: var(--clr-accent);
}

.blog-card__excerpt {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: auto; /* Pushes excerpt to the bottom if cards have different heights */
}
/* ------------------- */
/* CONTACT             */
/* ------------------- */
.contact {
    padding: 6rem 0;
}

.contact__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.contact__subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.contact__form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--clr-dark);
    border: 1px solid var(--clr-grey);
    border-radius: 5px;
    color: var(--clr-light);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(54, 226, 180, 0.2);
}

.form-group--captcha {
    align-items: flex-start;
}
.form-input--captcha {
    max-width: 100px;
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}
.form-group--checkbox label {
    font-size: 0.9rem;
    color: #a0aec0;
    margin: 0;
}
.form-group--checkbox a {
    color: var(--clr-accent);
    text-decoration: underline;
}

.form-button {
    background-color: var(--clr-accent);
    color: var(--clr-dark);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.form-button:hover {
    background-color: var(--clr-light);
}

.form-message {
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 2rem;
}
.form-message--success {
    background-color: rgba(54, 226, 180, 0.1);
    border: 1px solid var(--clr-accent);
}
.form-message--success h4 {
    font-size: 1.5rem;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}
.form-message--error {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    color: #f87171;
}
/* ------------------- */
/* COOKIE POP-UP       */
/* ------------------- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--clr-grey);
    padding: 1rem 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    border-top: 1px solid #4a5568;
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    transform: translateY(0);
}

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

.cookie-popup__text {
    font-size: 0.9rem;
    color: #a0aec0;
    max-width: 800px;
}

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

.cookie-popup__button {
    background-color: var(--clr-accent);
    color: var(--clr-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--clr-light);
}

/* ------------------- */
/* POLICY PAGES        */
/* ------------------- */
.pages {
    padding: 120px 0 80px 0; /* Extra padding top for header */
    min-height: 80vh;
}

.pages h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--clr-grey);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 600;
    color: var(--clr-light);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.pages p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a0aec0;
    margin-bottom: 1.5rem;
    max-width: 80ch; /* Optimal width for reading */
}

.pages ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.pages a {
    color: var(--clr-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.pages a:hover {
    color: var(--clr-light);
}

.pages strong, .pages b {
    color: var(--clr-light);
    font-weight: 600;
}