/* PowerNexus Style - Premium Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #050508;
    --bg-card: #0f1014;
    --bg-card-hover: #161820;
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --accent-green: #2ecc71;
    --accent-hover: #27ae60;
    --accent-glow: rgba(46, 204, 113, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(46, 204, 113, 0.3);
    --glass: rgba(255, 255, 255, 0.03);
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════ Navbar ═══════════════════════════ */
.navbar {
    background-color: rgba(5, 5, 8, 0.8);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 36px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav {
    background-color: var(--accent-green);
    color: #fff;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: none;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ═══════════════════════════ Hero Section ═══════════════════════════ */
.hero {
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent-green);
    -webkit-text-fill-color: var(--accent-green);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
}

/* ═══════════════════════════ Buttons ═══════════════════════════ */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(46, 204, 113, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--accent-green);
    background-color: var(--accent-glow);
}

.hero-platforms {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-platforms p {
    margin: 0;
}

.link-linux {
    color: #666;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-linux:hover {
    color: var(--accent-green);
}

/* ═══════════════════════════ Sections ═══════════════════════════ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-card);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 64px;
    line-height: 1.7;
}

/* ═══════════════════════════ Features ═══════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}

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

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-left: auto;
    margin-right: auto;
    background: var(--accent-glow);
    border-radius: 16px;
    border: 1px solid rgba(46, 204, 113, 0.1);
    transition: all 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: rgba(46, 204, 113, 0.25);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════ Stats Bar ═══════════════════════════ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-top: 80px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent-green);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════ Gallery ═══════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ═══════════════════════════ Tutos ═══════════════════════════ */
.tuto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.tuto-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s;
    cursor: pointer;
}

.tuto-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.tuto-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tuto-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.placeholder-img, .placeholder-tuto-img {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    height: 180px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-style: italic;
    font-size: 0.85rem;
}

/* ═══════════════════════════ Legal Layout ═══════════════════════════ */
.legal-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.summary-widget {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-subtle);
}

.summary-widget h3 {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-weight: 700;
}

.summary-widget ul li {
    margin-bottom: 10px;
}

.summary-widget a:hover {
    color: var(--accent-green);
}

.legal-content h2 {
    color: var(--accent-green);
    margin-top: 40px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

/* ═══════════════════════════ Footer ═══════════════════════════ */
.footer {
    background-color: #030305;
    padding: 80px 0 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    color: #333;
    font-size: 0.8rem;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ═══════════════════════════ Mobile ═══════════════════════════ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 22px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        right: 0;
        background-color: rgba(15, 16, 20, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 24px 0;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.active { display: flex; }
    .hero { padding: 100px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .legal-layout { grid-template-columns: 1fr; }
    .summary-widget { display: none; }
    .stats-bar { flex-direction: column; gap: 32px; }
}

/* ═══════════════════════════ Animations ═══════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ═══════════════════════════ Markdown ═══════════════════════════ */
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    color: var(--accent-green);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
}
.markdown-body h1 { font-size: 1.5em; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.3em; }
.markdown-body h2 { font-size: 1.3em; }
.markdown-body h3 { font-size: 1.1em; }

.markdown-body ul, .markdown-body ol {
    padding-left: 20px;
    margin-bottom: 1em;
    list-style-type: disc;
}
.markdown-body ul ul { list-style-type: circle; }

.markdown-body li {
    margin-bottom: 0.25em;
    color: #ddd;
}

.markdown-body p {
    margin-bottom: 1em;
}

.markdown-body strong {
    color: #fff;
}

.markdown-body a {
    color: var(--accent-green);
    text-decoration: underline;
}

.markdown-body code {
    background-color: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

.markdown-body blockquote {
    border-left: 3px solid var(--accent-green);
    padding-left: 16px;
    color: #888;
    margin-left: 0;
    margin-right: 0;
}
