/* 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; }

/* ---- Scroll progress bar (width set in site.js) ---- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 60;
    background: linear-gradient(90deg, #d96b43, #e8825d, #ff9d7a);
    box-shadow: 0 0 12px rgba(232, 130, 93, 0.6);
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ---- Slow shimmer across the hero gradient text ---- */
.shine {
    background-size: 220% auto;
    animation: shine 6s linear infinite;
}
@keyframes shine {
    to { background-position: 220% center; }
}

/* ---- Subtle hover lift on content cards ---- */
.card-lift {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 130, 93, 0.4);
    box-shadow: 0 18px 40px -24px rgba(232, 130, 93, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .shine { animation: none; }
    #scroll-progress { transition: none; }
    .card-lift:hover { transform: none; }
}
