/* ═══════════════════════════════════════════════
   CARBONFLOW LANDING PAGE — STYLES
   Complète Tailwind avec les animations custom
   et les effets glass/spotlight impossibles en utility-only
═══════════════════════════════════════════════ */

/* ═══ GRADIENT TEXT ═══ */
.gradient-text {
    background: linear-gradient(135deg, #4ade80 0%, #6ee7b7 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══ GLASS CARD ═══ */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(110, 231, 183, 0.2);
    background: rgba(15, 23, 42, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(110, 231, 183, 0.05);
}

/* ═══ SPOTLIGHT EFFECT (curseur) ═══ */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.spotlight:hover::before {
    opacity: 1;
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ═══ FAQ ═══ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content.open {
    max-height: 300px;
}

.faq-chevron.rotated {
    transform: rotate(180deg);
}

/* ═══ NAVBAR SCROLL ═══ */
.navbar-scrolled {
    background: rgba(3, 7, 18, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ═══ KEYFRAMES ═══ */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes leafFall {
    0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(110vh) translateX(100px) rotate(720deg); opacity: 0; }
}

@keyframes dataFlow {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-10px); }
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(110, 231, 183, 0.1); }
    to { box-shadow: 0 0 40px rgba(110, 231, 183, 0.2); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes scanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* ═══ PARTICULES ═══ */
.particle-leaf {
    position: absolute;
    font-size: 20px;
    animation: leafFall linear infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(0.5px);
    opacity: 0;
}

.particle-data {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(110, 231, 183, 0.15);
    animation: dataFlow ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ═══ CUSTOM SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #030712;
}

::-webkit-scrollbar-thumb {
    background: rgba(110, 231, 183, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 231, 183, 0.4);
}

/* ═══ SELECTION ═══ */
::selection {
    background: rgba(110, 231, 183, 0.2);
    color: #f0fdf4;
}

/* ═══ SMOOTH SCROLL ═══ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ═══ RESPONSIVE FIXES ═══ */
@media (max-width: 768px) {
    .glass-card:hover {
        transform: none;
    }
}
