:root {
    --bg-color: #ffffff;
    --card-bg: #f8f8f8;
    --card-border: #e4e4e7;
    --primary-color: #000000;
    --secondary-color: #71717a;
    --accent-color: #000000;
    --accent-gradient: linear-gradient(135deg, #18181b 0%, #000000 100%);
    --text-main: #000000;
    --text-muted: #52525b;
    --nav-height: 64px; /* Reduced from 80px */
    --container-width: 1100px; /* Slightly narrower for focus */
}

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300; /* Thin text */
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 400; /* Thin text */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem; /* Reduced from 2rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    /* Using the black logo on the white navbar */
}

.logo-text {
    font-size: 1.25rem; /* Reduced from 1.5rem */
    letter-spacing: -0.5px;
    color: #000000;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a.btn-primary {
    background: #000000;
    color: #ffffff;
}

.nav-links a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem; /* Reduced from 0.95rem */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #000000;
}

/* Buttons */
.btn-primary {
    background: #000000;
    color: #ffffff;
    padding: 0.4rem 1.2rem; /* Further reduced */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.65rem; /* Further reduced */
}

.btn-primary:hover {
    background: #27272a;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    padding: 0.4rem 1.2rem; /* Further reduced */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #000000;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.65rem; /* Further reduced */
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.4rem 1.2rem; /* Standardized */
    border-radius: 50px;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.65rem; /* Standardized */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--text-muted);
}

.btn-large {
    /* Padding now standard */
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Hero Section Split Screen */
.hero {
    padding: 184px 0 60px; 
    text-align: left; /* Left align for split */
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.2rem; 
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 100%; /* Use full column width */
    margin-left: 0;
    margin-right: 0;
    color: #000000;
    font-weight: 500;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem; 
    color: var(--text-muted);
    max-width: 100%;
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: flex-start; /* Left align */
    gap: 1.5rem;
}

.hero-visual {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Header */
.section-title {
    font-size: 1.6rem; /* Further reduced */
    text-align: center;
    margin-bottom: 0.75rem; /* Less margin for subtext */
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.95rem; /* Reduced */
    color: var(--text-muted);
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 500px;
    display: block; /* Ensure margin auto works */
}

/* Demo Grid */
.demo-section {
    padding: 60px 0;
}

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

.demo-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem; /* Reduced from 3.5/2.5 */
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.demo-card:hover {
    background: #ffffff;
    border-color: #000000;
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.agent-icon-img {
    width: 64px; 
    height: 64px;
    object-fit: contain;
}

.demo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.demo-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Pricing */
.pricing-section {
    padding: 60px 0; 
    background: #ffffff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem; /* Reduced from 3.5/2.5 */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    border-color: #000000;
}

.pricing-card.featured {
    background: #000000;
    border-color: #000000;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: scale(1.01);
}

.pricing-card.featured h3, 
.pricing-card.featured .price, 
.pricing-card.featured .price span,
.pricing-card.featured .plan-desc, 
.pricing-card.featured .plan-features li {
    color: #ffffff;
}

.pricing-card.featured i {
    color: #ffffff;
}

.pricing-card.featured .btn-primary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.pricing-card.featured .btn-primary:hover {
    background: #ffffff;
    color: #000000;
}

.pricing-card.featured:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    transform: scale(1.02);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-card, .pricing-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

.demo-grid .demo-card:nth-child(1) { animation-delay: 0.1s; }
.demo-grid .demo-card:nth-child(2) { animation-delay: 0.2s; }
.demo-grid .demo-card:nth-child(3) { animation-delay: 0.3s; }

.plan-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pricing-card.featured .plan-tag {
    color: var(--accent-color);
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-family: 'Outfit';
    font-weight: 700;
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.plan-features i {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--card-border);
    background: #ffffff;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-img {
    height: 18px;
    width: auto;
    object-fit: contain;
    filter: invert(1); /* Invert white logo to black on white footer */
    opacity: 0.8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.footer-big-logo {
    height: 100px;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-group a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
}

/* Floating Chat Buttons */
.floating-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chat-btn i {
    width: 20px;
    height: 20px;
}

.chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #27272a;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.chat-header {
    background: #000000;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-chat i {
    width: 20px;
    height: 20px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f8f8;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background: #ffffff;
    color: #000000;
    border: 1px solid var(--card-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: #000000;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

#chat-input:focus {
    border-color: #000000;
}

#send-chat {
    background: #000000;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

#send-chat i {
    width: 18px;
    height: 18px;
}

#send-chat:hover {
    background: #27272a;
}
