/* ================================
   Family App - Main Stylesheet
   ================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 80px 20px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.logo span {
    background: linear-gradient(120deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(120deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-primary {
    background: linear-gradient(to bottom right, #4ade80, #10b981, #059669);
    color: white;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.trust-badge {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

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

/* Gamification Section */
.gamification {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.gamification .section-title {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    margin-bottom: 20px;
}

.gamification .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

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

.gamification-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gamification-card h4 {
    font-size: 1.3rem;
    margin: 15px 0;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Pricing Section */
.pricing {
    padding: 100px 20px;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.popular {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    font-size: 1rem;
    color: #666;
}

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

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.features-list li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

.pricing-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pricing-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Final CTA */
.final-cta {
    padding: 100px 20px;
    background: linear-gradient(to bottom right, #4ade80 0%, #10b981 50%, #059669 100%);
    text-align: center;
    color: white;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.final-cta p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 20px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .cta-primary, .cta-secondary {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .final-cta h2 {
        font-size: 2rem;
    }

    .final-cta p {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.testimonial-card,
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}