/* ── Global Styles & Variables ── */
:root {
    --blue: #2563eb;
    --blue-dk: #1d4ed8;
    --indigo: #4f46e5;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --rose: #f43f5e;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #9ca3af;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #374151;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    background: #020617; /* Obsidian Slate-950 */
    color: #fff;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #020617;
    color: #94a3b8;
}

/* ── Navbar ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 68px;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 38px;
    filter: brightness(0) saturate(100%) invert(75%) sepia(85%) saturate(3000%) hue-rotate(155deg) brightness(1.1) contrast(1.2); /* Injects Corporate Neon Cyan */
    margin-bottom: 2px;
}

.nav-logo span {
    color: #22d3ee; /* Matches Neon Cyan Accent */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.btn-nav {
    background: var(--blue);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 0.6rem;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    transition: background .15s, transform .15s !important;
}
.btn-nav:hover {
    background: var(--blue-dk) !important;
    transform: translateY(-1px);
}

main {
    flex: 1 1 auto;
    width: 100%;
    padding-top: 68px; /* Fixed Header Offset */
    background: inherit;
}

/* ── Footer ── */
footer {
    background: #020617;
    color: #94a3b8;
    padding: 5rem 5vw 2rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    height: 38px;
    filter: brightness(0) saturate(100%) invert(75%) sepia(85%) saturate(3000%) hue-rotate(155deg) brightness(1.1) contrast(1.2); /* Injects Corporate Neon Cyan */
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.82rem;
    line-height: 1.7;
    margin-top: 0.75rem;
    max-width: 250px;
    color: #64748b;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
    color: var(--blue);
    transform: translateX(3px);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 0.78rem;
    color: #475569;
}

.footer-bottom .logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
}

.footer-bottom .logo-text span {
    color: #22d3ee;
}

.powered-by-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff !important;
    background: #0f172a;
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.powered-by-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background: #1e293b;
}

.powered-by-badge svg {
    width: 20px;
    height: 20px;
    color: #22d3ee; /* Vibrant Cyan */
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.4));
}


/* ── Global Buttons & Utilities ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    border-radius: 0.8rem;
    background: var(--blue);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(37, 99, 235, .35);
}

.btn-primary:hover {
    background: var(--blue-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, .45);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    border-radius: 0.8rem;
    background: transparent;
    color: var(--gray-800);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--gray-200);
    transition: border-color .2s, transform .2s, background .2s;
}

.btn-outline:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

/* ── Global Form Styles ── */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    padding: 1rem 1.25rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #475569;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
}

.form-input option {
    background-color: #0f172a; /* Match Obsidian Deep Slate */
    color: #fff;
}

/* ── Custom Select (High Fidelity Replacement) ── */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-trigger:after {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.custom-option.selection {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
}

/* Hide the real select but keep it for form submission access */
select.form-input.customized {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ── Split Page Wrap (for Login / Forms) ── */
.page-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: calc(100vh - 68px);
}

@media (min-width: 900px) {
    .page-wrap {
        flex-direction: row;
        min-height: calc(100vh - 68px);
    }
}

/* ── Legal / Minimal Cards ── */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .02);
    position: relative;
    margin-bottom: 2rem;
}

.meta-badge {
    background: var(--blue);
    color: #fff;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .legal-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    footer {
        padding: 3rem 1.25rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
