:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --secondary-dark: #00a8a4;
    --dark: #1e272e;
    --darker: #0f1519;
    --darkest: #080c0f;
    --light: #f5f6fa;
    --lighter: #ffffff;
    --gray: #636e72;
    --gray-light: #dfe6e9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
    --border-radius-sm: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::selection { background-color: var(--primary); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Container */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 50px; font-weight: 600;
    text-decoration: none; transition: var(--transition); border: none;
    cursor: pointer; gap: 8px; font-size: 16px; line-height: 1;
    position: relative; overflow: hidden; z-index: 1;
}
.btn::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1; transition: var(--transition); opacity: 0;
}
.btn-primary { background-color: var(--primary); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-primary:hover::after { opacity: 1; }
.btn-secondary { background-color: transparent; color: var(--light); border: 2px solid var(--primary); }
.btn-secondary:hover { background-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background-color: transparent; color: var(--light); border: 2px solid rgba(255, 255, 255, 0.1); }
.btn-ghost:hover { background-color: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }

/* Header with Video Background */
.video-header {
    position: relative; height: 100vh; min-height: 600px; max-height: 1200px;
    overflow: hidden; display: flex; align-items: center; color: white;
}
.video-header video {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%; width: auto; height: auto;
    z-index: -1; opacity: 0.4; filter: brightness(0.6);
}
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 21, 25, 0.9), rgba(15, 21, 25, 0.6));
    z-index: -1;
}

/* Navigation */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: var(--transition); padding: 20px 0; background: transparent;
}
header.scrolled, body.mobile-menu-open header {
    background-color: rgba(30, 39, 46, 0.95); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
@media (max-width: 768px) {
    header {
        background-color: rgba(30, 39, 46, 0.95); backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 10px 0;
    }
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: bold; }
.logo-img {
    height: 40px; width: 40px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 18px;
}
.logo-text {
    font-size: 22px; font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: var(--transition);
}
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
    color: var(--light); text-decoration: none; font-weight: 500; transition: var(--transition);
    position: relative; font-size: 16px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary)); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary-light); }
.auth-buttons { display: flex; gap: 15px; }
.mobile-menu-btn {
    display: none; background: none; border: none; color: white;
    font-size: 24px; cursor: pointer; z-index: 1001;
}
.mobile-nav-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,21,25,0.98); z-index: 2000; flex-direction: column;
    align-items: center; justify-content: center; transition: var(--transition); padding: 0 24px;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 32px; align-items: center; width: 100%; }
.mobile-nav-links a {
    color: var(--lighter); font-size: 1.5rem; font-weight: 600;
    text-decoration: none; padding: 12px 0; transition: color 0.2s;
}
.mobile-nav-links a:hover { color: var(--primary-light); }
.mobile-nav-auth {
    display: flex; flex-direction: column; gap: 16px; margin-top: 32px;
    width: 100%; align-items: center;
}
.mobile-nav-auth .btn { width: 220px; max-width: 90vw; font-size: 1.1rem; }
.mobile-nav-close {
    position: absolute; top: 24px; right: 24px; background: none;
    border: none; color: var(--lighter); font-size: 2rem; cursor: pointer;
    z-index: 2100; transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--primary); }
@media (max-width: 768px) {
    .nav-links, .auth-buttons { display: none; }
    .mobile-menu-btn { display: block; }
    body.mobile-menu-open { overflow: hidden; }
}

/* Hero Content */
.hero-content {
    max-width: 800px; margin: 0 auto; text-align: center;
    padding-top: var(--header-height); position: relative; z-index: 2;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.2;
    margin-bottom: 20px; background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: fadeInUp 1s ease-out;
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem); color: var(--gray-light);
    margin-bottom: 40px; opacity: 0; animation: fadeInUp 1s ease-out 0.3s forwards;
}
.cta-buttons {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 50px;
    flex-wrap: wrap; opacity: 0; animation: fadeInUp 1s ease-out 0.6s forwards;
}
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: var(--light); display: flex; flex-direction: column; align-items: center;
    text-decoration: none; font-size: 14px; opacity: 0; animation: fadeIn 1s ease-out 1s forwards;
}
.scroll-down i { font-size: 24px; margin-top: 10px; animation: bounce 2s infinite; }

/* Features Section */
.section { padding: 100px 0; position: relative; scroll-margin-top: 90px; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 15px; color: var(--lighter); }
.section-title p { color: var(--gray); max-width: 700px; margin: 0 auto; font-size: 1.1rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card {
    background-color: rgba(30, 39, 46, 0.7); border-radius: var(--border-radius);
    padding: 40px 30px; transition: var(--transition); border: 1px solid rgba(99, 110, 114, 0.1);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transform: translateY(20px);
}
.feature-card.animated { opacity: 1; transform: translateY(0); }
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:hover {
    transform: translateY(-10px) !important; box-shadow: var(--shadow-hover);
    border-color: var(--primary); background-color: rgba(30, 39, 46, 0.9);
}
.feature-icon {
    font-size: 2.5rem; margin-bottom: 20px; color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--lighter); }
.feature-card p { color: var(--gray-light); }

/* Integration Steps */
.steps-container { position: relative; margin-top: 80px; }
.steps-line {
    position: absolute; top: 50px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary)); z-index: 1; opacity: 0.2;
}
.steps { display: flex; justify-content: space-between; position: relative; z-index: 2; flex-wrap: wrap; }
.step {
    flex: 1; min-width: 250px; text-align: center; padding: 0 20px;
    position: relative; margin-bottom: 60px; opacity: 0; transform: translateY(20px); transition: var(--transition);
}
.step.animated { opacity: 1; transform: translateY(0); }
.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(2) { transition-delay: 0.3s; }
.step:nth-child(3) { transition-delay: 0.5s; }
.step-number {
    width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: bold; margin: 0 auto 20px; position: relative; z-index: 3;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}
.step h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--lighter); }
.step p { color: var(--gray-light); }

/* ----------------------------------------------------
   NEW HIGH-END DEMO SECTION STYLES (Added as requested)
---------------------------------------------------- */
.demo-showcase {
    padding: 100px 0;
    background: radial-gradient(circle at 70% 50%, #1e272e 0%, var(--darkest) 100%);
    position: relative;
    overflow: hidden;
}

/* Glowing Background Blobs for Premium Feel */
.demo-glow {
    position: absolute;
    width: 500px; height: 500px;
    background: var(--primary);
    filter: blur(180px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}
.demo-glow-1 { top: -100px; right: -100px; }
.demo-glow-2 { bottom: -100px; left: -100px; background: var(--secondary); }

.demo-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Side Text */
.demo-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #dfe6e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.demo-feature-list { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }
.demo-feat-item { display: flex; gap: 20px; align-items: flex-start; }
.demo-feat-icon {
    width: 50px; height: 50px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.demo-feat-text h4 { color: white; margin-bottom: 8px; font-size: 1.1rem; }
.demo-feat-text p { color: var(--gray); font-size: 0.95rem; line-height: 1.5; }

/* Right Side Phone Mockup */
.phone-mockup {
    background: var(--darker);
    border: 8px solid #2d3436;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(108, 92, 231, 0.2);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}
.phone-mockup:hover { transform: perspective(1000px) rotateY(0deg); }

/* The Notch */
.phone-mockup::before {
    content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 20px; background: #2d3436;
    border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 10;
}

.chat-screen {
    background: #0f1519;
    border-radius: 30px;
    height: 600px;
    overflow-y: auto;
    padding: 40px 15px 20px 15px; /* Top padding clears notch */
    display: flex; flex-direction: column; gap: 15px;
    scrollbar-width: none; /* Firefox */
}
.chat-screen::-webkit-scrollbar { display: none; } /* Chrome */

/* Chat Bubbles */
.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0; transform: scale(0.9);
}

.bubble-bot {
    background: #2d3436;
    color: #dfe6e9;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.bubble-user {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* Product Card inside Chat */
.chat-product {
    background: white; border-radius: 12px; padding: 10px; margin-top: 10px;
    display: flex; gap: 12px; align-items: center; color: var(--dark);
}
.chat-product img {
    width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: #eee;
}
.cp-info h5 { margin: 0; font-size: 0.9rem; color: #2d3436; }
.cp-info span { font-weight: bold; color: var(--primary); font-size: 0.9rem; display: block; margin-top: 4px; }

/* Data Collection Form inside Chat */
.chat-form {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 12px; margin-top: 10px;
}
.cf-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: rgba(0,0,0,0.3); border-radius: 6px;
    margin-bottom: 8px; font-size: 0.85rem; color: #b2bec3;
}
.cf-row i { color: var(--success); }

/* Chat Animations */
@keyframes popIn { to { opacity: 1; transform: scale(1); } }
.d-1 { animation-delay: 0.5s; }
.d-2 { animation-delay: 1.5s; }
.d-3 { animation-delay: 3.5s; } /* User asks next q */
.d-4 { animation-delay: 4.5s; } /* Bot asks details */

/* Media Queries for New Section */
@media (max-width: 992px) {
    .demo-grid-layout { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .demo-feature-list { align-items: center; }
    .demo-feat-item { text-align: left; }
    .phone-mockup { margin-top: 20px; transform: none; }
    .phone-mockup:hover { transform: none; }
}

/* ----------------------------------------------------
   END NEW STYLES
---------------------------------------------------- */

/* CTA Section */
.cta-section {
    text-align: center; background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: white; position: relative; overflow: hidden; padding: 100px 0;
}
.cta-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
    opacity: 0.3;
}
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 20px; }
.cta-content p { margin-bottom: 40px; color: rgba(255, 255, 255, 0.8); }

/* Footer */
footer { background-color: var(--darkest); padding: 80px 0 30px; position: relative; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-column h4 {
    font-size: 1.2rem; margin-bottom: 20px; color: var(--lighter);
    position: relative; padding-bottom: 10px;
}
.footer-column h4::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--gray-light); text-decoration: none; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--primary-light); transform: translateX(5px); }
.footer-about p { color: var(--gray-light); margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; }
.social-links a {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background-color: rgba(255, 255, 255, 0.05); color: var(--gray-light);
    font-size: 1.1rem; transition: var(--transition);
}
.social-links a:hover { background-color: var(--primary); color: white; transform: translateY(-3px); }
.footer-bottom {
    text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray); font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-15px); } 60% { transform: translateY(-7px); } }

/* Responsive Styles */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
}
@media (max-width: 768px) {
    .steps-line { display: none; }
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 350px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-content h1 { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    .footer-content { grid-template-columns: 1fr; }
}