/* ============================================
   MARKETING CSS - FULLY SCOPED STYLES
   ============================================
   All styles are scoped to .marketing class to prevent
   bleeding into the dashboard. No global resets.
   ============================================ */

/* ===========================================
   1. DESIGN TOKENS (Marketing-Specific)
   =========================================== */
:root {
    /* Marketing Brand Colors */
    --m-primary: #ff5c35;
    --m-primary-hover: #e64a2e;
    --m-primary-light: rgba(255, 92, 53, 0.1);
    
    /* Neutral Palette */
    --m-dark: #0a0e1a;
    --m-dark-secondary: #1a1f35;
    --m-text: #ffffff;
    --m-text-muted: rgba(255, 255, 255, 0.6);
    --m-text-subtle: rgba(255, 255, 255, 0.4);
    
    /* Success/Trust Colors */
    --m-success: #10b981;
    --m-success-light: rgba(16, 185, 129, 0.15);
    
    /* Accent Colors */
    --m-accent-1: #667eea;
    --m-accent-2: #764ba2;
    
    /* Spacing Scale */
    --m-space-xs: 4px;
    --m-space-sm: 8px;
    --m-space-md: 16px;
    --m-space-lg: 24px;
    --m-space-xl: 32px;
    --m-space-2xl: 48px;
    --m-space-3xl: 64px;
    --m-space-4xl: 96px;
    
    /* Typography */
    --m-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --m-font-serif: 'Times New Roman', Georgia, serif;
    
    /* Border Radius */
    --m-radius-sm: 4px;
    --m-radius-md: 8px;
    --m-radius-lg: 12px;
    --m-radius-xl: 16px;
    --m-radius-full: 100px;
    
    /* Shadows */
    --m-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --m-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --m-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --m-shadow-glow: 0 0 40px rgba(255, 92, 53, 0.3);
    
    /* Transitions */
    --m-transition-fast: 150ms ease;
    --m-transition-base: 200ms ease;
    --m-transition-slow: 300ms ease;
}

/* ===========================================
   2. BASE STYLES (Scoped to .marketing)
   =========================================== */
html.marketing {
    box-sizing: border-box;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.marketing *,
html.marketing *::before,
html.marketing *::after {
    box-sizing: inherit;
}

.marketing-body {
    margin: 0;
    padding: 0;
    font-family: var(--m-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--m-text);
    background: var(--m-dark);
    overflow-x: hidden;
}

.marketing-main {
    min-height: 100vh;
}

/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
.marketing h1,
.marketing h2,
.marketing h3,
.marketing h4,
.marketing h5,
.marketing h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.marketing h1 { font-size: clamp(42px, 6vw, 72px); }
.marketing h2 { font-size: clamp(32px, 4vw, 48px); }
.marketing h3 { font-size: clamp(24px, 3vw, 32px); }
.marketing h4 { font-size: clamp(20px, 2vw, 24px); }

.marketing p {
    margin: 0;
    color: var(--m-text-muted);
}

.marketing a {
    color: inherit;
    text-decoration: none;
    transition: color var(--m-transition-fast);
}

.marketing a:hover {
    color: var(--m-primary);
}

/* ===========================================
   4. NAVIGATION
   =========================================== */
.marketing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--m-transition-base);
}

.marketing-nav.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--m-shadow-md);
}

.marketing-nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--m-text);
}

.marketing-nav__logo-icon {
    width: 32px;
    height: 32px;
}

.marketing-nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.marketing-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--m-text-muted);
    transition: color var(--m-transition-fast);
}

.marketing-nav__link:hover {
    color: var(--m-text);
}

.marketing-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--m-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--m-radius-md);
    transition: all var(--m-transition-fast);
}

.marketing-nav__cta:hover {
    background: var(--m-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--m-shadow-glow);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .marketing-nav {
        padding: 12px 16px;
    }
    
    .marketing-nav__links {
        display: none;
    }
    
    .marketing-nav__mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    .marketing-nav__mobile-toggle span {
        width: 24px;
        height: 2px;
        background: var(--m-text);
        transition: all var(--m-transition-fast);
    }
}

@media (min-width: 769px) {
    .marketing-nav__mobile-toggle {
        display: none;
    }
}

/* ===========================================
   5. HERO SECTION
   =========================================== */
.marketing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    background: linear-gradient(135deg, var(--m-dark) 0%, var(--m-dark-secondary) 50%, var(--m-dark) 100%);
    overflow: hidden;
}

.marketing-hero__bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 30%);
    animation: m-pulse-bg 15s ease-in-out infinite;
}

@keyframes m-pulse-bg {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.marketing-hero__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.marketing-hero__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
}

.marketing-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    background: var(--m-success-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--m-radius-full);
    color: var(--m-success);
    font-size: 13px;
    font-weight: 600;
    animation: m-fade-in-up 0.6s ease-out;
}

.marketing-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--m-success);
    border-radius: 50%;
    animation: m-pulse-dot 2s ease-in-out infinite;
}

@keyframes m-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes m-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marketing-hero__title {
    font-family: var(--m-font-serif);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--m-text);
    margin-bottom: 24px;
    animation: m-fade-in-up 0.6s ease-out 0.1s backwards;
}

.marketing-hero__title-gradient {
    background: linear-gradient(135deg, var(--m-primary) 0%, #ff7a59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marketing-hero__subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--m-text-muted);
    margin-bottom: 16px;
    animation: m-fade-in-up 0.6s ease-out 0.2s backwards;
}

.marketing-hero__description {
    font-size: 16px;
    color: var(--m-text-subtle);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: m-fade-in-up 0.6s ease-out 0.3s backwards;
}

.marketing-hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    animation: m-fade-in-up 0.6s ease-out 0.4s backwards;
}

/* ===========================================
   6. BUTTONS
   =========================================== */
.marketing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--m-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--m-transition-fast);
    text-decoration: none;
}

.marketing-btn--primary {
    background: var(--m-primary);
    color: #fff;
}

.marketing-btn--primary:hover {
    background: var(--m-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--m-shadow-glow);
}

.marketing-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--m-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marketing-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--m-text);
    border-color: rgba(255, 255, 255, 0.3);
}

.marketing-btn--large {
    padding: 18px 36px;
    font-size: 16px;
}

/* ===========================================
   7. SECTIONS
   =========================================== */
.marketing-section {
    padding: var(--m-space-4xl) var(--m-space-xl);
}

.marketing-section--dark {
    background: var(--m-dark);
}

.marketing-section--alt {
    background: var(--m-dark-secondary);
}

.marketing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.marketing-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--m-space-3xl);
}

.marketing-section__title {
    font-family: var(--m-font-serif);
    color: var(--m-text);
    margin-bottom: var(--m-space-md);
}

.marketing-section__subtitle {
    font-size: 18px;
    color: var(--m-text-muted);
}

/* ===========================================
   8. TRUST BAR
   =========================================== */
.marketing-trust {
    padding: var(--m-space-2xl) var(--m-space-xl);
    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);
}

.marketing-trust__label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--m-text-subtle);
    margin-bottom: var(--m-space-lg);
}

.marketing-trust__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--m-space-2xl);
}

.marketing-trust__logo {
    opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: all var(--m-transition-fast);
    height: 24px;
}

.marketing-trust__logo:hover {
    opacity: 0.8;
    filter: grayscale(0%) brightness(1);
}

/* ===========================================
   9. FEATURE CARDS
   =========================================== */
.marketing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--m-space-lg);
}

.marketing-feature {
    padding: var(--m-space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--m-radius-lg);
    transition: all var(--m-transition-base);
}

.marketing-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.marketing-feature__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--m-primary-light);
    border-radius: var(--m-radius-md);
    margin-bottom: var(--m-space-md);
    color: var(--m-primary);
}

.marketing-feature__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--m-text);
    margin-bottom: var(--m-space-sm);
}

.marketing-feature__description {
    font-size: 14px;
    color: var(--m-text-muted);
    line-height: 1.6;
}

/* ===========================================
   10. TESTIMONIALS
   =========================================== */
.marketing-testimonial {
    padding: var(--m-space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--m-radius-lg);
}

.marketing-testimonial__quote {
    font-size: 18px;
    color: var(--m-text);
    line-height: 1.7;
    margin-bottom: var(--m-space-lg);
    font-style: italic;
}

.marketing-testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--m-space-md);
}

.marketing-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--m-accent-1), var(--m-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.marketing-testimonial__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--m-text);
}

.marketing-testimonial__role {
    font-size: 13px;
    color: var(--m-text-muted);
}

/* ===========================================
   11. STATS
   =========================================== */
.marketing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--m-space-lg);
    text-align: center;
}

.marketing-stat__value {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--m-text);
    line-height: 1;
    margin-bottom: var(--m-space-sm);
}

.marketing-stat__value--gradient {
    background: linear-gradient(135deg, var(--m-primary) 0%, #ff7a59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marketing-stat__label {
    font-size: 14px;
    color: var(--m-text-muted);
}

/* ===========================================
   12. FORMS
   =========================================== */
.marketing-form {
    max-width: 400px;
}

.marketing-form__group {
    margin-bottom: var(--m-space-md);
}

.marketing-form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--m-text);
    margin-bottom: var(--m-space-xs);
}

.marketing-form__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--m-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--m-radius-md);
    transition: all var(--m-transition-fast);
}

.marketing-form__input:focus {
    outline: none;
    border-color: var(--m-primary);
    background: rgba(255, 255, 255, 0.08);
}

.marketing-form__input::placeholder {
    color: var(--m-text-subtle);
}

/* ===========================================
   13. FOOTER
   =========================================== */
.marketing-footer {
    padding: var(--m-space-3xl) var(--m-space-xl) var(--m-space-xl);
    background: var(--m-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.marketing-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--m-space-2xl);
    margin-bottom: var(--m-space-2xl);
}

@media (max-width: 768px) {
    .marketing-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--m-space-xl);
    }
}

.marketing-footer__brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--m-text);
    margin-bottom: var(--m-space-md);
}

.marketing-footer__tagline {
    font-size: 14px;
    color: var(--m-text-muted);
    max-width: 300px;
}

.marketing-footer__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--m-text-muted);
    margin-bottom: var(--m-space-md);
}

.marketing-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.marketing-footer__link {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--m-text-subtle);
    transition: color var(--m-transition-fast);
}

.marketing-footer__link:hover {
    color: var(--m-text);
}

.marketing-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--m-space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.marketing-footer__copyright {
    font-size: 13px;
    color: var(--m-text-subtle);
}

.marketing-footer__social {
    display: flex;
    gap: var(--m-space-md);
}

.marketing-footer__social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--m-radius-md);
    color: var(--m-text-muted);
    transition: all var(--m-transition-fast);
}

.marketing-footer__social-link:hover {
    background: var(--m-primary);
    color: #fff;
}

/* ===========================================
   14. SECURITY BADGES
   =========================================== */
.marketing-security {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--m-space-lg);
    padding: var(--m-space-xl);
}

.marketing-security__badge {
    display: flex;
    align-items: center;
    gap: var(--m-space-sm);
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--m-radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--m-success);
}

.marketing-security__badge svg {
    width: 16px;
    height: 16px;
}

/* ===========================================
   15. RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .marketing-section {
        padding: var(--m-space-3xl) var(--m-space-md);
    }
    
    .marketing-hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }
    
    .marketing-hero__cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .marketing-btn {
        width: 100%;
        justify-content: center;
    }
    
    .marketing-features {
        grid-template-columns: 1fr;
    }
    
    .marketing-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================
   16. UTILITIES
   =========================================== */
.marketing .text-center { text-align: center; }
.marketing .text-left { text-align: left; }
.marketing .text-right { text-align: right; }

.marketing .mb-0 { margin-bottom: 0; }
.marketing .mb-1 { margin-bottom: var(--m-space-sm); }
.marketing .mb-2 { margin-bottom: var(--m-space-md); }
.marketing .mb-3 { margin-bottom: var(--m-space-lg); }
.marketing .mb-4 { margin-bottom: var(--m-space-xl); }

.marketing .mt-0 { margin-top: 0; }
.marketing .mt-1 { margin-top: var(--m-space-sm); }
.marketing .mt-2 { margin-top: var(--m-space-md); }
.marketing .mt-3 { margin-top: var(--m-space-lg); }
.marketing .mt-4 { margin-top: var(--m-space-xl); }

.marketing .hidden { display: none; }
.marketing .visible { display: block; }

/* Screen reader only */
.marketing .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
