/* ============================================
   ULTIMATE SOUNDBOARD - Custom Styles
   Soundboard Studio Aesthetic
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --accent-orange: #F97316;
    --accent-orange-bright: #FB923C;
    --accent-purple: #A855F7;
    --accent-purple-bright: #C084FC;
    --bg-primary: #0a0a12;
    --bg-surface: #12121f;
}

/* ============================================
   Base Animations
   ============================================ */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes sweep {
    0% {
        transform: translateX(-100%) rotate(15deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(200vw) rotate(15deg);
        opacity: 0;
    }
}

@keyframes glow-pulse-orange {
    0%, 100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3),
                    0 0 40px rgba(249, 115, 22, 0.2),
                    0 0 60px rgba(249, 115, 22, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(249, 115, 22, 0.5),
                    0 0 60px rgba(249, 115, 22, 0.3),
                    0 0 90px rgba(249, 115, 22, 0.2);
    }
}

@keyframes glow-pulse-purple {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.3),
                    0 0 40px rgba(168, 85, 247, 0.2),
                    0 0 60px rgba(168, 85, 247, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.5),
                    0 0 60px rgba(168, 85, 247, 0.3),
                    0 0 90px rgba(168, 85, 247, 0.2);
    }
}

@keyframes pad-press {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* ============================================
   Animation Utilities
   ============================================ */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-glow-pulse-orange {
    animation: glow-pulse-orange 2s ease-in-out infinite;
}

.animate-glow-pulse-purple {
    animation: glow-pulse-purple 2s ease-in-out infinite;
}

/* Animation delays */
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-700 { animation-delay: 0.7s; }
.animation-delay-800 { animation-delay: 0.8s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }

/* ============================================
   Light Beams (Studio Effect)
   ============================================ */
.light-beam {
    position: absolute;
    width: 150px;
    height: 200vh;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 80%,
        transparent
    );
    transform-origin: top center;
    pointer-events: none;
}

.light-beam-1 {
    left: 10%;
    top: -50%;
    animation: sweep 15s ease-in-out infinite;
    animation-delay: 0s;
}

.light-beam-2 {
    left: 40%;
    top: -50%;
    animation: sweep 18s ease-in-out infinite;
    animation-delay: 5s;
    width: 100px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(249, 115, 22, 0.02) 20%,
        rgba(249, 115, 22, 0.04) 50%,
        rgba(249, 115, 22, 0.02) 80%,
        transparent
    );
}

.light-beam-3 {
    left: 70%;
    top: -50%;
    animation: sweep 20s ease-in-out infinite;
    animation-delay: 10s;
    width: 120px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(168, 85, 247, 0.02) 20%,
        rgba(168, 85, 247, 0.04) 50%,
        rgba(168, 85, 247, 0.02) 80%,
        transparent
    );
}

/* ============================================
   Background Textures
   ============================================ */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-bright) 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-orange-bright) 0%, var(--accent-orange) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-bright) 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-purple::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-purple-bright) 0%, var(--accent-purple) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
}

.btn-primary-purple:hover::before {
    opacity: 1;
}

.btn-primary-purple span,
.btn-primary-purple svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #a0a0b0;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ============================================
   Cards
   ============================================ */
.app-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s ease;
}

.app-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-card {
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 31, 0.8);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card-large {
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-large:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.feature-card-large:hover::before {
    opacity: 1;
}

.feature-icon-large {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card-large:hover .feature-icon-large {
    transform: scale(1.1);
}

/* ============================================
   Step Numbers (How It Works)
   ============================================ */
.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    color: white;
    letter-spacing: 0;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Mobile Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .light-beam {
        display: none;
    }

    .btn-primary,
    .btn-primary-purple,
    .btn-secondary {
        width: 100%;
    }
}

/* ============================================
   Selection Styling
   ============================================ */
::selection {
    background: rgba(249, 115, 22, 0.3);
    color: white;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-toggle {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 31, 0.5);
    transition: background 0.3s ease;
}

.faq-toggle:hover {
    background: rgba(18, 18, 31, 0.8);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-chevron {
    transition: transform 0.3s ease;
}

/* ============================================
   Form Inputs
   ============================================ */
input[type="email"]::placeholder {
    opacity: 0.6;
}

input[type="email"]:focus::placeholder {
    opacity: 0.4;
}

/* ============================================
   Soundboard Pad Grid (Hero Decoration)
   ============================================ */
.pad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
    background: rgba(10, 10, 18, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pad {
    aspect-ratio: 1;
    border-radius: 6px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.pad:active {
    animation: pad-press 0.2s ease;
}

.pad-orange { background: linear-gradient(135deg, #F97316, #FB923C); }
.pad-purple { background: linear-gradient(135deg, #A855F7, #C084FC); }
.pad-amber { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.pad-violet { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.pad-rose { background: linear-gradient(135deg, #F43F5E, #FB7185); }
.pad-emerald { background: linear-gradient(135deg, #10B981, #34D399); }
.pad-cyan { background: linear-gradient(135deg, #06B6D4, #22D3EE); }
.pad-pink { background: linear-gradient(135deg, #EC4899, #F472B6); }
.pad-yellow { background: linear-gradient(135deg, #EAB308, #FACC15); }
