@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6D28D9;
    --primary-light: #8B5CF6;
    --secondary: #00D084;
    --white: #FFFFFF;
    --black: #0F172A;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-600: #475569;
    --gray-900: #0F172A;
    --font-main: 'Outfit', sans-serif;
    --container-width: 1200px;
    --brand-dark: #061410;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --app-height: 100dvh;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(109, 40, 217, 0.4);
}

.section-padding {
    padding: 6rem 0;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(6, 20, 16, 0.95);
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    transition: var(--transition);
}

.logo span {
    color: var(--secondary);
    transition: var(--transition);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary);
}

header.scrolled .logo span {
    color: var(--secondary);
}

.header-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    background: var(--primary);
    color: var(--white);
}

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

.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: #061410 url('hero_strategic.png') no-repeat left center;
    background-size: cover;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(6, 20, 16, 0.10) 0%,
            rgba(6, 20, 16, 0.18) 42%,
            rgba(6, 20, 16, 0.72) 58%,
            rgba(6, 20, 16, 0.96) 100%);
    z-index: 1;
}

.hero .container {
    width: 100%;
    max-width: 1440px;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 2rem;
    padding-right: clamp(3rem, 7vw, 7rem);
}

.hero-content {
    width: min(100%, 640px);
    max-width: 640px;
    margin: 0;
    position: relative;
    z-index: 2;
    text-align: left;
}

.reveal-text {
    animation: fadeInUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.hero h1 {
    max-width: 640px;
    margin-bottom: 2rem;
    color: var(--white);
    font-size: clamp(2.7rem, 4.2vw, 5rem);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.hero h1 span.highlight {
    color: var(--secondary);
}

.hero-cta-wrapper {
    margin-top: 2rem;
    animation: fadeInUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pain-section {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.pain-card {
    padding: 2.5rem;
    background: var(--gray-50);
    border-radius: 24px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.pain-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.authority-section {
    background-color: var(--gray-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.authority-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.authority-content {
    flex: 1;
}

.authority-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.authority-content p {
    font-size: 1.125rem;
    color: var(--gray-200);
    margin-bottom: 2rem;
}

.authority-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authority-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 25%;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

.gain-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.gain-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Brand Card Variants */
.card-primary {
    background: var(--primary);
    color: var(--white);
}

.card-primary p {
    color: rgba(255, 255, 255, 0.8);
}

.card-secondary {
    background: var(--secondary);
    color: var(--brand-dark);
}

.card-secondary p {
    color: rgba(0, 20, 16, 0.7);
}

.card-dark {
    background: var(--brand-dark);
    color: var(--white);
}

.card-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.card-outline {
    background: #0d2a23;
    /* Dark green brand variant */
    border: 1px solid rgba(0, 208, 132, 0.2);
    color: var(--white);
}

.card-outline p {
    color: rgba(255, 255, 255, 0.7);
}

.card-outline:hover {
    border-color: var(--secondary);
}

.carousel-nav {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .carousel-nav {
        display: flex;
    }
}

.carousel-btn {
    background: var(--brand-dark);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--secondary);
    color: var(--brand-dark);
    border-color: var(--secondary);
}

/* Logos Carousel (Marquee) */
.logos-carousel {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    width: 100%;
}

.logos-carousel::before,
.logos-carousel::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 100px;
    z-index: 2;
}

.logos-carousel::before {
    background: linear-gradient(to right, white, transparent);
    left: 0;
}

.logos-carousel::after {
    background: linear-gradient(to left, white, transparent);
    right: 0;
}

.logos-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 30s linear infinite;
}

.logos-track img {
    width: 180px;
    height: 80px;
    object-fit: contain;
    margin: 0 40px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.logos-track img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 5));
    }
}

.intelligence-section {
    text-align: left;
    background: var(--gray-50);
}

.intelligence-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.intelligence-content {
    flex: 1;
}

.intelligence-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intelligence-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Typing Animation */
.typing-container {
    font-size: 1.25rem;
    color: var(--gray-600);
    min-height: 4em;
    border-left: 2px solid var(--secondary);
    padding-left: 1.5rem;
}

.cursor {
    display: inline-block;
    width: 2px;
    background: var(--secondary);
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.intelligence-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--gray-600);
}

.carriers-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.carrier-item {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    background: var(--white);
    color: var(--gray-600);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.final-cta {
    text-align: center;
    background-color: var(--gray-50);
}

footer {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    text-align: center;
    color: var(--gray-600);
}

html.chat-open,
body.chat-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.chat-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background: #061410 !important;
    z-index: 999999 !important;
    display: none;
    flex-direction: column;
    overflow: hidden !important;
}

.chat-fullscreen.active {
    display: flex !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.chat-header {
    flex-shrink: 0;
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #061410;
    color: var(--white);
    position: relative;
    z-index: 100;
}

.chat-consultant {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.consultant-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.consultant-info h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.status-online {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--secondary);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--secondary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--secondary);
}

.btn-close-chat {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    padding: 0.5rem;
    line-height: 1;
}

.btn-close-chat:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.chat-header,
.chat-footer {
    flex-shrink: 0;
}

.chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #061410;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    padding: 1.15rem 1.5rem;
    border-radius: 18px;
    font-size: 1.05rem;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bot {
    background: var(--white);
    color: var(--gray-900);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-bot.typing {
    width: fit-content;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@keyframes typing {
    0% {
        opacity: .2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: .2;
    }
}

.message-bot.typing::after {
    content: '...';
    animation: typing 1.4s infinite;
}

.message-user {
    background: var(--secondary);
    color: #061410;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 600;
}

.chat-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.chat-option {
    display: flex;
    align-items: center;
    padding: 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: left;
}

.chat-option:hover {
    background: var(--secondary);
    color: #061410;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.option-badge {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.chat-option:hover .option-badge {
    background: rgba(0, 0, 0, 0.1);
    color: #061410;
}

.chat-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #061410;
    position: relative;
    /* Changed from sticky to relative since flex-column handles it */
    width: 100%;
    z-index: 100;
}

.chat-input-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.4rem 0.4rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 208, 132, 0.4);
    align-items: center;
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 1rem;
    outline: none;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-input:focus {
    border-color: transparent;
    box-shadow: none;
}

.btn-send {
    background: var(--secondary);
    color: #061410;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-send:hover {
    background: var(--white);
    transform: scale(1.05);
}

.btn-send svg {
    transform: none;
    /* Straight arrow */
}

@media (max-width: 1024px) {
    .hero {
        background-position: 20% center;
        /* Focus on the men */
        min-height: 100vh;
    }

    .hero::before {
        background: linear-gradient(180deg,
                rgba(6, 20, 16, 0.45) 0%,
                rgba(6, 20, 16, 0.85) 60%,
                rgba(6, 20, 16, 0.98) 100%);
    }

    .hero .container {
        justify-content: center;
        align-items: flex-end;
        padding: 0 1.5rem 6rem;
    }

    .hero-content {
        width: 100%;
        max-width: 720px;
        text-align: center;
    }

    .hero h1 {
        max-width: 720px;
        font-size: clamp(2.1rem, 7vw, 3.4rem);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .authority-wrapper {
        flex-direction: column;
    }

    .message {
        max-width: 90%;
        font-size: 1rem;
        padding: 1rem;
    }

    .chat-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .chat-options button:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    /* Last item full width if odd */
    .chat-option {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
        height: 100%;
    }

    .option-badge {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        margin-right: 6px;
    }

    .hero {
        background-position: 15% center;
        /* Even more focus on the left side where the men are */
        text-align: center;
    }

    .hero .container {
        justify-content: center;
        align-items: center;
        /* Subir o título */
        padding: 0 1.25rem 4rem;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.6rem);
        line-height: 1.1;
    }

    .chat-header {
        padding: 1rem;
    }

    .consultant-img {
        width: 40px;
        height: 40px;
    }

    .intelligence-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .intelligence-content {
        text-align: center;
    }

    .section-title {
        text-align: center !important;
    }

    .carousel-slide {
        flex: 0 0 85%;
    }

    /* Show 1 full card + piece of next */
    .carousel-track-container {
        overflow: visible;
        padding: 0 10%;
    }

    /* Center with peek */
    .gain-item {
        padding: 2.5rem 1.5rem;
    }

    .gain-item h4 {
        font-size: 1.4rem;
    }

    .gain-item p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .chat-fullscreen {
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background: #061410 !important;
    }

    .chat-body {
        padding: 1rem;
        padding-bottom: 2rem;
        scroll-padding: 0;
    }


    .chat-footer {
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        background: #061410 !important;
        position: relative;
        z-index: 3;
    }

    .chat-input-wrapper {
        width: 100%;
        position: relative;
        z-index: 5;
    }
}