/* =========================================================================
   LUMERA CRM - PREMIUM MARKETING SITE STYLES
   ========================================================================= */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Color Palette - Light Theme */
    --bg-dark: #ffffff; /* Main background is now white */
    --bg-surface: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(248, 250, 252, 0.9);
    
    --primary: #4f46e5; /* Vibrant Indigo */
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    
    --secondary: #db2777; /* Rose/Pink */
    --secondary-light: rgba(219, 39, 119, 0.1);
    
    --accent: #0284c7; /* Sky Blue */
    --accent-light: rgba(2, 132, 199, 0.1);
    
    --text-primary: #0f172a; /* Dark Slate for contrast */
    --text-secondary: #475569;
    --border-color: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

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

.section {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 10;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.w-50 { width: 50%; }
.w-80 { width: 80%; }
.w-full { width: 100%; display: block; text-align: center;}

/* --- Background Blurs (Abstract Blobs) --- */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.bg-blur-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
}

.bg-blur-2 {
    top: 40%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
}

.bg-blur-3 {
    bottom: -10%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
}

/* --- UI Components --- */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--space-lg);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 20px var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: rgba(0, 0, 0, 0.15);
}

.shadow-sm { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, box-shadow 0.3s, border-bottom 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary);
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem;
    color: var(--text-secondary);
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-links, .nav-btn { display: none; }
    .menu-toggle { display: block; }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    z-index: 10;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
}

/* Mockup Design / Screenshots */
.glass-panel {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.glass-panel:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
    background: rgba(248, 250, 252, 0.8);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-body {
    padding: 2rem;
}

.skeleton {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 1.5rem;
}

.mockup-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mockup-chart .bar {
    flex: 1;
    background: var(--border-color);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* For injected App Screenshot/Media */
.real-screenshot, .real-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.demo-video {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dash-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.dash-card h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.dash-card p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* --- Features Bento Grid --- */
.section-header .subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .col-span-2 { grid-column: auto; }
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
}

.bento-item {
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.bg-primary-light { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(99, 102, 241, 0.2); }
.bg-secondary-light { background: var(--secondary-light); color: var(--secondary); border: 1px solid rgba(236, 72, 153, 0.2); }
.bg-accent-light { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(14, 165, 233, 0.2); }

.col-span-2 {
    grid-column: span 2;
}

/* --- How It Works Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 5px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 0 15px var(--primary-light);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
}

/* --- FAQ Section --- */
.accordion {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header .icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.accordion-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--accent);
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-light), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.cta-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

/* --- Animations & Transitions --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Scroll Revel Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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