:root {
    /* Palette: Dark Navy Background, Deep Orange Accents, Slate Text */
    --bg-deep: #0a0f1e;
    --bg-surface: #0f172a;
    --primary: #ff7a00;
    --primary-glow: rgba(255, 122, 0, 0.5);
    --primary-hover: #e66e00;
    --accent: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --slate: #475569;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(15, 23, 42, 0.7);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
}

section { padding: 6rem 0; }

.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
}

/* --- Typography --- */
h1, h2, h3 { font-weight: 800; line-height: 1.1; }
.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 0.75rem;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--primary-glow);
    background: var(--primary-hover);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(255, 122, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
}

.hero-content { flex: 1; z-index: 2; }
.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 2rem;
    box-shadow: var(--shadow-premium);
    animation: float 6s ease-in-out infinite;
    border: 1px solid var(--border);
}

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

.hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 1.5rem; }
.hero p { font-size: clamp(1rem, 3vw, 1.25rem); color: var(--text-muted); margin-bottom: 3rem; max-width: 550px; }

@media (max-width: 768px) {
    .hero { padding-top: 2rem; }
    .hero h1 { line-height: 1.2; }
    .hero p { margin-bottom: 2rem; }
    .hero .btn { width: 100%; }
    .hero div[style*="display: flex"] { flex-direction: column; width: 100%; }
}

/* --- Ads Simulation --- */
.ads-section { background: rgba(255, 255, 255, 0.02); }
.ad-mockup {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    color: #202124;
    text-align: left;
    max-width: 650px;
    width: 100%;
    margin: 2rem auto;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border: 1px solid #dfe1e5;
}

@media (max-width: 480px) {
    .ad-mockup { padding: 1rem; }
    .ad-title { font-size: 18px; }
}
.ad-label { border: 1px solid #006621; color: #006621; font-size: 11px; padding: 0 4px; border-radius: 2px; margin-right: 8px; font-weight: bold; }
.ad-url { font-size: 14px; color: #202124; }
.ad-title { color: #1a0dab; font-size: 20px; display: block; margin: 4px 0; text-decoration: none; }
.ad-title:hover { text-decoration: underline; }
.ad-desc { font-size: 14px; color: #4d5156; margin-top: 4px; }

/* --- Dashboard --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.dash-card { padding: 2.5rem; position: relative; overflow: hidden; }
.dash-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
}

.dash-label { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.dash-value { font-size: 3.5rem; font-weight: 800; color: var(--primary); margin: 1rem 0; font-variant-numeric: tabular-nums; }
.dash-trend { display: flex; align-items: center; gap: 0.5rem; color: #10b981; font-weight: 600; }

.leads-feed { grid-column: span 3; margin-top: 1rem; }
.lead-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    animation: slideIn 0.5s ease-out;
}
.lead-row:last-child { border-bottom: none; }
.lead-badge { background: rgba(56, 189, 248, 0.1); color: var(--accent); padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 700; }
.lead-badge.qualified { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* --- Chatbot Widget --- */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    max-width: calc(100vw - 2rem);
    height: 550px;
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: scale(0.8) translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

@media (max-width: 500px) {
    .chat-widget {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    .chat-header { border-radius: 0; }
}

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

.chat-header {
    padding: 1.5rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    border-radius: 1.5rem 1.5rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.5);
}

.chat-bubble {
    max-width: 80%;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    position: relative;
    animation: popIn 0.3s ease-out;
}

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

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

.chat-input-area {
    padding: 1.5rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-radius: 0 0 1.5rem 1.5rem;
}

.choice-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 2rem;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.8rem;
    margin: 0.25rem;
    transition: var(--transition);
}

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

.chat-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 15px 30px var(--primary-glow);
    z-index: 999;
    transition: var(--transition);
}

@media (max-width: 480px) {
    .chat-toggle { bottom: 1rem; right: 1rem; width: 3.5rem; height: 3.5rem; }
    .chat-toggle svg { width: 24; height: 24; }
    .chat-bubble { max-width: 90%; font-size: 0.85rem; }
}

.chat-toggle:hover { transform: scale(1.1) rotate(5deg); }

/* --- Incoming Call Popup --- */
.call-modal {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 350px;
    max-width: calc(100vw - 2rem);
    padding: 1.5rem;
    background: #1e293b;
    border: 2px solid var(--primary);
    border-radius: 1.5rem;
    z-index: 1100;
    display: none;
    box-shadow: 0 0 50px var(--primary-glow);
    animation: ringing 1s infinite alternate;
}

@media (max-width: 480px) {
    .call-modal { top: 1rem; right: 1rem; padding: 1rem; }
    .call-modal div[style*="font-weight: 800"] { font-size: 0.9rem; }
}

@keyframes ringing {
    from { transform: scale(1); }
    to { transform: scale(1.03); filter: brightness(1.2); }
}

/* --- Animations --- */
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.typing-dots { display: flex; gap: 4px; padding: 5px; }
.dot { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: blink 1.4s infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 4rem; }
    .hero-content { order: 2; width: 100%; }
    .hero-image-wrapper { order: 1; margin-bottom: 3rem; width: 100%; }
    .hero-image { max-width: 400px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .leads-feed { grid-column: span 1; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    nav .container { flex-direction: column; gap: 1rem; }
    nav div[style*="font-weight: 800"] { font-size: 1.2rem; }
    .dash-value { font-size: 2.5rem; }
}
.footer-credit a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

.footer-credit a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.footer-credit a:hover::after {
    width: 100%;
}
