/* --- CSS Reset & Variables --- */
:root {
  --bg-primary: #FDFAF2;
  --bg-secondary: #F5F5F5;
  --bg-cards: #FFFFFF;
  --color-primary: #192C55;
  --color-accent: #DC5843;
  --color-accent-dark: #B04737;
  --text-on-primary: #FDFAF2;
  --text-main: #333333;
  --text-secondary: #666666;
  --text-titles: #192C55;
  --border-light: #E0E0E0;
  --accent-alt: #0B4C5F;
  --accent-alt-light: #43DCCA;
  --btn-secondary-bg: #3E557F;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-image: 0px 10px 40px -15px rgba(25, 44, 85, 0.3);
}

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

body {
    font-family: 'Baloo 2', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(at 0% 0%, hsla(223, 57%, 22%, 0.28) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, hsla(223, 57%, 22%, 0.1) 0px, transparent 50%);
}

/* --- Utility Classes --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--text-on-primary);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-titles);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* --- Scroll Animation --- */
.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-titles);
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid transparent;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--color-primary);
}

.nav-links a.active {
    background-color: var(--color-accent);
    color: var(--text-on-primary);
    border-color: var(--color-accent);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-titles);
}

/* --- Hero Section --- */
#hero {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    background-image: radial-gradient(circle at top left, hsla(223, 57%, 22%, 0.9), transparent 70%),
                      radial-gradient(circle at bottom right, hsla(11, 86%, 41%, 0.9), transparent 80%);
     color: var(--text-on-primary);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    text-align: left;
}

.carousel-slider {
    position: relative;
    min-height: 260px;
    margin-bottom: 2rem;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    color: var(--text-on-primary);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: var(--text-on-primary);
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

#hero .btn-secondary {
    border: 2px solid var(--text-on-primary);
    color: var(--text-on-primary);
    background-color: rgba(253, 250, 242, 0.1);
    backdrop-filter: blur(5px);
}
#hero .btn-secondary:hover {
    background-color: var(--text-on-primary);
    color: var(--color-primary);
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    transition: transform 0.3s ease-out;
    box-shadow: var(--shadow-image);
}

/* --- Como Funciona Section (Vertical Infographic) --- */
#how-it-works {
    background-color: var(--bg-secondary);
}
    #how-it-works .section-title {
        font-size: 3rem; /* Aumentado */
        margin-bottom: 1.5rem; /* Aumentado */
    }

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-light);
    top: 20px;
    bottom: 20px;
    left: 50%;
    margin-left: -2px;
    z-index: 0;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
    position: relative;
    margin: 20px 0;
    width: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 40px;
    padding-right: 0;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-cards);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--text-on-primary);
    flex-shrink: 0;
}

.timeline-text h4 {
    color: var(--text-titles);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--border-light);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    opacity: 0.5;
}

.timeline-item:nth-child(even) .timeline-number {
    right: -70px;
}

.timeline-item:nth-child(odd) .timeline-number {
    left: -70px;
}

/       /* --- Benefícios Section (Chat Simulation) --- */
        #benefits {
            background-color: var(--bg-primary);
        }
        
        .benefits-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .chat-window-wrapper {
            position: relative;
        }
        
        .chat-window {
            background-color: var(--bg-cards);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            transform: rotate(1deg);
            transition: transform 0.3s ease;
        }
        .chat-window:hover {
            transform: rotate(0deg);
        }

        .chat-header {
            padding: 0.75rem;
            background-color: #128C7E;
            display: flex;
            align-items: center;
        }
        .chat-header .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--bg-cards);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
        }
        .chat-header .avatar i {
            color: #128C7E;
        }
        .chat-header .name {
            color: var(--text-on-primary);
            font-weight: 600;
        }

        .chat-body {
            padding: 1rem;
            background-color: #E5DDD5;
            height: 400px;
            overflow-y: auto;
        }
        
        .message-bubble {
            max-width: 80%;
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }
        
        .message-bubble.user {
            background-color: #DCF8C6;
            margin-left: auto;
            text-align: right;
        }

        .message-bubble.tiz {
            background-color: var(--bg-cards);
            margin-right: auto;
            text-align: left;
        }
        
        .attachment {
            background-color: rgba(0,0,0,0.05);
            border-radius: 6px;
            padding: 0.5rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
        }
        .attachment .icon {
            margin-right: 0.5rem;
            color: var(--color-accent);
        }
        .attachment .details p {
            font-size: 0.8rem;
            line-height: 1.2;
        }
        .attachment .details .filename {
            font-weight: 600;
        }
        .attachment .details .filesize {
            color: var(--text-secondary);
        }

        .audio-player {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background-color: rgba(0,0,0,0.05);
            border-radius: 50px;
            padding: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .audio-player .play-button {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #128C7E;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .audio-player .progress-bar {
            flex-grow: 1;
            height: 4px;
            background-color: #ccc;
            border-radius: 2px;
        }
        .audio-player .progress {
            width: 75%;
            height: 100%;
            background-color: #128C7E;
            border-radius: 2px;
        }
        .audio-player .duration {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
    
    .feature-list {
        list-style: none;
    }

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-list .feature-icon {
    color: var(--accent-alt-light);
    margin-right: 1rem;
    font-size: 1.3rem;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

/* --- Topics Section --- */
#topics {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.topics-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.topics-scroller {
    width: 100%;
    overflow: hidden;
}

.topics-scroller-inner {
    display: flex;
    width: fit-content;
}

.scroller-row-1 .topics-scroller-inner {
    animation: scroll-left 40s linear infinite;
}

.scroller-row-2 .topics-scroller-inner {
    animation: scroll-right 45s linear infinite;
}


.topic-card {
    background: var(--bg-cards);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    width: 320px;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.topic-card .icon {
    font-size: 2rem;
    color: var(--color-accent);
}

.topic-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-titles);
    text-align: left;
}

.topics-cta {
    text-align: center;
    margin-top: 2.5rem;
}

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

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

/* --- Segurança Section --- */
#security {
     background-color: var(--bg-primary);
}
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.security-card {
    background: var(--bg-cards);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.security-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.security-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background-color: var(--accent-alt-light);
    display: flex;
    justify-content: center;
    align-items: center;
}
 .security-card .icon-wrapper i {
    font-size: 2.5rem;
    color: var(--accent-alt);
 }
.security-card h3 {
    color: var(--text-titles);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.security-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Final CTA Section --- */
#final-cta {
    text-align: center;
}
#final-cta .btn {
    margin: 0.5rem;
}
#final-cta .btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--text-on-primary);
    border: none;
}
#final-cta .btn-secondary:hover {
    background-color: var(--color-primary);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-primary);
    padding: 4rem 0 2rem 0;
    color: var(--text-on-primary);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: var(--text-on-primary);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-links a:hover {
    opacity: 1;
}
.social-icons a {
    color: var(--text-on-primary);
    opacity: 0.8;
    font-size: 1.5rem;
    margin-left: 1.5rem;
    transition: opacity 0.2s, color 0.2s;
}
.social-icons a:hover {
    opacity: 1;
    color: var(--color-accent);
}
.footer-bottom {
    text-align: center;
    color: var(--text-on-primary);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* --- Floating CTA Button ---  */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: rgba(67, 220, 202, 0.8); /* accent-alt-light com transparência */
    backdrop-filter: blur(10px);
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 999;
}
.floating-cta i {
    font-size: 1.5rem;
}
.floating-cta:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: var(--accent-alt-light);
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        order: 2;
        text-align: center;
    }
    .hero-image {
        order: 1;
        margin-bottom: 2rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .carousel-slide {
        font-size: 2.2rem;
    }
    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hamburger {
        display: block;
    }

            .features-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid .feature-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-icons a {
        margin: 0 0.75rem;
    }
    
    /* Timeline on Mobile */
    .timeline-container::after {
        display: none;
    }
    .timeline-item, .timeline-item:nth-child(odd) {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
        align-self: center;
    }
    .timeline-number {
        display: none;
    }
}