 /* ============================================
   LANDING PAGE — Jusqu'ici
   High-end glassmorphism design system
   ============================================ */

/* --- Design Tokens --- */
:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0d14;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --glass-bg: rgba(10, 15, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Base --- */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* --- Glassmorphism --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.glass-nav {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* --- Buttons --- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    border-radius: 9999px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

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

.btn-primary .shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: translateX(-150%);
    pointer-events: none;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { transform: translateX(-150%); }
    15%  { transform: translateX(150%); }
    100% { transform: translateX(150%); }
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary-sm:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* --- Mobile Navigation --- */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #94a3b8;
    border-radius: 0.75rem;
    transition: all 0.2s;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.from-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.from-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.from-left.visible,
.from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* --- Keyframe Animations --- */

/* Floating phone mockup */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

/* Glow pulse for background blobs */
@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.animate-glow-pulse {
    animation: glow-pulse 8s ease-in-out infinite;
}

.animate-glow-pulse-delayed {
    animation: glow-pulse 8s ease-in-out 4s infinite;
}

/* Gradient text shift */
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-shift {
    animation: gradient-shift 6s ease infinite;
}

/* Orbiting nodes */
.orbit-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    animation: orbit var(--orbit-duration, 12s) linear infinite;
    animation-delay: var(--orbit-delay, 0s);
}

.orbit-node > * {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) translateX(var(--orbit-radius, 120px));
}

@keyframes orbit {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Counter-rotate to keep icons upright */
.orbit-node > * {
    animation: counter-rotate var(--orbit-duration, 12s) linear infinite;
    animation-delay: var(--orbit-delay, 0s);
}

@keyframes counter-rotate {
    0%   { transform: translate(-50%, -50%) translateX(var(--orbit-radius, 120px)) rotate(0deg); }
    100% { transform: translate(-50%, -50%) translateX(var(--orbit-radius, 120px)) rotate(-360deg); }
}

/* --- Phone Mockup --- */
.phone-mockup {
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
}

/* --- Utilities --- */
.scroll-mt-24 {
    scroll-margin-top: 6rem;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .from-left,
    .from-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-float,
    .animate-float-delayed,
    .animate-glow-pulse,
    .animate-glow-pulse-delayed,
    .animate-gradient-shift,
    .orbit-node,
    .orbit-node > *,
    .btn-primary .shimmer {
        animation: none;
    }
}
