: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 {
    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;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
}

.gradient-text {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 100%;
    height: 3px;

    background: linear-gradient(90deg,
            transparent,
            var(--primary),
            transparent);

    transform: scaleX(0);
    transform-origin: left;

    animation: underlineReveal 1.2s ease forwards;
}

@keyframes underlineReveal {
    to {
        transform: scaleX(1);
    }
}

.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;
}

.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: transform 0.3s, filter 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: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.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-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: floatreverse 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;
}

.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;
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px) rotate(-5deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes floatreverse {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-8deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ==========================================================================
   COMPOSANTS RÉUTILISABLES
   ========================================================================== */

.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 {
    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;
}

.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;
    position: relative;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

.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;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================================================
   CARTE FEATURE (F-CARD)
   ========================================================================== */
.f-card {
    position: relative;
    background: #151921;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2px;
    overflow: hidden;
    margin: 0;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.f-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.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;
    pointer-events: none;
    z-index: 1;
}

.f-card:hover .f-glow {
    opacity: 0.4;
}

.f-content {
    position: relative;
    background: #151921;
    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: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.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);
}

.f-card h4,
.f-content h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.f-card p,
.f-content p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.f-card p strong,
.f-content p strong {
    color: var(--primary);
}

.mascot-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.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;
}

.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;
    font-variant-numeric: tabular-nums;
}

.stat-plus {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.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;
}

.specs-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.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%);
}

.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);
}

.status-led {
    width: 8px;
    height: 8px;
    background: #00ff7f;
    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;
}

.spec-card-v2:hover .spec-icon-v2 {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ==========================================================================
   SERVICES INFO - VERSION CLEAN & RESPONSIVE
   ========================================================================== */
.services-info {
    max-width: 500px;
    margin: 10px auto 30px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.services-info i {
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.7;
}

.services-info p {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.2px;
}

@media (max-width: 380px) {
    .services-info {
        padding: 10px 12px;
        gap: 8px;
    }

    .services-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {

    .hero {
        padding: 120px 5% 50px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .main-visual-container {
        width: 280px;
        height: 280px;
        position: relative;
    }

    .floating-badge {
        position: absolute;
        z-index: 30;
        margin: 0;
        width: auto;
    }

    .uptime {
        left: 10px;
        bottom: -38px;
        top: auto;
        right: auto;
    }

    .ping {
        right: 10px;
        top: -10px;
        bottom: auto;
        left: auto;
    }

    .services-info {
        width: 92%;
        margin: 16px auto 24px;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 14px;
        flex-wrap: nowrap;
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
    }

    .services-info i {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .services-info p {
        font-size: 0.9rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .features-advanced,
    .tech-specs-modern {
        padding: 60px 5%;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .features-header h2,
    .specs-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }

    .f-content {
        padding: 30px 20px;
    }

    .spec-card-v2 {
        padding: 25px 20px;
    }

    .specs-grid-v2 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 30px;
        padding: 50px 5%;
    }

    .stat-item {
        width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }
}
