/* ================================================================
   Goathead Software — Second in Command
   Home page styles (standalone — does not depend on auth.css)
   ================================================================ */


/* ================================================================
   1. Design tokens
   ================================================================ */

:root {
    --bg-1: #0f172a;
    --bg-2: #1e293b;
    --bg-3: #334155;
    --card-bg: rgba(30, 41, 59, 0.75);
    --card-border: rgba(148, 163, 184, 0.15);
    --code-bg: rgba(15, 23, 42, 0.6);
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.08);
}


/* ================================================================
   2. Reset & base
   ================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Edge / old IE */
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Arial';
    color: var(--text);
    background: var(--bg-1);
    line-height: 1.65;
    
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge (Chromium) */
    }

/* Hide Blazor's error UI — the app shell normally handles this, but
   standalone pages don't load that stylesheet. */
#blazor-error-ui {
    display: none;
}

/* Hide Blazor's error UI — the app shell normally handles this, but
   standalone pages don't load that stylesheet. */
#blazor-error-ui {
    display: none;
}


/* ================================================================
   3. Page shell — gradient background + floating orbs
   ================================================================ */

.home-page {
    flex: 1; /* fill the body's vertical space */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    background: radial-gradient(1200px 800px at 15% 5%, rgba(99, 102, 241, 0.18), transparent 60%), radial-gradient(1000px 700px at 85% 95%, rgba(14, 165, 233, 0.15), transparent 60%), linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
}

    /* Let <main> absorb the space between header and footer, pushing
   the footer to the bottom of the viewport on short pages. */
    .home-page > main {
        flex: 1 0 auto;
    }

    .home-page::before,
    .home-page::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.3;
        pointer-events: none;
        z-index: 0;
    }

    .home-page::before {
        width: 500px;
        height: 500px;
        background: #6366f1;
        top: -160px;
        left: -120px;
        animation: float1 16s ease-in-out infinite;
    }

    .home-page::after {
        width: 600px;
        height: 600px;
        background: #0ea5e9;
        bottom: -240px;
        right: -180px;
        animation: float2 20s ease-in-out infinite;
    }

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, 60px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, -40px);
    }
}

.home-page main,
.home-page .home-header,
.home-page .home-footer {
    position: relative;
    z-index: 1;
}


/* ================================================================
   4. Brand mark
   ================================================================ */

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px -6px var(--accent-glow);
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
}


/* ================================================================
   5. Header
   ================================================================ */

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.brand--left {
    justify-content: flex-start;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

    .btn-ghost:hover {
        color: var(--text);
        border-color: var(--card-border);
        background: rgba(148, 163, 184, 0.06);
    }

.btn-ghost--primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 8px 20px -8px var(--accent-glow);
}

    .btn-ghost--primary:hover {
        color: #fff;
        filter: brightness(1.08);
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        border-color: transparent;
    }


/* ================================================================
   6. Hero
   ================================================================ */

.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dim);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-lede {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.65;
    color: var(--text-dim);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-hero {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: 12px;
    transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.2s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn-hero--primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 12px 28px -10px var(--accent-glow);
}

    .btn-hero--primary:hover {
        filter: brightness(1.08);
        box-shadow: 0 16px 36px -12px var(--accent-glow);
    }

    .btn-hero--primary:active {
        transform: translateY(1px);
    }

.btn-hero--secondary {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--card-border);
}

    .btn-hero--secondary:hover {
        color: var(--accent);
        border-color: rgba(99, 102, 241, 0.5);
        background: rgba(148, 163, 184, 0.12);
    }

.hero-note {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}


/* ================================================================
   7. Supported systems
   ================================================================ */

.systems {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.systems-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.systems-header {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.systems-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.systems-header h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.systems-header p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.system-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.25rem;
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .system-card:hover {
        border-color: rgba(99, 102, 241, 0.35);
        transform: translateY(-2px);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    }

.system-tag {
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.9rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 999px;
}

.system-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
}

    .system-card h3 a,
    .system-publisher a {
        color: inherit;
        text-decoration: none;
        transition: color 0.15s ease;
    }

        .system-card h3 a:hover,
        .system-publisher a:hover {
            color: var(--accent);
        }

.system-card p {
    flex: 1;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.system-publisher {
    padding-top: 0.85rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.systems-note {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
}


/* ================================================================
   8. Trust section
   ================================================================ */

.trust {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

.trust-inner {
    padding: 2rem 2.25rem;
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
}

    .trust-inner h2 {
        margin: 0 0 1rem;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text);
        letter-spacing: -0.01em;
    }

    .trust-inner p {
        margin: 0 0 0.9rem;
        font-size: 0.95rem;
        line-height: 1.7;
        color: var(--text-dim);
    }

        .trust-inner p:last-child {
            margin-bottom: 0;
        }


/* ================================================================
   9. Final CTA
   ================================================================ */

.cta-final {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    text-align: center;
}

    .cta-final h2 {
        margin: 0 0 0.75rem;
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 700;
        letter-spacing: -0.02em;
        color: var(--text);
    }

    .cta-final p {
        margin: 0 0 1.75rem;
        font-size: 0.98rem;
        line-height: 1.65;
        color: var(--text-dim);
    }


/* ================================================================
   10. Footer
   ================================================================ */

.home-footer {
    margin-top: auto; /* fallback: pushes footer down if main is short */
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--card-border);
    background: rgba(15, 23, 42, 0.4);
    flex-shrink: 0; /* prevent footer from collapsing */
}

.home-footer-inner {
    max-width: 1100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo--small {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.home-footer-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.home-footer-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.home-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

    .home-footer-links a {
        font-size: 0.85rem;
        color: var(--text-dim);
        text-decoration: none;
        transition: color 0.15s ease;
    }

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

.home-footer-legal {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 1.75rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--text-muted);
    text-align: center;
}


/* ================================================================
   11. Responsive
   ================================================================ */

@media (max-width: 720px) {
    .home-header {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .home-nav {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-ghost {
        padding: 0.5rem 0.9rem;
        font-size: 0.82rem;
    }

    .hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    .systems {
        padding: 1.5rem 1.25rem 3rem;
    }

    .trust {
        padding: 1.5rem 1.25rem 2rem;
    }

    .trust-inner {
        padding: 1.5rem;
    }

    .cta-final {
        padding: 1.5rem 1.25rem 3rem;
    }

    .home-footer {
        padding: 2rem 1.25rem 1.5rem;
    }

    .home-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .home-footer-links {
        gap: 1rem;
    }
}
