/* ==========================================================================
   NimbusPlay Premium Enhancements
   High-value startup psychology techniques
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GRAIN TEXTURE OVERLAY — Adds depth & premium feel
   Used by: Linear, Vercel, Raycast, Arc
   -------------------------------------------------------------------------- */
.grain-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* --------------------------------------------------------------------------
   2. SUBTLE GLOW EFFECTS — Creates depth and focus
   Used by: Stripe, Linear, Supabase
   -------------------------------------------------------------------------- */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: glow-pulse 8s ease-in-out infinite;
}

.hero-glow-secondary {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: glow-pulse 10s ease-in-out infinite reverse;
}

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

/* --------------------------------------------------------------------------
   3. STAGGERED FADE-IN ANIMATIONS — Orchestrated reveals
   Used by: Apple, Stripe, Linear
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero specific staggered animation */
.hero-content > * {
    opacity: 0;
    animation: hero-reveal 0.8s var(--ease-out) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   4. PREMIUM BADGE STYLES — Social proof & urgency
   Used by: Notion, Figma, Webflow
   -------------------------------------------------------------------------- */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(255, 107, 74, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    backdrop-filter: blur(10px);
}

.badge-premium::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   5. GLASSMORPHISM CARDS — Modern depth
   Used by: Apple, Vercel, Linear
   -------------------------------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.glass-card-hover {
    transition: all 0.3s var(--ease-out);
}

.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   6. GRADIENT TEXT — Premium headlines
   Used by: Stripe, Vercel, Tailwind
   -------------------------------------------------------------------------- */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-brand {
    background: linear-gradient(135deg, #ff8566 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   7. SUBTLE BORDER GRADIENT — Premium cards
   Used by: Linear, Raycast
   -------------------------------------------------------------------------- */
.border-gradient {
    position: relative;
    background: var(--color-bg-card);
    border-radius: 16px;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.3) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(59, 130, 246, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. PREMIUM BUTTON STYLES — CTAs that convert
   Used by: Stripe, Linear, Notion
   -------------------------------------------------------------------------- */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #f97316 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 74, 0.3);
}

.btn-premium:hover::before {
    opacity: 0.1;
}

.btn-premium:active {
    transform: translateY(0);
}

/* Shine effect on hover */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s;
}

.btn-shine:hover::after {
    left: 150%;
}

/* --------------------------------------------------------------------------
   9. TRUST INDICATORS — Social proof strip
   Used by: Webflow, Notion, Figma
   -------------------------------------------------------------------------- */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-label {
    font-size: 13px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   10. SCROLL-LINKED EFFECTS — Parallax & depth
   Used by: Apple, Stripe
   -------------------------------------------------------------------------- */
.parallax-slow {
    will-change: transform;
}

.parallax-medium {
    will-change: transform;
}

/* --------------------------------------------------------------------------
   11. FLOATING ELEMENTS — Dynamic feel
   Used by: Linear, Vercel
   -------------------------------------------------------------------------- */
.float {
    animation: float 6s ease-in-out infinite;
}

.float-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

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

/* --------------------------------------------------------------------------
   12. SECTION DIVIDERS — Premium transitions
   -------------------------------------------------------------------------- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    margin: 0;
}

.section-divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 74, 0.3) 50%, transparent 100%);
    box-shadow: 0 0 20px rgba(255, 107, 74, 0.2);
}

/* --------------------------------------------------------------------------
   13. CURSOR EFFECTS — Micro-interaction
   -------------------------------------------------------------------------- */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   14. NUMBER COUNTERS — Animated stats
   -------------------------------------------------------------------------- */
.counter {
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   15. TESTIMONIAL CARDS — Social proof
   -------------------------------------------------------------------------- */
.testimonial-card {
    position: relative;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.3s var(--ease-out);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 107, 74, 0.2);
    transform: translateY(-4px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 64px;
    font-family: Georgia, serif;
    color: rgba(255, 107, 74, 0.2);
    line-height: 1;
}

/* --------------------------------------------------------------------------
   16. LOADING SKELETON — Perceived performance
   -------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.06) 50%, 
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
