:root {
    --bg: #0A0A0F;
    --surface: #111827;
    --surface-hover: #1a2332;
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --secondary: #8B5CF6;
    --cyan: #06B6D4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --ring: rgba(59, 130, 246, 0.5);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    --glow: 0 0 60px rgba(59, 130, 246, 0.15);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
    opacity: 0.95;
}

.btn-secondary {
    background: #25D366; /* WhatsApp Green */
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    background: #20bd5a;
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Logo image */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Brand name beside logo */
.logo-text {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
    white-space: nowrap;
}

.logo-apex {
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 60%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}


.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
}

/* Base sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 50px;
    padding-bottom: 10px;
}

/* Hero */
.hero {
    position: relative;
    padding: 140px 0 100px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 40%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(9, 9, 11, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subheadline {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.trust-indicators {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-indicators svg {
    color: #10b981;
}

/* Hero Visuals */
.hero-visual {
    flex: 1;
    position: relative;
    height: 440px;
}

.glass-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.mockup {
    width: 100%;
    height: 380px;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.mockup-header .dots {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3f3f46;
}
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.mockup-line {
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-bottom: 12px;
    width: 60%;
}
.mockup-line.short { width: 40%; margin-bottom: 30px;}

.mockup-box {
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 20px;
}

.mockup-columns {
    display: flex;
    gap: 15px;
}
.mockup-columns .col {
    flex: 1;
    height: 80px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-card h4 { font-size: 13px; color: var(--text-muted); font-weight: 500;}
.floating-card p { font-size: 18px; font-weight: 700; color: #fff;}
.floating-card .icon { font-size: 24px; }

.floating-card.c1 { top: 40px; right: -20px; }
.floating-card.c2 { bottom: 60px; left: -40px; animation-delay: 2s; }

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

@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero::before { left: 50%; transform: translateX(-50%); }
    .hero h1 { font-size: 44px; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .trust-indicators { justify-content: center; flex-wrap: wrap; }
    .hero-visual { width: 100%; height: auto; padding: 40px 0; }
    .mockup { transform: none; }
    .floating-card.c1 { right: 0; }
    .floating-card.c2 { left: 0; }
}

/* Problem Solution */
.problem-solution h2 { text-align: center; }
.pain-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.pain-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
}
.pain-icon { font-size: 32px; margin-bottom: 15px; }
.pain-card h3 { font-size: 18px; font-weight: 600; }

.solution-transition {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
}
.solution-transition h3 { font-size: 28px; margin-bottom: 12px; color: #fff;}
.solution-transition p { color: var(--text-muted); font-size: 18px; }

/* Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }
.feature-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.feature-card h4 { font-size: 18px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* Industries */
.industries-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.industry-tag {
    padding: 12px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}
.industry-tag:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Pricing */
.subtitle-text { color: var(--text-muted); margin-top: -40px; margin-bottom: 50px; }
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card h3 { font-size: 20px; margin-bottom: 16px; font-weight: 600;}
.price { font-size: 48px; font-weight: 800; margin-bottom: 30px; letter-spacing: -2px; }
.price span { font-size: 24px; vertical-align: top; margin-top: 10px; display: inline-block; color: var(--text-muted);}
.price-features { list-style: none; margin-bottom: 40px; flex: 1; }
.price-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 15px;}
.price-features li svg { color: var(--primary); }

.price-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), var(--surface));
}
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 900px) { .price-card.popular { transform: none; } }

/* Process */
.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--surface-hover);
    z-index: 1;
}
.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}
.step-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px auto;
}
.step h4 { font-size: 16px; font-weight: 500; }
@media (max-width: 768px) {
    .timeline { flex-direction: column; gap: 40px; }
    .timeline::before { display: none; }
}

/* About & Team */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.about-text p { font-size: 18px; color: var(--text-muted); }
.team-title { font-size: 24px; margin-bottom: 24px; }
.team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.team-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
}
.avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 16px auto;
}
.team-card h4 { font-size: 18px; margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-size: 14px; font-weight: 500; margin-bottom: 8px;}
.team-card .desc { color: var(--text-muted); font-size: 13px; }
@media (max-width: 768px) {
    .about-content { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimo-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.stars { color: #f59e0b; font-size: 20px; margin-bottom: 16px; letter-spacing: 2px;}
.testimo-card p { font-size: 16px; color: #fff; margin-bottom: 20px; font-style: italic; }
.author { color: var(--text-muted); font-size: 14px; font-weight: 500;}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}
.faq-question .icon { font-size: 24px; color: var(--primary); transition: transform 0.3s; }
.faq-question.active .icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p { padding-bottom: 20px; color: var(--text-muted); font-size: 15px;}

/* Contact Form */
.contact-container {
    max-width: 600px;
}
.contact-box {
    background: var(--surface);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
}
.contact-box p { color: var(--text-muted); margin-bottom: 30px; }
.lead-form { text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* Instagram Section */
.instagram-section { padding: 60px 0; }

.instagram-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 36px 48px;
    border-radius: 24px;
    background: linear-gradient(135deg,
        rgba(131, 58, 180, 0.18) 0%,
        rgba(193, 53, 132, 0.18) 40%,
        rgba(253, 121, 55, 0.18) 70%,
        rgba(252, 175, 69, 0.12) 100%);
    border: 1px solid rgba(193, 53, 132, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(193, 53, 132, 0.2);
}

.insta-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(253, 121, 55, 0.2) 0%, rgba(193, 53, 132, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.insta-icon-wrap {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #833ab4, #c13584, #fd7950, #fcaf45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(193, 53, 132, 0.4);
}

.insta-text { flex: 1; }
.insta-text h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.insta-text p  { color: var(--text-muted); font-size: 15px; margin: 0; }

.insta-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #833ab4, #c13584, #fd7950);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(193, 53, 132, 0.4);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.insta-btn:hover {
    opacity: 0.9;
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(193, 53, 132, 0.5);
}

@media (max-width: 768px) {
    .instagram-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 20px;
    }
    .insta-glow { display: none; }
}

/* Final CTA */
.final-cta {
    background: linear-gradient(180deg, var(--bg), rgba(99, 102, 241, 0.05));
    border-top: 1px solid var(--border);
}
.final-cta h2 { font-size: 40px; margin-bottom: 16px; }
.final-cta p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }
.cta-actions { display: flex; justify-content: center; gap: 20px; }

@media (max-width: 600px) {
    .cta-actions { flex-direction: column; }
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 70px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    text-decoration: none;
    margin-bottom: 4px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.admin-link { opacity: 0.5; font-size: 12px !important; }
.admin-link:hover { opacity: 1; color: var(--primary) !important; }

/* Contact items with icon */
.footer-contact-item {
    display: flex !important;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px !important;
    transition: color 0.2s;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--primary); }
.footer-contact-item:hover { color: #fff !important; }
.footer-contact-item:hover svg { color: #fff; }

.footer-wa { color: #25D366 !important; }
.footer-wa svg { color: #25D366 !important; }
.footer-wa:hover { color: #20bd5a !important; }

/* Copyright bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer-brand p { max-width: 100%; }
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}
.floating-wa:hover {
    transform: scale(1.1);
}

/* Chatbot UI */
.chatbot-wrapper {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    order: 2; /* button appears below the window */
}
.chatbot-toggle:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}
.chatbot-window {
    width: 340px;
    height: 460px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    order: 1; /* window appears above the button */
    /* Hidden state by default */
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.chatbot-window.chat-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.chat-header {
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.chat-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}
.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.bot-msg {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.user-msg {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}
.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: var(--bg);
}
.chat-input-area input {
    flex: 1;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
}
.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}
.chat-input-area button {
    background: var(--primary);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.chat-input-area button:hover {
    background: var(--primary-hover);
}

/* Typing indicator: three bouncing dots */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
}
.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
    animation: dot-bounce 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* font for chat input */
.chat-input-area input { font-family: var(--font); }


/* ============================================
   PREMIUM ANIMATED VISUAL IDENTITY
   ============================================ */

/* --- Global Animated Background --- */
.global-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#bg-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* --- Gradient Aura Layer --- */
.bg-gradient-aura {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(59,130,246,0.13) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 80%, rgba(139,92,246,0.13) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 55% 45%, rgba(6,182,212,0.06) 0%, transparent 50%);
    animation: aura-shift 12s ease-in-out infinite alternate;
}

@keyframes aura-shift {
    0%   { background-position: 20% 20%, 85% 80%, 55% 45%; opacity: 0.8; }
    50%  { opacity: 1; filter: blur(2px); }
    100% { filter: blur(0); opacity: 0.9; }
}

/* --- Digital Grid Mesh --- */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-shimmer 8s ease-in-out infinite alternate;
}

@keyframes grid-shimmer {
    0%   { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- Floating Orbs --- */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 22s;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
    bottom: 5%;
    right: -5%;
    animation-duration: 28s;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6,182,212,0.10), transparent 70%);
    top: 40%;
    left: 55%;
    animation-duration: 18s;
    animation-delay: -4s;
}

@keyframes orb-float {
    0%   { transform: translate(0px, 0px) scale(1); }
    25%  { transform: translate(30px, -40px) scale(1.05); }
    50%  { transform: translate(-20px, 20px) scale(0.95); }
    75%  { transform: translate(40px, 30px) scale(1.02); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* --- Breathing Hero Glow --- */
.hero::before {
    animation: breathing-glow 5s ease-in-out infinite alternate !important;
}

@keyframes breathing-glow {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* --- Logo Spotlight Halo --- */
.logo img {
    position: relative;
    filter: drop-shadow(0 0 10px rgba(59,130,246,0.6)) drop-shadow(0 0 25px rgba(139,92,246,0.4));
    animation: logo-halo 4s ease-in-out infinite alternate;
}

@keyframes logo-halo {
    0%   { filter: drop-shadow(0 0 8px rgba(59,130,246,0.5)) drop-shadow(0 0 20px rgba(139,92,246,0.3)); }
    100% { filter: drop-shadow(0 0 16px rgba(59,130,246,0.9)) drop-shadow(0 0 40px rgba(139,92,246,0.6)); }
}

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

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Enhanced Feature Cards --- */
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 0 30px rgba(59,130,246,0.12), 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Enhanced Pricing Cards --- */
.price-card {
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.price-card:hover {
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 0 40px rgba(59,130,246,0.15), 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(-4px);
}

.price-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(59,130,246,0.2);
}

/* --- Enhanced Glass Cards --- */
.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

/* --- Refined Section Backgrounds --- */
.why-us {
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59,130,246,0.04) 0%, transparent 70%);
}

.pricing {
    background: radial-gradient(ellipse 80% 60% at 30% 50%, rgba(139,92,246,0.06) 0%, transparent 70%);
}

.final-cta {
    background: linear-gradient(180deg, var(--bg), rgba(59,130,246,0.06));
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(59,130,246,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Reduced Motion on Mobile --- */
@media (max-width: 768px) {
    .orb-1, .orb-2, .orb-3 {
        filter: blur(100px);
        opacity: 0.6;
    }
    .bg-grid {
        opacity: 0.4;
    }
}

@media (max-width: 400px) {
    .chatbot-window {
        width: calc(100vw - 48px);
    }
}

/* ============================================================
   PREMIUM ANIMATION SYSTEM — Apex Web Loom
   ============================================================ */

/* ── 1. CORE KEYFRAMES ── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes underline-draw {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes wa-pulse-ring {
    0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.45), 0 4px 20px rgba(37,211,102,0.4); }
    60%  { box-shadow: 0 0 0 14px rgba(37,211,102,0),   0 4px 20px rgba(37,211,102,0.4); }
    100% { box-shadow: 0 0 0 0   rgba(37,211,102,0),   0 4px 20px rgba(37,211,102,0.4); }
}

@keyframes bot-bounce-in {
    0%   { opacity:0; transform: scale(0) translateY(30px); }
    55%  { transform: scale(1.14) translateY(-6px); }
    75%  { transform: scale(0.95) translateY(3px); }
    100% { opacity:1; transform: scale(1) translateY(0); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.35); }
    50%       { box-shadow: 0 0 40px rgba(139,92,246,0.55); }
}

@keyframes cta-breathe {
    0%, 100% { opacity: 0.6; transform: scale(1);    }
    50%       { opacity: 1;   transform: scale(1.08); }
}

/* ── 2. HERO LOAD-IN ANIMATIONS ── */

.load-anim {
    opacity: 0;
    transform: translateY(26px);
    animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
    animation-delay: var(--load-delay, 0s);
}

.load-anim-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeRight 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
    animation-delay: var(--load-delay, 0s);
}

/* ── 3. GRADIENT TEXT ── */

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── 4. SCROLL REVEAL (enhanced stagger) ── */

/* Override existing reveal so stagger-children can use their own delay */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger child variants (set via JS) */
.stagger-child {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
    transition-delay: var(--stagger-delay, 0s);
}
.stagger-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── 5. BUTTON ENHANCEMENTS ── */

.btn {
    transition: transform 0.22s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.22s ease,
                opacity 0.22s ease,
                background 0.22s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.97) !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
}

/* ── 6. CARD HOVER SYSTEM ── */

.feature-card {
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-7px) scale(1.01);
    border-color: rgba(99,102,241,0.4);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.15),
                0 20px 50px rgba(0,0,0,0.4),
                0 0 40px rgba(59,130,246,0.1);
}

.team-card {
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(139,92,246,0.12);
}

.testimo-card {
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.testimo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 25px rgba(59,130,246,0.08);
}

/* ── 7. PRICING CARD ENHANCEMENTS ── */

.price-card {
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
.price-card:hover {
    transform: translateY(-6px);
}
.price-card.popular {
    animation: glow-pulse 3.5s ease-in-out infinite;
}
.price-card.popular:hover {
    transform: translateY(-8px) scale(1.02);
    animation: none;
    box-shadow: 0 0 60px rgba(59,130,246,0.3), 0 20px 50px rgba(0,0,0,0.45);
}

/* ── 8. WHATSAPP FLOATING BUTTON PULSE ── */

.floating-wa {
    animation: wa-pulse-ring 3s ease-out infinite;
    transition: transform 0.25s ease;
}
.floating-wa:hover {
    transform: scale(1.12);
    animation: none;
    box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}

/* ── 9. CHATBOT BUTTON BOUNCE + GLOW ── */

.chatbot-toggle {
    opacity: 0;
    animation: bot-bounce-in 0.7s cubic-bezier(0.22,1,0.36,1) 1.4s forwards,
               glow-pulse 3s ease-in-out 2.2s infinite;
}
/* Once hovered, stop pulsing and just scale */
.chatbot-toggle:hover {
    animation: none;
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(59,130,246,0.6);
}

/* ── 10. FINAL CTA AMBIENT GLOW ── */

.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 50%,
        rgba(99,102,241,0.12) 0%, transparent 70%);
    border-radius: inherit;
    animation: cta-breathe 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.final-cta > * { position: relative; z-index: 1; }

/* ── 11. UNDERLINE DRAW-IN for section headings ── */

.section-title.underline {
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}
.section-title.underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.visible .section-title.underline::after,
.section-title.underline.visible::after {
    width: 100%;
}

/* ── 12. NAVBAR REFINED TRANSITION ── */

.navbar {
    transition: background 0.35s ease,
                backdrop-filter 0.35s ease,
                padding 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}
.navbar.scrolled {
    background: rgba(10,10,15,0.82);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 30px rgba(0,0,0,0.4);
    padding: 12px 0;
}

/* ── 13. HERO FLOATING CARDS smoother float ── */

@keyframes float-smooth {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}
.floating-card {
    animation: float-smooth 7s ease-in-out infinite;
}
.floating-card.c2 { animation-delay: 2.5s; }

/* ── 14. PAIN CARDS entrance hover ── */

.pain-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pain-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239,68,68,0.25);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* ── 15. INDUSTRY TAG HOVER ── */

.industry-tag {
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
}
.industry-tag:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ── 16. STEP ICON hover glow ── */

.step-icon {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.step:hover .step-icon {
    box-shadow: 0 0 20px rgba(59,130,246,0.5);
    transform: scale(1.1);
}

/* ── 17. GLASS CARD shimmer hover ── */

.glass-card {
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.glass-card:hover {
    box-shadow: 0 0 50px rgba(59,130,246,0.12), 0 20px 60px rgba(0,0,0,0.5);
    border-color: rgba(99,102,241,0.2);
}

/* ── 18. FOOTER FADE IN ── */

.footer {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
}

/* ── 19. REDUCE MOTION (accessibility) ── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
