/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hero container */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: flex-start;
    overflow: hidden;
}

/* Background video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    transform-origin: center center;
    animation: slowZoom 12s ease-out forwards;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
}

/* Hover parallax effect during zoom */
.hero-container:hover .hero-video {
    transform: scale(1.1) translateY(-2%);
}

/* Background blur when pricing card appears */
.hero-video.blurred {
    filter: blur(8px);
    transition: filter 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter;
}

/* Automatic zoom animation */
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Dark overlay with gradient - no blur */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Text overlay for improved readability */
.text-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 8vw;
    padding-right: 8vw;
    max-width: 900px;
    color: white;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.hero-content.fade-in {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hero content fade-out animation */
@keyframes fadeOutHero {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Hero content fade-in animation */
@keyframes fadeInHero {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product name */
.product-name {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Subtitle */
.subtitle {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 32px;
    opacity: 1;
    max-width: 600px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* CTA Button - light and elegant */
.cta-button {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    position: relative;
    z-index: 5;
    transform: translateZ(0);
}

.cta-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-container {
        align-items: center;
        padding-bottom: 120px;
    }
    
    .hero-content {
        padding-left: 6vw;
        padding-right: 6vw;
        padding-bottom: 0;
    }
    
    .product-name {
        font-size: 36px;
        margin-bottom: 20px;
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 18px;
        margin-bottom: 32px;
        line-height: 1.4;
    }
    
    .cta-button {
        padding: 18px 36px;
        font-size: 17px;
        min-height: 56px;
        border-radius: 28px;
    }
    
    .back-button {
        top: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .pricing-card-container {
        padding: 10px;
        align-items: flex-start;
        padding-top: 80px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 380px;
        padding: 32px 24px;
        border-radius: 20px;
        max-height: calc(100vh - 100px);
    }
    
    .card-title {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .price {
        font-size: 42px;
    }
    
    .feature-item {
        font-size: 16px;
        margin-bottom: 14px;
    }
    
    .card-cta-button {
        padding: 18px 32px;
        font-size: 17px;
        min-height: 56px;
    }
}

/* For very large screens */
@media (min-width: 1920px) {
    .hero-content {
        padding-left: 8vw;
        padding-right: 8vw;
        max-width: 1100px;
    }
    
    .product-name {
        font-size: 56px;
    }
    
    .subtitle {
        font-size: 22px;
    }
}

/* Back Button */
.back-button {
    position: absolute;
    top: 40px;
    left: 40px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(0);
    will-change: transform, background-color;
    touch-action: manipulation;
}

.back-button:hover,
.back-button:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) translateZ(0);
}

.back-button:active {
    transform: translateY(0) translateZ(0);
}

/* Pricing Card Styles */
.pricing-card-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    padding: 20px;
    box-sizing: border-box;
}

.pricing-card-container.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pricing-card {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.35), 
        rgba(0, 0, 0, 0.4), 
        rgba(0, 0, 0, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    color: white;
    transform: scale(0.9) translateZ(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.pricing-card-container.show .pricing-card {
    transform: scale(1) translateZ(0);
}

.card-header {
    margin-bottom: 32px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.card-subtitle {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.price-section {
    margin-bottom: 32px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0;
}

.features-list {
    margin-bottom: 32px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 400;
}

.checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(138, 88, 196, 0.9);
    background: linear-gradient(135deg, rgba(138, 88, 196, 0.95), rgba(120, 67, 180, 0.9));
    border-radius: 50%;
    margin-right: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.card-cta-button {
    width: 100%;
    padding: 20px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
    will-change: transform, background-color, box-shadow;
    touch-action: manipulation;
}

.card-cta-button:hover,
.card-cta-button:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px) translateZ(0);
}

.card-cta-button:active {
    transform: translateY(0) translateZ(0);
}



/* Small mobile devices */
@media (max-width: 480px) {
    .hero-container {
        align-items: center;
        padding-bottom: 100px;
    }
    
    .hero-content {
        padding-left: 5vw;
        padding-right: 5vw;
    }
    
    .product-name {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .pricing-card {
        max-width: 95vw;
        padding: 28px 20px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .price {
        font-size: 36px;
    }
} 