/* ========== CSS VARIABLES ========== */
:root {
    --bg-body: #0A0A0F;
    --bg-card: #111118;
    --bg-card-hover: #1A1A26;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B3C7;
    --text-muted: #6B6F82;
    --gradient-1: linear-gradient(135deg, #6C5CE7 0%, #00CECE 100%);
    --gradient-2: linear-gradient(135deg, #FF6B6B 0%, #FFA500 100%);
    --gradient-cta: linear-gradient(135deg, #6C5CE7 0%, #8B5CF6 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --whatsapp-green: #25D366;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-cta);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.btn--outline {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: transparent;
}
.btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn--lg {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn--whatsapp {
    background: var(--whatsapp-green);
    color: #fff;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    font-weight: 600;
}
.btn--whatsapp:hover {
    background: #1da851;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}
.header__logo-icon {
    color: #6C5CE7;
    font-size: 1.8rem;
}
.header__logo-text span {
    color: #6C5CE7;
}

.header__nav .header__menu {
    display: flex;
    list-style: none;
    gap: 32px;
}
.header__link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.header__link:hover,
.header__link.active {
    color: #fff;
}
.header__link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Toggle */
.header__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.header__toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.header__toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.header__toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.header__toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 998;
}
.header__overlay.active {
    opacity: 1;
    visibility: visible;
}

.header__mobile-cta {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .header__btn-desktop {
        display: none;
    }
    .header__toggle {
        display: flex;
    }
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: right 0.4s ease;
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }
    .header__nav.active {
        right: 0;
    }
    .header__nav .header__menu {
        flex-direction: column;
        gap: 24px;
    }
    .header__mobile-cta {
        display: block;
        margin-top: 30px;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(0, 206, 206, 0.1) 0%, transparent 50%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s infinite ease-in-out;
}
.hero__orb--1 { width: 400px; height: 400px; background: #6C5CE7; top: -100px; left: -10%; }
.hero__orb--2 { width: 300px; height: 300px; background: #00CECE; bottom: 10%; right: -5%; animation-delay: -3s; }
.hero__orb--3 { width: 250px; height: 250px; background: #FF6B6B; top: 30%; left: 60%; animation-delay: -6s; }
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}
.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #B0B3FF;
    margin-bottom: 28px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #6C5CE7;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(108,92,231,0.7);} 70%{box-shadow:0 0 0 10px rgba(108,92,231,0);} 100%{box-shadow:0 0 0 0 rgba(108,92,231,0);} }
.hero__title { font-size: 3.8rem; margin-bottom: 24px; }
.hero__subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 40px; }
.hero__cta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 50px; }
.hero__stats { display: flex; gap: 40px; }
.hero__stat-num { font-size: 2rem; font-weight: 700; display: block; }
.hero__stat-label { font-size: 0.9rem; color: var(--text-muted); }
.hero__visual { position: relative; }
.hero__dashboard-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    animation: float-slow 6s infinite ease-in-out;
}
@keyframes float-slow { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-15px);} }
.mockup__header { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #1A1A26; border-radius: 12px; margin-bottom: 12px; }
.mockup__dots span { display: inline-block; width: 10px; height: 10px; background: #6B6F82; border-radius: 50%; margin-right: 4px; }
.mockup__title { font-size: 0.8rem; color: var(--text-muted); }
.mockup__body { display: flex; gap: 12px; }
.mockup__sidebar { display: flex; flex-direction: column; gap: 10px; width: 40px; }
.mockup__icon { width: 36px; height: 36px; background: #1A1A26; border-radius: 8px; }
.mockup__icon.active { background: #6C5CE7; }
.mockup__main { flex:1; display: flex; flex-direction: column; gap: 10px; }
.mockup__chat-bubble { height: 12px; background: #2A2A3A; border-radius: 6px; width: 80%; }
.mockup__chat-bubble--out { background: #6C5CE7; width: 50%; margin-left: auto; }
.mockup__chat-bubble.short { width: 60%; }
.mockup__chart { height: 40px; background: linear-gradient(to right, #6C5CE7, #00CECE); border-radius: 6px; margin-top: 8px; opacity: 0.6; }
.hero__floating-card {
    position: absolute;
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float-card 5s infinite ease-in-out;
}
.hero__floating-card--1 { top: 10%; right: -20px; animation-delay: 0s; }
.hero__floating-card--2 { bottom: 20%; left: -30px; animation-delay: -2s; }
.hero__floating-card--3 { top: 50%; right: -40px; animation-delay: -4s; }
@keyframes float-card { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }

/* Responsive Hero */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero__title { font-size: 2.6rem; }
    .hero__cta { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__visual { max-width: 400px; margin: 0 auto; }
}

/* ========== TRUSTED MARQUEE ========== */
.trusted { padding: 50px 0; border-bottom: 1px solid var(--border-color); }
.trusted__label { text-align: center; color: var(--text-muted); margin-bottom: 30px; font-size: 0.9rem; }
.trusted__marquee { overflow: hidden; }
.trusted__track { display: flex; gap: 60px; animation: marquee 20s linear infinite; width: max-content; }
.trusted__track span { font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,0.2); white-space: nowrap; }
@keyframes marquee { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ========== FEATURES ========== */
.features { padding: 100px 0; }
.section__header { text-align: center; margin-bottom: 60px; }
.section__badge { background: rgba(108,92,231,0.1); color: #B0B3FF; padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; display: inline-block; margin-bottom: 16px; }
.section__header h2 { font-size: 2.8rem; margin-bottom: 16px; }
.section__header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(108,92,231,0.5); background: var(--bg-card-hover); }
.feature-card__icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.feature-card__icon--whatsapp { background: rgba(37,211,102,0.15); color: #25D366; }
.feature-card__icon--instagram { background: rgba(225,48,108,0.15); color: #E1306C; }
.feature-card__icon--facebook { background: rgba(24,119,242,0.15); color: #1877F2; }
.feature-card__icon--sms { background: rgba(255,165,0,0.15); color: #FFA500; }
.feature-card__icon--email { background: rgba(0,206,206,0.15); color: #00CECE; }
.feature-card__icon--ai { background: rgba(108,92,231,0.15); color: #6C5CE7; }
.feature-card__icon--crm { background: rgba(255,107,107,0.15); color: #FF6B6B; }
.feature-card__icon--inbox { background: rgba(46,213,115,0.15); color: #2ED573; }
.feature-card__icon--workflow { background: rgba(240,147,43,0.15); color: #F0932B; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }
.feature-card__link { color: #6C5CE7; font-weight: 600; font-size: 0.9rem; }
.feature-card__glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(108,92,231,0.2) 0%, transparent 70%);
    top: -20px;
    right: -20px;
    opacity: 0;
    transition: 0.4s;
}
.feature-card:hover .feature-card__glow { opacity: 1; }

/* ========== DEMO SECTION ========== */
.demo { padding: 100px 0; background: rgba(108,92,231,0.03); }
.demo__wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.demo__content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.demo__list { list-style: none; margin: 25px 0 30px; }
.demo__list li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); margin-bottom: 12px; }
.demo__list i { color: #6C5CE7; }
.demo__visual { position: relative; }
.demo__video-placeholder {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 400" fill="%23111118"><rect width="600" height="400"/><text x="300" y="200" fill="%236B6F82" font-size="20" text-anchor="middle">Dashboard Preview</text></svg>') center/cover;
    border-radius: 20px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
}
.demo__play-btn {
    width: 70px; height: 70px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #6C5CE7; cursor: pointer; z-index: 1;
}
.demo__pulse-ring {
    position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring { 0%{transform:scale(0.8); opacity:1;} 100%{transform:scale(1.4); opacity:0;} }
@media (max-width: 768px) { .demo__wrapper { grid-template-columns: 1fr; } }

/* ========== STATS ========== */
.stats-section { padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item__icon { font-size: 2rem; margin-bottom: 12px; color: #6C5CE7; }
.stat-item__num { font-size: 2.8rem; font-weight: 800; }
.stat-item__label { color: var(--text-muted); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========== TESTIMONIALS ========== */
.testimonials { padding: 100px 0; }
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 30px; }
.testimonial-card__stars { color: #FFD700; margin-bottom: 16px; }
.testimonial-card p { color: var(--text-secondary); margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.testimonial-card__avatar { width: 45px; height: 45px; background: var(--gradient-1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ========== CTA ========== */
.cta-section { padding: 100px 0; position: relative; overflow: hidden; }
.cta-section__bg { position: absolute; inset: 0; }
.cta-section__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.cta-section__orb--1 { width: 500px; height: 500px; background: #6C5CE7; top: -150px; left: -10%; }
.cta-section__orb--2 { width: 400px; height: 400px; background: #00CECE; bottom: -100px; right: -5%; }
.cta-section__content { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-section__content h2 { font-size: 2.8rem; margin-bottom: 20px; }
.cta-section__content p { color: var(--text-secondary); margin-bottom: 30px; }
.cta-section__form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto 16px; }
.cta-section__form input { flex: 1; padding: 14px 20px; border-radius: 50px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: #fff; outline: none; }
.cta-section__note { font-size: 0.85rem; color: var(--text-muted); }

/* ========== FOOTER ========== */
.footer { background: #0A0A0F; border-top: 1px solid var(--border-color); padding: 70px 0 30px; position: relative; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #fff; margin-bottom: 16px; }
.footer__desc { color: var(--text-muted); margin-bottom: 20px; }
.footer__social { display: flex; gap: 15px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #fff; transition: 0.3s; }
.footer__social a:hover { background: #6C5CE7; }
.footer__col h4 { margin-bottom: 20px; color: #fff; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 12px; }
.footer__col ul li a { color: var(--text-muted); font-size: 0.9rem; transition: 0.3s; }
.footer__col ul li a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--border-color); padding-top: 25px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ========== WHATSAPP WIDGET ========== */
.whatsapp-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.whatsapp-widget__btn {
    width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; border: none; font-size: 28px; cursor: pointer; box-shadow: 0 8px 25px rgba(37,211,102,0.4); transition: transform 0.3s; display: flex; align-items: center; justify-content: center;
}
.whatsapp-widget__btn:hover { transform: scale(1.1); }
.whatsapp-widget__popup {
    position: absolute; bottom: 80px; right: 0; width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: 0.3s; color: #333;
}
.whatsapp-widget__popup.active { opacity: 1; visibility: visible; transform: translateY(0); }
.whatsapp-widget__header { background: #075E54; color: #fff; padding: 16px; display: flex; align-items: center; gap: 12px; position: relative; }
.whatsapp-widget__header i { font-size: 2rem; }
.whatsapp-widget__header strong { display: block; }
.whatsapp-widget__header span { font-size: 0.75rem; opacity: 0.8; }
.whatsapp-widget__close { background: none; border: none; color: #fff; font-size: 1.8rem; position: absolute; top: 8px; right: 12px; cursor: pointer; }
.whatsapp-widget__body { padding: 20px; }
.whatsapp-widget__body p { margin-bottom: 10px; }

@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .whatsapp-widget { bottom: 20px; right: 20px; }
}