@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #0B1C2C;
    --secondary: #142F43;
    --accent: #FF7A00;
    --accent-glow: rgba(255, 122, 0, 0.3);
    --text: #FFFFFF;
    --muted-text: #A0B3C6;
    --card-bg: rgba(20, 47, 67, 0.6);
    --border: rgba(160, 179, 198, 0.1);
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --radius: 12px;
    --header-height: 80px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background-color: var(--secondary);
    border-color: var(--accent);
}

/* Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 28, 44, 0.9);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

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

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Responsive Navbar */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.background-glow {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0b3c6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtext {
    font-size: 1.25rem;
    color: var(--muted-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    padding: 1rem;
    border-radius: 20px;
    position: relative;
}

.image-wrapper img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

.floating-element {
    position: absolute;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 4s ease-in-out infinite;
}

.floating-element i {
    color: var(--accent);
    font-size: 1.2rem;
}

.element-1 {
    top: -20px;
    right: -20px;
}

.element-2 {
    bottom: 30px;
    left: -40px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.section-header p {
    color: var(--muted-text);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    margin-top: 2rem;
}

.process-step {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--accent-glow);
}

.process-connector {
    flex: 0.5;
    height: 2px;
    background: var(--border);
    margin-top: 25px;
    position: relative;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--border);
    border-right: 2px solid var(--border);
    transform: rotate(45deg);
}

/* Demo Selector */
.selector-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--secondary);
    border-radius: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

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

.demo-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.demo-card:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.demo-thumb {
    height: 200px;
    background: var(--secondary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-thumb i {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.5;
}

.demo-info {
    padding: 1.5rem;
}

.demo-category {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

/* CTA Banner */
.cta-content {
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background: #050d15;
    border-top: 1px solid var(--border);
}

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

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.contact-form-container {
    padding: 3rem;
    border-radius: 24px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--muted-text);
}

.form-control {
    width: 100%;
    background: var(--primary);
    border: 1px solid var(--border);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Demo Specific Styles */
.demo-viewer {
    padding-top: 8rem;
    min-height: 100vh;
}

.demo-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.chat-sim {
    height: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
}

.chat-header {
    padding: 1.5rem;
    background: var(--secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 0.95rem;
}

.msg-ai {
    align-self: flex-start;
    background: var(--secondary);
    border-bottom-left-radius: 2px;
}

.msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 1.5rem;
    background: var(--secondary);
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    background: var(--primary);
    border: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: white;
    outline: none;
}

.lead-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feed-header {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.feed-header i {
    color: var(--accent);
}

.lead-card {
    padding: 1.2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    animation: slideInRight 0.5s ease-out;
}

.lead-card h5 {
    margin-bottom: 0.3rem;
    color: var(--text);
}

.lead-card p {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

.lead-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 122, 0, 0.2);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero h1 { font-size: 3rem; }
    .hero .subtext { margin: 0 auto 2.5rem; }
    .hero-btns { justify-content: center; }
    .process-flow { flex-direction: column; align-items: center; }
    .process-connector { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section-padding { padding: 4rem 0; }
}

/* --- Floating Buttons --- */
.floating-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.floating-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    filter: brightness(1.1);
}

.floating-btn.whatsapp {
    background: #25D366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.floating-btn.ai-assistant {
    background: var(--accent);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.floating-btn .tooltip {
    position: absolute;
    right: 110%;
    background: #1e293b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    pointer-events: none;
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* --- Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 350px;
    max-width: calc(100vw - 2rem);
    height: 450px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 1.5rem;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.chat-widget.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.chat-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-bubble {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.choice-btn {
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 2rem;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.choice-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 480px) {
    .floating-container { bottom: 1rem; right: 1rem; }
    .chat-widget { 
        bottom: 0; 
        right: 0; 
        width: 100%; 
        height: 100%; 
        border-radius: 0;
    }
}

