/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 52px;
    width: auto;
}

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

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: var(--primary);
    color: var(--light) !important;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-light);
}

/* Pre-footer Gradient */
.pre-footer-gradient {
    height: 400px;
    background: linear-gradient(0deg, rgba(33, 158, 188, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    margin-bottom: -4rem;
    position: relative;
    z-index: -1;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 4rem 0 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 54px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a, .footer-social a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 247, 240, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
}

.footer-help {
    color: var(--gray-300);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-help .contact-trigger {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-help .contact-trigger:hover {
    color: var(--light);
}

.footer-login {
    color: var(--accent) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-login::after {
    content: "↗";
    font-size: 1.1em;
    line-height: 1;
}

.footer-login:hover {
    color: var(--light) !important;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo img {
        height: 28px;
    }
}

/* Success Message */
.success-message {
    display: none;
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.success .success-message {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Login Overlay */
.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.login-container {
    max-width: 400px;
    width: 100%;
    background: var(--light);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--dark);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
