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

:root {
    --lp-bg: #1a1e23;
    --lp-bg-alt: #16191d;
    --lp-card: #21262c;
    --lp-border: #2d333a;
    --lp-text: #f2f3f5;
    --lp-muted: #9aa3ad;
    --lp-green: #34d399;
    --lp-green-dark: #1fae7c;
}

html, body {
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.accent {
    background: linear-gradient(90deg, #34d399, #5b6bf5, #34d399);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--lp-green);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: -200% center; }
}

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

@keyframes sparkleSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.4); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 0 14px rgba(52, 211, 153, 0); transform: scale(1.06); }
}

.sparkle {
    display: inline-block;
    animation: sparkleSpin 2.4s ease-in-out infinite;
}

/* ---------- Nav ---------- */
.lp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 48px;
}

.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }

.lp-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.lp-brand-name {
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(90deg, #f2f3f5, #34d399, #5b6bf5, #f2f3f5);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

.lp-nav-actions { display: flex; align-items: center; gap: 16px; }

.lp-nav-link {
    color: var(--lp-text);
    text-decoration: none;
    font-size: 14.5px;
    opacity: 0.9;
}
.lp-nav-link:hover { opacity: 1; }

.lp-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--lp-green);
    color: var(--lp-green);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.lp-install-btn:hover { background: rgba(52, 211, 153, 0.1); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 40px 48px 100px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.32;
    z-index: 0;
    pointer-events: none;
}

.lp-blob-1 {
    width: 320px;
    height: 320px;
    background: var(--lp-green);
    top: -80px;
    left: -60px;
    animation: blobFloat1 12s ease-in-out infinite;
}

.lp-blob-2 {
    width: 380px;
    height: 380px;
    background: #5b6bf5;
    bottom: -110px;
    right: -80px;
    animation: blobFloat2 14s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 35px) scale(1.15); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -45px) scale(1.2); }
}

.lp-hero-text { position: relative; z-index: 1; flex: 1 1 420px; max-width: 560px; }

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--lp-green);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 26px;
    animation: fadeInUp 0.6s ease both;
}

.lp-title {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.lp-subtitle {
    color: var(--lp-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 480px;
    animation: fadeInUp 0.7s ease 0.22s both;
}

.lp-cta {
    display: inline-block;
    background: rgba(52, 211, 153, 0.35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(52, 211, 153, 0.9);
    color: #f2fff8;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
    animation: fadeInUp 0.7s ease 0.34s both, ctaGlow 2.6s ease-in-out 1.2s infinite;
}
.lp-cta:hover { background: rgba(52, 211, 153, 0.5); transform: translateY(-2px) scale(1.03); }
.lp-cta:active { transform: translateY(0) scale(0.98); }

/* ---------- Cartes ---------- */
.lp-cards {
    position: relative;
    z-index: 1;
    flex: 1 1 420px;
    max-width: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lp-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 22px;
    opacity: 0;
    animation: fadeInUp 0.6s ease both;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.lp-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 65%;
    height: 220%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), rgba(52, 211, 153, 0.4), transparent);
    transform: rotate(20deg);
    animation: glassShine 3s ease-in-out infinite;
    pointer-events: none;
}

.lp-cards .lp-card:nth-child(1)::before { animation-delay: 0.3s; }
.lp-cards .lp-card:nth-child(2)::before { animation-delay: 1.3s; }
.lp-cards .lp-card:nth-child(3)::before { animation-delay: 2.3s; }
.lp-cards .lp-card:nth-child(4)::before { animation-delay: 3.3s; }

@keyframes glassShine {
    0% { left: -60%; }
    35% { left: 130%; }
    100% { left: 130%; }
}

.lp-card > * {
    position: relative;
    z-index: 1;
}

.lp-cards .lp-card:nth-child(1) { animation-delay: 0.4s; }
.lp-cards .lp-card:nth-child(2) { animation-delay: 0.5s; }
.lp-cards .lp-card:nth-child(3) { animation-delay: 0.6s; }
.lp-cards .lp-card:nth-child(4) { animation-delay: 0.7s; }

.lp-card-icon {
    display: inline-block;
    font-size: 20px;
    color: var(--lp-green);
    margin-bottom: 14px;
    animation: iconBounce 2.2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.lp-cards .lp-card:nth-child(1) .lp-card-icon { animation-delay: 0s; }
.lp-cards .lp-card:nth-child(2) .lp-card-icon { animation-delay: 0.2s; }
.lp-cards .lp-card:nth-child(3) .lp-card-icon { animation-delay: 0.4s; }
.lp-cards .lp-card:nth-child(4) .lp-card-icon { animation-delay: 0.6s; }

.lp-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.lp-card p { font-size: 13.5px; color: var(--lp-muted); line-height: 1.5; }

/* ---------- Section mobile ---------- */
.lp-mobile {
    background: var(--lp-bg-alt);
    border-top: 1px solid var(--lp-border);
    text-align: center;
    padding: 64px 24px;
}

.lp-badge-center { margin-bottom: 20px; }

.lp-mobile-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
}

.lp-mobile-subtitle {
    color: var(--lp-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 32px;
}

.lp-store-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.lp-store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    min-width: 190px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    animation: storeBounce 2.6s ease-in-out infinite;
}

@keyframes storeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.lp-store-buttons .lp-store-btn:nth-child(2) { animation-delay: 0.3s; }

.lp-store-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(52, 211, 153, 0.4);
}

/* La section mobile s'anime à l'apparition au scroll (voir js/landing.js) */
.lp-mobile .lp-badge-center,
.lp-mobile .lp-mobile-title,
.lp-mobile .lp-mobile-subtitle,
.lp-mobile .lp-store-buttons,
.lp-mobile .lp-mobile-note {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-mobile.in-view .lp-badge-center { opacity: 1; transform: none; }
.lp-mobile.in-view .lp-mobile-title { opacity: 1; transform: none; transition-delay: 0.08s; }
.lp-mobile.in-view .lp-mobile-subtitle { opacity: 1; transform: none; transition-delay: 0.16s; }
.lp-mobile.in-view .lp-store-buttons { opacity: 1; transform: none; transition-delay: 0.24s; }
.lp-mobile.in-view .lp-mobile-note { opacity: 1; transform: none; transition-delay: 0.32s; }

.lp-store-icon { font-size: 20px; }

.lp-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 14.5px;
    font-weight: 700;
}

.lp-store-text small {
    font-size: 10px;
    font-weight: 500;
    color: var(--lp-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lp-mobile-note {
    color: var(--lp-muted);
    font-size: 13px;
}

/* ---------- Footer ---------- */
.lp-footer {
    text-align: center;
    padding: 26px;
    color: var(--lp-muted);
    font-size: 13px;
    background: var(--lp-bg-alt);
    border-top: 1px solid var(--lp-border);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .lp-nav { padding: 18px 20px; }
    .lp-hero { padding: 30px 20px 70px; flex-direction: column; }
    .lp-title { font-size: 34px; }
    .lp-cards { max-width: 100%; }
}
