﻿/* Base styles */
* {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page layout */
.page-body {
    background: black;
    color: white;
    overflow-x: hidden;
}

/* Text utilities */
.text-balance {
    text-wrap: balance;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in-delayed {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delayed-2 {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Header styles */
.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1rem;
}

@media (min-width: 640px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Desktop navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: rgb(209, 213, 219);
    transition: color 0.2s;
    text-decoration: none;
}

    .nav-link:hover {
        color: white;
    }

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login {
    color: rgb(209, 213, 219);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

    .btn-login:hover {
        color: white;
    }

.btn-signup {
    background: white;
    color: black;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

    .btn-signup:hover {
        background: rgb(243, 244, 246);
    }

/* Mobile navigation */
.mobile-nav {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

.hamburger {
    color: white;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    .mobile-menu.active {
        display: block;
    }

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.mobile-nav-link {
    color: rgb(209, 213, 219);
    transition: color 0.2s;
    text-decoration: none;
}

    .mobile-nav-link:hover {
        color: white;
    }

.mobile-btn-login {
    color: rgb(209, 213, 219);
    text-align: left;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

    .mobile-btn-login:hover {
        color: white;
    }

.mobile-btn-signup {
    background: white;
    color: black;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    width: fit-content;
    border: none;
    cursor: pointer;
}

    .mobile-btn-signup:hover {
        background: rgb(243, 244, 246);
    }

/* Hero section */
.hero-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 4rem 1rem 6rem;
}

@media (min-width: 640px) {
    .hero-section {
        padding: 6rem 1.5rem 8rem;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left; /* Add this line */
}
.hero-container-launch {
    display: grid;
    gap: 2rem;
    align-items: center;
    text-align: left; /* Add this line */
}
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chat-container {
    position: relative;
    z-index: 10;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .hero-image-container img {
        max-width: 100%;
        height: auto;
        border-radius: 0.5rem;
    }
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgb(156, 163, 175);
    margin-bottom: 2rem;
    line-height: 1.625;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        margin-bottom: 4rem;
    }
}

.btn-primary {
    background: white;
    color: black;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        background: rgb(243, 244, 246);
    }

.btn-secondary {
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s;
    text-align: center;
    background: none;
    cursor: pointer;
}

    .btn-secondary:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

/* Chat demo */
.chat-demo-container {
    position: relative;
    background: transparent;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .chat-demo-container::before {
        content: '';
        position: absolute;
        inset: 0;
        padding: 1px;
        background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
        border-radius: inherit;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
    }

    .chat-demo-container:hover {
        transform: scale(1.02);
    }

        .chat-demo-container:hover::after {
            opacity: 1;
        }

    .chat-demo-container::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1), rgba(168, 85, 247, 0.1));
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.chat-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #f87171;
}

.dot-yellow {
    background: #fbbf24;
}

.dot-green {
    background: #34d399;
}

.chat-title {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Controls */
.chat-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-demo-container:hover .chat-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .control-btn svg {
        width: 16px;
        height: 16px;
    }

.progress-dots {
    display: flex;
    gap: 0.5rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .progress-dot.active {
        background: #3b82f6;
        transform: scale(1.2);
    }

.conversation-title {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* Messages */
.chat-messages {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.chat-message {
    opacity: 0;
    transform: translateY(10px);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

    .chat-message.visible {
        opacity: 1;
        transform: translateY(0);
    }

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .profile-pic.user {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
    }

    .profile-pic.ai {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }

.message-bubble {
    padding: 0.875rem 1.25rem;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    backdrop-filter: blur(10px);
    max-width: 85%;
}

    .message-bubble.user {
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: #93c5fd;
    }

    .message-bubble.ai {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #e5e7eb;
    }

.chat-message.user {
    flex-direction: row-reverse;
}

    .chat-message.user .message-bubble {
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: #93c5fd;
        max-width: 70%;
    }

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.875rem 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .typing-indicator.visible {
        opacity: 1;
    }

.typing-dot {
    width: 6px;
    height: 6px;
    background: #4b5563;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
}

    .action-buttons.visible {
        opacity: 1;
    }

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

    .action-btn:hover {
        background: rgba(34, 197, 94, 0.2);
        transform: translateY(-1px);
    }

    .action-btn.selected {
        background: rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.4);
    }

/* Success message */
.success-message {
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    margin-top: 1rem;
}

    .success-message.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Client list */
.client-list {
    margin-top: 0.75rem;
    padding-left: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}

    .client-list.visible {
        opacity: 1;
    }

.client-item {
    color: #9ca3af;
    font-size: 13px;
    margin: 0.375rem 0;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .client-item:last-child {
        border-bottom: none;
    }

/* Dashboard preview */
.dashboard-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

    .dashboard-preview.visible {
        opacity: 1;
    }

.metric {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 13px;
}

.metric-label {
    color: #9ca3af;
}

.metric-value {
    color: #4ade80;
    font-weight: 500;
}

    .metric-value.warning {
        color: #fbbf24;
    }

/* Paused state */
.chat-demo-container.paused .typing-indicator {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .chat-demo-container {
        padding: 1.5rem;
    }

    .chat-messages {
        height: 300px;
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-user {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 2rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.message-ai {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-right: 2rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .typing-dots span {
        width: 4px;
        height: 4px;
        background: #6366f1;
        border-radius: 50%;
        animation: typingPulse 1.4s ease-in-out infinite;
    }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typingPulse {
    0%, 60%, 100% {
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }
}

/* Section styles */
.section-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .section-container {
        padding: 0 1.5rem;
    }
}

.problem-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6rem 0;
}

@media (min-width: 640px) {
    .problem-section {
        padding: 8rem 0;
    }
}

.problem-content {
    max-width: 48rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: rgb(156, 163, 175);
    line-height: 1.625;
}

@media (min-width: 640px) {
    .section-description {
        font-size: 1.25rem;
    }
}

/* Solution section */
.solution-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6rem 0;
}

@media (min-width: 640px) {
    .solution-section {
        padding: 8rem 0;
    }
}

.solution-header {
    max-width: 48rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .solution-header {
        margin-bottom: 4rem;
    }
}

.solution-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .solution-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 640px) {
    .solution-grid {
        gap: 3rem;
    }
}

.solution-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.solution-item-description {
    color: rgb(156, 163, 175);
    line-height: 1.625;
}

/* Demo cards */
.demo-cards {
    margin-top: 3rem;
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .demo-cards {
        margin-top: 4rem;
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .demo-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.demo-card {
    position: relative;
    background: #0a0a0a;
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .demo-card {
        padding: 1.5rem;
    }
}

.demo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
}

.demo-card-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.demo-card-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.demo-card-dot-green {
    background: rgb(34, 197, 94);
}

.demo-card-dot-blue {
    background: rgb(59, 130, 246);
}

.demo-card-dot-purple {
    background: rgb(168, 85, 247);
}

.demo-card-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.demo-card-description {
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
}

/* Benefits section */
.benefits-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6rem 0;
}

@media (min-width: 640px) {
    .benefits-section {
        padding: 8rem 0;
    }
}

.benefits-header {
    max-width: 48rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .benefits-header {
        margin-bottom: 4rem;
    }
}

.benefits-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.benefit-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-item-description {
    color: rgb(156, 163, 175);
    line-height: 1.625;
}

/* CTA section */
.cta-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6rem 0;
    text-align: center;
}

@media (min-width: 640px) {
    .cta-section {
        padding: 8rem 0;
    }
}

.cta-content {
    max-width: 32rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    color: rgb(156, 163, 175);
    margin-bottom: 2rem;
    line-height: 1.625;
}

@media (min-width: 640px) {
    .cta-description {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-note {
    font-size: 0.875rem;
    color: rgb(107, 114, 128);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0 4rem;
}

@media (min-width: 640px) {
    .footer {
        padding: 4rem 0;
    }
}

.footer-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .footer-container {
        padding: 0 1.5rem;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        align-items: center;
    }
}

.footer-brand {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-brand {
        margin-bottom: 0;
    }
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgb(156, 163, 175);
    font-size: 0.875rem;
    max-width: 24rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
}

@media (min-width: 640px) {
    .footer-links {
        gap: 2rem;
    }
}

.footer-link {
    color: rgb(156, 163, 175);
    transition: color 0.2s;
    text-decoration: none;
}

    .footer-link:hover {
        color: white;
    }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        margin-top: 3rem;
        padding-top: 2rem;
    }
}

.footer-copyright {
    color: rgb(107, 114, 128);
    font-size: 0.875rem;
    margin: 0;
}

/* Utility classes */
.subtle-border {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.gradient-border {
    position: relative;
    background: #0a0a0a;
}

    .gradient-border::before {
        content: '';
        position: absolute;
        inset: 0;
        padding: 1px;
        background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
        border-radius: inherit;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
    }

/* Chat container */
.chat-demo-container {
    position: relative;
    background: #0a0a0a;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .chat-demo-container::before {
        content: '';
        position: absolute;
        inset: 0;
        padding: 1px;
        background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
        border-radius: inherit;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
    }

    .chat-demo-container:hover {
        transform: scale(1.02);
    }

        .chat-demo-container:hover::after {
            opacity: 1;
        }

    .chat-demo-container::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1), rgba(168, 85, 247, 0.1));
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.chat-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #f87171;
}

.dot-yellow {
    background: #fbbf24;
}

.dot-green {
    background: #34d399;
}

.chat-title {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Controls */
.chat-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-demo-container:hover .chat-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .control-btn svg {
        width: 16px;
        height: 16px;
    }

.progress-dots {
    display: flex;
    gap: 0.5rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .progress-dot.active {
        background: #3b82f6;
        transform: scale(1.2);
    }

.conversation-title {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* Messages */
.chat-messages {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.chat-message {
    opacity: 0;
    transform: translateY(10px);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

    .chat-message.visible {
        opacity: 1;
        transform: translateY(0);
    }

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .profile-pic.user {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
    }

    .profile-pic.ai {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }

.message-bubble {
    padding: 0.875rem 1.25rem;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    backdrop-filter: blur(10px);
    max-width: 85%;
}

    .message-bubble.user {
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: #93c5fd;
    }

    .message-bubble.ai {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #e5e7eb;
    }

.chat-message.user {
    flex-direction: row-reverse;
}

    .chat-message.user .message-bubble {
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: #93c5fd;
        max-width: 70%;
    }

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.875rem 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .typing-indicator.visible {
        opacity: 1;
    }

.typing-dot {
    width: 6px;
    height: 6px;
    background: #4b5563;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
}

    .action-buttons.visible {
        opacity: 1;
    }

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

    .action-btn:hover {
        background: rgba(34, 197, 94, 0.2);
        transform: translateY(-1px);
    }

    .action-btn.selected {
        background: rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.4);
    }

/* Success message */
.success-message {
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    margin-top: 1rem;
}

    .success-message.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Client list */
.client-list {
    margin-top: 0.75rem;
    padding-left: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}

    .client-list.visible {
        opacity: 1;
    }

.client-item {
    color: #9ca3af;
    font-size: 13px;
    margin: 0.375rem 0;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .client-item:last-child {
        border-bottom: none;
    }

/* Dashboard preview */
.dashboard-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

    .dashboard-preview.visible {
        opacity: 1;
    }

.metric {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 13px;
}

.metric-label {
    color: #9ca3af;
}

.metric-value {
    color: #4ade80;
    font-weight: 500;
}

    .metric-value.warning {
        color: #fbbf24;
    }

/* Paused state */
.chat-demo-container.paused .typing-indicator {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .chat-demo-container {
        padding: 1.5rem;
    }

    .chat-messages {
        height: 300px;
    }
}



