/* =================================================================
   RAXE - Shared Components
   Buttons, CTA section, scroll animations, section-title/header
   ================================================================= */

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-text {
    background: none;
    color: var(--text-muted);
    padding: 8px 0;
}

.btn-text:hover {
    color: var(--text-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.btn-tertiary:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

/* ===== BTN GLOW (used in integrations.html) ===== */
.btn-glow {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    animation: btnGlow 2s ease-in-out infinite;
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); }
    50% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.6), 0 0 50px rgba(232, 121, 249, 0.2); }
}

/* ===== COMPATIBILITY TEXT ===== */
.compatibility-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.compatibility-text strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== SECTION TITLE / SUBTITLE ===== */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: calc(-1 * var(--space-lg));
    margin-bottom: var(--space-2xl);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header .section-title {
    font-size: var(--font-size-section);
    font-weight: var(--font-black);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
}

.section-header .section-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-dark);
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-on-dark);
    margin-bottom: var(--space-sm);
}

.cta-content p {
    color: var(--text-on-dark-muted);
    margin-bottom: var(--space-lg);
}

.cta-install {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.cta-install code {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-on-dark);
}

.cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.cta-enterprise {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-dark);
}

.cta-enterprise h3 {
    font-size: 1rem;
    color: var(--text-on-dark);
    margin-bottom: var(--space-xs);
}

.cta-enterprise p {
    font-size: 0.875rem;
    color: var(--text-on-dark-muted);
    margin-bottom: var(--space-md);
}

.cta-enterprise .btn-text {
    color: var(--text-on-dark-muted);
}

.cta-enterprise .btn-text:hover {
    color: var(--accent-cyan);
}

/* ===== EYEBROW LABEL ===== */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.eyebrow-labs {
    color: var(--eyebrow-labs);
}

.eyebrow-defend {
    color: var(--eyebrow-defend);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger children */
.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }

.fade-in-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
