:root {
    --primary: #0f172a;     /* Deep Slate */
    --secondary: #334155;   /* Muted Slate */
    --accent: #2563eb;      /* Trust Blue */
    --accent-hover: #1d4ed8;
    --bg-body: #f8fafc;     /* Light Gray/White */
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-gradient { background: linear-gradient(to right, var(--accent), #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- NAVIGATION --- */
.navbar { 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border); 
    height: 70px; 
    display: flex; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

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

.logo { 
    font-weight: 700; 
    font-size: 1.25rem; 
    color: var(--primary); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.logo-icon { 
    width: 24px; 
    height: 24px; 
    background: var(--accent); 
    border-radius: 6px; 
}

/* Central Links Group */
.nav-menu { 
    display: flex; 
    gap: 2rem; 
    align-items: center; 
}

.nav-menu a { 
    text-decoration: none; 
    color: var(--secondary); 
    font-weight: 500; 
    font-size: 0.95rem; 
    transition: color 0.2s; 
}

.nav-menu a:hover { 
    color: var(--accent); 
}

/* Auth Buttons Group */
.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 500; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: all 0.2s; font-size: 0.95rem; }
.btn-primary { background-color: var(--accent); color: white !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border); color: var(--secondary); background: white; }
.btn-outline:hover { border-color: var(--secondary); color: var(--primary); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Small Button for Mobile Header */
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Hero Section */
.hero { padding: 6rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
h1 { font-size: 3.5rem; line-height: 1.15; margin-bottom: 1.5rem; color: var(--primary); letter-spacing: -0.02em; }
.lead { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 540px; }
.badge-new { display: inline-block; background: #eff6ff; color: var(--accent); padding: 4px 12px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }

/* Dashboard Visual */
.dashboard-preview { background: white; border: 1px solid var(--border); border-radius: 0.75rem; box-shadow: var(--shadow-lg); transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: transform 0.5s ease; }
.dashboard-preview:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.dash-header { background: #f8fafc; padding: 0.75rem; display: flex; gap: 6px; border-bottom: 1px solid var(--border); border-radius: 0.75rem 0.75rem 0 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-body { height: 300px; display: flex; position: relative; overflow: hidden; }
.sidebar { width: 25%; border-right: 1px solid var(--border); background: #f8fafc; padding: 1rem; }
.fake-line { height: 8px; background: #e2e8f0; border-radius: 4px; margin-bottom: 0.75rem; }
.chat-area { width: 75%; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: white; }
.msg-bubble { padding: 0.75rem 1rem; border-radius: var(--radius-md); font-size: 0.875rem; max-width: 80%; background: #f1f5f9; color: var(--secondary); }
.msg-bubble.sent { background: var(--accent); color: white; align-self: flex-end; }

/* Logo Strip */
.logos-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 0; background: #fdfdfd; }
.logo-grid { display: flex; justify-content: space-between; opacity: 0.5; filter: grayscale(100%); }
.client-logo { font-weight: 700; font-size: 1.2rem; color: #64748b; }

/* Feature Grid (3 Columns) */
.features-section { background: white; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-md); transition: 0.3s; }
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.icon-box { width: 48px; height: 48px; background: #eff6ff; color: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }

/* Deep Dive Sections (Alternating) */
.deep-dive { background: var(--bg-body); }
.row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.row-grid.reversed { direction: rtl; } 
.row-grid.reversed .text-col { direction: ltr; }
.visual-box { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); height: 300px; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; }

/* Integrations */
.integrations { background: white; text-align: center; }
.integration-bubbles { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.int-bubble { padding: 0.75rem 1.5rem; border: 1px solid var(--border); border-radius: 100px; font-weight: 500; color: var(--secondary); font-size: 0.9rem; }

/* CTA Section */
.cta-section { background: var(--primary); color: white; text-align: center; }
.cta-section h2 { color: white; }
.cta-section p { color: #94a3b8; margin-bottom: 2rem; }

/* --- AUTH PAGES (RESTORED) --- */
.auth-container { display: flex; justify-content: center; align-items: center; padding: 4rem 1rem; width: 100%; }
.auth-card { background: white; width: 100%; max-width: 450px; padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h2 { font-size: 1.75rem; color: var(--primary); margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; }

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--secondary); margin-bottom: 0.5rem; }
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.form-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.875rem; }
.checkbox-wrapper { display: flex; align-items: center; gap: 0.5rem; }

.forgot-link, .auth-switch a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-divider { text-align: center; margin: 1.5rem 0; color: var(--text-muted); font-size: 0.875rem; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.terms-text { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.95rem; }

/* Footer */
footer { background: white; border-top: 1px solid var(--border); padding: 4rem 0 2rem; font-size: 0.9rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--primary); margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a { text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; }

/* --- MOBILE / RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar { height: auto; padding: 0.8rem 0; }
    .nav-menu { display: none; } 
    .nav-auth { display: flex; gap: 0.5rem; }
    .logo { font-size: 1.1rem; }
    .logo-icon { width: 20px; height: 20px; }
    .btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    
    .hero-grid, .row-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero { padding-top: 2rem; }
    h1 { font-size: 2.5rem; }
    .lead { margin: 0 auto 2rem; }
    .row-grid.reversed { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .auth-card { padding: 1.5rem; }
}

/* --- Analytics Map Widget Styles --- */
.map-widget {
    width: 100%; height: 100%; background: #f8fafc; position: relative;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
}

.world-map-svg {
    width: 100%; height: 100%; fill: #cbd5e1; stroke: white;
    stroke-width: 0.5; opacity: 0.6;
}

.map-beacon {
    position: absolute; width: 12px; height: 12px;
    background-color: var(--accent); border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulse-blue 2s infinite; z-index: 2; cursor: pointer;
}

.map-beacon.success {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

.visitor-card {
    position: absolute; bottom: 20px; right: 20px;
    background: white; padding: 10px 14px; border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
    z-index: 3; animation: floatUp 0.5s ease-out forwards; max-width: 220px;
}

.visitor-avatar {
    width: 32px; height: 32px; background: #eff6ff; color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold;
}

.visitor-info h5 { font-size: 0.85rem; color: var(--primary); margin-bottom: 2px; }
.visitor-info p { font-size: 0.7rem; color: var(--text-muted); }

/* Animations */
@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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