:root {
    --bg-color: #0b0e14;
    --card-bg: #151921;
    --primary: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.3);
    --text-main: #ffffff;
    --text-dim: #a0a7b1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 180px 8% 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 90vh;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
}

/* --- TEXT SIDE --- */
.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-text p strong {
    color: #fff;
}

/* --- BOUTONS --- */
.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- VISUAL SIDE --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-visual-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-mascot {
    width: 100%;
    position: relative;
    z-index: 5;
    animation: floatMascot 6s ease-in-out infinite;
}

.main-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
}

/* --- FLOATING BADGES --- */
.floating-badge {
    position: absolute;
    background: rgba(21, 25, 33, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.uptime {
    top: 10%;
    left: -20px;
    animation: float 5s infinite ease-in-out;
}

.ping {
    bottom: 15%;
    right: -30px;
    animation: float 5s infinite ease-in-out 1s;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-content .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.badge-content .val {
    font-weight: 800;
    font-size: 1.1rem;
}

/* --- ANIMATIONS --- */
@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* --- BACKGROUND BLOBS --- */
.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(180px);
    opacity: 0.1;
    z-index: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }
}

/* Mascot Slot */
.mascot-slot {
    flex: 1;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glow-effect {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.2;
    border-radius: 50%;
}

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 127, 0.1);
    color: #00ff7f;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.dot {
    width: 8px;
    height: 8px;
    background: #00ff7f;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff7f;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Effet sur les Cartes */
.card {
    position: relative;
    background: linear-gradient(145deg, #1a1f29, #11141b);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.popular-tag {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 35px;
    transform: rotate(45deg);
}

/* --- SECTION FEATURES --- */
.features-advanced {
    padding: 100px 0;
    background: transparent;
    /* On garde la transparence pour voir ta grille */
    position: relative;
}

.container {
    max-width: 1800px;
    /* Aligné sur ton header/footer */
    margin: 0 auto;
    padding: 0 40px;
}

/* Header de la section */
.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.features-header h2 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 800;
}

/* Grille des cartes */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- CARTE FEATURE (STYLE PREMIUM) --- */
.f-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    /* Fond très léger */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    /* Flou glassmorphism */
}

/* Lueur interne (f-glow) */
.f-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.f-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.f-card:hover .f-glow {
    opacity: 0.1;
    /* Lueur très subtile au survol */
}

.f-content {
    position: relative;
    z-index: 2;
}

/* Icone */
.f-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.f-card:hover .f-icon-box {
    background: var(--primary);
    color: #000;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Typographie */
.f-card h4 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.f-card p {
    color: #a0a7b1;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.f-card p strong {
    color: #fff;
    /* Met en valeur Ryzen 9, etc. */
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .f-card {
        padding: 30px;
    }
}

/* --- CARTE INTERACTIVE --- */
.f-card {
    position: relative;
    background: #151921;
    border-radius: 24px;
    padding: 2px;
    /* Espace pour la bordure lumineuse */
    overflow: hidden;
    transition: transform 0.3s ease;
}

.f-card:hover {
    transform: translateY(-5px);
}

/* Effet de lueur qui suit ou s'active au hover */
.f-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            var(--primary) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.f-card:hover .f-glow {
    opacity: 0.4;
}

/* Contenu de la carte */
.f-content {
    position: relative;
    background: #151921;
    /* Cache le gradient du dessous sauf sur les bords */
    border-radius: 22px;
    padding: 40px 30px;
    height: 100%;
    z-index: 2;
}

.f-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.f-card:hover .f-icon-box {
    background: var(--primary);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.f-content h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.f-content p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

.f-content p strong {
    color: var(--primary);
}

/* Animation de la mascotte */
.mascot-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating-card {
    position: absolute;
    top: -20px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Section Stats */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 60px 8%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: inline-block;
    min-width: 1.2ch;
    /* Réserve l'espace pour les chiffres */
    font-variant-numeric: tabular-nums;
    /* Chiffres de largeur égale */
}

.stat-plus {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- SECTION TECH SPECS --- */
.tech-specs-modern {
    padding: 100px 8%;
    background: linear-gradient(180deg, #0b0e14 0%, #0d1117 100%);
}

.specs-header {
    text-align: center;
    margin-bottom: 60px;
}

.specs-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
}

.specs-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Grille */
.specs-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carte Style "Rack" */
.spec-card-v2 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.spec-card-v2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.spec-card-v2:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.spec-card-v2:hover::before {
    transform: translateX(100%);
}

/* Éléments internes */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.spec-icon-v2 {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* La petite LED d'état */
.status-led {
    width: 8px;
    height: 8px;
    background: #00ff7f;
    /* Vert opérationnel */
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff7f;
    margin-top: 5px;
}

.spec-card-v2 h5 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.spec-card-v2 p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.spec-card-v2 p strong {
    color: #fff;
}

/* Animation de scan sur la carte au hover */
.spec-card-v2:hover .spec-icon-v2 {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ==========================================================================
   VERSION RESPONSIVE GLOBALE
   ========================================================================== */

/* --- TABLETTES ET PETITS LAPTOPS (max 1024px) --- */
@media (max-width: 1024px) {
    .hero {
        padding: 140px 5% 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colonnes sur tablette */
        gap: 20px;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat-item {
        flex: 0 0 40%;
        /* 2 par ligne */
    }
}

/* --- MOBILES STANDARDS (max 768px) --- */
@media (max-width: 768px) {

    /* Hero */
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
        /* Boutons l'un sur l'autre */
        align-items: stretch;
        padding: 0 10%;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }

    /* Visual & Badges */
    .main-visual-container {
        width: 300px;
        height: 300px;
    }

    .uptime {
        left: 0;
        top: 0;
    }

    .ping {
        right: 0;
        bottom: 0;
    }

    .floating-badge {
        padding: 10px 15px;
    }

    /* Features & Specs */
    .features-header h2,
    .specs-header h2 {
        font-size: 2.2rem;
    }

    .features-grid,
    .specs-grid-v2 {
        grid-template-columns: 1fr;
        /* 1 colonne */
    }

    .container {
        padding: 0 20px;
    }

    .features-advanced,
    .tech-specs-modern {
        padding: 60px 0;
    }
}

/* --- PETITS MOBILES (max 480px) --- */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .main-visual-container {
        width: 250px;
        height: 250px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-item {
        flex: 0 0 100%;
        /* 1 par ligne */
    }

    .f-content {
        padding: 30px 20px;
    }

    /* On cache certains effets lourds sur mobile pour la performance */
    .hero-bg-glow {
        display: none;
    }
}

/* ==========================================================================
   CORRECTIONS DE STRUCTURE (POUR TOUTES TAILLES)
   ========================================================================== */

/* Empêche les images de dépasser */
img {
    max-width: 100%;
    height: auto;
}

/* Ajustement du container global pour éviter les bords collés */
.container,
.hero-container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}