/* Ultra Premium Landing Page - Clenso */
/* Soft Pastel Purple & Pink Palette */

/* Root variables for ultra premium theming */
:root {
  --primary-purple: #b794f6;
  --primary-pink: #f772a0;
  --soft-purple: #dcc7ff;
  --soft-pink: #fbb5d3;
  --bg-dark: #0f172a;
  --bg-slate-900: #0f172a;
  --bg-slate-800: #1e293b;
  --bg-slate-700: #334155;
  --text-white: #ffffff;
  --text-slate-100: #f1f5f9;
  --text-slate-300: #cbd5e1;
  --text-slate-400: #94a3af;
  --text-slate-500: #64748b;
}

/* Fix overscroll and smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    position: relative;
}

/* Prevent horizontal scroll on all elements */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Allow specific containers to be wider */
.container, section, nav, footer {
    max-width: 100vw !important;
    box-sizing: border-box;
}

/* iOS Safe Area Support */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Premium mobile spacing */
@media (max-width: 768px) {
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .container, .max-w-7xl, .max-w-5xl, .max-w-4xl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Premium smooth scrolling with momentum */
html {
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Premium scroll snap for sections on mobile */
@media (max-width: 768px) {
    body {
        scroll-snap-type: y proximity;
    }

    section {
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    button, a {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    /* Premium active states for touch */
    button:active, a:active {
        opacity: 0.85;
        transition: opacity 0.1s ease-out;
    }
}

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium loading indicator for links */
a[href*="apps.apple.com"]:active {
    position: relative;
}

a[href*="apps.apple.com"]:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Ultra Premium Button Glow Effects */
@keyframes premium-glow-pulse {
    0%, 100% {
        opacity: 0.5;
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        filter: blur(15px);
    }
}

@keyframes premium-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

/* Premium button hover effects with shimmer */
a[href*="apps.apple.com"] {
    position: relative;
    background-size: 200% auto;
}

a[href*="apps.apple.com"]::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

a[href*="apps.apple.com"]:hover::before {
    opacity: 1;
    animation: premium-shimmer 2s ease-in-out infinite;
}

/* Enhanced glow for buttons on hover */
.group:hover > [class*="blur-sm"] {
    animation: premium-glow-pulse 2s ease-in-out infinite;
}

.group:hover > [class*="blur-md"] {
    filter: blur(12px) brightness(1.1);
}

.group:hover > [class*="blur-xl"] {
    filter: blur(20px) brightness(1.15);
}

/* Premium shadow transitions */
[class*="hover:shadow-"] {
    transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle float animation for premium buttons */
.group:hover a[href*="apps.apple.com"] {
    animation: subtle-float 3s ease-in-out infinite;
}

/* Prevent scrolling beyond footer */
footer {
    margin-top: auto;
}

/* Limit page height to prevent over-scrolling */
#root, body > * {
    max-height: 100%;
}

/* Premium gradient animations with softer colors */
@keyframes gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

.animate-gradient-x {
    animation: gradient-x 4s ease infinite;
}

/* Refined floating animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(1deg);
    }
    66% {
        transform: translateY(-4px) rotate(-1deg);
    }
}

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

/* Premium pulse animation */
@keyframes premium-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(183, 148, 246, 0.4);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(183, 148, 246, 0);
    }
}

.animate-premium-pulse {
    animation: premium-pulse 3s ease-in-out infinite;
}

/* Ultra-smooth fade animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered animation utilities */
.animate-fadeInUp {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fadeInLeft {
    animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fadeInRight {
    animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fadeInDown {
    animation: fadeInDown 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium glassmorphism with softer tones */
.glass-premium {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(203, 213, 225, 0.1);
}

.glass-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(203, 213, 225, 0.08);
}

/* Ultra premium button effects */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 20px 25px -5px rgba(183, 148, 246, 0.15),
        0 10px 10px -5px rgba(247, 114, 160, 0.1);
}

/* Advanced card hover effects */
.card-premium {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.card-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(183, 148, 246, 0.1), rgba(247, 114, 160, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card-premium:hover::after {
    opacity: 1;
}

.card-premium:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 32px 64px -12px rgba(15, 23, 42, 0.4),
        0 25px 50px -12px rgba(183, 148, 246, 0.15);
}

/* Premium custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-purple), var(--primary-pink));
    border-radius: 3px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--soft-purple), var(--soft-pink));
}

/* Navigation premium blur */
.nav-premium-blur {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* Hero section premium effects */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 148, 246, 0.15) 0%, transparent 70%);
    filter: blur(1px);
    animation: float 12s ease-in-out infinite;
}

.hero-orb:nth-child(odd) {
    animation-delay: -6s;
    animation-direction: reverse;
}

/* Premium text effects */
.text-premium-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink), var(--soft-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-x 6s ease infinite;
}

.text-glow {
    text-shadow: 
        0 0 10px rgba(183, 148, 246, 0.3),
        0 0 20px rgba(247, 114, 160, 0.2),
        0 0 30px rgba(183, 148, 246, 0.1);
}

/* Ultra-responsive typography */
@media (max-width: 768px) {
    .text-8xl {
        font-size: 4rem;
        line-height: 1;
    }
    
    .text-6xl {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .text-5xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .text-4xl {
        font-size: 2rem;
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    .text-8xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .text-6xl {
        font-size: 2.25rem;
        line-height: 1.1;
    }
    
    .text-5xl {
        font-size: 2rem;
        line-height: 1.1;
    }
}

/* Premium loading states */
.loading-premium {
    position: relative;
    overflow: hidden;
}

.loading-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(183, 148, 246, 0.1), transparent);
    animation: loading-slide 2s infinite;
}

@keyframes loading-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Advanced particle system */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, var(--primary-purple), var(--primary-pink));
    border-radius: 50%;
    opacity: 0.7;
    animation: float-particle 10s infinite linear;
    filter: blur(0.5px);
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) translateX(200px) rotate(360deg);
        opacity: 0;
    }
}

/* Premium interactive elements */
.interactive-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.interactive-premium:hover {
    transform: scale(1.02) translateY(-2px);
    filter: brightness(1.05) saturate(1.1);
}

/* Premium ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 148, 246, 0.3), transparent);
    pointer-events: none;
    animation: ripple-animation 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Premium focus states */
.focus-premium:focus {
    outline: none;
    box-shadow: 
        0 0 0 2px rgba(183, 148, 246, 0.5),
        0 0 0 4px rgba(183, 148, 246, 0.2);
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particle {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-purple: #9333ea;
        --primary-pink: #e11d48;
        --soft-purple: #a855f7;
        --soft-pink: #f472b6;
    }
}

/* Ultra premium shadows */
.shadow-premium {
    box-shadow: 
        0 25px 50px -12px rgba(15, 23, 42, 0.5),
        0 10px 20px -5px rgba(183, 148, 246, 0.1);
}

.shadow-premium-hover {
    box-shadow: 
        0 35px 60px -12px rgba(15, 23, 42, 0.6),
        0 15px 25px -5px rgba(183, 148, 246, 0.15);
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-gradient-to-br,
    .bg-gradient-to-r,
    .bg-gradient-to-l,
    .bg-gradient-to-b {
        background: white !important;
        color: black !important;
    }
}