/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #4a5568;
    background-color: #f7fafc;
}

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

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #718096;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
    background: #edf2f7;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 4rem 0;
    color: #2d3748;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #2d3748;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    font-weight: 500;
    color: #4a5568;
}

.btn-cta {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #2d3748;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 234, 167, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 234, 167, 0.6);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Games Section */
.games-section {
    padding: 5rem 0;
    background: white;
}

.games-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
    font-weight: 700;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    cursor: pointer;
    border: 2px solid #f7fafc;
}

.game-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.game-icon.memory {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.game-icon.puzzle {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.game-icon.shapes {
    background: linear-gradient(135deg, #d4a4eb 0%, #84fab0 100%);
}

.game-icon.colors {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

.game-icon.numbers {
    background: linear-gradient(135deg, #a8edea 0%, #74b9ff 100%);
}

.game-icon.animals {
    background: linear-gradient(135deg, #c3f9a7 0%, #81ecec 100%);
}

.game-icon.recycling {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.game-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
}

/* Game Card States */
.game-card-ready {
    text-decoration: none;
    color: inherit;
}

.game-card-ready:hover {
    transform: translateY(-3px);
    border-color: #10b981;
}

.game-card-dev {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-card-dev:hover {
    transform: none;
    border-color: #f7fafc;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Game Status Indicators */
.game-status {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.game-status.ready {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.game-status.dev {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #f7fafc;
}

.features-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
    font-weight: 700;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 2px solid #edf2f7;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.feature-icon.privacy {
    background: linear-gradient(135deg, #a8edea 0%, #74b9ff 100%);
}

.feature-icon.education {
    background: linear-gradient(135deg, #fad0c4 0%, #ff9a9e 100%);
}

.feature-icon.free {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* Trust Section */
.trust-section {
    padding: 5rem 0;
    background: white;
}

.trust-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: center;
}

.trust-item {
    text-align: center;
}

.phone-mockup {
    margin-bottom: 1.5rem;
}

.phone-mockup img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.certificate {
    background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.certificate h4 {
    font-size: 1.2rem;
    font-weight: bold;
}

.trust-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.trust-item p {
    color: #718096;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: #f7fafc;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 2px solid #edf2f7;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8edea 0%, #74b9ff 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.user-info h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.user-info span {
    color: #718096;
    font-size: 0.9rem;
}

.stars {
    color: #ffeaa7;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial p {
    color: #4a5568;
    line-height: 1.6;
    font-style: italic;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-text p {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.footer-text a {
    color: #a8edea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #fed6e3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 10% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.modal-close {
    font-size: 1.5rem;
    font-weight: bold;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-body {
    padding: 1.5rem 2rem;
    text-align: center;
}

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

.modal-text {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

.modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modal-btn.success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
