/* ==========================================================================
   HOMEBUDGET LANDING PAGE - Constellation Theme (Clean Start)
   ========================================================================== */

/* Global component styles */
@import 'css/global/animations.css';
@import 'css/global/buttons.css';
@import 'css/global/cards.css';
@import 'css/global/stats.css';
@import 'css/global/layouts.css';

/* Override: Remove button glow */
.btn-primary:hover {
    box-shadow: none !important;
}

:root {
    /* Constellation Color Palette (from main app) */
    --cosmos-void: #0a0e27;
    --cosmos-navy: #141b3d;
    --cosmos-midnight: #1a2149;
    --cosmos-twilight: #252d5c;

    --nebula-purple: #5b4b8a;
    --nebula-violet: #7c6baf;
    --nebula-lavender: #9d8ec4;

    --star-silver: #c4cbd9;
    --star-platinum: #e8ecf3;
    --star-white: #f5f7fa;

    --aurora-cyan: #4fb3d4;
    --aurora-teal: #3d9bb5;
    --aurora-bright: #6fd4f1;

    --atlas-gold: #d4a962;
    --atlas-amber: #e6c885;

    /* Surface Colors (alpha variations) */
    --surface-subtle: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --surface-active: rgba(255, 255, 255, 0.08);

    /* Border Colors */
    --border-subtle: rgba(124, 107, 175, 0.2);
    --border-hover: rgba(124, 107, 175, 0.3);
    --border-focus: var(--aurora-cyan);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(79, 179, 212, 0.2);
    --shadow-md: 0 8px 20px rgba(79, 179, 212, 0.4);
    --shadow-lg: 0 12px 28px rgba(79, 179, 212, 0.4);

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Breakpoints */
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-wide: 1280px;
}

/* Base Styles - Constellation Starfield Background */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--star-platinum);
    height: 100%;
    overflow-x: hidden;
}

body {
    background: transparent;
}

html {

    /* Starfield Background with Individual Stars */
    background: linear-gradient(180deg,
        var(--cosmos-void) 0%,
        var(--cosmos-navy) 40%,
        var(--cosmos-midnight) 70%,
        var(--cosmos-twilight) 100%
    );

    background-image:
        /* Bright white stars - large */
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.85) 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.75) 1px, transparent 1px),
        radial-gradient(circle at 75% 55%, rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px),
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 65% 85%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 92% 68%, rgba(255, 255, 255, 0.85) 1.5px, transparent 1.5px),
        radial-gradient(circle at 38% 82%, rgba(255, 255, 255, 0.75) 1px, transparent 1px),
        /* Cyan/Aurora stars - medium */
        radial-gradient(circle at 10% 45%, rgba(79, 179, 212, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(79, 179, 212, 0.65) 1px, transparent 1px),
        radial-gradient(circle at 55% 65%, rgba(79, 179, 212, 0.55) 1px, transparent 1px),
        radial-gradient(circle at 35% 90%, rgba(79, 179, 212, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 72% 12%, rgba(79, 179, 212, 0.65) 1px, transparent 1px),
        radial-gradient(circle at 18% 88%, rgba(79, 179, 212, 0.6) 1px, transparent 1px),
        /* Purple/Nebula stars - medium */
        radial-gradient(circle at 70% 25%, rgba(124, 107, 175, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 30% 55%, rgba(124, 107, 175, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(124, 107, 175, 0.65) 1px, transparent 1px),
        radial-gradient(circle at 88% 78%, rgba(124, 107, 175, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 12% 32%, rgba(124, 107, 175, 0.55) 1px, transparent 1px),
        /* Small distant stars - white */
        radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px),
        radial-gradient(circle at 40% 15%, rgba(255, 255, 255, 0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 60% 45%, rgba(255, 255, 255, 0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 95% 80%, rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px),
        radial-gradient(circle at 5% 95%, rgba(255, 255, 255, 0.4) 0.5px, transparent 0.5px),
        /* Base gradient */
        linear-gradient(180deg,
            var(--cosmos-void) 0%,
            var(--cosmos-navy) 40%,
            var(--cosmos-midnight) 70%,
            var(--cosmos-twilight) 100%
        );

    background-size: 100% 100%;
    background-attachment: fixed;
}

/* Navigation Bar */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 15px; /* Leave space for typical scrollbar width */
    z-index: 1000;
    background: var(--cosmos-void);
    border-bottom: 1px solid rgba(124, 107, 175, 0.2);
    min-height: 4rem;
    box-sizing: border-box;
}

/* On systems with overlay scrollbars (Mac, mobile), use full width */
@media (pointer: coarse) {
    .landing-nav {
        right: 0;
    }
}

/* Remove extra padding from container-fluid inside nav */
.landing-nav .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg,
        var(--aurora-cyan) 0%,
        var(--nebula-lavender) 70%,
        var(--nebula-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(157, 142, 196, 0.2));
    display: flex;
    align-items: center;
}

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

.nav-link {
    color: var(--star-silver);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-link:hover {
    color: var(--star-white);
    background: linear-gradient(90deg,
        rgba(124, 107, 175, 0.1) 0%,
        rgba(79, 179, 212, 0.05) 100%
    );
}

.nav-link.btn-launch {
    background: linear-gradient(135deg, var(--aurora-cyan) 0%, var(--aurora-teal) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
}

.nav-link.btn-launch:hover {
    background: linear-gradient(135deg, var(--aurora-bright) 0%, var(--aurora-cyan) 100%);
    transform: translateY(-2px);
}

/* Schedule Consultation CTA Button */
.nav-cta-button {
    background: linear-gradient(135deg, var(--aurora-cyan) 0%, var(--aurora-teal) 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-left: 0.5rem;
    box-shadow: none !important;
    animation: none !important;
}

.nav-cta-button:hover {
    background: linear-gradient(135deg, var(--aurora-bright) 0%, var(--aurora-cyan) 100%);
    transform: translateY(-2px);
    box-shadow: none !important;
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.landing-container h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--aurora-bright) 0%, var(--aurora-cyan) 50%, var(--nebula-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-container p {
    font-size: 1.25rem;
    color: var(--star-silver);
}

/* Mobile Menu Hamburger Button */
.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    z-index: 1000;
}

.hamburger-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: var(--aurora-cyan);
    transition: background 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--aurora-cyan);
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Hamburger animation to X */
.mobile-menu-toggle.is-open .hamburger-icon {
    background: transparent;
}

.mobile-menu-toggle.is-open .hamburger-icon::before {
    transform: rotate(45deg) translateY(8px) translateX(8px);
}

.mobile-menu-toggle.is-open .hamburger-icon::after {
    transform: rotate(-45deg) translateY(-8px) translateX(8px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e27;
    opacity: 0.98;
    z-index: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.mobile-nav-link {
    color: var(--star-platinum);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-link:hover {
    color: var(--star-white);
    background: rgba(124, 107, 175, 0.1);
}

.mobile-cta-button {
    background: linear-gradient(135deg, var(--aurora-cyan) 0%, var(--aurora-teal) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cta-button:hover {
    background: linear-gradient(135deg, var(--aurora-bright) 0%, var(--aurora-cyan) 100%);
    box-shadow: 0 8px 20px rgba(79, 179, 212, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    /* Hide desktop nav, show mobile hamburger */
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .landing-container h1 {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    /* Hide mobile menu on desktop */
    .mobile-menu {
        display: none !important;
    }
}

/* Blazor Error Boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhd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