:root {
    --primary: #6B5B95;
    --secondary: #FFD166;
    --accent: #FF6B9D;
    --light: #E8DFF5;
    --white: #FFFFFF;
    --text-dark: #2D3142;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.2;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 3s infinite;
    opacity: 0.7;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.tagline {
    color: var(--white);
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: 500;
}

.subtitle {
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Card Pull Area */
.card-pull-area {
    margin: 50px auto;
    perspective: 1000px;
}

.card-back, .card-front {
    width: 320px;
    height: 450px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.6s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-back:hover {
    transform: scale(1.05) rotateY(5deg);
}

.cosmic-door {
    position: relative;
    width: 150px;
    height: 200px;
}

.door-arch {
    width: 150px;
    height: 180px;
    background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
    border-radius: 75px 75px 0 0;
    border: 4px solid var(--secondary);
    position: relative;
}

.stairs {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, 
        transparent 0%, transparent 20%,
        var(--primary) 20%, var(--primary) 40%,
        transparent 40%, transparent 60%,
        var(--primary) 60%, var(--primary) 80%,
        transparent 80%);
}

.star-top {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: float 2s ease-in-out infinite;
}

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

.card-prompt {
    margin-top: 30px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.card-front {
    background: var(--light);
}

.card-message {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.8;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.pull-again {
    margin-top: 20px;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.6);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--white);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.modal form {
    margin: 30px 0;
}

.modal input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
}

.modal input:focus {
    outline: none;
    border-color: var(--primary);
}

.privacy {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
}

/* Use Cases Section */
.use-cases {
    padding: 80px 20px;
    background: var(--white);
}

.use-cases h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.case-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Why Section */
.why-section {
    padding: 80px 20px;
    background: var(--gradient);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.why-item h3 {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Product Section */
.product-section {
    padding: 80px 20px;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.product-card {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--light);
    padding: 50px;
    border-radius: 20px;
}

.deck-mockup {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-box {
    width: 250px;
    height: 350px;
    background: var(--gradient);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.product-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.deck-desc {
    color: #666;
    margin-bottom: 30px;
}

.features {
    list-style: none;
    margin: 30px 0;
}

.features li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.price {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 700;
    margin: 30px 0;
}

.shipping {
    text-align: center;
    color: #666;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* How It Works */
.how-section {
    padding: 80px 20px;
    background: var(--light);
}

.how-section h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    color: var(--text-dark);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}

.footer-quote {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    font-size: 0.9rem;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .handwritten {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .card-back, .card-front {
        width: 280px;
        height: 400px;
    }
    
    .product-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
