/**
 * Landing Page Styles — AI Companion Platform
 * 
 * Dark theme with pink/purple accents matching Candy AI / DreamGF competitors.
 * Features: Hero with featured character, category tabs, character grid, Live Actions.
 * Pure CSS — no Bootstrap/Tailwind.
 *
 * @package    HoloSuiteAI
 * @subpackage Public
 * @version    3.0.0
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #1a1a2e 100%);
    color: #e2e8f0;
}

/* ============================================================
 * TOP NAVIGATION — Keep existing header style
 * ============================================================ */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-link {
    font-size: 1.375rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-link:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

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

.nav-button-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.nav-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* ============================================================
 * HERO SECTION — Featured AI Companion Showcase
 * ============================================================ */
.hero-section {
    padding: 3rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #c084fc;
    margin-bottom: 1.5rem;
}

.hero-badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    letter-spacing: -0.03em;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
 * CATEGORY TABS — Girls / Anime / Guys
 * ============================================================ */
.category-section {
    padding: 0 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.category-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.category-tab:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.category-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-color: rgba(168, 85, 247, 0.5);
}

/* ============================================================
 * LIVE ACTIONS SECTION — Horizontal Scroll
 * ============================================================ */
.live-section {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto 1.25rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: #ef4444;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-badge-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a855f7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: #c084fc;
}

.live-scroll {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.live-scroll::-webkit-scrollbar {
    display: none;
}

/* ============================================================
 * CHARACTER CARDS — Portrait Style
 * ============================================================ */
.character-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a2e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.character-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.character-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.character-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: #4b5563;
}

.character-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.character-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.character-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.character-age {
    color: #c084fc;
    font-weight: 500;
}

.character-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.character-tag {
    padding: 0.1875rem 0.5rem;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #c084fc;
}

.character-live-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #ef4444;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.character-live-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

/* ============================================================
 * CHARACTER GRID — Main Browse Area
 * ============================================================ */
.browse-section {
    padding: 3rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.browse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.browse-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.browse-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.filter-select:hover,
.filter-select:focus {
    border-color: rgba(168, 85, 247, 0.5);
    outline: none;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.character-card-grid {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a2e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.character-card-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

/* ============================================================
 * PREMIUM CTA SECTION
 * ============================================================ */
.premium-section {
    padding: 4rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.premium-content {
    max-width: 600px;
    margin: 0 auto;
}

.premium-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    border-radius: 16px;
}

.premium-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.premium-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
}

.premium-text {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 2rem 0;
}

.premium-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #e2e8f0;
}

.premium-feature svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* ============================================================
 * FEATURES GRID — Why Choose Us
 * ============================================================ */
.features-section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.feature-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-radius: 14px;
    margin: 0 auto 1.25rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: #c084fc;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.feature-text {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
 * FOOTER
 * ============================================================ */
.landing-footer {
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: auto;
}

.footer-text {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* ============================================================
 * EMPTY STATE
 * ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #4b5563;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 0.5rem 0;
}

.empty-state-text {
    font-size: 0.9375rem;
    margin: 0;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-row {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .category-tabs {
        flex-wrap: wrap;
    }

    .character-card {
        flex: 0 0 160px;
    }

    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        max-width: 300px;
    }

    .browse-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .premium-features {
        flex-direction: column;
        align-items: center;
    }
}
