:root {
    --bg-deep: #05050f;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.08); /* 8-15% opacity */
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: 20px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Floating Lights */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}
.glow-purple {
    top: -5%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation: pulse 12s ease-in-out infinite alternate;
}
.glow-blue {
    bottom: -10%;
    right: -10%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: var(--font-heading);
}
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn-large { padding: 1.2rem 2.5rem; font-size: 1.125rem; border-radius: 12px; }
.btn-full { width: 100%; padding: 1rem; border-radius: 10px; margin-top: auto; }

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    z-index: 1000;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
}
.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 9rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-content {
    padding-right: 2rem;
}
.app-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.main-title {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}
.text-gradient {
    background: linear-gradient(to right, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sub-headline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
    font-weight: 400;
}
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tablet-mockup {
    width: 90%;
    max-width: 600px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
    border-radius: 20px;
}
.float-anim {
    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features Grid */
.features-section {
    padding: 6rem 5%;
    position: relative;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
}
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Value Prop Section */
.value-prop-section {
    padding: 6rem 5%;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}
.value-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.value-item .v-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.value-item h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #fff;
}
.value-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 5%;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}
.pricing-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.3s, background 0.3s;
}
.pricing-card.popular {
    transform: scale(1.05);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    z-index: 10;
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f97316, #ea580c);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.p-header h4 {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}
.p-header .price {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0;
    font-family: var(--font-heading);
}
.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}
.p-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.p-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}
.p-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.p-features li svg {
    color: var(--secondary);
    min-width: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.p-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}
.p-features li.disabled svg {
    color: #ef4444;
}

/* Footer */
.footer {
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }
    .hero-content { align-items: center; }
    .features-grid, .value-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
}

/* Mobile Improvements */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.75rem 1rem;
        top: 0.5rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    .nav-actions .btn-small {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Chatbot Icon Fix */
#optibase-chatbot-wrapper .chat-icon {
    width: 28px !important;
    height: 28px !important;
}

/* Hero Centering Fix (for when image is missing) */
@media (min-width: 993px) {
    .hero:not(:has(.hero-visual img)) {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero:not(:has(.hero-visual img)) .hero-content {
        padding-right: 0;
        margin: 0 auto;
        max-width: 800px;
    }
    .hero:not(:has(.hero-visual img)) .hero-actions {
        justify-content: center;
    }
}

/* =========================================
   OPTIBASE AI CHATBOT (GLASSMORPHISM)
   ========================================= */

#optibase-chatbot-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999999;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

#ob-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

#ob-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
}

#ob-chat-toggle svg {
    width: 28px;
    height: 28px;
}

#ob-chat-window {
    width: 350px;
    height: 500px;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
}

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

#ob-chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
#ob-chat-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.ob-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.ob-avatar svg {
    width: 20px;
    height: 20px;
}

.ob-pulse {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: var(--emerald);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.ob-chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ob-chat-body::-webkit-scrollbar {
    width: 6px;
}
.ob-chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.ob-msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slide-up-fast 0.3s ease forwards;
}

.ob-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}

.ob-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Typing indicator */
.typing-indicator span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.ob-chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

#ob-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 20px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

#ob-chat-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

#ob-chat-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#ob-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Interactive Options (Buttons inside chat) */
.ob-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.ob-options button {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}
.ob-options button:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: white;
}
.ob-options button:disabled {
    cursor: default;
}

/* Quick-reply option buttons (greeting flow) */
.ob-quick-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.ob-quick-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}
.ob-quick-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(59, 130, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.6);
    color: white;
    transform: translateX(3px);
}
.ob-quick-btn:disabled {
    cursor: default;
    opacity: 0.45;
}

/* Responsive constraints */
@media (max-width: 480px) {
    #optibase-chatbot-wrapper {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        align-items: flex-end;
    }
    #ob-chat-window {
        width: 100%;
        height: 65vh;
        max-height: 500px;
    }
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: none; /* Hidden by default */
    justify-content: center;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
    }
    .footer {
        padding-bottom: 8rem;
    }
    #optibase-chatbot-wrapper {
        bottom: 6rem !important;
    }
    .trust-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    .trust-label {
        font-size: 0.75rem;
        text-align: center;
        width: 100%;
        white-space: normal;
    }
    .logo-ticker {
        width: 100%;
        max-width: 100%;
    }
    .trust-bar {
        margin: 2rem auto;
        border-radius: 12px;
        width: 95%;
    }
}

/* Trust Badges Section */
.trust-badges-section {
    padding: 4rem 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.trust-mini-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}
.trust-mini-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.badge-item {
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}
.badge-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}
.badge-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px currentColor);
}
.badge-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}