/* --- CSS Variables & Reset --- */
:root {
    --bg-color: #030305;
    --bg-darker: #010102;
    --bg-panel: rgba(20, 20, 25, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --primary: #8a2be2; /* Deep Violet */
    --primary-glow: rgba(138, 43, 226, 0.5);
    --secondary: #00e5ff; /* Electric Cyan */
    --secondary-glow: rgba(0, 229, 255, 0.4);
    --tertiary: #f0f;
    
    --text-white: #ffffff;
    --text-gray-100: #f3f4f6;
    --text-gray-300: #d1d5db;
    --text-gray-400: #9ca3af;
    --text-gray-500: #6b7280;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography Utility */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    color: var(--text-white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input { font-family: inherit; }

/* Structural/Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.max-w-lg { max-width: 1000px; margin: 0 auto; }
.max-w-sm { max-width: 800px; margin: 0 auto; }

.section { padding: 6rem 0; position: relative; z-index: 10; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1px; }
.section-title.center { text-align: center; }
.section-subtitle { font-size: 1.25rem; color: var(--text-gray-400); }
.kicker { display: block; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondary); margin-bottom: 0.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.bg-darker { background-color: var(--bg-darker); }

/* SVG Icons */
.icon-xs { width: 0.75rem; height: 0.75rem; }
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-md { width: 2rem; height: 2rem; }

/* --- Ambient Light & Glows --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}
.glow-primary {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
}
.glow-secondary {
    top: 20%; right: -10%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
}

/* --- Glass Panels --- */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: var(--transition-base);
}

.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition-base);
}

.hover-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: white;
    box-shadow: 0 4px 15px rgba(138,43,226,0.4);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138,43,226,0.6);
}
.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}
.btn-white {
    background: var(--text-white);
    color: var(--bg-darker);
    border: none;
}
.btn-white:hover {
    background: var(--text-gray-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}
.btn-full { width: 100%; }
.btn-large { padding: 1.25rem 3rem; font-size: 1.125rem; border-radius: 3rem;}

/* Shine Effect for Primary Buttons */
.p-shine span { position: relative; z-index: 2; }
.p-shine::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: var(--transition-slow);
    z-index: 1;
}
.p-shine:hover::before { left: 200%; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: #fff;
    letter-spacing: -0.5px;
}
.logo-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: inline-block;}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link { color: var(--text-gray-300); font-weight: 500; font-size: 0.95rem; transition: var(--transition-fast); }
.nav-link:hover { color: var(--text-white); }

/* Hamburger */
.hamburger { background: none; border: none; display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1000; padding: 10px;}
.hamburger span { width: 24px; height: 2px; background: white; transition: var(--transition-base); transform-origin: left center;}
.hamburger.active span:nth-child(1) { transform: rotate(45deg); width: 26px; }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); width: 26px; }

.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(3, 3, 5, 0.98);
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    z-index: 900;
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition-base);
}
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-link { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: white; }

.desktop-only { display: flex; }
.mobile-only { display: none; }
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: flex; }
}


/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 6rem;
    position: relative; z-index: 10;
}
.hero-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; margin-top: 4rem;}
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 2rem;
    background: rgba(138, 43, 226, 0.1); border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--primary); font-size: 0.875rem; font-weight: 500;
    margin-bottom: 2rem;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
    animation: pulse-primary 2s infinite;
}
@keyframes pulse-primary {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(138, 43, 226, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(138, 43, 226, 0); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.05; letter-spacing: -2px; font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 500px; color: var(--text-gray-400); }
@media (max-width: 900px) { .hero-subtitle { margin-left: auto; margin-right: auto; } }

.hero-actions { display: flex; gap: 1rem; align-items: center; }
@media (max-width: 600px) { .hero-actions { flex-direction: column; width: 100%;} .hero-actions .btn {width: 100%;}}

/* Hero Visual 3D */
.hero-visual { perspective: 1000px; display: flex; align-items: center; justify-content: center; }
.visual-card {
    padding: 1.5rem;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -20px 20px 60px rgba(138, 43, 226, 0.15);
    max-width: 440px;
    width: 100%;
}
.visual-card:hover { transform: rotateY(0) rotateX(0); }
.visual-header { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1rem;}
.icon-badge {
    width: 3rem; height: 3rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: white; font-size: 1.25rem; font-family: var(--font-heading);
}
.badge-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 0 15px var(--primary-glow); }
.visual-title { font-size: 1.25rem; margin-bottom: 0.1rem; }
.status-online { font-size: 0.75rem; color: #4ade80; display: flex; align-items: center; gap: 0.25rem; font-weight: 500;}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse-green 2s infinite; }
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.chat-container { display: flex; flex-direction: column; gap: 1rem; }
.chat-bubble { display: flex; gap: 0.75rem; align-items: flex-start;}
.ai-bubble { flex-direction: row-reverse; }
.avatar { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; flex-shrink: 0; color: white;}
.avatar-user { background: #374151; }
.avatar-ai { background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 0 10px var(--primary-glow); }
.message { padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.875rem; line-height: 1.5; border: 1px solid var(--border-color);}
.user-bubble .message { background: rgba(255,255,255,0.05); border-top-left-radius: 0; color: var(--text-gray-300); }
.ai-bubble .message { background: rgba(138,43,226,0.2); border-top-right-radius: 0; color: #fff; border-color: rgba(138,43,226,0.4); }
.chat-event { display: flex; justify-content: center; margin-top: 0.5rem; }
.event-pill { font-size: 0.75rem; padding: 0.4rem 0.8rem; border-radius: 1rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 0.5rem; color: var(--text-gray-400); }
.event-pill svg { color: var(--secondary); }


/* --- Social Proof Ticker --- */
.social-proof { padding: 3rem 0; background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; overflow: hidden; position: relative; z-index: 10; }
.social-proof-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-gray-500); margin-bottom: 2rem; }
.ticker-wrapper { display: flex; width: 100%; position: relative; }
.ticker-wrapper::before, .ticker-wrapper::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;}
.ticker-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-color), transparent); }
.ticker-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-color), transparent); }
.ticker-track { display: flex; animation: ticker 25s linear infinite; white-space: nowrap; width: 200%;}
.ticker-track span { flex: 1; text-align: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,0.3); padding: 0 2rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Calculator Section --- */
.calc-section {}
.calc-panel { padding: 3rem; position: relative; overflow: hidden; border-color: rgba(138, 43, 226, 0.3);}
.glow-calc { top: -20%; right: -20%; width: 50%; height: 50%; background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%); z-index: 0; opacity: 0.3; transition: var(--transition-slow);}
.calc-panel:hover .glow-calc { opacity: 0.6; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; position: relative; z-index: 1; }
@media (max-width: 768px) { .calc-grid { grid-template-columns: 1fr; gap: 2rem;} .calc-panel { padding: 1.5rem; }}

.input-group { margin-bottom: 2.5rem; }
.input-header { display: flex; justify-content: space-between; margin-bottom: 1rem; align-items: end;}
.input-header label { font-weight: 600; color: var(--text-gray-300); font-size: 0.95rem;}
.input-header span { font-weight: 800; font-size: 1.25rem; font-family: var(--font-heading);}
.val-primary { color: var(--primary); }
.val-secondary { color: var(--secondary); }
.val-white { color: #fff; }

/* Range Sliders */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: var(--text-white); cursor: pointer; margin-top: -8px; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: rgba(255,255,255,0.1); border-radius: 2px;}
input[type=range]:focus { outline: none; }
/* Custom colored tracks */
#missedCalls::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--primary), rgba(255,255,255,0.1)); }
#avgValue::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--secondary), rgba(255,255,255,0.1)); }
#closeRate::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--tertiary), rgba(255,255,255,0.1)); }

.calc-result-box { background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); border-radius: 1rem; padding: 2.5rem; text-align: center; display: flex; flex-direction: column; justify-content: center; box-shadow: inset 0 0 20px rgba(0,0,0,0.5);}
.result-label { font-size: 1.125rem; color: var(--text-gray-400); font-weight: 500; margin-bottom: 0.5rem; }
.result-value { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900; color: #ef4444; margin-bottom: 0.5rem; text-shadow: 0 0 20px rgba(239, 68, 68, 0.4); line-height: 1;}
.result-sub { color: var(--text-gray-500); font-weight: 500; margin-bottom: 2rem; }
.divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent); margin-bottom: 2rem; }
.result-cta-label { font-size: 1.125rem; color: white; font-weight: 600; margin-bottom: 1rem; }


/* --- The Solution --- */
.feature-card { padding: 2.5rem; border-top: 4px solid transparent; }
.border-top-primary { border-top-color: var(--primary); }
.border-top-secondary { border-top-color: var(--secondary); }
.feature-card:hover.border-top-primary { border-top-color: #a855f7; }
.feature-card:hover.border-top-secondary { border-top-color: #4ade80; }

.icon-box { width: 4rem; height: 4rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: transform var(--transition-base); }
.feature-card:hover .icon-box { transform: scale(1.1); }
.box-primary { background: rgba(138,43,226,0.15); color: #a855f7; border: 1px solid rgba(138,43,226,0.3); }
.box-secondary { background: rgba(0,229,255,0.15); color: var(--secondary); border: 1px solid rgba(0,229,255,0.3); }

.card-title { font-size: 2rem; margin-bottom: 1rem; }
.card-desc { font-size: 1.125rem; color: var(--text-gray-400); margin-bottom: 2rem; }

.feature-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; color: var(--text-gray-300); font-weight: 500;}
.feature-list li span { color: var(--primary); font-weight: 800; }
.feature-list.list-secondary li span { color: var(--secondary); }

/* --- Services Minimal --- */
.min-box { width: 3rem; height: 3rem; background: rgba(255,255,255,0.05); border-radius: 0.75rem; font-size: 1.5rem;}
.card-sm-title { font-size: 1.25rem; margin-bottom: 0.75rem;}
.card-sm-desc { font-size: 0.95rem; color: var(--text-gray-400); }


/* --- Reviews --- */
.review-card { padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; height: 100%;}
.stars { color: #fbbf24; font-size: 1.5rem; margin-bottom: 1.5rem; letter-spacing: 2px;}
.review-quote { font-size: 1.125rem; font-style: italic; color: var(--text-gray-300); margin-bottom: 2rem; flex-grow: 1; }
.review-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold;}
.author-name { font-weight: bold; color: white; }
.author-title { font-size: 0.875rem; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 1.5rem; }
.faq-header { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; color: white; font-size: 1.125rem; font-weight: 600; cursor: pointer; text-align: left; }
.faq-header:hover { color: var(--primary); }
.faq-icon { font-size: 1.5rem; color: var(--primary); transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--text-gray-500);}
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-gray-400); }
.faq-content p { padding-top: 1rem; }


/* --- Super CTA --- */
.cta-gradient-border { padding: 4px; border-radius: 2rem; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary)); background-size: 200% auto; animation: gradient-pan 3s linear infinite; }
@keyframes gradient-pan { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.cta-inner { background: var(--bg-darker); border-radius: 1.8rem; padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-glow-right { position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: var(--secondary-glow); filter: blur(60px); border-radius: 50%; pointer-events: none;}
.cta-glow-left { position: absolute; bottom: -50px; left: -50px; width: 150px; height: 150px; background: var(--primary-glow); filter: blur(60px); border-radius: 50%; pointer-events: none;}
.cta-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; margin-bottom: 1.5rem; z-index: 10; position: relative;}
.cta-subtitle { font-size: 1.25rem; color: var(--text-gray-300); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; z-index: 10; position: relative;}
.cta-guarantee { margin-top: 1.5rem; color: var(--text-gray-500); font-size: 0.875rem; font-weight: 500; z-index: 10; position: relative;}

/* --- Footer --- */
.footer { border-top: 1px solid var(--border-color); padding: 3rem 0; background: rgba(0,0,0,0.5); position: relative; z-index: 10;}
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.copyright { color: var(--text-gray-500); font-size: 0.875rem; }
@media (max-width: 600px) { .footer-container { flex-direction: column; gap: 1rem; text-align: center; } }


/* --- Scroll Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
