/* =========================================
   LA'VIESTA ROLEPLAY — HOMEPAGE STYLES v2
   ========================================= */

/* ══════════════════════════════════
   HERO SECTION
══════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
}

/* Cinematic background image */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('hero-bg.webp');
    background-size: cover;
    background-position: center top;
    opacity: 0.18;
    z-index: 0;
    transform: scale(1.04);
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}
@keyframes subtle-zoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.10); }
}

/* Red gradient overlay */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 50%, rgba(200,146,42,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(200,146,42,0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(6,6,8,0.2) 0%, rgba(6,6,8,0.5) 60%, rgba(6,6,8,1) 100%);
    z-index: 1;
}

/* Subtle grid */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 0;
    min-height: 100vh;
}

/* ── Hero Text ── */
.hero-text { flex: 1; max-width: 600px; }

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.0;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero-title .accent {
    background: linear-gradient(135deg, var(--gold) 0%, #E8C060 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(200,146,42,0.4));
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* ── Hero Stats ── */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.hero-stats .stat-item { text-align: left; position: relative; }
.hero-stats .stat-item::after {
    content: '';
    position: absolute; right: -1.25rem; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-gold), transparent);
}
.hero-stats .stat-item:last-child::after { display: none; }
.hero-stats .stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem; font-weight: 900; color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 20px rgba(200,146,42,0.35);
}
.hero-stats .stat-label {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--text-muted); margin-top: 0.3rem;
}

/* ── Hero Character ── */
.hero-image-container {
    flex: 0 0 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
}
.hero-character-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse, rgba(200,146,42,0.18) 0%, transparent 65%);
    animation: glow-pulse 4s ease-in-out infinite;
    border-radius: 50%;
    display: none;
}
.hero-character-img {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 10px 40px rgba(200,146,42,0.22));
    position: relative; z-index: 1;
    display: block;
}

/* ── Scroll indicator ── */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2.5s ease-in-out infinite;
}
.scroll-hint i { font-size: 1.2rem; }
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ══════════════════════════════════
   FEATURES SECTION
══════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.feature-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    cursor: default;
}
/* Left accent line */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    transition: height 0.45s ease;
    border-radius: 3px;
}
.feature-card:hover::before { height: 100%; }

.feature-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, rgba(200,146,42,0.15), rgba(166,120,32,0.08));
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    transition: all var(--transition);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(200,146,42,0.28), rgba(166,120,32,0.18));
    box-shadow: 0 0 22px rgba(200,146,42,0.28);
    transform: rotate(-5deg) scale(1.06);
}
.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem; font-weight: 800; color: #fff;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem; line-height: 1.68;
}

/* ══════════════════════════════════
   JOIN BANNER
══════════════════════════════════ */
.join-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3.5rem 4rem;
    gap: 3rem;
    flex-wrap: wrap;
    background:
        linear-gradient(135deg, rgba(200,146,42,0.1) 0%, rgba(166,120,32,0.05) 100%),
        var(--bg-2);
    border: 1px solid rgba(200,146,42,0.25) !important;
    position: relative; overflow: hidden;
}
.join-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(200,146,42,0.06) 0%, transparent 55%);
    animation: float 7s ease-in-out infinite;
    pointer-events: none;
}
.join-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.join-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem; font-weight: 900; color: #fff;
    margin-bottom: 0.6rem;
}
.join-content p {
    color: var(--text-muted);
    font-size: 1rem; max-width: 550px; line-height: 1.65;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-content-wrapper { flex-direction: column; text-align: center; gap: 2.5rem; padding-top: calc(var(--header-h) + 2rem); }
    .hero-text { max-width: 100%; }
    .hero-desc { margin: 0 auto 2rem auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-stats .stat-item { text-align: center; }
    .hero-image-container { flex: none; width: 280px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .join-banner { padding: 2.5rem; flex-direction: column; text-align: center; }
    .join-content p { margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-stats { gap: 1.5rem; }
    .hero-stats .stat-item::after { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
