/* Base & Reset */
:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --secondary: #0ea5e9;
    --dark-bg: #0f172a;
    --darker-bg: #0b0f19;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --glow: rgba(139, 92, 246, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography */
h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 15% 50%, rgba(109, 40, 217, 0.15), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.1), transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(109, 40, 217, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--darker-bg);
    margin-left: -10px;
}

.avatars img:first-child {
    margin-left: 0;
}

.hero-image {
    position: relative;
    border-radius: 20px;
}

.hero-image img.floating-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: bob 4s ease-in-out infinite alternate;
}

.image-glow::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    filter: blur(40px);
    opacity: 0.3;
    z-index: -1;
    border-radius: inherit;
}

.floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 5s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    padding: 0.8rem;
    border-radius: 50%;
}

.floating-card.top-right {
    top: 20px;
    right: -20px;
    animation-delay: 1s;
}

.floating-card.top-right i {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.floating-card.bottom-left {
    bottom: 30px;
    left: -30px;
    animation-delay: 2.5s;
}

.floating-card.bottom-left i {
    background: rgba(14, 165, 233, 0.2);
    color: var(--secondary);
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 0.95rem;
}

.floating-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sections Common */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* Split Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse>* {
    direction: ltr;
}

.split-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.02);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(10px);
}

.feature-list i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.problem-list i {
    color: var(--danger);
}

.solution-list i {
    color: var(--success);
}

.feature-list strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
}

.feature-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.problem-section {
    background: rgba(15, 23, 42, 0.5);
}

/* Pricing Section */
.pricing-section {
    background: var(--dark-bg);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border: 1px solid var(--primary-light);
    box-shadow: 0 10px 40px rgba(109, 40, 217, 0.2);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.pricing-features i {
    color: var(--secondary);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: var(--primary-light);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bob {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-15px) scale(1.02);
    }
}

/* Responsive */
@media (max-width: 968px) {

    .hero-container,
    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding-top: 120px;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .floating-card {
        display: none;
        /* Hide on mobile for cleaner look */
    }

    .nav-links {
        display: none;
        /* simple mobile nav */
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* Contact Section */
.contact-section {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.email-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.email-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(11, 15, 25, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.email-list i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.email-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-list a:hover {
    color: var(--primary-light);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float a {
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: #fff;
}

@media (max-width: 968px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

/* Form Message */
.form-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Demo Section */
.demo-section {
    background: radial-gradient(circle at top, rgba(14, 165, 233, 0.1), transparent 50%);
}

.demo-browser-window {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    color: #333;
}

.browser-header {
    background: #e2e8f0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #cbd5e1;
}

.browser-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.browser-url {
    background: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    flex: 1;
    margin-left: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-family: monospace;
}

.browser-content {
    background: #f8fafc url('../images/hero_real_estate.png') center/cover no-repeat;
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.browser-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    /* Overlay */
}

.mock-nav,
.mock-hero,
.mock-chatbot {
    position: relative;
    z-index: 2;
}

.mock-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    align-items: center;
}

.mock-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    gap: 8px;
    align-items: center;
}

.mock-links {
    display: flex;
    gap: 20px;
    font-weight: 600;
    color: #475569;
}

.mock-hero {
    padding: 60px 40px;
    text-align: left;
    max-width: 500px;
}

/* Embedded Demo Chatbot styles */
.mock-chatbot {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.mock-chatbot .chatbot-header {
    background: #0f172a;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.mock-chatbot .close-btn {
    background: transparent;
    color: #cbd5e1;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.mock-chatbot .close-btn:hover {
    color: #fff;
}

.mock-chatbot .chatbot-messages {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}

.mock-chatbot .msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mock-chatbot .msg.ai {
    background: #e2e8f0;
    color: #0f172a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.mock-chatbot .msg.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mock-chatbot .chatbot-input {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    align-items: center;
    gap: 10px;
}

.mock-chatbot .chatbot-input input {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 12px 15px;
    border-radius: 20px;
    color: #0f172a;
    outline: none;
    font-size: 0.95rem;
}

.mock-chatbot .chatbot-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-chatbot .chatbot-input button:hover {
    transform: scale(1.1);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #e2e8f0;
    align-self: flex-start;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-items: center;
    height: 48px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #64748b;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .browser-content {
        height: auto;
        min-height: 550px;
    }

    .mock-chatbot {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e2e8f0;
    }

    .demo-browser-window {
        border-radius: 8px;
    }

    .mock-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px;
    }

    .mock-hero {
        padding: 20px 20px 40px;
        text-align: center;
        margin: 0 auto;
    }
}

/* --- ANIMATED WORKFLOW DIAGRAM --- */
.animated-workflow {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.workflow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.workflow-lines .line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 3;
}

.workflow-lines .pulse-line {
    stroke: var(--primary-light);
    stroke-dasharray: 10, 10;
    animation: flowData 1.5s linear infinite;
    opacity: 0.8;
}

.pulse-line.delay-1 {
    animation-delay: 0.3s;
    stroke: var(--success);
}

.pulse-line.delay-2 {
    animation-delay: 0.6s;
    stroke: var(--secondary);
}

@keyframes flowData {
    0% {
        stroke-dashoffset: 40;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.workflow-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--darker-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.workflow-node:hover .icon-circle {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.node-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(11, 15, 25, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wf-brain {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.wf-source {
    margin-left: 20px;
}

.wf-destinations {
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-right: 20px;
}

.wf-brain .icon-circle {
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    box-shadow: 0 0 30px var(--glow);
    animation: pulseBot 2s infinite ease-in-out;
}

.crm-icon {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.phone-icon {
    color: var(--secondary);
    border-color: rgba(14, 165, 233, 0.3);
}

.glow-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    animation: expandRing 2s infinite ease-out;
    top: 0;
    left: 0;
    pointer-events: none;
}

@keyframes pulseBot {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--glow);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px var(--glow);
    }
}

@keyframes expandRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
        border-width: 0px;
    }
}

@media (max-width: 768px) {
    .animated-workflow {
        height: auto;
        min-height: 500px;
        flex-direction: column;
        padding: 40px 0;
        justify-content: space-around;
    }

    .wf-brain {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin: 20px 0;
    }

    .wf-source {
        margin: 0;
    }

    .wf-destinations {
        flex-direction: row;
        gap: 30px;
        margin: 0;
    }

    .workflow-lines {
        display: none;
        /* Hide complex SVG paths on mobile layout */
    }
}