/* Import Tajawal Font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1A237E;
    background-color: #F9F7F2;
    direction: rtl;
}

/* Hero Section (updated to match app theme) */
.hero {
    background: linear-gradient(120deg, #081428 0%, #1A237E 55%, #2A6FBF 100%);
    color: white;
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Logo styling to match app */
.logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg,#ffffff 0%, rgba(255,255,255,0.95) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.logo-inner {
    font-size: 3.4rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* Larger H1 like the app */
.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* feature icons: colored circles */
.feature-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 2.2rem;
    box-shadow: 0 8px 22px rgba(15, 25, 40, 0.06);
}

.feature-icon.blue { background: linear-gradient(180deg,#dff1ff,#eaf8ff); color: #1A237E; }
.feature-icon.gold { background: linear-gradient(180deg,#fff7e6,#fff3df); color: #C5A059; }
.feature-icon.pink { background: linear-gradient(180deg,#fff0f6,#fff6fb); color: #E74C8C; }
.feature-icon.green { background: linear-gradient(180deg,#e8fbf0,#f0fff6); color: #27AE60; }

/* policy link color to match gold accent */
.policy-link { color: #C5A059; }

/* tweak footer colors to match app */
.footer { background: #0c1730; }
.footer-section h3 { color: #C5A059; }

/* Responsive tweaks */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .logo { width: 120px; height: 120px; }
}

@media (max-width: 600px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2.2rem; }
    .logo { width: 96px; height: 96px; }
    .feature-icon { width: 64px; height: 64px; font-size: 1.6rem; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: #C5A059;
    color: white;
    border: none;
}

.cta-button.primary:hover {
    background: #B8954A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #C5A059;
    border: 2px solid #C5A059;
}

.cta-button.secondary:hover {
    background: #C5A059;
    color: white;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1A237E;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #C5A059;
    margin: 10px auto;
    border-radius: 2px;
}

.section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 0.5px solid #E0E0E0;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    color: #1A237E;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.alt-bg {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text ul {
    margin: 20px 0;
    padding-right: 20px;
}

.about-text li {
    margin-bottom: 10px;
}

.about-image {
    text-align: center;
}

.mockup {
    font-size: 8rem;
    opacity: 0.7;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.policy-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 0.5px solid #E0E0E0;
}

.policy-card:hover {
    transform: translateY(-5px);
}

.policy-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.policy-card h3 {
    color: #1A237E;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.policy-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.policy-link {
    display: inline-block;
    color: #C5A059;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #1A237E;
}

/* Footer */
.footer {
    background: #1A237E;
    color: white;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #C5A059;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #C5A059;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* Terms Section */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-btn:hover {
    color: #2980b9;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px 0;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.content {
    line-height: 1.8;
}

.content h4 {
    color: #2c3e50;
    margin: 40px 0 20px 0;
    font-size: 1.3rem;
    border-right: 4px solid #3498db;
    padding-right: 15px;
}

.content h5 {
    color: #34495e;
    margin: 30px 0 15px 0;
    font-size: 1.1rem;
}

.content ul {
    margin: 20px 0;
    padding-right: 20px;
}

.content li {
    margin-bottom: 10px;
}

.content strong {
    color: #2c3e50;
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        padding: 12px 20px;
    }

    .accept-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }
}