/* =========================================
   ORBITAL - OFFICIAL WEBSITE STYLES
   Design System: Dark, Neon, Minimalist
   ========================================= */

:root {
    /* PALETTE COULEURS JEU (Extraite de data.js) */
    --bg-deep: #0b0c15;
    --bg-dark: #121420;
    --accent-cyan: #00ffff;
    --accent-magenta: #ff00ff;
    --accent-gold: #ffd700;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;

    /* EFFETS */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 15px rgba(0, 255, 255, 0.4);
    --btn-gradient: linear-gradient(135deg, #00ffff 0%, #00ccff 100%);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #8b9bb4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

span.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* --- BACKGROUND FX --- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: floatOrb 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-magenta);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* --- LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
    text-decoration: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

/* --- BUTTONS --- */
.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--accent-cyan);
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* --- FEATURES (CARDS) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- SCREENSHOTS / VISUAL --- */
.visual-section {
    text-align: center;
}

.phone-mockup {
    background: transparent;
    border: 8px solid #333;
    border-radius: 30px;
    width: 300px;
    height: 600px;
    /* Ratio 9:16 env */
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0b0c15, #1a1c2e);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.core-circle {
    width: 100px;
    height: 100px;
    border: 4px solid var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* --- FOOTER --- */
#main-footer {
    background: #050508;
    /* Darker than bg-deep */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

/* Subtle Glow at bottom */
#main-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    box-shadow: 0 0 30px var(--accent-cyan);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* BRAND COLUMN */
.footer-logo {
    height: 70px;
    margin-bottom: 20px;
    /* In case SVG is black, invert it or ensuring visibility */
    /* filter: brightness(0) invert(1); Use this if logo is black */
}

.creator-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dotted var(--accent-cyan);
    transition: all 0.2s;
}

.creator-link:hover {
    color: var(--accent-cyan);
    border-bottom-style: solid;
}

.footer-desc {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
    max-width: 300px;
}

/* COLUMNS HEADERS */
.footer-nav h4,
.footer-download h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* LINKS LIST */
.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-nav a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

/* STORE BADGE */
.store-badge img {
    height: 50px;
    margin-top: 15px;
    transition: transform 0.2s;
}

.store-badge img:hover {
    transform: translateY(-3px);
}

/* BOTTOM BAR */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.legal-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 20px;
}

.legal-links a:hover {
    color: #fff;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-desc {
        margin: 15px auto 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .legal-links a {
        margin: 0 10px;
    }
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .btn-group {
        justify-content: center;
    }
}

/* =========================================
   PAGE PHASES
   ========================================= */

.phases-hero {
    padding: 150px 0 50px 0;
    text-align: center;
}

.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.phase-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phase-card:hover {
    transform: translateY(-10px);
    border-color: var(--phase-color);
    box-shadow: 0 0 30px var(--phase-color), inset 0 0 20px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.phase-card h3 {
    color: var(--phase-color);
    margin: 20px 0 10px 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.phase-card p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
}

.threat-level {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--phase-color);
    color: var(--phase-color);
    font-size: 0.7rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PHASE SIMULATION CANVAS --- */
.phase-sim {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cta-box {
    text-align: center;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 20px;
    margin-top: 50px;
    border: 1px solid var(--glass-border);
}

/* =========================================
   CAROUSEL SECTION
   ========================================= */
.carousel-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.carousel-info {
    flex: 1;
    max-width: 500px;
}

.carousel-info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.carousel-features {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.c-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-main);
}

.c-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* STACKED CARDS */
.carousel-container {
    flex: 1;
    height: 450px;
    /* Space for the stack */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    /* 3D effect */
}

.carousel-stack {
    position: relative;
    width: 320px;
    /* Card Width */
    height: 420px;
    /* Card Height */
}

.carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 40, 0.9);
    /* Darker backdrop */
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center center;
    /* Reset some default phase-card margins if necessary */
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* POSITIONS */
.pos-0 {
    transform: translateX(0) scale(1);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--phase-color);
}

.pos-1 {
    transform: translateX(40px) translateY(20px) scale(0.9);
    opacity: 0.6;
    filter: grayscale(0.5);
}

.pos-2 {
    transform: translateX(80px) translateY(40px) scale(0.8);
    opacity: 0.3;
    filter: grayscale(0.8);
}

.pos-3 {
    transform: translateX(120px) translateY(60px) scale(0.7);
    opacity: 0;
}

.pos-hidden {
    transform: translateX(40px) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .carousel-layout {
        flex-direction: column-reverse;
        text-align: center;
        padding-bottom: 50px;
    }

    .carousel-info h2 {
        text-align: center;
    }

    .carousel-features {
        justify-content: center;
    }

    .carousel-container {
        width: 100%;
        margin-bottom: 20px;
        height: 350px;
    }

    .carousel-stack {
        width: 280px;
        height: 350px;
    }
}

/* =========================================
   RANKING SECTION
   ========================================= */
#ranking {
    padding: 100px 0;
    /* Optional background texture or gradient */
    background: radial-gradient(circle at left center, rgba(0, 255, 255, 0.05), transparent 40%);
}

.ranking-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.ranking-text {
    flex: 1;
    max-width: 500px;
}

.ranking-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.rank-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* LEADERBOARD MOCKUP */
.leaderboard-mockup {
    flex: 1;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

/* Shine effect on leaderboard border top */
.leaderboard-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-magenta), transparent);
}

.lb-header {
    display: flex;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lb-row {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: background 0.2s;
    font-family: monospace;
    /* Techno feel */
    font-size: 1rem;
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* COLUMNS ALIGNMENT */
.col-rank {
    width: 10%;
    text-align: left;
}

.col-name {
    width: 40%;
    padding-left: 15px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-score {
    width: 30%;
    text-align: right;
}

.col-time {
    width: 20%;
    text-align: right;
    color: var(--text-muted);
}

.r-idx {
    font-weight: bold;
    color: #555;
}

.rank-1 .r-idx {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold);
}

.rank-2 .r-idx {
    color: #c0c0c0;
}

.rank-3 .r-idx {
    color: #cd7f32;
}

.r-name {
    color: white;
}

.r-score {
    color: var(--text-muted);
}

.rank-you {
    margin-top: 20px;
    border: 1px dashed var(--accent-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.rank-you .r-name {
    color: var(--accent-cyan);
}

/* RESPONSIVE RANKING */
@media (max-width: 900px) {
    .ranking-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .leaderboard-mockup {
        width: 100%;
    }

    .rank-stats {
        justify-content: center;
    }
}