﻿:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #10B981;
    --bg-main: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 100%;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Hamburger Toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate into X when open */
.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.3s;
}

    nav a:hover {
        color: var(--primary);
    }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-left: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
    }

.btn-secondary {
    background-color: white;
    color: var(--text-main) !important;
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        border-color: var(--primary);
        color: var(--primary) !important;
    }

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.1), transparent 40%), radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 40%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.highlight {
    color: transparent;
    background: linear-gradient(90deg, var(--primary), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Simulator (Hero Visual) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-frame {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 500px;
}

.mockup-header {
    padding: 15px 20px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.mockup-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.mockup-agent-info strong {
    display: block;
    font-size: 1rem;
}

.mockup-agent-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.text-success {
    color: var(--secondary);
    font-size: 0.6rem;
}

.mockup-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.buble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.buble-agent {
    background-color: white;
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.buble-user {
    background-color: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mockup-footer {
    padding: 15px;
    background-color: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

    .mockup-footer input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid var(--border);
        border-radius: 20px;
        outline: none;
        background-color: #f3f4f6;
    }

    .mockup-footer button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--primary);
        color: white;
        border: none;
        cursor: not-allowed;
        opacity: 0.6;
    }

/* Features */
.features {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

    .section-title h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-main);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
}

    .feature-card:hover {
        transform: translateY(-10px);
    }

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: white;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
}

.benefit-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

    .benefit-row:last-child {
        margin-bottom: 0;
    }

    .benefit-row.reverse {
        flex-direction: row-reverse;
    }

.benefit-text {
    flex: 1;
}

    .benefit-text h3 {
        font-size: 2rem;
        margin-bottom: 15px;
        color: var(--primary);
    }

    .benefit-text p {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-bottom: 20px;
    }

.benefit-list {
    list-style: none;
}

    .benefit-list li {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
    }

        .benefit-list li i {
            color: var(--secondary);
        }

.benefit-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

    .benefit-image img {
        max-width: 100%;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
    }

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #f3f4f6;
}

.footer-col p {
    color: #9ca3af;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

    .footer-col ul li {
        margin-bottom: 10px;
    }

        .footer-col ul li a {
            color: #9ca3af;
            text-decoration: none;
            transition: color 0.3s;
        }

            .footer-col ul li a:hover {
                color: white;
            }

.footer-social {
    display: flex;
    gap: 15px;
}

    .footer-social a {
        color: #9ca3af;
        font-size: 1.5rem;
        transition: color 0.3s;
    }

        .footer-social a:hover {
            color: white;
        }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .chat-toggle:hover {
        transform: scale(1.05);
    }

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-pulse {
    animation: pulse 2s infinite;
}

.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 480px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .chat-panel.active {
        transform: scale(1);
        opacity: 1;
        pointer-events: all;
    }

.chat-header {
    padding: 15px 20px;
    background: linear-gradient(90deg, var(--primary), #818cf8);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .agent-profile .avatar {
        background: rgba(255, 255, 255, 0.2);
        width: 36px;
        height: 36px;
    }

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

    .close-chat:hover {
        opacity: 1;
    }

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-buble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

    .chat-buble.bot {
        background: white;
        align-self: flex-start;
        border-bottom-left-radius: 4px;
        box-shadow: var(--shadow-sm);
    }

    .chat-buble.user {
        background: var(--primary);
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 4px;
    }

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

    .typing-dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: -0.16s;
    }

.chat-options {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid var(--border);
}

.opt-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text-main);
}

    .opt-btn:hover {
        background: #e0e7ff;
        border-color: var(--primary);
        color: var(--primary);
    }

/* Forms in Chat */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

    .form-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-muted);
    }

.form-input {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    outline: none;
    font-size: 0.9rem;
}

    .form-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
    }

.form-row {
    display: flex;
    gap: 8px;
}

    .form-row select {
        width: 80px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 0.85rem;
        outline: none;
    }

.submit-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

    .submit-btn:hover {
        background: var(--primary-hover);
    }

/* Utils & Animations */
.error-text {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes dotPulse {

    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-content nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 24px 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
        z-index: 999;
        display: flex;
    }

    .nav-content nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-content nav a {
        margin-left: 0;
        font-size: 1.1rem;
        padding: 8px 0;
    }

    .nav-content nav .btn-sm {
        margin-left: 0;
        margin-top: 4px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero-visual {
        width: 100%;
    }

    .chat-panel {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 70px;
        height: 60vh;
    }

    .benefit-row,
    .benefit-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .benefit-list li {
        justify-content: center;
    }
}
