/* MGF.AI page — home.html */

/* ── Reset Container for Home ── */
main.container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ── Global Tweaks for Home ── */
.navbar {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    position: absolute;
    width: 100%;
}
.immersive-bg { opacity: 0.3; } /* Darker background for hero pop */

/* ── Hero "Instant Action" ── */
.hero-fomo {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-fomo-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 51, 119, 0.15);
    border: 1px solid rgba(255, 51, 119, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--sweet-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px var(--sweet-glow);
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 119, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 51, 119, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 119, 0); }
}
.live-dot {
    width: 8px; height: 8px; background: var(--sweet-primary); border-radius: 50%;
}

.hero-fomo-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.hero-fomo-title .gradient {
    background: linear-gradient(135deg, #fff, var(--sweet-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-fomo-title .dark-gradient {
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-fomo-sub {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.6;
}

/* Miyu spotlight — legacy hook (unused; kept for optional A/B) */
.hero-miyu-spotlight {
    display: none;
}

/* Big Action CTA */
.cta-massive-container {
    position: relative;
    display: inline-block;
}
.btn-massive {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--sweet-primary), var(--dark-primary));
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(255, 51, 119, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.btn-massive:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(255, 51, 119, 0.6), inset 0 2px 0 rgba(255,255,255,0.4);
}
.cta-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.cta-hint span { color: var(--token-color); }

/* Floating Avatars Background Effect */
.floating-avatars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.float-avatar {
    position: absolute;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    opacity: 0.6;
    filter: blur(1px) brightness(0.7);
    object-fit: cover;
    animation: float 15s ease-in-out infinite alternate;
}
.float-avatar.a1 { width: 180px; height: 240px; top: 10%; left: 5%; animation-delay: 0s; }
.float-avatar.a2 { width: 220px; height: 300px; top: 40%; right: 5%; animation-delay: -5s; filter: blur(2px) brightness(0.6); }
.float-avatar.a3 { width: 150px; height: 200px; bottom: 10%; left: 20%; animation-delay: -2s; }
.float-avatar.a4 { width: 190px; height: 260px; top: 5%; right: 25%; animation-delay: -8s; }
.float-avatar--featured {
    border-color: rgba(255, 51, 119, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 51, 119, 0.15);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes floatDriftA {
    0% { transform: translate(0, 0) rotate(-5deg); }
    100% { transform: translate(6px, -18px) rotate(-2deg); }
}

@keyframes floatDriftB {
    0% { transform: translate(0, 0) rotate(4deg); }
    100% { transform: translate(-8px, -22px) rotate(7deg); }
}

@keyframes floatDriftC {
    0% { transform: translate(0, 0) rotate(-3deg); }
    100% { transform: translate(5px, -14px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
    .float-avatar { animation: none; }
    .floating-avatars::after { display: none; }
}

/* ── Teaser Roster (FOMO) ── */
.teaser-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.roster-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    display: block;
}
.roster-card:hover {
    transform: translateY(-10px);
    border-color: var(--sweet-primary);
    box-shadow: 0 20px 50px var(--sweet-glow);
}
.roster-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: filter 0.5s ease, transform 0.5s ease;
}
.roster-card:hover img {
    transform: scale(1.05);
}
.roster-card.locked img {
    filter: blur(8px) brightness(0.6) saturate(0.5);
}
.roster-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem;
}
.roster-name { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.roster-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.r-tag { padding: 4px 10px; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fff; }
.r-tag.ad { background: rgba(140,82,255,0.4); border: 1px solid var(--dark-primary); }

.locked-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(10,11,15,0.8); backdrop-filter: blur(10px);
    border: 1px solid var(--sweet-primary); border-radius: var(--radius-md);
    padding: 1.5rem; text-align: center; width: 80%;
    opacity: 0; transition: opacity 0.3s;
    box-shadow: 0 10px 30px var(--sweet-glow);
}
.roster-card.locked .locked-badge { opacity: 1; }
.roster-card.locked:hover .locked-badge { transform: translate(-50%, -55%); }
.locked-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.locked-text { font-size: 1rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.locked-sub { font-size: 0.8rem; color: var(--sweet-primary); }

/* ── Interactive Chat Teaser ── */
.chat-teaser-section {
    padding: 6rem 2rem;
    background: radial-gradient(circle at center, rgba(140,82,255,0.1) 0%, transparent 70%);
    position: relative;
    z-index: 10;
}
.chat-window-fomo {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(10,11,16,0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.chat-header-fomo {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 1rem;
}
.ch-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sweet-primary); }
.ch-info { flex: 1; }
.ch-name { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px;}
.ch-status { font-size: 0.8rem; color: #10b981; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.ch-status::before { content:''; display:inline-block; width:6px; height:6px; background:#10b981; border-radius:50%; box-shadow:0 0 5px #10b981;}

.chat-body-fomo {
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    position: relative;
}
.msg { display: flex; gap: 1rem; max-width: 85%; }
.msg.user { margin-left: auto; flex-direction: row-reverse; }
.msg-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msg.user .msg-avatar { background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.msg-bubble { padding: 1rem 1.25rem; border-radius: var(--radius-md); font-size: 0.95rem; line-height: 1.5; }
.msg.ai .msg-bubble { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.user .msg-bubble { background: linear-gradient(135deg, rgba(255,77,143,0.2), rgba(140,82,255,0.2)); border: 1px solid rgba(255,77,143,0.3); border-top-right-radius: 4px; }

/* The Blur Overlay for Premium Content */
.premium-blur-container {
    position: relative;
    margin-top: 1rem;
}
.msg.ad { filter: blur(6px); opacity: 0.7; pointer-events: none; user-select: none; }
.msg.ad .msg-bubble { background: rgba(140,82,255,0.2); border-color: rgba(140,82,255,0.4); color: var(--dark-secondary); }

.unlock-overlay {
    position: absolute;
    inset: -20px -20px -50px -20px;
    background: linear-gradient(to top, var(--bg-surface) 20%, rgba(10,11,16,0.6) 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 10; border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.unlock-btn {
    background: linear-gradient(135deg, var(--dark-primary), var(--sweet-primary));
    color: #fff; font-weight: 800; font-size: 1.1rem; padding: 1rem 2rem;
    border-radius: 999px; border: none; cursor: pointer;
    box-shadow: 0 10px 30px var(--dark-glow); display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; transition: transform 0.3s;
}
.unlock-btn:hover { transform: scale(1.05); }

/* ── Minimalist Stats ── */
.stats-bar {
    display: flex; justify-content: center; gap: 4rem; padding: 3rem 2rem;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.01); flex-wrap: wrap;
    position: relative; z-index: 10;
}
.stat-item { text-align: center; }
.stat-val { font-size: 2.5rem; font-weight: 900; background: linear-gradient(135deg, #fff, var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; }

/* Ancres header : éviter que la navbar fixe recouvre les titres */
#discover, #features, #pricing {
    scroll-margin-top: 5.5rem;
}

/* ── Bloc tarifs (aperçu landing) ── */
.home-pricing-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.home-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .home-pricing-grid { grid-template-columns: 1fr; }

    /* Hero mobile — même langage visuel que desktop (avatars flottants + scrim) */
    .hero-fomo {
        min-height: 100svh;
        min-height: 100dvh;
        padding: calc(5.25rem + env(safe-area-inset-top, 0px)) 1.15rem 2.75rem;
        justify-content: center;
    }

    .hero-fomo::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background:
            radial-gradient(ellipse 88% 62% at 50% 42%, rgba(6, 7, 11, 0.94) 0%, rgba(6, 7, 11, 0.5) 48%, transparent 72%),
            linear-gradient(180deg, rgba(6, 7, 11, 0.5) 0%, transparent 18%, transparent 78%, rgba(6, 7, 11, 0.55) 100%);
    }

    .floating-avatars {
        display: block;
        z-index: 1;
        overflow: visible;
    }

    .float-avatar {
        border-width: 1px;
        animation-duration: 16s;
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
        animation-direction: alternate;
    }

    /* Gauche — une seule carte qui dépasse, loin du centre */
    .float-avatar.a1 {
        width: clamp(64px, 19vw, 86px);
        height: clamp(86px, 25vw, 115px);
        top: 22%;
        left: -12%;
        right: auto;
        bottom: auto;
        opacity: 0.34;
        filter: blur(2px) brightness(0.58);
        z-index: 1;
        animation-name: floatDriftA;
        animation-delay: 0s;
    }

    /* Droite milieu — grande, floue, ancrée sur le bord (comme desktop a2) */
    .float-avatar.a2 {
        width: clamp(98px, 30vw, 128px);
        height: clamp(130px, 40vw, 170px);
        top: 38%;
        right: -14%;
        left: auto;
        bottom: auto;
        opacity: 0.42;
        filter: blur(2.5px) brightness(0.52);
        z-index: 1;
        animation-name: floatDriftB;
        animation-delay: -4s;
    }

    /* Masqué sur mobile — évite le cadre « 4 coins » */
    .float-avatar.a3 {
        display: none;
    }

    /* Droite haut — Miyu / featured, plus nette, légèrement rentrée */
    .float-avatar.a4 {
        width: clamp(84px, 26vw, 108px);
        height: clamp(112px, 34vw, 144px);
        top: 11%;
        right: 6%;
        left: auto;
        bottom: auto;
        opacity: 0.5;
        filter: blur(0.5px) brightness(0.72);
        z-index: 1;
        animation-name: floatDriftC;
        animation-delay: -7s;
    }

    .float-avatar--featured {
        opacity: 0.58;
        filter: blur(0) brightness(0.8);
        box-shadow:
            0 16px 36px rgba(0, 0, 0, 0.42),
            0 0 22px rgba(255, 51, 119, 0.18);
    }

    /* Lueur rose diffuse — remplace la 4e vignette sans cadre rigide */
    .floating-avatars::after {
        content: "";
        position: absolute;
        width: clamp(120px, 38vw, 160px);
        height: clamp(120px, 38vw, 160px);
        bottom: 18%;
        left: 50%;
        transform: translateX(-58%);
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 51, 119, 0.14) 0%, transparent 68%);
        pointer-events: none;
        z-index: 0;
    }

    .hero-fomo-content {
        z-index: 10;
        max-width: 22rem;
    }

    .hero-badge-live {
        margin-bottom: 1.25rem;
        font-size: 0.72rem;
        padding: 0.35rem 0.95rem;
    }

    .hero-fomo-title {
        font-size: clamp(2rem, 9vw, 2.75rem);
        margin-bottom: 1rem;
    }

    .hero-fomo-sub {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1.75rem;
    }

    .cta-massive-container {
        width: 100%;
        max-width: 20rem;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .btn-massive {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        letter-spacing: 0.03em;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        max-width: min(100%, 20rem);
        justify-content: center;
        gap: 0.5rem;
    }
    .btn-massive svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .stats-bar {
        gap: 2rem;
        padding: 2.25rem 1rem;
    }
    .stat-val {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.72rem;
    }

    .teaser-section,
    .chat-teaser-section,
    .home-pricing-section {
        padding: 4rem 1.15rem;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .roster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }
    .roster-name {
        font-size: 1.15rem;
    }
    .roster-overlay {
        padding: 1rem;
    }
}
.home-tier-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.home-tier-card.premium {
    border-color: rgba(255, 51, 119, 0.45);
    box-shadow: 0 12px 40px rgba(255, 51, 119, 0.12);
}
.home-tier-name { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.35rem; }
.home-tier-price { font-size: 2.25rem; font-weight: 900; margin-bottom: 1.25rem; line-height: 1; }
.home-tier-price span { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }
.home-tier-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
    width: 100%;
}
.home-tier-list li {
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding-left: 1.35rem;
    position: relative;
}
.home-tier-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sweet-primary);
    font-weight: 800;
    font-size: 0.85rem;
}
.home-tier-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-tier-cta.outline {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
}
.home-tier-cta.outline:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.home-tier-cta.solid {
    background: linear-gradient(135deg, var(--sweet-primary), var(--dark-primary));
    color: #fff;
    box-shadow: 0 10px 28px var(--sweet-glow);
}
.home-tier-cta.solid:hover { transform: translateY(-2px); }
.home-pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
