/* The little that Tailwind's CDN build can't express cleanly. */

/* ---- Reveal animations: initial states are gated behind .js so content
       never hides if the GSAP CDN fails (pattern from RevAIvedWeb). ---- */
.js [data-reveal],
.js [data-hero-item] {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal],
    .js [data-hero-item] {
        opacity: 1;
        transform: none;
    }
}

/* ---- Ambient background ---- */
.bg-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}

.bg-orb {
    animation: orb-drift 18s ease-in-out infinite alternate;
}
.bg-orb--slow { animation-duration: 26s; animation-delay: -8s; }
.bg-orb--slower { animation-duration: 34s; animation-delay: -16s; }

@keyframes orb-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(60px, 40px, 0) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-orb { animation: none; }
}

/* ---- Code blocks in the setup steps ---- */
.code-block {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0d16;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* ---- Hero "working…" animated dots ---- */
.hero-dots::after {
    content: '';
    animation: hero-dots 1.2s steps(4, end) infinite;
}
@keyframes hero-dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
}

/* ---- Typing caret in the hero terminal card ---- */
#hero-typing::after {
    content: '▍';
    color: #e8825d;
    animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
    50% { opacity: 0; }
}

/* ---- FAQ chevron rotation ---- */
details[open] .faq-chevron { transform: rotate(180deg); }
details summary::-webkit-details-marker { display: none; }
