@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --yellow-accent: #fef08a; /* Soft yellow accent */
    --text-primary: #0f172a; /* Dark text */
    --text-secondary: #475569;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
header {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo i { color: var(--accent); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.85rem 1.75rem; border-radius: 8px; border: none;
    font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s ease;
    text-decoration: none; font-family: inherit;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--yellow-accent); color: var(--text-primary); }
.btn-secondary:hover { background: #fde047; transform: translateY(-1px); }

/* Main layout containers */
.section-wrapper { padding: 4rem 2rem; border-bottom: 1px solid var(--border-color); }
.section-wrapper:nth-child(even) { background-color: var(--secondary-bg); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-primary); }
.section-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Ad Spaces (AdSense Friendly) */
.ad-space {
    width: 100%; margin: 2rem 0; display: flex; justify-content: center; align-items: center;
    min-height: 90px; background: #f1f5f9; color: #94a3b8; border: 1px dashed #cbd5e1;
    border-radius: 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    overflow: hidden;
}

/* Hero Section */
.hero { text-align: center; padding: 6rem 2rem 5rem; background: var(--secondary-bg); }
.hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent); position: relative; }
.hero h1 span::after { content: ''; position: absolute; bottom: 0.2rem; left: 0; width: 100%; height: 0.5rem; background: var(--yellow-accent); z-index: -1; border-radius: 4px; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 3rem; line-height: 1.6; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; }

/* Grid / Cards Generic */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--secondary-bg); border-radius: 16px; padding: 2rem; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); }

/* Categories */
.category-card { text-align: center; text-decoration: none; color: inherit; }
.category-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.category-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.category-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }

/* Fact Tool Widget */
.fact-container { width: 100%; max-width: 800px; margin: 0 auto; text-align: center; }
.fact-card {
    background: var(--secondary-bg); border-radius: 16px; padding: 3rem; text-align: center;
    box-shadow: var(--card-shadow); border: 2px solid var(--accent); position: relative; transition: transform 0.3s ease;
}
.fact-icon { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--accent); opacity: 0.8; }
.fact-text { font-size: 1.75rem; font-weight: 500; line-height: 1.5; margin-bottom: 2.5rem; color: var(--text-primary); }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

/* Share Buttons */
.btn-social {
    background: #f1f5f9; color: var(--text-secondary); border: 1px solid var(--border-color);
    border-radius: 50%; width: 3rem; height: 3rem; padding: 0; justify-content: center; display: inline-flex; align-items: center;
}
.btn-social:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.btn-social.facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.btn-social.twitter:hover { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.btn-social.whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
.btn-social.copy:hover { background: var(--text-primary); color: white; border-color: var(--text-primary); }

/* Features / Why Us */
.feature-card { text-align: center; }
.feature-icon { width: 4rem; height: 4rem; margin: 0 auto 1.5rem; background: var(--yellow-accent); color: var(--text-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }

/* Newsletter */
.newsletter-section { background: var(--accent); color: white; text-align: center; border-radius: 24px; padding: 4rem 2rem; max-width: 1000px; margin: 4rem auto; position: relative; overflow: hidden; }
.newsletter-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; color: white; }
.newsletter-form { display: flex; gap: 1rem; justify-content: center; max-width: 600px; margin: 2rem auto 0; }
.newsletter-form input { flex: 1; padding: 1rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem; font-family: inherit; }
.newsletter-btn { background: var(--yellow-accent); color: var(--text-primary); border: none; padding: 1rem 2rem; border-radius: 8px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.newsletter-btn:hover { background: #fde047; }

/* Testimonials */
.testimonial-card { font-style: italic; position: relative; padding: 2rem 2rem 2rem 3rem; }
.testimonial-card blockquote { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 1rem; }
.testimonial-card i { position: absolute; left: 1rem; top: 1.5rem; font-size: 1.5rem; color: var(--border-color); }
.author { font-style: normal; font-weight: 600; color: var(--accent); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--secondary-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; }
.faq-item h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.faq-item p { color: var(--text-secondary); line-height: 1.6; }

/* Legal Content Page */
.legal-content { background: var(--secondary-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 4rem; max-width: 900px; margin: 4rem auto; box-shadow: var(--card-shadow); }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 2rem; color: var(--text-primary); border-bottom: 2px solid var(--border-color); padding-bottom: 1rem; font-weight: 800; }
.legal-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--accent); font-weight: 700; }
.legal-content p, .legal-content li { line-height: 1.8; color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.05rem; }
.legal-content ul { margin-left: 2rem; margin-bottom: 1rem; }

/* Proper Footer styling */
footer { background: var(--secondary-bg); border-top: 1px solid var(--border-color); padding: 4rem 2rem 2rem; margin-top: auto; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.footer-logo i { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-bottom: 3rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; color: var(--text-secondary); font-size: 0.9rem; border-top: 1px solid var(--border-color); padding-top: 2rem; max-width: 1200px; margin: 0 auto; }

/* Animations */
@keyframes fadeInSlide { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInSlide 0.4s ease forwards; }

/* Toast */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--text-primary); color: white; padding: 0.75rem 1.5rem; border-radius: 9999px; font-weight: 500; opacity: 0; transition: all 0.3s ease; z-index: 1000; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .newsletter-form { flex-direction: column; }
    .nav-links { display: none; }
    .footer-links { flex-direction: column; text-align: center; gap: 1rem; }
    .legal-content { padding: 2rem 1.5rem; }
}
