/* Design System Variables */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #dbeafe;
    --background: #fafbfc;
    --foreground: #0f172a;
    --muted: #64748b;
    --success: #059669;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 0.625rem;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-padding: 1rem;
    --section-padding: 4rem 0;
    --section-padding-mobile: 3rem 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 48px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
}

.nav-logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-button {
    margin-left: 0.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--foreground);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--white) 100%);
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Chat Mockup */
.chat-mockup {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.chat-header {
    background: var(--primary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.chat-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-status {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 320px;
    background: #f0f2f5;
}

.chat-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    animation: chatFadeIn 0.4s ease forwards;
}

.chat-msg.user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    animation-delay: 0.3s;
}

.chat-msg.bot {
    background: var(--white);
    color: var(--foreground);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    animation-delay: 0.8s;
}

.chat-msg.user.delay-1 { animation-delay: 2.5s; }
.chat-msg.bot.delay-2 { animation-delay: 3.2s; }

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: var(--muted);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

.chat-text {
    color: var(--foreground);
}

@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

/* Solution Examples */
.solution-example {
    background: #f0f2f5;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.example-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.example-user {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-bottom-right-radius: 4px;
    max-width: 80%;
    margin-left: auto;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.example-bot {
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-bottom-left-radius: 4px;
    max-width: 90%;
    font-size: 0.95rem;
    color: var(--foreground);
    line-height: 1.6;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.comparison-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
}

.comparison-card li:last-child {
    border-bottom: none;
}

.comparison-card.old {
    background: #fef2f2;
    border-color: #fecaca;
}

.comparison-card.old h3 {
    color: #991b1b;
}

.comparison-card.new {
    background: #f0fdf4;
    border-color: #bbf7d0;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.1);
}

.comparison-card.new h3 {
    color: var(--primary);
}

/* For Who Section */
.for-who {
    background: var(--white);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s ease-out;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Problems Section */
.problems {
    background: var(--white);
}

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

.problem-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
    background: var(--white);
}

.problem-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    margin-bottom: 1rem;
    color: var(--foreground);
}

/* Solutions Section */
.solutions {
    background: var(--background);
}

.solutions-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.tab-button:hover,
.tab-button.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.solution-content h3 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.solution-features {
    list-style: none;
}

.solution-features li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}

.solution-features li:last-child {
    border-bottom: none;
}

/* Numbers Section */
.numbers {
    background: var(--primary);
    color: var(--white);
}

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

.number-card {
    text-align: center;
    padding: 2rem;
}

.number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.number-label {
    font-size: 1.1rem;
    color: var(--accent);
}

/* How it works */
.how-it-works {
    background: var(--background);
}

/* Differentials */
.differentials {
    background: var(--white);
}

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

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text p {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

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

.form-group {
    position: relative;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.cta-form input:focus,
.cta-form select:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.cta-form select {
    cursor: pointer;
}

.cta-form select option {
    background: var(--primary);
    color: var(--white);
}

.form-error {
    color: #fca5a5;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.form-disclaimer {
    color: var(--accent);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.form-success {
    background: var(--success);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    display: none;
}

#submit-btn {
    background: var(--white);
    color: var(--primary);
    position: relative;
}

#submit-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

#submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading {
    display: none;
}

#submit-btn.loading .btn-text {
    display: none;
}

#submit-btn.loading .btn-loading {
    display: inline;
}

/* Footer */
.footer {
    background: var(--foreground);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright,
.footer-brazil {
    color: var(--muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: var(--section-padding-mobile);
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem var(--container-padding);
        border-top: 1px solid var(--border);
        transform: translateY(-100%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .chat-messages {
        min-height: 250px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tab-buttons {
        grid-template-columns: 1fr;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .problems-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .numbers-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .chat-mockup {
        max-width: 100%;
    }
}

/* Print styles */
@media print {
    .navbar,
    .cta,
    .footer {
        display: none;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}