* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.octopus-placeholder {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Medallion Container and 3D Flip Animation */
.medallion-container {
    perspective: 1000px;
    display: inline-block;
}

.medallion-flipper {
    position: relative;
    width: 280px;
    height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

.medallion-flipper:hover {
    transform: rotateY(15deg);
}

.medallion-flipper.flipped {
    transform: rotateY(180deg);
}

.medallion-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medallion-front {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.medallion-back {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotateY(180deg);
    overflow: hidden;
}

.octopus-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.image-placeholder {
    font-size: 8rem;
    opacity: 0.8;
    user-select: none;
}

.video-medallion {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

#videoFeed {
    width: 120%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

#loadingOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    z-index: 10;
}

#scanningText {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #00ff88;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    width: fit-content;
    align-self: center;
}

#scanningText.visible {
    display: block;
}

#octopusIcon {
    cursor: pointer;
    user-select: none;
}

/* Product Info */
.product-info {
    background: white;
    padding: 80px 0;
}

.product-info h3 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 80px 0;
    text-align: center;
}

.price-card {
    background: white;
    border-radius: 30px;
    padding: 3rem 2rem;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.price-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.price {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 2rem;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
}

.price-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.cta-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.cta-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.cta-button.sold-out {
    background: #ccc;
    cursor: pointer; /* Changed to pointer for easter egg */
    transition: all 0.3s ease;
    pointer-events: auto; /* Ensure clicks work even when disabled */
}

.cta-button.sold-out:hover {
    background: #bbb;
    transform: scale(1.02);
}

.cta-button.shake {
    animation: shake 0.5s ease-in-out;
}

.cta-button.transforming {
    animation: transform 1s ease-in-out;
}

.cta-button.magic-button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #f0932b);
    background-size: 400% 400%;
    animation: magicGradient 2s ease infinite, glow 2s ease-in-out infinite alternate;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes transform {
    0% { 
        transform: scale(1) rotate(0deg);
        background: #ccc;
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    }
    100% { 
        transform: scale(1) rotate(360deg);
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #f0932b);
    }
}

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

@keyframes glow {
    from { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4); }
    to { box-shadow: 0 12px 35px rgba(255, 107, 107, 0.8), 0 0 20px rgba(255, 107, 107, 0.3); }
}

@keyframes sparkleAnimation {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(0);
        opacity: 0;
    }
}

@keyframes magicAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sold-out-message {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* How it Works */
.how-it-works {
    background: white;
    padding: 80px 0;
}

.how-it-works h3 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #333;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .medallion-flipper {
        width: 220px;
        height: 220px;
    }
    
    .image-placeholder {
        font-size: 6rem;
    }
    
    #scanningText {
        font-size: 1rem;
        margin-top: 15px;
        width: 90%;
        max-width: 300px;
    }
    
    .product-info h3,
    .how-it-works h3 {
        font-size: 2rem;
    }
    
    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }
    
    .price {
        font-size: 3rem;
    }
    
    .price-card {
        padding: 2rem 1.5rem;
    }
    
    nav {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .medallion-flipper {
        width: 180px;
        height: 180px;
    }
    
    .image-placeholder {
        font-size: 4.5rem;
    }
    
    #scanningText {
        font-size: 0.9rem;
        padding: 8px 16px;
        width: 95%;
        max-width: 280px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .product-info,
    .pricing,
    .how-it-works {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
}