/* ─── Variables & Reset ──────────────────────────────────────────────────────── */
:root {
    --bg:        #060b18;
    --surface:   #0c1222;
    --surface2:  #111827;
    --border:    rgba(255, 255, 255, 0.07);
    --border2:   rgba(255, 255, 255, 0.12);
    --blue:      #4f8ef7;
    --blue2:     #3b82f6;
    --purple:    #8b5cf6;
    --green:     #10b981;
    --amber:     #f59e0b;
    --red:       #ef4444;
    --text:      #e4eaf5;
    --muted:     #7d8a9e;
    --radius:    14px;
    --radius-sm: 8px;
    --max-w:     1160px;
    --nav-h:     64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Container ─────────────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
    border: none;
    white-space: nowrap;
    line-height: 1;
}
.btn-sm { padding: 9px 20px; font-size: 0.875rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--blue2) 0%, var(--purple) 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(79, 142, 247, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79, 142, 247, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border2);
}
.btn-outline:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.btn-full { width: 100%; }

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(6, 11, 24, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5); }

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: auto; }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Sections communs ───────────────────────────────────────────────────────── */
.section { padding: 110px 0; }
.section-alt { background: var(--surface); }

.section-header {
    text-align: center;
    margin-bottom: 72px;
}
.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.section-header p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 60px) 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(59, 130, 246, 0.13) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 85% 50%, rgba(139, 92, 246, 0.09) 0%, transparent 55%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content { max-width: 520px; }

.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 99px;
    border: 1px solid rgba(79, 142, 247, 0.35);
    background: rgba(79, 142, 247, 0.08);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.platform-tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.platform {
    font-size: 0.85rem;
    color: var(--muted);
}
.platform.muted {
    color: rgba(125, 138, 158, 0.6);
}
.platform em {
    font-style: normal;
    font-size: 0.75rem;
    color: rgba(125, 138, 158, 0.5);
}

/* ─── App Window Mockup ──────────────────────────────────────────────────────── */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.app-window {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
}
.window-dots { display: flex; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green  { background: #22c55e; }
.window-title { font-size: 0.75rem; color: var(--muted); flex: 1; text-align: center; }

.window-screenshot {
    display: block;
    width: 100%;
    height: auto;
}

/* Action window */
.app-window-action { transform: translateX(20px); }

/* ─── Features Grid ──────────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 142, 247, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feat-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ─── Apps Grid ─────────────────────────────────────────────────────────────── */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.app-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}
.app-card:hover {
    transform: translateY(-4px);
    border-color: var(--border2);
}

.app-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    line-height: 1;
}
.app-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.app-card-badge {
    margin-bottom: 0;
    padding: 2px 10px;
    font-size: 0.68rem;
    vertical-align: middle;
}
.app-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ─── Pricing ───────────────────────────────────────────────────────────────── */
.pricing-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: start;
    max-width: 860px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface2);
    border: 1px solid rgba(79, 142, 247, 0.3);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 0 0 1px rgba(79, 142, 247, 0.1), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-top { margin-bottom: 32px; }
.pricing-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.pricing-price { display: flex; align-items: baseline; gap: 10px; }
.price {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.price-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.pricing-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text);
}
.check {
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-note-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.note-icon { font-size: 1.5rem; margin-bottom: 10px; }
.pricing-note-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.pricing-note-card p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.6;
}
.contact-link {
    font-size: 0.88rem;
    color: var(--blue);
    font-weight: 500;
    transition: color 0.2s;
}
.contact-link:hover { color: #a5c8ff; }

/* ─── Download ──────────────────────────────────────────────────────────────── */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

.download-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s;
}
.download-card.featured {
    border-color: rgba(79, 142, 247, 0.35);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}
.download-card.unavailable { opacity: 0.55; }

.dl-icon { font-size: 2.8rem; line-height: 1; }
.download-card h3 { font-size: 1.15rem; font-weight: 700; }
.dl-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.dl-meta { display: flex; gap: 12px; align-items: center; min-height: 22px; }
.dl-version {
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.dl-size { font-size: 0.8rem; color: var(--muted); }
.dl-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

.download-hint {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
    background: var(--surface2);
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
}

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

.footer-brand .logo { margin-bottom: 14px; display: inline-block; }
.footer-brand p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

.footer-nav, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav h4, .footer-contact h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}
.footer-nav a, .footer-contact a {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }

.footer-legal {
    font-size: 0.82rem;
    color: rgba(125, 138, 158, 0.6);
    margin-top: 8px;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 0.83rem;
    color: rgba(125, 138, 158, 0.5);
}

/* ─── Mobile nav overlay ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(6, 11, 24, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links li a {
        display: block;
        padding: 16px 28px;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-cta { display: none; }
    .nav-burger { display: flex; }

    /* Hero */
    .hero { padding-top: calc(var(--nav-h) + 40px); }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { display: none; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-actions { justify-content: center; }
    .platform-tags { justify-content: center; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Apps */
    .apps-grid { grid-template-columns: repeat(2, 1fr); }

    /* Pricing */
    .pricing-layout { grid-template-columns: 1fr; max-width: 480px; }

    /* Download */
    .download-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section { padding: 72px 0; }
}

@media (max-width: 480px) {
    .apps-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

/* ─── Animations légères ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .app-card,
    .download-card,
    .pricing-card {
        animation: fadeUp 0.5s ease both;
    }
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* ─── Focus visible (accessibilité) ────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--blue2);
    outline-offset: 3px;
    border-radius: 4px;
}
