/* ============================================
   ClapsBoard - Cinematic App Icon Unveiling
   Dramatic. Premium. Unforgettable.
   Enhanced Edition with Premium Visual Effects
   ============================================ */

:root {
    /* Brand Colors */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    /* Confetti Colors */
    --confetti-1: #3b82f6;
    --confetti-2: #60a5fa;
    --confetti-3: #f472b6;
    --confetti-4: #a78bfa;
    --confetti-5: #34d399;
    --confetti-6: #fbbf24;
    --confetti-7: #f87171;
    --confetti-8: #ffffff;

    /* Extended Color Palette */
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --green-400: #4ade80;
    --amber-400: #fbbf24;
    --rose-400: #fb7185;
    --cyan-400: #22d3ee;

    /* Backgrounds */
    --bg-deep: #020617;
    --bg-dark: #0a0f1a;
    --bg-card: rgba(255, 255, 255, 0.03);

    /* Text - VIBRANT */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Smooth Animation Easings */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-magnetic: cubic-bezier(0.23, 1, 0.32, 1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;

    /* Glow Effects */
    --glow-blue: 0 0 40px rgba(59, 130, 246, 0.4);
    --glow-purple: 0 0 40px rgba(139, 92, 246, 0.3);
    --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: translateZ(0);
}

/* ============================================
   NOISE TEXTURE OVERLAY - Premium Feel
   ============================================ */

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.035;
    pointer-events: none;
    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");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   CURSOR GLOW EFFECT
   ============================================ */

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    will-change: transform;
}

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

@media (pointer: coarse) {
    .cursor-glow {
        display: none;
    }
}

/* ============================================
   FLOATING GEOMETRIC SHAPES
   ============================================ */

.geometric-shapes {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.03;
    animation: shapeFloat 25s ease-in-out infinite;
    will-change: transform;
}

.shape-ring {
    width: 200px;
    height: 200px;
    border: 2px solid var(--blue-400);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-diamond {
    width: 150px;
    height: 150px;
    border: 2px solid var(--purple-400);
    transform: rotate(45deg);
    top: 60%;
    right: 15%;
    animation-delay: -8s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(34, 211, 238, 0.05);
    top: 30%;
    right: 25%;
    animation-delay: -16s;
}

.shape-square {
    width: 120px;
    height: 120px;
    border: 2px solid var(--green-400);
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

.shape-hexagon {
    width: 100px;
    height: 55px;
    background: rgba(251, 113, 133, 0.03);
    position: absolute;
    top: 15%;
    right: 30%;
    animation-delay: -12s;
}

.shape-hexagon::before,
.shape-hexagon::after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.shape-hexagon::before {
    bottom: 100%;
    border-bottom: 28px solid rgba(251, 113, 133, 0.03);
}

.shape-hexagon::after {
    top: 100%;
    border-top: 28px solid rgba(251, 113, 133, 0.03);
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(30px, -30px, 0) rotate(5deg);
    }
    50% {
        transform: translate3d(0, -50px, 0) rotate(0deg);
    }
    75% {
        transform: translate3d(-30px, -20px, 0) rotate(-5deg);
    }
}

/* ============================================
   FIXED HEADER - ALWAYS ON TOP
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.5) 70%, transparent 100%);
    pointer-events: none;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transition: transform 0.3s var(--ease-magnetic);
}

.header-logo:hover {
    transform: scale(1.02);
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    filter: saturate(1.3) brightness(1.1);
    transition: all 0.3s var(--ease-magnetic);
}

.header-logo:hover .header-icon {
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
    transform: scale(1.05);
}

.header-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.header-features-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    transition: all 0.3s var(--ease-magnetic);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.header-features-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-features-link:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.header-features-link:hover::before {
    opacity: 1;
}

.header-features-link svg {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.header-features-link:hover svg {
    opacity: 1;
    transform: rotate(72deg);
}

/* ============================================
   BACKGROUND EFFECTS - GRADIENT WAVE
   ============================================ */

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(59, 130, 246, 0.25), transparent 50%),
        radial-gradient(ellipse 80% 60% at 50% 130%, rgba(96, 165, 250, 0.2), transparent 50%),
        radial-gradient(circle at 50% 50%, #020617, #0a1628);
    z-index: -5;
}

/* Enhanced Gradient Wave Layers */
.bg-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg,
            rgba(59, 130, 246, 0.08) 0%,
            transparent 40%,
            rgba(147, 51, 234, 0.06) 60%,
            transparent 100%);
    animation: waveShift 12s ease-in-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.bg-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(-45deg,
            rgba(96, 165, 250, 0.1) 0%,
            transparent 35%,
            rgba(59, 130, 246, 0.08) 65%,
            transparent 100%);
    animation: waveShift 15s ease-in-out infinite reverse;
    animation-delay: -5s;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes waveShift {
    0%, 100% {
        opacity: 0.8;
        transform: translate3d(-5%, 0, 0);
    }
    50% {
        opacity: 1;
        transform: translate3d(5%, -3%, 0);
    }
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -4;
    opacity: 0.4;
    animation: gridFloat 20s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes gridFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(15px, 15px, 0);
    }
}

/* Enhanced Glow Effects */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -3;
    animation: floatGlow 20s ease-in-out infinite;
    will-change: transform, opacity;
}

.glow-1 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle,
            rgba(59, 130, 246, 0.35) 0%,
            rgba(96, 165, 250, 0.15) 40%,
            transparent 70%);
    top: -400px;
    left: -300px;
}

.glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle,
            rgba(147, 51, 234, 0.25) 0%,
            rgba(167, 139, 250, 0.1) 40%,
            transparent 70%);
    bottom: -250px;
    right: -200px;
    animation-delay: -7s;
}

.glow-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(96, 165, 250, 0.3) 0%,
            rgba(59, 130, 246, 0.1) 40%,
            transparent 70%);
    top: 35%;
    left: 55%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate3d(60px, -40px, 0) scale(1.15);
        opacity: 1;
    }
    50% {
        transform: translate3d(-20px, 50px, 0) scale(0.95);
        opacity: 0.85;
    }
    75% {
        transform: translate3d(-50px, -30px, 0) scale(1.1);
        opacity: 0.9;
    }
}

/* Stars */
.stars {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    will-change: opacity, transform;
    transform: translateZ(0);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale3d(1, 1, 1);
    }
    50% {
        opacity: 1;
        transform: scale3d(1.5, 1.5, 1);
    }
}

/* Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--blue-400);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise 20s linear infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes particleRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 100vh, 0) scale(0);
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -100vh, 0) scale(1);
    }
}

/* ============================================
   CONFETTI - Enhanced with More Shapes
   ============================================ */

.confetti-container {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.confetti.circle {
    border-radius: 50%;
}

.confetti.square {
    border-radius: 2px;
}

.confetti.ribbon {
    width: 8px;
    height: 20px;
    border-radius: 2px;
}

.confetti.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    width: 12px;
    height: 12px;
}

.confetti.diamond {
    transform: rotate(45deg);
}

.confetti.heart {
    width: 12px;
    height: 12px;
    background: transparent;
    position: relative;
}

.confetti.heart::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    background: inherit;
    border-radius: 6px 6px 0 0;
    transform: rotate(-45deg);
    left: 0;
}

.confetti.heart::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    background: inherit;
    border-radius: 6px 6px 0 0;
    transform: rotate(45deg);
    left: 3px;
}

/* ============================================
   VIDEO INTRO
   ============================================ */

.video-intro {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0.6s;
    will-change: opacity;
    transform: translateZ(0);
}

.video-intro.active {
    opacity: 1;
    visibility: visible;
}

.video-intro.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.video-intro video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale3d(1.02, 1.02, 1);
    transition: transform 1.5s ease-out;
    will-change: transform;
}

.video-intro.active video {
    transform: scale3d(1, 1, 1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.video-intro::before {
    content: '';
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 60%);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.video-intro.active::before {
    opacity: 1;
}

/* ============================================
   UNVEIL OVERLAY
   ============================================ */

.unveil-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.unveil-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease 0.5s;
}

/* Light Beams */
.light-beams {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.3;
}

.beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 200vh;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform-origin: center center;
    animation: rotateBeam 20s linear infinite;
}

.beam-1 {
    transform: rotate(0deg);
    animation-delay: 0s;
}

.beam-2 {
    transform: rotate(60deg);
    animation-delay: -6.6s;
}

.beam-3 {
    transform: rotate(120deg);
    animation-delay: -13.3s;
}

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

/* Unveil Content */
.unveil-content {
    text-align: center;
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
}

.unveil-sparkle {
    font-size: 3rem;
    animation: sparkleFloat 2s ease-in-out infinite, fadeInScale 1s ease-out 0.2s both;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.unveil-presented {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-300);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.unveil-title {
    font-size: clamp(2.8rem, 9vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 30%, var(--blue-300) 60%, var(--blue-400) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both, gradientShift 5s ease-in-out infinite;
    text-shadow: 0 0 100px rgba(59, 130, 246, 0.6);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.unveil-subtitle {
    font-size: clamp(1rem, 3vw, 1.375rem);
    color: var(--text-secondary);
    font-weight: 400;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

/* Unveil Button - Premium Style with Magnetic Effect */
.unveil-button {
    margin-top: 1.5rem;
    padding: 1.25rem 3.5rem;
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: white;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600), var(--blue-700));
    background-size: 200% 200%;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 20px 50px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 -2px 10px rgba(0, 0, 0, 0.2) inset;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s both, buttonBreathing 3s ease-in-out infinite 2s;
}

.button-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-500), #a78bfa, var(--blue-400));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: glowRotate 3s linear infinite;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.unveil-button:hover .button-glow {
    opacity: 1;
}

@keyframes glowRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

@keyframes buttonBreathing {
    0%, 100% {
        box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 25px 60px rgba(59, 130, 246, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 40px rgba(59, 130, 246, 0.3);
        transform: scale(1.02);
    }
}

.unveil-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.unveil-button:hover::before {
    left: 100%;
}

.unveil-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 60px rgba(59, 130, 246, 0.4);
}

.unveil-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    display: flex;
    animation: iconBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.button-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Veil Curtains - GPU Accelerated */
.veil {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    z-index: 101;
    transition: transform 1.4s var(--ease-out-expo);
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.veil-left {
    left: 0;
    background: linear-gradient(90deg, #0a0f1c, #0d1628, #0f1a2e);
}

.veil-right {
    right: 0;
    background: linear-gradient(-90deg, #0a0f1c, #0d1628, #0f1a2e);
}

.veil-texture {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(59, 130, 246, 0.02) 2px,
            rgba(59, 130, 246, 0.02) 4px);
    opacity: 0.5;
}

/* Center glow line */
.center-glow {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(59, 130, 246, 0.3) 20%,
            rgba(96, 165, 250, 0.8) 50%,
            rgba(59, 130, 246, 0.3) 80%,
            transparent 100%);
    z-index: 103;
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.5),
        0 0 60px rgba(59, 130, 246, 0.3);
    animation: centerGlowPulse 2s ease-in-out infinite;
}

@keyframes centerGlowPulse {
    0%, 100% {
        opacity: 0.8;
        width: 4px;
    }
    50% {
        opacity: 1;
        width: 6px;
    }
}

/* Unveiled state - GPU Optimized */
.unveil-overlay.unveiled .veil-left {
    transform: translate3d(-100%, 0, 0) skewX(-3deg);
}

.unveil-overlay.unveiled .veil-right {
    transform: translate3d(100%, 0, 0) skewX(3deg);
}

.unveil-overlay.unveiled .unveil-content {
    animation: contentFadeOut 0.4s ease-out forwards;
}

.unveil-overlay.unveiled .center-glow {
    animation: centerGlowExplode 0.35s ease-out forwards;
}

@keyframes contentFadeOut {
    to {
        opacity: 0;
        transform: scale3d(0.95, 0.95, 1) translate3d(0, -20px, 0);
    }
}

@keyframes centerGlowExplode {
    0% {
        transform: translateX(-50%) scaleX(0.01);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scaleX(80);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scaleX(100);
        opacity: 0;
    }
}

/* ============================================
   LIGHT BURST
   ============================================ */

.light-burst {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 98;
    pointer-events: none;
    opacity: 0;
}

.burst-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    will-change: transform, opacity;
}

.light-burst.active .burst-ring {
    animation: ringBurst 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.burst-ring-1 {
    animation-delay: 0s;
    border-color: rgba(255, 255, 255, 0.8);
}

.burst-ring-2 {
    animation-delay: 0.1s;
    border-color: rgba(59, 130, 246, 0.6);
}

.burst-ring-3 {
    animation-delay: 0.2s;
    border-color: rgba(96, 165, 250, 0.4);
}

@keyframes ringBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(100);
        opacity: 0;
    }
}

.light-burst.active {
    opacity: 1;
}

/* Spotlight */
.spotlight {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 97;
    pointer-events: none;
    opacity: 0;
    transition: width 1.2s var(--ease-out-expo), height 1.2s var(--ease-out-expo), opacity 0.8s var(--ease-smooth);
    will-change: width, height, opacity;
}

.spotlight.active {
    width: 150vmax;
    height: 150vmax;
    opacity: 1;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: scale3d(0.9, 0.9, 1) translate3d(0, 20px, 0);
    transition: opacity 0.8s var(--ease-smooth), transform 1s var(--ease-out-expo), visibility 0.8s;
    will-change: opacity, transform;
}

.container.revealed {
    opacity: 1;
    visibility: visible;
    transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
}

/* App Icon */
.icon-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.revealed .icon-wrapper {
    animation: iconGrandReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes iconGrandReveal {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 1) rotate(-90deg);
    }
    40% {
        opacity: 1;
        transform: scale3d(1.08, 1.08, 1) rotate(5deg);
    }
    60% {
        transform: scale3d(0.95, 0.95, 1) rotate(-2deg);
    }
    80% {
        transform: scale3d(1.02, 1.02, 1) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1) rotate(0deg);
    }
}

.icon-glow {
    position: absolute;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6), rgba(96, 165, 250, 0.3) 40%, transparent 70%);
    filter: blur(40px);
    animation: iconGlowPulse 3s ease-in-out infinite;
}

@keyframes iconGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale3d(1, 1, 1);
    }
    50% {
        opacity: 0.9;
        transform: scale3d(1.15, 1.15, 1);
    }
}

.icon-rays {
    position: absolute;
    width: 300%;
    height: 300%;
    opacity: 0;
    z-index: 0;
}

.container.revealed .icon-rays {
    animation: raysReveal 2s ease-out 0.3s forwards;
}

@keyframes raysReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: scale(1.5) rotate(180deg);
    }
}

.icon-shimmer {
    position: absolute;
    inset: -10%;
    background: linear-gradient(135deg,
            transparent 30%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 70%);
    background-size: 200% 200%;
    border-radius: 45px;
    animation: shimmerPass 3s ease-in-out infinite;
    pointer-events: none;
}

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

.icon-ring {
    position: absolute;
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 45px;
    opacity: 0;
}

.container.revealed .icon-ring {
    animation: ringPulse 4s ease-out infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.ring-2 {
    width: 100%;
    height: 100%;
    animation-delay: 1.3s;
}

.ring-3 {
    width: 100%;
    height: 100%;
    animation-delay: 2.6s;
}

@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.app-icon {
    width: 190px;
    height: 190px;
    border-radius: 42px;
    box-shadow:
        0 30px 80px rgba(59, 130, 246, 0.8),
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(96, 165, 250, 0.5);
    position: relative;
    z-index: 1;
    animation: iconFloat 6s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: saturate(1.4) brightness(1.15);
    will-change: transform;
    transform: translateZ(0);
}

.app-icon:hover {
    transform: scale3d(1.06, 1.06, 1) translate3d(0, -6px, 0);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

/* Brand */
.brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.container.revealed .brand {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.title {
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.title-claps {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

.title-board {
    background: linear-gradient(135deg, var(--blue-300), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
}

.tagline {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 40px rgba(147, 197, 253, 0.5);
    font-style: italic;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.container.revealed .cta-section {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.coming-soon {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(96, 165, 250, 0.2));
    border: 2px solid rgba(96, 165, 250, 0.6);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
    animation: badgePulse 2s ease-in-out infinite;
}

.store-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.store-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-badge:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    border-color: rgba(96, 165, 250, 0.7);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.store-badge:hover::before {
    opacity: 1;
}

.store-badge svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.store-badge:hover svg {
    transform: scale(1.1);
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.badge-small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-large {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.5), inset 0 0 30px rgba(59, 130, 246, 0.15);
    }
}

/* Footer */
.footer {
    margin-top: 1rem;
}

.container.revealed .footer {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s var(--ease-magnetic);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
    transition: all 0.3s var(--ease-magnetic);
    transform: translateX(-50%);
    border-radius: 1px;
}

.footer-links a:hover {
    color: var(--blue-400);
    background: rgba(59, 130, 246, 0.1);
}

.footer-links a:hover::after {
    width: 60%;
}

.presented {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.presented a {
    color: var(--blue-400);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.presented a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--blue-400), var(--purple-400));
    transition: width 0.3s ease;
}

.presented a:hover {
    color: var(--blue-300);
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.presented a:hover::after {
    width: 100%;
}

/* ============================================
   RIPPLE EFFECT
   ============================================ */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        gap: 2rem;
    }

    .icon-wrapper {
        width: 180px;
        height: 180px;
    }

    .app-icon {
        width: 160px;
        height: 160px;
        border-radius: 36px;
    }

    .icon-ring,
    .icon-shimmer {
        border-radius: 36px;
    }

    .store-badges {
        flex-direction: column;
        width: 100%;
    }

    .store-badge {
        width: 100%;
        justify-content: center;
    }

    .unveil-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .unveil-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .cursor-glow {
        display: none;
    }

    .geometric-shapes {
        display: none;
    }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-glow,
    .geometric-shapes,
    .noise-overlay {
        display: none;
    }
}

/* ============================================
   WEB APP BUTTON - Clean Design
   ============================================ */

.web-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-spring);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.web-app-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.web-app-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.web-app-text .btn-small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.web-app-text .btn-large {
    font-size: 1.1rem;
    font-weight: 700;
}

.web-app-btn .arrow-icon {
    margin-left: 4px;
    transition: transform 0.3s var(--ease-spring);
}

.web-app-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #4f8ef7, #3b82f6);
}

.web-app-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.web-app-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}
