/* ================================================================
   index.css — Page d'accueil
   ================================================================ */

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(248, 56, 56, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 56, 56, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(248, 56, 56, 0.06);
    border: 1px solid rgba(248, 56, 56, 0.2);
    border-radius: 100px;
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.hero-badge-text { color: var(--sky-300); font-weight: 500; }

/* Typewriter Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 24px;
    min-height: 1.1em;
    position: relative;
}

.typewriter-line {
    display: inline-block;
    background: linear-gradient(135deg, var(--sky-200), var(--sky-400), var(--sky-200));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    position: relative;
}
.typewriter-line::after {
    content: '|';
    -webkit-text-fill-color: var(--sky-400);
    animation: blinkCursor 0.8s step-end infinite;
    margin-left: 4px;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-cta {
    font-size: 1rem;
    padding: 14px 32px;
    position: relative;
}
.hero-cta::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(8px);
}
.hero-cta:hover::before { opacity: 0.7; }

/* Stats */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(38, 13, 13, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 16px 32px;
    backdrop-filter: blur(20px);
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(248, 56, 56, 0.1);
    border: 1px solid rgba(248, 56, 56, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-400);
    font-size: 1rem;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    margin: 0 8px;
}

/* Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}
.hero-orb-1 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(248, 56, 56, 0.15), transparent 70%);
    top: 10%; left: 5%;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(248, 129, 173, 0.12), transparent 70%);
    top: 20%; right: 8%;
    animation-delay: -3s;
}
.hero-orb-3 {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(248, 56, 56, 0.1), transparent 70%);
    bottom: 20%; right: 20%;
    animation-delay: -6s;
}
@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── BOTS SECTION ─────────────────────────────────────────────── */
.bots-section { padding: 80px 0; }

.section-header { margin-bottom: 50px; }
.text-center { text-align: center; }

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}

.bot-card {
    background: rgba(38, 13, 13, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}
.bot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(248, 56, 56, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}
.bot-card:hover {
    border-color: rgba(56,189,248,0.4);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 50px rgba(248, 56, 56, 0.08);
}
.bot-card:hover::before { opacity: 1; }

.bot-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--sky-900), var(--sky-700));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.bot-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(233, 14, 14, 0.3), rgba(133, 7, 7, 0.5));
}
.bot-banner-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    z-index: 1;
}
.bot-banner-tag {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
}

.bot-body {
    padding: 0 20px 20px;
    position: relative;
    z-index: 2;
}

.bot-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-top: -32px;
    margin-bottom: 12px;
}
.bot-avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(248, 56, 56, 0.3);
}
.bot-status {
    position: absolute;
    bottom: 3px; right: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.bot-status-online { background: #3ba55c; box-shadow: 0 0 8px rgba(59,165,92,0.6); }
.bot-status-idle   { background: #faa61a; box-shadow: 0 0 8px rgba(250,166,26,0.6); }
.bot-status-dnd    { background: #ed4245; box-shadow: 0 0 8px rgba(237,66,69,0.6); }

.bot-info { margin-bottom: 18px; }
.bot-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.bot-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
}

/* ── FEATURES SECTION ─────────────────────────────────────────── */
.features-section { padding: 80px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(38, 13, 13, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--color, var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color, var(--accent));
    margin-bottom: 16px;
    transition: box-shadow 0.3s;
}
.feature-card:hover .feature-icon {
    box-shadow: 0 0 20px color-mix(in srgb, var(--color) 40%, transparent);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── CTA SECTION ──────────────────────────────────────────────── */
.cta-section {
    padding: 80px 0;
    margin-top: 40px;
}
.cta-inner {
    position: relative;
    background: rgba(38, 13, 13, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    overflow: hidden;
}
.cta-blob {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(248, 56, 56, 0.12), transparent 70%);
    top: -200px; right: -150px;
    border-radius: 50%;
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
    }
    .stat-divider { width: 80%; height: 1px; margin: 0; }
    .bots-grid { grid-template-columns: 1fr; }
    .cta-inner { padding: 36px 24px; }
}
