/* ============================================
   Custom Tailwind Configuration & Variables
   ============================================ */

:root {
    --color-primary: #0066FF;
    --color-primary-dark: #0052CC;
    --color-secondary: #00E676;
    --color-secondary-dark: #00C853;
    --color-accent-purple: #7C3AED;
    --color-accent-orange: #FF6B35;
    --color-neutral-light: #F5F5F5;
    --color-neutral-dark: #1F1F1F;
    --color-white: #FFFFFF;
    --color-gray-100: #F7FAFC;
    --color-gray-200: #EDF2F7;
    --color-gray-300: #E2E8F0;
    --color-gray-600: #718096;
    --color-gray-700: #4A5568;
    --color-gray-800: #2D3748;
    --color-gray-900: #1A202C;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-gray-800);
    line-height: 1.6;
    background: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--color-gray-900);
    color: var(--color-white);
}

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

/* ============================================
   Typography
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.section-dark .section-subtitle {
    color: var(--color-gray-300);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   Buttons
   ============================================ */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.cta-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: var(--color-gray-900);
    box-shadow: 0 4px 14px rgba(0, 230, 118, 0.4);
}

.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

@media (max-width: 768px) {
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--color-white);
    padding: 4.75rem 0 3.5rem;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-live-demo {
    width: 100%;
    max-width: 520px;
}

.hero-live-title {
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-live-demo .demo-form-wrapper,
.hero-live-demo .demo-chat-wrapper {
    padding: 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.hero-live-demo .demo-chat-wrapper {
    margin-top: 0;
}

.hero-live-demo .demo-chat {
    margin-bottom: 0;
}

.hero-live-demo .chat-messages {
    min-height: 320px;
}

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

.brand-logo {
    width: min(300px, 72vw);
    height: auto;
    max-height: 72px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.30));
}

.brand-logo-footer {
    width: min(300px, 70vw);
    max-height: 74px;
    margin-bottom: 1rem;
    filter: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--color-gray-300);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-visual {
        order: 2;
    }

    .hero-live-demo {
        max-width: 100%;
    }

    .hero-live-title {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3.5rem 0 2rem;
        min-height: auto;
    }

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

    .brand-logo {
        width: min(240px, 70vw);
        max-height: 58px;
        margin-left: auto;
        margin-right: auto;
    }

    .brand-logo-footer {
        width: min(220px, 68vw);
        max-height: 54px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* ============================================
   WhatsApp Mockup
   ============================================ */

.whatsapp-mockup {
    background: var(--color-white);
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.14);
    max-width: 520px;
    margin: 0 auto;
}

.mockup-header {
    background: #0b6f63;
    color: var(--color-white);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.mockup-avatar {
    width: 42px;
    height: 42px;
    background: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.mockup-name {
    font-weight: 600;
    font-size: 1rem;
}

.mockup-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.mockup-chat {
    background: #ece5dd;
    padding: 1.7rem 1rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    position: relative;
    animation: messageSlide 0.3s ease;
}

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

.message p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.message .time {
    font-size: 0.6875rem;
    opacity: 0.6;
    text-align: right;
    margin-top: 0.25rem;
}

.bot-message {
    align-self: flex-start;
    background: var(--color-white);
    color: var(--color-gray-900);
}

.user-message {
    align-self: flex-end;
    background: #DCF8C6;
    color: var(--color-gray-900);
}

/* ============================================
   Benefits Section
   ============================================ */

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

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
}

.benefit-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.benefit-text {
    color: var(--color-gray-600);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   How It Works Section
   ============================================ */

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
}

.step-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-text {
    color: var(--color-gray-300);
    margin-bottom: 1rem;
}

.step-icon {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 1.75rem;
    margin-top: 1rem;
}

.step-icon i {
    color: var(--color-secondary);
}

.step-arrow {
    font-size: 2rem;
    color: var(--color-gray-600);
}

@media (max-width: 1024px) {
    .step-arrow {
        display: none;
    }
}

/* ============================================
   Demo Section
   ============================================ */

.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-form-wrapper,
.demo-chat-wrapper {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
}

.hidden {
    display: none !important;
}

/* Demo Chat */
.demo-chat {
    background: #ECE5DD;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.chat-header {
    background: #075E54;
    color: var(--color-white);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reset-button {
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.reset-button:hover {
    opacity: 0.8;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-name {
    font-weight: 600;
    font-size: 1rem;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-messages {
    padding: 1.5rem 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    padding: 0.9rem;
    background: #fff;
    border-top: 1px solid var(--color-gray-300);
}

.chat-input-wrap input {
    border: 2px solid var(--color-gray-300);
    border-radius: 0.6rem;
    padding: 0.72rem 0.8rem;
    font-size: 0.95rem;
    color: #111827;
}

.chat-input-wrap input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.chat-input-wrap .cta-button {
    padding: 0.72rem 1rem;
    font-size: 0.95rem;
    width: auto;
}

.demo-cta {
    text-align: center;
    padding: 2rem;
    background: var(--color-gray-100);
    border-radius: 1rem;
}

.demo-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .demo-form-wrapper,
    .demo-chat-wrapper {
        padding: 1.5rem;
    }
}

/* ============================================
   Features Section
   ============================================ */

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-gray-800);
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.0625rem;
    color: var(--color-gray-200);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */

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

.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-stars {
    color: #FFB800;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--color-gray-900);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Contact Section
   ============================================ */

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-white);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.success-message i {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.success-message p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: 3rem 0 1.5rem;
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.footer-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--color-gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
