:root {
    --color-bg: #0e0e10;
    --color-red: #e5211f;
    --color-white: #ffffff;
    --color-text-muted: #cfcfcf;
    --container-width: 1400px;
    --font-main: "Helvetica Neue", Arial, sans-serif;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chat-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 6px; color: #fff; background: #121212; box-shadow: 0 10px 30px rgba(0,0,0,.24); font: inherit; font-weight: 700; cursor: pointer; }
.chat-launcher__icon { width: 18px; height: 14px; border: 2px solid #e5211f; border-radius: 3px; }
.chat-widget { position: fixed; right: 24px; bottom: 88px; z-index: 1001; display: none; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px)); overflow: hidden; border: 1px solid #ddd; border-radius: 8px; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.24); color: #181818; }
.chat-widget.is-open { display: flex; }
.chat-widget__header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; min-height: 72px; padding: 14px 18px; color: #fff; background: #111; }
.chat-widget__header strong, .chat-widget__header span { display: block; }
.chat-widget__header strong { font-size: 18px; }
.chat-widget__header span { margin-top: 2px; color: #ffb4b2; font-size: 12px; }
.chat-widget__close { width: 40px; height: 40px; border: 0; color: #fff; background: transparent; font-size: 20px; cursor: pointer; }
.chat-widget__intro { overflow-y: auto; padding: 22px; }
.chat-widget__intro > p { margin: 0 0 18px; color: #525252; font-size: 14px; }
.chat-widget__intro label { display: block; margin-bottom: 14px; color: #333; font-size: 12px; font-weight: 700; }
.chat-widget__intro input[type=text], .chat-widget__intro input[type=tel] { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid #ccc; border-radius: 4px; color: #181818; background: #fff; font: inherit; box-sizing: border-box; }
.chat-widget__consent { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 400 !important; line-height: 1.4; }
.chat-widget__consent input { margin: 3px 0 0; }
.chat-widget__primary { width: 100%; min-height: 44px; border: 0; border-radius: 4px; color: #fff; background: #e5211f; font: inherit; font-weight: 800; cursor: pointer; }
.chat-widget__primary:disabled { opacity: .6; cursor: wait; }
.chat-widget__conversation { min-height: 0; flex: 1; }
.chat-widget__conversation:not([hidden]) { display: flex; flex-direction: column; }
.chat-widget__messages { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 18px; background: #f4f5f4; }
.chat-message { max-width: 82%; padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message--agent { align-self: flex-start; color: #222; background: #fff; border: 1px solid #e0e0e0; }
.chat-message--visitor { align-self: flex-end; color: #4d0b0a; background: #ffd7d6; }
.chat-widget__composer { display: grid; grid-template-columns: 1fr 64px; gap: 8px; flex: 0 0 auto; padding: 12px; border-top: 1px solid #ddd; background: #fff; }
.chat-widget__composer[hidden], .chat-widget__error[hidden] { display: none; }
.chat-widget__composer textarea { width: 100%; height: 44px; max-height: 100px; padding: 11px 12px; resize: none; border: 1px solid #ccc; border-radius: 4px; font: inherit; box-sizing: border-box; }
.chat-widget__composer button { height: 44px; border: 0; border-radius: 4px; color: #fff; background: #e5211f; font-size: 12px; font-weight: 700; cursor: pointer; }
.chat-widget__error { min-height: 18px; margin: 0 0 8px; color: #b42318; font-size: 12px; }
.chat-widget__error--conversation { min-height: 0; margin: 0; padding: 0 12px 8px; background: #fff; }
.chat-widget__closed { flex: 0 0 auto; max-height: 330px; overflow-y: auto; padding: 16px; border-top: 1px solid #ddd; background: #fff; }
.chat-widget__closed[hidden] { display: none; }
.chat-widget__closed-heading strong, .chat-widget__closed-heading span { display: block; }
.chat-widget__closed-heading strong { font-size: 15px; }
.chat-widget__closed-heading span { margin-top: 3px; color: #666; font-size: 12px; }
.chat-widget__closed fieldset { margin: 14px 0 10px; padding: 0; border: 0; }
.chat-widget__closed legend { margin-bottom: 8px; color: #333; font-size: 12px; font-weight: 700; }
.chat-rating-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chat-rating-options label { position: relative; }
.chat-rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.chat-rating-options span { display: grid; height: 34px; place-items: center; border: 1px solid #ccc; border-radius: 4px; color: #555; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.chat-rating-options input:checked + span, .chat-rating-options input:focus-visible + span { border-color: #e5211f; color: #fff; background: #e5211f; }
.chat-rating-comment { display: block; margin-bottom: 10px; color: #555; font-size: 11px; font-weight: 700; }
.chat-rating-comment textarea { display: block; width: 100%; margin-top: 6px; padding: 8px 10px; resize: vertical; border: 1px solid #ccc; border-radius: 4px; font: inherit; box-sizing: border-box; }
.chat-rating-feedback { margin: 10px 0; color: #135c2a; font-size: 12px; }
.chat-widget__restart { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #eee; }
.chat-widget__restart span { color: #555; font-size: 11px; }
.chat-widget__restart button { flex: 0 0 auto; min-height: 36px; padding: 0 11px; border: 1px solid #e5211f; border-radius: 4px; color: #e5211f; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.chat-widget__restart button:disabled { opacity: .6; cursor: wait; }

@media (max-width: 560px) {
    .chat-launcher { right: 16px; bottom: 16px; width: auto; }
    .chat-widget { right: 8px; bottom: 80px; width: calc(100vw - 16px); height: min(620px, calc(100vh - 96px)); }
    .chat-widget__closed { max-height: 360px; }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-white);
    line-height: 1.5;
}

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

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.85;
}

.btn--primary {
    background: var(--color-red);
    color: var(--color-white);
}

.btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

.btn--small {
    padding: 12px 22px;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 30px 40px;
}

.site-header__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-header__logo img {
    height: 44px;
    width: auto;
}

.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.site-nav__list {
    display: flex;
    justify-content: center;
    gap: 36px;
}

.site-nav__list a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    border-color: var(--color-red);
}

.site-language {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.site-language a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    font-weight: 800;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.site-language a:hover,
.site-language a.is-active {
    border-color: var(--color-red);
    color: #fff;
    background: var(--color-red);
}

.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.site-header__toggle span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
}

/* Hero */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 42%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 30%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 160px 40px 0;
}

.hero__label {
    display: block;
    color: var(--color-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative;
    padding-top: 20px;
}

.hero__label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-red);
}

.hero__heading {
    margin: 0 0 24px;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    max-width: 720px;
}

.hero__heading span {
    display: block;
}

.hero__heading .is-highlight {
    color: var(--color-red);
}

.hero__paragraph {
    max-width: 520px;
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.hero__paragraph p {
    margin: 0 0 4px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero__wave {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin-top: 24px;
    pointer-events: none;
}

/* Features strip (dentro do banner, abaixo da linha) */
.features {
    position: relative;
    z-index: 2;
    padding: 20px 40px 70px;
}

.features__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.features__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.features__icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.features__item h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.features__item p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

/* Build (seção "O que você quer construir?") */
.build {
    background-color: #000000;
    background-image: url('../../uploads/img/D4-background.png');
    background-repeat: no-repeat;
    background-position: center center;
    padding: 100px 0 110px;
}

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

.build__label {
    display: block;
    color: var(--color-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.build__heading {
    margin: 0 0 20px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
}

.build__heading .is-highlight {
    color: var(--color-red);
}

.build__subheading {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.build__subheading strong {
    color: var(--color-white);
    font-weight: 700;
}

.build__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.build__card {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 24px 20px;
    transition: border-color 0.25s ease;
}

.build__card:hover {
    border-color: rgba(229, 33, 31, 0.5);
}

.build__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
    border: 1px solid var(--color-red);
    border-radius: 50%;
    color: var(--color-red);
    font-size: 12px;
    font-weight: 700;
}

.build__title {
    margin: 0 0 20px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.build__title .is-highlight {
    color: var(--color-red);
}

.build__image-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.build__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.build__marketplaces {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 28px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}

.build__marketplace-logo {
    display: block;
    width: auto;
    max-width: calc((100% - 20px) / 3);
    height: 12px;
    object-fit: contain;
}

.build__list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0 0 24px;
}

.build__list li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.build__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-red);
}

.build__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.build__link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-red);
    border-radius: 50%;
    color: var(--color-red);
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.build__card:hover .build__link-icon {
    background: var(--color-red);
    color: var(--color-white);
}

.build__footer {
    max-width: 900px;
    margin: 60px auto 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Ecosystem (seção "Tudo conversa") */
.ecosystem {
    position: relative;
    background-color: #000000;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 150%;
    overflow: hidden;
    padding: 140px 0;
}

.ecosystem__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.25) 68%, rgba(0,0,0,0) 100%);
}

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

.ecosystem__text {
    max-width: 620px;
}

.ecosystem__label {
    display: block;
    color: var(--color-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ecosystem__heading {
    margin: 0 0 24px;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
}

.ecosystem__heading .is-highlight {
    color: var(--color-red);
}

.ecosystem__subheading {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 28px;
}

.ecosystem__divider {
    width: 60px;
    height: 2px;
    background: var(--color-red);
    margin-bottom: 28px;
}

.ecosystem__paragraph {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

.ecosystem__paragraph strong {
    color: var(--color-white);
    font-weight: 700;
}

/* Flow (seção "Tudo flui" — slider) */
.flow {
    position: relative;
    background: #000000;
    padding: 100px 0 80px;
    overflow: hidden;
}

.flow__line {
    position: absolute;
    width: 55%;
    max-width: 800px;
    z-index: 1;
    pointer-events: none;
}

.flow__line--top {
    top: 40px;
    right: 0;
}

.flow__line--bottom {
    bottom: 40px;
    left: 0;
}

.flow__header {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

.flow__label {
    display: block;
    color: var(--color-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.flow__heading {
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 16px;
}

.flow__subheading {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0;
}

.flow__slider {
    position: relative;
    z-index: 2;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.flow__track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: flow-marquee 32s linear infinite;
}

.flow__track.is-paused {
    animation-play-state: paused;
}

@keyframes flow-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.flow__card {
    flex: 0 0 auto;
    width: 260px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 16px 24px;
    perspective: 600px;
    transition: transform 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.flow__card:hover {
    border-color: rgba(229, 33, 31, 0.5);
}

.flow__card-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.flow__card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.flow__card h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
}

.flow__card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.flow__card-underline {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-red);
    margin-top: 18px;
}

.flow__hint {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
    margin: 30px auto 0;
}

@media (prefers-reduced-motion: reduce) {
    .flow__track {
        animation: none;
    }
}

/* Footer */
.site-footer {
    padding: 24px 40px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsivo */
@media (max-width: 1200px) {
    .features__inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .ecosystem__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
        gap: 40px;
    }

    .build__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 960px) {
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background: #14141600;
        background: rgba(14, 14, 16, 0.98);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        padding: 100px 30px;
        flex: none;
        display: block;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav__list {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .site-language {
        justify-content: flex-start;
        margin-top: 32px;
    }

    .site-header__toggle {
        display: flex;
    }

    .site-header__cta {
        display: none;
    }

    .hero__heading {
        font-size: 40px;
    }

    .hero__content {
        padding: 140px 24px 0;
    }

    .features {
        padding: 16px 24px 60px;
    }

    .features__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .build {
        padding: 70px 0 80px;
    }

    .build__heading {
        font-size: 32px;
    }

    .build__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecosystem {
        padding: 90px 0;
        background-size: auto 110%;
    }

    .ecosystem__inner {
        padding: 0 24px;
    }

    .ecosystem__heading {
        font-size: 40px;
    }

    .flow {
        padding: 70px 0 60px;
    }

    .flow__header {
        padding: 0 24px;
    }

    .flow__heading {
        font-size: 34px;
    }

    .flow__line {
        width: 75%;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 20px;
    }

    .hero__heading {
        font-size: 32px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__actions {
        flex-direction: column;
    }

    .features__inner {
        grid-template-columns: 1fr;
    }

    .build__grid {
        grid-template-columns: 1fr;
    }

    .ecosystem {
        padding: 70px 0;
        background-size: auto 70%;
    }

    .ecosystem__overlay {
        background: rgba(0, 0, 0, 0.85);
    }

    .ecosystem__heading {
        font-size: 32px;
    }

    .flow__heading {
        font-size: 28px;
    }

    .flow__card {
        width: 220px;
    }
}
