/* 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: #07090D;
    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: #f4f4f5;
    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, #d4d4d8, #f4f4f5, #ffffff);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    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(255, 255, 255, 0.35);
    box-shadow: 0 18px 40px -24px rgba(255, 255, 255, 0.35);
}

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

/* ---- Provider badges (match desktop_tether) ---- */
.prov {
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid;
}
.prov-claude {
    color: #E8A07A;
    background: rgba(232, 160, 122, 0.14);
    border-color: rgba(232, 160, 122, 0.35);
}
.prov-codex {
    color: #7DD3FC;
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.35);
}
.prov-grok {
    color: #C4B5FD;
    background: rgba(196, 181, 253, 0.14);
    border-color: rgba(196, 181, 253, 0.35);
}

/* ---- Notes prose ---- */
.prose {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #94a3b8;
}
.prose p { margin: 1.1em 0; }
.prose strong { color: #e2e8f0; font-weight: 600; }
.prose a {
    color: #e2e8f0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.2);
}
.prose a:hover { text-decoration-color: rgba(255, 255, 255, 0.5); }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.2em; }
.prose li { margin: 0.4em 0; }
.prose code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.86em;
    color: #cbd5e1;
}
.prose pre {
    margin: 1.2em 0;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #07090D;
}
.prose pre code { font-size: 0.8rem; }
