:root {
    --color-off-black: #191919;
    --color-darker-gray: #555454;
    --color-dark-gray: #7E7E7E;
    --color-gray: #ACABAB;
    --color-light-gray: #CFCFCF;
    --color-lighter-gray: #ECEBEB;
    --color-off-white: #F9F3F3;
    /* --color-accent: #F0860E; */
    --color-accent: #C3A76D;

    --color-background: radial-gradient(circle, #E1D2CF 0%, #EEEEEE 100%);

    --shadow-button: 0 4px 12px rgba(0, 0, 0, 0.26);
    --border-radius-button: 16px;
}

/* ----- Basic Reset (modern) ----- */

/* 1. Better box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margins */
* {
    margin: 0;
}

/* 3. Core body settings */
html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 4. Typography tweaks */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: anywhere;
    /* Prevent long words from overflow */
}

/* 5. Media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 6. Form elements inherit fonts/colors */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* 7. Buttons/links baseline */
button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 8. Lists & tables */
ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding-left: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 9. Reduce animation/motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 10. Make CSS variables easier to theme later (optional) */
:root {
    color-scheme: light dark;
    /* respects OS theme if you add dark styles */
}

/* ----- End of Basic Reset ----- */

/* ----- Custom Global Styles ----- */

@font-face {
    font-family: 'Inter-Italic';
    src: url('../fonts/inter/Inter_18pt-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter-Regular';
    src: url('../fonts/inter/Inter_18pt-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter-SemiBold';
    src: url('../fonts/inter/Inter_18pt-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter-Bold';
    src: url('../fonts/inter/Inter_18pt-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'LibreBaskerville-Italic';
    src: url('../fonts/libre-baskerville/LibreBaskerville-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'LibreBaskerville-Regular';
    src: url('../fonts/libre-baskerville/LibreBaskerville-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'LibreBaskerville-Bold';
    src: url('../fonts/libre-baskerville/LibreBaskerville-Bold.ttf') format('truetype');
}

body {
    font-family: 'Inter-Regular', Arial, sans-serif;
    font-size: 16px;
    color: var(--color-off-black);
    background-color: var(--color-lighter-gray);
    background-size: cover;
    line-height: 1.6;
}

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.header {
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
    position: sticky;
    top: 0;
    overflow: hidden;
    background-color: var(--color-lighter-gray);
    z-index: 1000;
}

.header .header__logo {
    display: flex;
    align-items: center;
    height: inherit;
}

.header .header__logo .header__logo-image {
    height: 100%;
    object-fit: contain;
}

.header .header__nav-link {
    margin: 0 15px;
    font-size: 1em;
    color: var(--color-off-black);
    transition: color 0.3s ease;
}

.header .header__mobile-navigation-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-lighter-gray);
    z-index: 2;
}

.header .header__mobile-navigation-links .header__nav-link {
    padding: 10px;
    font-size: 1.2em;
    font-family: 'Inter-SemiBold';
    display: block;
    width: 100%;
}

.header .header__mobile-navigation-links.header__mobile-navigation-links--opened {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.header .header__cta-button-container .header__cta-button,
.hero .hero__cta .hero__cta-button,
.cta .cta__button-container .cta__button,
.contact .contact__form .contact__form__button {
    padding: 8px 16px;
    background-color: var(--color-accent);
    color: #ffffff;
    border-radius: 16px;
    font-size: 1em;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-button);
    border: 2px solid #967f52;
    height: fit-content;
}

.header .header__cta-button-container .header__cta-button:hover,
.hero .hero__cta .hero__cta-button:hover,
.cta .cta__button-container .cta__button:hover,
.contact .contact__form .contact__form__button:hover {
    background-color: #ae945f;
    /* border-color: var(--color-accent); */
}

.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-lighter-gray);
}

.hero .hero__title {
    padding-top: 2%;
    font-family: 'LibreBaskerville-Bold', serif;
    font-size: 4em;
    color: var(--color-off-black);
    text-align: center;
    display: block;
    line-height: 1.2;
}

.hero .hero__title .hero__title__word--underlined,
.contact .contact__cta .contact__cta__word--underlined {
    --u: 0;
    /* underline progress */
}

.hero .hero__title .hero__title__word--underlined::after,
.contact .contact__cta .contact__cta__word--underlined::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: calc(var(--u) * 100%);
    /* underline grows via CSS variable */
    background: var(--color-accent);
    display: block;
}

.hero .hero__subtitle {
    margin-top: 12px;
    font-size: 1em;
    color: var(--color-darker-gray);
    text-align: center;
    display: block;
    width: 50%;
}

.hero .hero__cta {
    margin-top: 16px;
    display: flex;
    gap: 16px;
}

.hero .hero__cta .hero__cta-button--muted {
    background-color: var(--color-lighter-gray);
    color: var(--color-off-black);
    border: 2px solid var(--color-dark-gray);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 1em;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-button);
}

.hero .hero__image-container {
    margin-top: 3em;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .hero__image-container .hero__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-button);
}

.solution,
.technology,
.contact {
    width: 100%;
    padding: 6em 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.solution .solution__title,
.technology .technology__title,
.contact .contact__title {
    font-family: 'LibreBaskerville-Bold', serif;
    font-size: 3em;
    color: var(--color-off-black);
    text-align: center;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
}

.solution .solution__subtitle,
.technology .technology__subtitle,
.contact .contact__subtitle {
    font-size: 1em;
    color: var(--color-darker-gray);
    text-align: center;
    margin-bottom: 3em;
}

.solution .solution__cards {
    gap: 2em;
    justify-content: center;
}

.solution .solution__cards .solution__card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-button);
    padding: 0.8em;
    text-align: left;
}

.solution .solution__cards .solution__card .solution__card-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.solution .solution__cards .solution__card .solution__card-title {
    /* padding: 0px 8px; */
    font-family: 'Inter-SemiBold', sans-serif;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 1.5em;
    line-height: 1.1;
    color: var(--color-off-black);
}

.solution .solution__cards .solution__card .solution__card-description {
    padding: 0em 0px 12px 0px;
    font-size: 1em;
    color: var(--color-dark-gray);
    line-height: 1.4;
}

.cta {
    width: 100%;
    display: flex;
    background-color: var(--color-off-black);
    justify-content: space-evenly;
    align-items: center;
    padding: 2em 0em;
}

.cta.cta--one {
    transform-origin: left;
}

.cta.cta--two {
    transform-origin: right;
}

.cta .cta__text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta .cta__title {
    font-family: 'LibreBaskerville-Bold', serif;
    font-size: 2em;
    color: var(--color-off-white);
    text-align: center;
    line-height: 1.2;
}

.cta .cta__subtitle {
    font-size: 1em;
    color: var(--color-light-gray);
    text-align: center;
}

.features {
    padding: 6em 2em;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features .features__picker {
    width: fit-content;
    border-radius: 32px;
    background-color: var(--color-off-white);
    box-shadow: var(--shadow-button);
    padding: 4px;
    display: flex;

}

.features .features__picker .features__picker-item {
    text-align: center;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 1em;
    color: var(--color-off-black);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: fit-content;
}

.features .features__picker .features__picker-item--active {
    background-color: var(--color-accent);
    color: #ffffff;
}

.features .features__carousel {
    width: 80%;
    margin-top: 5%;
}

.features .features__carousel-item {
    display: flex !important;
    justify-content: space-around;
}

.features .features__carousel-item .features__carousel-item__image img {
    width: 100%;
}

.features .features__carousel-item .features__carousel-item__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 30px;
}

.features .features__carousel-item .features__carousel-item__text .features__carousel-item__title {
    font-size: 2.5em;
    font-family: 'LibreBaskerville-Bold', serif;
    color: var(--color-off-black);
}

.features .features__carousel-item .features__carousel-item__text .features__carousel-item__description {
    font-size: 1em;
    color: var(--color-darker-gray);
    text-align: justify;
}

.technology__bento {
    margin: 0 auto;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    grid-template-areas:
        "ai ai ai availability design design"
        "display display multilingual privacy     privacy privacy"
        "display display modular     modular     modular modular"
        "display display remote remote remote activation";
}

/* Cards */
.technology__bento-card {
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.technology__bento-card .technology__bento-card__title,
.technology__bento-card .technology__bento-card__description--specific {
    font-family: 'Inter-SemiBold', serif;
    font-size: 1.5em;
    line-height: 1.2;
    padding-bottom: 0.5em;

}

.technology__bento-card .technology__bento-card__title+.technology__bento-card .technology__bento-card__description {
    margin-bottom: 12px;
}

.particles-js-canvas-el {
    position: absolute;
    z-index: -1;
}

.technology__bento-card .technology__bento-card__title--specific {
    font-family: 'Inter-SemiBold', sans-serif;
    font-size: 3em;
}

.technology__bento-card .technology__bento-card__image {
    max-height: 100px;
    object-fit: contain;
}

/* Area assignments */
.ai {
    grid-area: ai;
    background-color: var(--color-accent);
    color: var(--color-off-white);
    background-image: url('/media/images/ai_avatar.png');
    background-position: center right -50px, center;
    background-size: contain, cover;
    background-repeat: no-repeat;
}

.technology__bento-card.ai .technology__bento-card__title,
.technology__bento-card.ai .technology__bento-card__description {
    width: 70%;
}

.multilingual {
    grid-area: multilingual;
    text-align: center;
    font-weight: 600
}

.availability {
    grid-area: availability;
    background: var(--color-off-black);
    color: var(--color-off-white);
    text-align: center;
    border-radius: 24px
}

.design {
    grid-area: design;
    background-color: var(--color-accent);
    color: var(--color-off-white);
    background-image: url('/media/images/design.png');
    background-position: top -100px right -100px, center;
    background-size: 800px, cover;
    background-repeat: no-repeat;
}

.modular {
    grid-area: modular;
    background-color: var(--color-dark-gray);
    color: var(--color-off-white);
    text-align: center;
    background-image: url('/media/images/modular_architecture.png');
    background-position: right 20px center;
    background-size: contain, cover;
    background-repeat: no-repeat;
    align-items: start;
}

.modular .technology__bento-card__description {
    width: 70%;
    text-align: left;
}

.display {
    grid-area: display;
    background-image: url('/media/images/panel.png');
    background-position: bottom center;
    background-size: 60%;
    background-repeat: no-repeat;
    justify-content: start;
    align-items: center;
    text-align: center;
}

.technology__bento-card.display .technology__bento-card__title {
    width: 90%;
    color: var(--color-off-black);
}

.privacy {
    grid-area: privacy;
    text-align: right;
    background-image: url('/media/images/gdpr-compliant.webp');
    background-position: center left 20px;
    background-size: 90px;
    background-repeat: no-repeat;
    align-items: end;
}

.remote {
    grid-area: remote;
    text-align: left;
    background-color: var(--color-accent);
    color: var(--color-off-white);
    background-image: url('/media/images/remote_management.png');
    background-position: center right -100px, center;
    background-size: 400px;
    background-repeat: no-repeat;
}

.remote .technology__bento-card__description {
    width: 70%;
}

.technology__bento-card.privacy .technology__bento-card__title {
    width: 80%;
}

.technology__bento-card.privacy .technology__bento-card__description {
    width: 80%;
}

@media (max-width: 1200px) {
    .technology__bento {
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas:
            "ai ai ai availability"
            "multilingual design design design"
            "privacy privacy privacy activation"
            "display modular modular modular"
            "display remote remote remote";
    }
}

/* Responsiveness */
@media (max-width: 990px) {
    .technology__bento {
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas:
            "ai ai ai availability"
            "multilingual design design design"
            "privacy privacy privacy activation"
            "modular modular modular modular"
            "display display display display"
            "remote remote remote remote";
    }

    .technology__bento .display {
        justify-content: center;
        align-items: start;
        text-align: start;
        background-position: center right;
        background-size: contain;
    }
}

@media (max-width: 768px) {
    .technology__bento {
        /* padding: 16px; */
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "ai ai"
            "multilingual availability"
            "design design"
            "modular modular"
            "display display"
            "privacy privacy"
            "remote remote";
    }

    /* .technology__bento__card {
        min-height: 140px
    } */
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact .contact__title {
    margin-bottom: 32px;
}

.contact .contact__cta {
    font-family: 'LibreBaskerville-Bold', serif;
    font-size: 2.5em;
    text-align: center;
}

.contact .contact__form input,
.contact .contact__form textarea {
    background-color: var(--color-off-white);
    border-radius: 8px;
    border: 1px solid var(--color-light-gray);
    padding: 8px 12px;
}

.contact .contact__form .contact__form__button {
    margin-top: 12px;
    width: 100%;
}

.contact .contact__direct-email {
    color: var(--color-dark-gray);
    font-size: 1em;
}

.contact .contact__email-link {
    color: var(--color-off-black);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 3px;
}

.contact .contact__button-title {
    width: 100%;
    color: var(--color-off-black);
    text-align: center;
}

.contact .contact__button-subtitle {
    width: 100%;
    padding: 1em 0em 2em 0em;
    color: var(--color-off-black);
    text-align: center;
}

.contact .contact__button {
    border-radius: 16px;
    font-size: 1.5em;
    background-color: var(--color-accent);
    padding: 0.5em 1em;
    width: fit-content;
    color: var(--color-off-white);
    border: 2px solid #967f52;
}

@media screen and (max-width: 768px) {
    body {
        font-size: 12px;
    }

    .hero .hero__title {
        font-size: 3em;
        width: 90%;
    }

    .hero .hero__subtitle {
        width: 80%;
    }

    .hero .hero__image-container {
        width: 90%;
    }
}

.footer {
    border-top: 1px solid var(--color-light-gray);
    padding: 1rem 1.5rem;
    margin: 1em;
    color: #fff;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Logo */
.footer__logo img {
    width: 100px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Navigation */
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.footer__nav a {
    color: var(--color-off-black);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.2rem 0;
    transition: opacity 0.25s ease;
}

.footer__nav a:hover {
    opacity: 0.6;
}

/* Copyright */
.footer__copy {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
}

/* Desktop */
@media (min-width: 768px) {
    .footer__nav {
        flex-direction: row;
        gap: 2rem;
        text-align: right;
    }
}










.hamburger {
    padding: 10px 10px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger.is-active:hover {
    opacity: 0.7;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: #000;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: #000;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/*
   * Spin
   */
.hamburger--spin .hamburger-inner {
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin .hamburger-inner::before {
    transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}

.hamburger--spin .hamburger-inner::after {
    transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--spin.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.hamburger--spin.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}