/* ==========================================================================
   Appistant AI — Master Stylesheet
   Luxury Dark Tech Theme — Production Optimized
   ========================================================================== */

:root {
    --bg-color: #050508;
    --bg-surface: #0a0a0f;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(255, 255, 255, 0.25);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Focus States for Accessibility */
a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* Background Ambient Lighting */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.glow-top {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(200, 220, 255, 0.08) 50%, transparent 100%);
}

.glow-bottom {
    bottom: -150px;
    right: 10%;
    width: 500px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(160, 160, 255, 0.04) 50%, transparent 100%);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 100;
    padding: 10px 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0);
    box-shadow: none;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Floating Pill Translucent Navbar on Scroll */
.header.scrolled-pill {
    top: 10px;
    width: min(calc(100% - 32px), 1120px);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.4s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand-name {
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0.95;
}

.brand-star {
    width: 24px;
    height: 24px;
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-star {
    transform: rotate(360deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.6; }
    100% { transform: scale(0.95); opacity: 1; }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Hero Image Card Showcase */
.hero-image-card {
    position: relative;
    margin: 0 auto;
    max-width: min(880px, 90vw);
    max-height: calc(100vh - 120px);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9),
                0 0 40px rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    background: #000000;
}

.hero-image-card:hover {
    transform: translateY(-4px) scale(1.002);
    box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.95),
                0 0 60px rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-img {
    width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    display: block;
    border-radius: var(--radius-md);
}

.hero-image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 40%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #030305;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.footer-brand .brand-star {
    width: 20px;
    height: 20px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.domain-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: color var(--transition-fast);
}

.domain-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }
    
    .header.scrolled-pill {
        top: 8px;
        width: calc(100% - 20px);
        padding: 5px 10px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .brand {
        gap: 8px;
        font-size: 0.95rem;
        font-weight: 400;
    }

    .brand-star {
        width: 20px;
        height: 20px;
    }

    .nav-actions {
        display: flex;
        align-items: center;
    }

    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.72rem;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 4px 10px;
        border-radius: var(--radius-full);
        white-space: nowrap;
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    .pulse-dot {
        width: 6px;
        height: 6px;
    }

    .hero-section {
        min-height: 100vh;
        padding: 60px 14px 20px 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-image-card {
        max-width: min(380px, 86vw);
        max-height: calc(100vh - 110px);
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    }

    .hero-img {
        max-height: calc(100vh - 110px);
        border-radius: 16px;
        object-fit: contain;
    }

    .footer {
        padding: 32px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-brand {
        justify-content: center;
        font-size: 1rem;
    }

    .footer-copy {
        font-size: 0.8rem;
        margin-top: 4px;
    }

    .footer-right {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .domain-link {
        font-size: 0.85rem;
    }

    .social-links {
        justify-content: center;
        gap: 14px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 380px) {
    .brand-name {
        font-size: 0.88rem;
    }
    .status-badge {
        font-size: 0.68rem;
        padding: 3px 8px;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
