/* ==============================
   工事仕訳AI - Landing Page Styles
   Bright & Professional
   ============================== */

/* Hero fade-in animation */
.fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

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

/* Scroll-triggered fade animation */
.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.scroll-fade:nth-child(2) {
    transition-delay: 0.1s;
}
.scroll-fade:nth-child(3) {
    transition-delay: 0.2s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

/* FAQ details animation */
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary ~ * {
    animation: detailsOpen 0.3s ease-out;
}

@keyframes detailsOpen {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA button glow effect on hover */
a[href="/app/register"]:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Selection color */
::selection {
    background: rgba(37, 99, 235, 0.15);
    color: inherit;
}

/* Pulse animation for the badge dot */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
