/* === CSS Variables === */
:root {
    --green-dark: #1B5E20;
    --green-primary: #2E7D32;
    --green-light: #4CAF50;
    --gold-primary: #D4A747;
    --gold-light: #F0D78C;
    --cream: #FEFDF8;
    --text-dark: #1a1a1a;
    --text-muted: #555;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--cream) 0%, #f5f5f0 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* === Layout === */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* === Header & Logo === */
header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* === Language Switcher === */
.lang-switcher {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.lang-label {
    color: var(--text-muted);
}

.lang-switcher a {
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    opacity: 1;
}

.logo-arabic {
    font-family: 'Amiri', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1.2;
}

.logo-english {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green-dark);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* === Hero Section === */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hadith {
    font-family: 'Amiri', serif;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

.hadith-source {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gold-primary);
    font-style: normal;
}

/* === Features Section === */
.features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: 3px solid var(--gold-primary);
}

.feature-icon {
    color: var(--gold-primary);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.feature strong {
    display: block;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* === Signup Section === */
.signup {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--green-dark);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.signup h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.signup > p {
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.form-container {
    max-width: 400px;
    margin: 0 auto;
}

.form-container iframe {
    border-radius: 8px;
}

/* === Counter === */
.counter {
    text-align: center;
    margin-bottom: 2rem;
}

.counter p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.counter strong {
    color: var(--green-primary);
}

/* === Footer === */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 1.25rem;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .logo-arabic {
        font-size: 2.75rem;
    }

    .logo-english {
        font-size: 1.25rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .feature {
        padding: 0.875rem 1rem;
    }

    .signup {
        padding: 2rem 1rem;
        border-radius: 12px;
    }

    .signup h2 {
        font-size: 1.25rem;
    }
}

/* === Animations === */
@media (prefers-reduced-motion: no-preference) {
    .feature {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .feature:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}
