/* ================================
   FinanceProject Marketing (Landing)
   Global stylesheet (wwwroot/css/marketing.css)
   Works with MudBlazor + AppTheme.cs
   ================================ */

/* Theme-aligned tokens
   - Prefer MudBlazor CSS vars when available
   - Fallback to your palette values
*/
:root {
    --fp-primary: var(--mud-palette-primary, #1E40AF);
    --fp-secondary: var(--mud-palette-secondary, #0F766E);
    --fp-bg: var(--mud-palette-background, #F6F8FB);
    --fp-surface: var(--mud-palette-surface, #FFFFFF);
    --fp-text: var(--mud-palette-text-primary, #0F172A);
    --fp-muted: var(--mud-palette-text-secondary, #475569);
    --fp-line: var(--mud-palette-lines-default, #E5E7EB);
    --fp-radius: 14px;
    --fp-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

/* Shell */
.fp-marketing {
    background: radial-gradient(900px 520px at 15% -10%, rgba(30, 64, 175, 0.10), transparent 60%), radial-gradient(900px 520px at 85% 0%, rgba(15, 118, 110, 0.10), transparent 55%), linear-gradient(180deg, #FFFFFF, var(--fp-bg));
    color: var(--fp-text);
    min-height: 100vh;
}

/* AppBar */
.fp-marketing-appbar {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--fp-line);
}

/* Brand */
.fp-brand {
    font-weight: 800;
    letter-spacing: .2px;
}

/* Fix nav/actions stacking ("vertical buttons") */
.fp-topbar-nav,
.fp-topbar-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px;
}

    .fp-topbar-nav .mud-button-root,
    .fp-topbar-actions .mud-button-root {
        display: inline-flex !important;
        white-space: nowrap;
    }

/* Main */
.fp-marketing-body {
    padding-top: 10px;
}

/* Sections */
.fp-section {
    padding: 72px 0;
}

.fp-section-alt {
    background: rgba(246, 248, 251, 0.70);
    border-top: 1px solid var(--fp-line);
    border-bottom: 1px solid var(--fp-line);
}

/* Hero */
.fp-hero {
    padding-top: 22px;
}

.fp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fp-primary) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--fp-primary) 14%, transparent);
    color: color-mix(in srgb, var(--fp-primary) 70%, #000);
    font-weight: 700;
    font-size: .85rem;
    width: fit-content;
}

.fp-hero-title {
    margin-top: 14px;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.fp-gradient {
    background: linear-gradient(90deg, var(--fp-primary), var(--fp-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fp-hero-lead {
    margin-top: 14px;
    color: var(--fp-muted);
    max-width: 56ch;
    line-height: 1.6;
}

.fp-hero-bullets {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--fp-muted);
}

    .fp-hero-bullets li {
        margin: 8px 0;
    }

.fp-hero-cta {
    margin-top: 22px;
    flex-wrap: wrap;
}

.fp-hero-note {
    margin-top: 10px;
    color: var(--fp-muted);
}

/* Screenshot / preview */
.fp-hero-shot {
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: calc(var(--fp-radius) + 4px);
    box-shadow: var(--fp-shadow);
    padding: 10px;
}

.fp-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Generic cards */
.fp-card {
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
}

/* Pricing / CTA anchors */
#pricing,
#request-demo {
    scroll-margin-top: 88px;
}

/* Footer */
.fp-marketing .mud-divider {
    border-color: var(--fp-line) !important;
}

/* Responsive polish */
@media (max-width: 959.98px) {
    .fp-section {
        padding: 56px 0;
    }

    .fp-hero-title {
        font-size: 2.0rem;
    }
}
