:root {
    --navy:      #252F52;
    --blue:      #4a6cf7;
    --blue-lt:   #6b8cff;
    --off:       #f8f9fc;
    --text:      #1a1f36;
    --muted:     #6c757d;
    --border:    rgba(37,47,82,0.08);
    --radius:    18px;
    --shadow-lg: 0 16px 48px rgba(37,47,82,0.13);
}
[data-theme="dark"] {
    --off:       #0d1117;
    --text:      #e9ecef;
    --muted:     #8b95a1;
    --border:    rgba(255,255,255,0.07);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; }

/* HERO */
.feat-hero {
    padding: 8rem 0 4.5rem;
    background: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}
[data-theme="dark"] .feat-hero { background: #090d1a; }
.feat-hero-grid {
    position: absolute; inset: 0;
    background-image:
            linear-gradient(rgba(37,47,82,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(37,47,82,0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
[data-theme="dark"] .feat-hero-grid {
    background-image:
            linear-gradient(rgba(74,108,247,0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(74,108,247,0.06) 1px, transparent 1px);
}
.feat-hero-glow {
    position: absolute;
    top: -20%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 450px;
    background: radial-gradient(ellipse, rgba(74,108,247,0.09) 0%, transparent 65%);
    pointer-events: none;
}
.feat-hero-content { position: relative; z-index: 1; }
.feat-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(74,108,247,0.08);
    border: 1px solid rgba(74,108,247,0.16);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 1.2rem;
}
.feat-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800; color: var(--text);
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.feat-hero h1 .accent {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .feat-hero h1 .accent {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text; background-clip: text;
}
.feat-hero p { font-size: 1.05rem; color: var(--muted); max-width: 520px; margin: 0 auto 2.2rem; line-height: 1.75; }
.btn-feat-hero {
    display: inline-flex; align-items: center; gap: 0.55rem;
    background: var(--navy); color: white;
    font-weight: 700; font-size: 0.95rem;
    border-radius: 50px; padding: 0.85rem 2.2rem;
    text-decoration: none; position: relative; overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(37,47,82,0.28);
}
.btn-feat-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-lt));
    opacity: 0; transition: opacity 0.3s;
}
.btn-feat-hero:hover { color: white; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,47,82,0.32); }
.btn-feat-hero:hover::before { opacity: 1; }
.btn-feat-hero span, .btn-feat-hero i { position: relative; z-index: 1; }

/* STATS STRIP */
.stats-strip {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 0;
    background: var(--off); border: 1px solid var(--border);
    border-radius: 60px; padding: 0.7rem 2rem;
    width: fit-content; margin: 0 auto 4rem;
}
[data-theme="dark"] .stats-strip { background: rgba(255,255,255,0.04); }
.ss-item {
    display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.8rem; font-weight: 600; color: var(--muted);
    padding: 0.2rem 1.2rem;
    border-right: 1px solid var(--border);
}
.ss-item:last-child { border-right: none; }
.ss-item i { color: var(--blue); font-size: 0.75rem; }
.ss-num { font-weight: 800; color: var(--text); }
@media (max-width: 768px) {
    .stats-strip { border-radius: 16px; }
    .ss-item { border-right: none; padding: 0.45rem 0.8rem; }
}

/* SECTION */
.feat-section { padding: 20px 0 100px; background: var(--off); }
[data-theme="dark"] .feat-section { background: #0d1117; }

/* GRILLE */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 992px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .feat-grid { grid-template-columns: 1fr; } }

/* CARTE BASE */
.feat-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 26px 24px 22px;
    text-decoration: none !important;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}
[data-theme="dark"] .feat-card { background: #161b2e; }
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c, var(--navy)); text-decoration: none; }
.feat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--c, var(--navy));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s ease;
    border-radius: var(--radius) var(--radius) 0 0;
}
.feat-card:hover::before { transform: scaleX(1); }
.feat-card::after {
    content: ''; position: absolute; bottom: -24px; right: -24px;
    width: 100px; height: 100px; border-radius: 50%;
    background: var(--c, var(--navy)); opacity: 0.04;
    transition: transform 0.4s ease, opacity 0.4s ease; pointer-events: none;
}
.feat-card:hover::after { transform: scale(2.8); opacity: 0.06; }

.feat-card-header {
    display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px;
}
.feat-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--c-bg, rgba(37,47,82,0.07));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--c, var(--navy));
    transition: transform 0.35s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.feat-card:hover .feat-icon-wrap { transform: scale(1.1) rotate(7deg); }
.feat-cat-badge {
    font-size: 0.6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 3px 9px; border-radius: 6px;
    border: 1.5px solid var(--c-border, rgba(37,47,82,0.15));
    background: var(--c-bg, rgba(37,47,82,0.05));
    color: var(--c, var(--navy)); flex-shrink: 0;
}
.feat-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 8px; line-height: 1.2; }
.feat-card p  { font-size: 0.82rem; color: var(--muted); line-height: 1.65; margin: 0 0 14px; flex: 1; }
.cmd-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.cmd-tag {
    background: var(--off); color: var(--muted);
    border-radius: 6px; padding: 2px 7px;
    font-size: 0.68rem; font-family: 'Courier New', monospace; font-weight: 600;
    border: 1px solid var(--border);
}
[data-theme="dark"] .cmd-tag { background: rgba(255,255,255,0.04); }
.feat-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto;
}
.cmd-count {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 50px;
    background: var(--c-bg, rgba(37,47,82,0.07));
    color: var(--c, var(--navy));
}
.feat-arrow {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--off); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; color: var(--muted);
    transition: all 0.25s ease; flex-shrink: 0;
}
[data-theme="dark"] .feat-arrow { background: rgba(255,255,255,0.05); }
.feat-card:hover .feat-arrow { background: var(--c, var(--navy)); border-color: var(--c, var(--navy)); color: white; transform: translateX(3px); }

/* RPG FEATURED */
.feat-card.feat-featured {
    background: linear-gradient(135deg, #1a1f36 0%, var(--navy) 55%, #2a3870 100%);
    border-color: rgba(255,255,255,0.08);
}
.feat-card.feat-featured:hover { box-shadow: 0 24px 60px rgba(37,47,82,0.35); border-color: rgba(255,255,255,0.18); }
.feat-card.feat-featured::after { background: rgba(255,255,255,0.06); }
.feat-card.feat-featured h3 { color: #fff; }
.feat-card.feat-featured p  { color: rgba(255,255,255,0.62); }
.feat-card.feat-featured .feat-icon-wrap { background: rgba(255,255,255,0.1); color: white; }
.feat-card.feat-featured .feat-cat-badge { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.85); }
.feat-card.feat-featured .cmd-tag { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.feat-card.feat-featured .cmd-count { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.feat-card.feat-featured .feat-card-footer { border-top-color: rgba(255,255,255,0.08); }
.feat-card.feat-featured .feat-arrow { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.feat-card.feat-featured:hover .feat-arrow { background: white; border-color: white; color: var(--navy); }
.feat-card.feat-featured::before { background: rgba(255,255,255,0.25); }
.feat-popular-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--blue); color: white;
    border-radius: 50px; padding: 0.18rem 0.65rem;
    font-size: 0.6rem; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase; z-index: 2;
}

/* CTA CARD */
.feat-cta-card {
    background: linear-gradient(135deg, #1a1f36 0%, var(--navy) 55%, #2a3870 100%);
    border-radius: var(--radius);
    border: 1.5px solid rgba(255,255,255,0.08);
    padding: 26px 24px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; height: 100%;
    position: relative; overflow: hidden;
    box-shadow: 0 8px 32px rgba(37,47,82,0.2);
}
.feat-cta-card::before {
    content: ''; position: absolute;
    bottom: -40%; left: 50%; transform: translateX(-50%);
    width: 300px; height: 200px;
    background: radial-gradient(ellipse, rgba(74,108,247,0.45) 0%, transparent 60%);
    pointer-events: none;
}
.feat-cta-inner { position: relative; z-index: 1; }
.feat-cta-emoji { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.feat-cta-card h3 { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 0.6rem; line-height: 1.25; }
.feat-cta-card p  { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 1.4rem; }
.btn-cta-feat {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: white; color: var(--navy);
    font-weight: 700; font-size: 0.85rem;
    border-radius: 50px; padding: 0.7rem 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.25s, box-shadow 0.25s;
}
.btn-cta-feat:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.25); color: var(--navy); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }

/* AD */
.ad-notice { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 0.4rem; opacity: 0.55; }