/* 
   LicitaMatch Landing Page - Custom Styles
   Uses Tailwind via CDN, but keeps complex animations and resets here.
*/

/* Custom Utilities that are tedious in pure Tailwind classes */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Base resets handled by Tailwind, but ensuring scrollbar is tactical/dark */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border: 1px solid #334155;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Animations */
.hero-stagger {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stagger:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-stagger:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-stagger:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-stagger:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-stagger:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal classes manipulated by JS IntersectionObserver */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Live Simulation Animations */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2563EB;
    box-shadow: 0 0 15px #2563EB, 0 0 30px #2563EB;
    animation: scan 2s infinite ease-in-out;
    opacity: 0.3;
    z-index: 5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.sim-message {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block !important;
}

.typing-dot {
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}