/* ============================================================================
   XIII PANEL — INDEX.CSS
   Landing page publique. Sobre, minimaliste, aligné avec la DA panel.
   ============================================================================ */

/* ─── 1. TOKENS / RESET ─── */
:root {
    --bg:           #0a0a0b;
    --bg-2:         #111113;
    --bg-3:         #18181b;
    --bg-4:         #1c1c20;
    --border:       rgba(255, 255, 255, 0.06);
    --border-strong:rgba(255, 255, 255, 0.12);
    --text:         #ededee;
    --text-2:       #9c9ca3;
    --text-3:       #6b6b72;
    --text-4:       #44444a;
    --accent:       #ff6b35;
    --accent-hover: #ff7d4d;
    --accent-soft:  rgba(255, 107, 53, 0.10);
    --accent-line:  rgba(255, 107, 53, 0.25);
    --r-sm:         6px;
    --r-md:         10px;
    --r-lg:         14px;
    --r-xl:         20px;
    --t-fast:       0.18s ease;
    --t-mid:        0.3s ease;
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);

    --container: 1200px;
    --nav-h:     56px;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-feature-settings: "cv11", "ss01";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ─── 2. BACKGROUND ─── */
.bg-fixed {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 107, 53, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(255, 107, 53, 0.04) 0%, transparent 60%),
        var(--bg);
}

#snow-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

/* ─── 3. NAVBAR ─── */
.nav-wrapper {
    position: fixed;
    top: 16px;
    left: 0; right: 0;
    z-index: 100;
    pointer-events: none;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    transition: top var(--t-mid);
}
.nav-wrapper.scrolled { top: 8px; }

.navbar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 980px;
    padding: 8px 8px 8px 22px;
    background: rgba(17, 17, 19, 0.7);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-wrapper.scrolled .navbar {
    background: rgba(17, 17, 19, 0.92);
    border-color: var(--border-strong);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    transition: opacity var(--t-fast);
    flex-shrink: 0;
}
.logo:hover { opacity: 0.85; }
.logo img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.logo span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.logo span b { color: var(--accent); font-weight: 700; }

.nav-links {
    display: flex;
    gap: 4px;
}
.nav-link {
    padding: 7px 14px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    transition: var(--t-fast);
}
.nav-link:hover { color: var(--text); background: var(--bg-3); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    font-size: 13px;
    border-radius: 999px;
    transition: var(--t-fast);
    white-space: nowrap;
}
.btn-login:hover { background: #ffffff; }
.btn-login i { font-size: 14px; }

.btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-2);
    background: var(--bg-3);
    transition: var(--t-fast);
}
.btn-icon:hover { color: var(--text); background: var(--bg-4); }

.nav-avatar {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    object-fit: cover;
}

/* ─── 4. HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 60px;
}

.hero-inner {
    max-width: 760px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out) 0.1s forwards;
}
.hero-pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    font-size: clamp(64px, 12vw, 128px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.045em;
    color: var(--text);
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.2s forwards;
}
.hero-title .accent { color: var(--accent); }

.hero-desc {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-2);
    max-width: 580px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.32s forwards;
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.44s forwards;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--t-fast);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}
.btn-primary i { font-size: 15px; }

.btn-ghost {
    background: var(--bg-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-3);
    border-color: var(--border-strong);
}

.btn-large {
    padding: 16px 32px;
    font-size: 15px;
}

/* Stats inline */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 22px 36px;
    background: rgba(17, 17, 19, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 16px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.6s forwards;
}
.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.stat-unit {
    font-size: 14px;
    color: var(--text-3);
    margin-left: 2px;
    font-weight: 500;
}
.stat-lbl {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 36px;
    border: 1.5px solid var(--text-3);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    opacity: 0.6;
    transition: opacity var(--t-fast);
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint span {
    width: 2px;
    height: 6px;
    background: var(--text-3);
    border-radius: 2px;
    animation: scrollDot 1.8s var(--ease-out) infinite;
}
@keyframes scrollDot {
    0%   { transform: translateY(0);  opacity: 1; }
    60%  { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0);  opacity: 0; }
}

/* ─── 5. SECTIONS COMMUNES ─── */
.section {
    padding: 100px 0;
    position: relative;
}
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-head h2,
.section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text);
}
.section-head p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ─── 6. ABOUT GRID ─── */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.about-card {
    padding: 32px 26px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.about-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.about-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}
.about-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.about-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ─── 7. FEATURES GRID ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.feature-card {
    padding: 26px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.feature-card:hover {
    border-color: var(--accent-line);
    background: var(--bg-3);
}
.feature-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}
.feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}
.feature-card p {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.55;
}

/* ─── 8. YUSTON SECTION ─── */
.yuston-block {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
}
.yuston-text h2 { margin-bottom: 14px; }
.yuston-text p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 540px;
}

.yuston-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: var(--t-fast);
}
.social-btn i {
    font-size: 15px;
    color: var(--text-2);
    transition: color var(--t-fast);
}
.social-btn:hover {
    background: var(--bg-3);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.social-btn.yt:hover i { color: #ff0033; }
.social-btn.sp:hover i { color: #1ed760; }
.social-btn.ig:hover i { color: #e1306c; }
.social-btn.tt:hover i { color: var(--text); }

.discord-widget {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-2);
}
.discord-widget iframe {
    display: block;
    width: 100%;
}

/* ─── 10. CTA FINAL ─── */
.section-cta {
    padding: 80px 0;
}
.cta-block {
    text-align: center;
    background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%), var(--bg-2);
    border: 1px solid var(--accent-line);
    border-radius: var(--r-xl);
    padding: 60px 40px;
    max-width: 720px;
    margin: 0 auto;
}
.cta-block h2 { margin-bottom: 12px; }
.cta-block p {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 28px;
}

/* ─── 11. FOOTER ─── */
.site-footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-logo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.footer-logo b { color: var(--accent); }
.footer-left p {
    font-size: 12px;
    color: var(--text-3);
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-3);
}
.footer-right a {
    color: var(--text-2);
    transition: color var(--t-fast);
}
.footer-right a:hover { color: var(--accent); }
.footer-sep { color: var(--text-4); }

/* ─── 12. MODAL LOGIN ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out);
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    padding: 40px 32px 32px;
    border-radius: var(--r-lg);
    text-align: center;
    max-width: 420px;
    width: 100%;
    transform: scale(0.96);
    transition: transform 0.25s var(--ease-out);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .modal-box { transform: scale(1); }

.modal-icon {
    font-size: 24px;
    color: var(--accent);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.modal-text {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 24px;
    line-height: 1.6;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: 1px solid transparent;
    color: var(--text-3);
    cursor: pointer;
    font-size: 14px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
}
.modal-close:hover {
    color: var(--text);
    background: var(--bg-3);
    border-color: var(--border);
}

/* ─── 13. REVEAL ANIMATION ─── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── 14. RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .navbar { gap: 12px; padding-left: 18px; }
    .about-grid { grid-template-columns: 1fr; gap: 12px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .yuston-block { grid-template-columns: 1fr; gap: 36px; }
    .discord-widget { max-width: 380px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
    .nav-link { display: none; }
    .navbar { padding: 6px 6px 6px 16px; }
    .btn-login span { display: none; }
    .btn-login { padding: 8px 12px; }

    .hero { padding-top: 110px; padding-bottom: 80px; min-height: 92vh; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 28px;
        width: 100%;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .section { padding: 70px 0; }
    .section-head { margin-bottom: 36px; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-block { padding: 36px 24px; }

    .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
    .footer-right { justify-content: center; }
}

@media (max-width: 400px) {
    .hero-title { font-size: 56px; }
    .yuston-socials { gap: 6px; }
    .social-btn { padding: 9px 13px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
