/*
 * ═══════════════════════════════════════════════════════════════════
 * BLACKBOX AUDIO - DEFERRED STYLES
 * Non-critical styles loaded after initial page render
 * ═══════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════
   ADVANCED ANIMATIONS & EFFECTS
   ═══════════════════════════════════════════════════════════════════ */

/* Pulse animation for featured pricing tier */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 60px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 80px rgba(255, 107, 53, 0.6);
    }
}

.pricing-card.featured {
    animation: pulse 3s ease-in-out infinite;
}

/* Subtle floating animation for hero elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    animation: float 6s ease-in-out infinite;
}

/* Gradient animation for buttons */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ffa552 50%, #ffbd69 100%);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
}

/* Scanline effect overlay */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

/* Waveform decoration */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><path d="M0,50 L50,50 L60,30 L70,70 L80,50 L130,50 L140,25 L150,75 L160,50 L210,50 L220,20 L230,80 L240,50 L290,50 L300,35 L310,65 L320,50 L370,50 L380,40 L390,60 L400,50 L450,50 L460,30 L470,70 L480,50 L530,50 L540,25 L550,75 L560,50 L610,50 L620,35 L630,65 L640,50 L690,50 L700,20 L710,80 L720,50 L770,50 L780,40 L790,60 L800,50 L850,50 L860,30 L870,70 L880,50 L930,50 L940,25 L950,75 L960,50 L1010,50 L1020,35 L1030,65 L1040,50 L1090,50 L1100,40 L1110,60 L1120,50 L1200,50" stroke="rgba(255, 107, 53, 0.2)" stroke-width="2" fill="none"/></svg>') center bottom no-repeat;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   PARTICLE EFFECTS
   ═══════════════════════════════════════════════════════════════════ */

/* Animated particles in background */
@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.hero,
.final-cta {
    position: relative;
}

/* Create particle divs with JavaScript, styled here */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--orange-bright);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 15s linear infinite;
}

.particle:nth-child(2n) {
    background: var(--purple-glow);
    animation-duration: 20s;
}

/* ═══════════════════════════════════════════════════════════════════
   LOADING STATES & SKELETON SCREENS
   ═══════════════════════════════════════════════════════════════════ */

@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 0px, var(--bg-tertiary) 100px, var(--bg-secondary) 200px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   ENHANCED CARD EFFECTS
   ═══════════════════════════════════════════════════════════════════ */

/* Card shine effect on hover */
.proof-card,
.pricing-card {
    position: relative;
    overflow: hidden;
}

.proof-card::before,
.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.proof-card:hover::before,
.pricing-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* ═══════════════════════════════════════════════════════════════════
   GLOW EFFECTS
   ═══════════════════════════════════════════════════════════════════ */

/* Enhanced glow on interactive elements */
.btn:active {
    transform: scale(0.98);
}

.pricing-card:hover {
    background:
        radial-gradient(at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        var(--gradient-card);
}

/* ═══════════════════════════════════════════════════════════════════
   ADVANCED TYPOGRAPHY EFFECTS
   ═══════════════════════════════════════════════════════════════════ */

/* Text shadow for depth */
.hero-title {
    text-shadow:
        0 0 30px rgba(255, 107, 53, 0.5),
        0 0 60px rgba(255, 107, 53, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title {
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-orange);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

/* Stagger animation for grid items */
.proof-card:nth-child(1) {
    transition-delay: 0.1s;
}

.proof-card:nth-child(2) {
    transition-delay: 0.2s;
}

.proof-card:nth-child(3) {
    transition-delay: 0.3s;
}

.step:nth-child(1) {
    transition-delay: 0.1s;
}

.step:nth-child(2) {
    transition-delay: 0.2s;
}

.step:nth-child(3) {
    transition-delay: 0.3s;
}

.pricing-card:nth-child(1) {
    transition-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    transition-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════════════════
   ENHANCED FORM STYLES
   ═══════════════════════════════════════════════════════════════════ */

.email-input:focus {
    background: rgba(31, 15, 46, 0.8);
}

.email-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Custom checkbox styles */
.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--purple-border);
    border-radius: 2px;
    background: var(--bg-secondary);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--gradient-orange);
    border-color: var(--orange-bright);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid var(--orange-bright);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════════════════════════════════ */

.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--orange-bright) 20%,
        var(--orange-bright) 80%,
        transparent 100%
    );
    margin: 80px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--orange-bright);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════
   ENHANCED NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */

/* Add shadow when scrolled */
.nav-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════ */

@media print {
    .nav-header,
    .mobile-menu-toggle,
    .btn,
    .email-form,
    .hero-cta {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   ADDITIONAL RESPONSIVE TWEAKS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .tier-price {
        font-size: 2.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .trust-indicators {
        padding: 24px 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .proof-grid,
    .steps,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   DARK MODE ENHANCEMENTS (already dark, but for system preference)
   ═══════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: light) {
    /* This design is inherently dark - no light mode needed */
    /* But we respect user preference by keeping it accessible */
}

/* ═══════════════════════════════════════════════════════════════════
   HIGH CONTRAST MODE
   ═══════════════════════════════════════════════════════════════════ */

@media (prefers-contrast: high) {
    .btn {
        border: 3px solid currentColor;
    }

    .pricing-card,
    .proof-card {
        border-width: 3px;
    }

    * :focus-visible {
        outline-width: 3px;
        outline-offset: 6px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITY ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--purple-border);
    border-top-color: var(--orange-bright);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   TOOLTIP STYLES (if needed for future features)
   ═══════════════════════════════════════════════════════════════════ */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--purple-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   SELECTION STYLES
   ═══════════════════════════════════════════════════════════════════ */

::selection {
    background: var(--orange-bright);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--orange-bright);
    color: var(--bg-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLLBAR STYLES (Webkit browsers)
   ═══════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 1px solid var(--purple-border);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-orange);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ffa552 100%);
}

/* ═══════════════════════════════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════ */

/* GPU acceleration for animated elements */
.hero-content,
.pricing-card,
.proof-card,
.btn {
    will-change: transform;
}

/* Prevent layout shift during animations */
.fade-in {
    content-visibility: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   END OF DEFERRED STYLES
   ═══════════════════════════════════════════════════════════════════ */
