:root {
    --gold: #C9A227;
    --gold-light: #E8D48A;
    --gold-dark: #9A7B1A;
    --brown-dark: #2C1810;
    --brown: #5D4037;
    --brown-light: #8B7355;
    --cream: #FAF6F0;
    --cream-dark: #EDE4D4;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #6B6B6B;

    --font-arabic-display: 'Amiri', serif;
    --font-arabic-body: 'Tajawal', sans-serif;
    --font-english: 'Cormorant Garamond', serif;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

body.en {
    direction: ltr;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 6px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

body.en .lang-switcher {
    left: auto;
    right: 20px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 20px;
    font-family: var(--font-arabic-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--gold);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: var(--cream-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    background:
        linear-gradient(135deg, rgba(250,246,240,0.97) 0%, rgba(237,228,212,0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow:
        0 10px 40px rgba(201, 162, 39, 0.3),
        inset 0 -2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.logo svg {
    width: 60px;
    height: 60px;
    fill: var(--white);
}

.brand-name {
    font-family: var(--font-arabic-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--brown-dark);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 var(--gold-light);
}

body.en .brand-name {
    font-family: var(--font-english);
    letter-spacing: 8px;
    text-transform: uppercase;
}

/* Tagline */
.tagline {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--brown);
    margin-bottom: 15px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.tagline-sub {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Early Access Badge */
.early-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
    color: var(--gold-light);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.7s both;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.3);
}

.early-badge .icon {
    font-size: 1.2rem;
}

/* Signup Form */
.signup-container {
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.signup-form {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

body.en .signup-form {
    flex-direction: row;
}

.signup-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid var(--cream-dark);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-arabic-body);
    background: var(--white);
    transition: var(--transition);
    text-align: right;
}

body.en .signup-input {
    text-align: left;
}

.signup-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.signup-input::placeholder {
    color: var(--text-light);
}

.signup-btn {
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-arabic-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.4);
}

.signup-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.signup-note strong {
    color: var(--gold-dark);
}

/* Counter Section */
.counter-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    animation: fadeInUp 1s ease-out 1.1s both;
}

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

.counter-number {
    font-family: var(--font-english);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-dark);
    line-height: 1;
}

.counter-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.counter-divider {
    width: 1px;
    background: var(--cream-dark);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: var(--brown-light);
}

/* Hadith Section */
.hadith-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
    position: relative;
    overflow: hidden;
}

.hadith-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hadith-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hadith-ornament {
    font-size: 1.5rem;
    color: var(--gold);
    margin: 15px 0;
    opacity: 0.7;
}

.hadith-text {
    font-family: var(--font-arabic-display);
    font-size: 2rem;
    line-height: 2;
    color: var(--gold-light);
    margin: 25px 0;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.en .hadith-text {
    font-family: var(--font-english);
    font-size: 1.6rem;
    font-style: italic;
}

.hadith-attribution {
    font-family: var(--font-arabic-body);
    font-size: 1rem;
    color: var(--cream);
    opacity: 0.8;
    margin-top: 20px;
}

body.en .hadith-attribution {
    font-family: var(--font-english);
}

@media (max-width: 768px) {
    .hadith-section {
        padding: 60px 20px;
    }

    .hadith-text {
        font-size: 1.5rem;
        line-height: 1.9;
    }

    body.en .hadith-text {
        font-size: 1.3rem;
    }
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: var(--white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-family: var(--font-arabic-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--brown-dark);
    margin-bottom: 15px;
}

body.en .section-title {
    font-family: var(--font-english);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

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

.feature-card {
    background: var(--cream);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.feature-title {
    font-family: var(--font-arabic-display);
    font-size: 1.3rem;
    color: var(--brown-dark);
    margin-bottom: 12px;
}

body.en .feature-title {
    font-family: var(--font-english);
    font-weight: 600;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Benefits Section */
.benefits {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23C9A227' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.benefits .container {
    position: relative;
    z-index: 1;
}

.benefits .section-title {
    color: var(--gold-light);
}

.benefits .section-subtitle {
    color: rgba(255,255,255,0.7);
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

body.en .benefit-item {
    flex-direction: row;
}

.benefit-check {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.benefit-text h4 {
    font-family: var(--font-arabic-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--gold-light);
}

body.en .benefit-text h4 {
    font-family: var(--font-english);
}

.benefit-text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 20px;
    background: var(--cream);
    text-align: center;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cta h2 {
    font-family: var(--font-arabic-display);
    font-size: 2rem;
    color: var(--brown-dark);
    margin-bottom: 15px;
}

body.en .cta h2 {
    font-family: var(--font-english);
}

.cta p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.cta .signup-form {
    max-width: 450px;
    margin: 0 auto;
}

/* Footer */
.footer {
    padding: 40px 20px;
    background: var(--brown-dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-arabic-display);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

body.en .footer-brand {
    font-family: var(--font-english);
    letter-spacing: 4px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.85rem;
}

/* Success Message */
.success-message {
    display: none;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease-out;
}

.success-message.show {
    display: block;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .signup-form {
        flex-direction: column;
    }

    .counter-section {
        gap: 20px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 25px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Language-specific content */
.ar-content { display: block; }
.en-content { display: none; }

body.en .ar-content { display: none; }
body.en .en-content { display: block; }
