:root {
    /* Color Palette */
    --color-coral: #FF988D;
    --color-sage: #9CBA9B;
    --color-dark-green: #334B14;
    --color-soft-pink: #EEB7B1;
    --color-cream: #F5E6D8;
    --color-white: #FFFFFF;
    --color-text-main: #334B14;
    --color-text-light: #667C68;
    /* Slightly lighter green for secondary text */

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(51, 75, 20, 0.05);
    --shadow-md: 0 8px 16px rgba(51, 75, 20, 0.1);
    --shadow-lg: 0 16px 32px rgba(51, 75, 20, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--color-coral);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.btn-outline {
    border: 2px solid var(--color-dark-green);
    color: var(--color-dark-green);
    background: transparent;
}

.section-padding {
    padding: 80px 0;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-dark-green);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-dark-green);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-dark-green);
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 1.125rem;
}

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

.subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: rgba(245, 230, 216, 0.8);
    /* Cream with opacity */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(51, 75, 20, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--color-coral);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-dark-green);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-dark-green) 0%, #2a3d12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-dark-green);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 160px;
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: #2a3d12;
}

.app-btn i {
    font-size: 2rem;
    margin-right: 12px;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
}

.app-btn-text span:first-child {
    font-size: 0.75rem;
    font-weight: 400;
}

.app-btn-text span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    /* Remove fixed height to let image define aspect ratio, or restrict it */
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-soft-pink);
    /* Fallback background */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Section */
.video-section {
    padding: 40px 0 80px;
}

.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    position: relative;
}

.video-placeholder-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: linear-gradient(-45deg, var(--color-coral), var(--color-sage), var(--color-dark-green));
    background-size: 400% 400%;
    animation: gradientLoop 6s ease infinite;
    position: relative;
}

.play-icon-pulse i {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.video-placeholder-content h3 {
    color: white;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes gradientLoop {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-soft-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-dark-green);
    font-size: 2rem;
}

/* Benefits */
.benefits {
    background-color: white;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: -40px;
    /* Overlap effect */
    position: relative;
    z-index: 10;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--color-cream);
    transition: background-color 0.3s ease;
}

.benefit-card:hover {
    background-color: #fcf6f0;
    /* Lighter cream */
}

.benefit-icon {
    font-size: 2rem;
    color: var(--color-sage);
    margin-bottom: 1rem;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Survey CTA */
.survey-cta {
    background-color: white;
}

.survey-card {
    background-color: var(--color-dark-green);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.survey-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.survey-icon i {
    font-size: 3rem;
    color: var(--color-sage);
}

.survey-text h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.survey-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 500px;
}

.survey-btn {
    background-color: var(--color-coral);
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
}

.survey-btn:hover {
    background-color: #ff8577;
    box-shadow: 0 4px 12px rgba(255, 152, 141, 0.4);
}

/* Disclaimer */
.disclaimer-section {
    padding: 2rem 0;
    background-color: white;
}

.disclaimer-box {
    background-color: rgba(255, 152, 141, 0.1);
    /* Light Coral */
    border: 1px solid rgba(255, 152, 141, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.disclaimer-box i {
    color: var(--color-coral);
    font-size: 1.5rem;
    margin-top: 2px;
}

.disclaimer-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(180deg, white 0%, var(--color-cream) 100%);
}

.justify-center {
    justify-content: center;
}

/* Footer */
.footer {
    background-color: var(--color-dark-green);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-qr-container {
    display: flex;
    gap: 1rem;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.qr-img {
    width: 80px;
    height: 80px;
    background-color: white;
    padding: 5px;
    border-radius: var(--radius-sm);
}

.qr-item span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer-logo .footer-brand-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact {
    display: block;
    margin-bottom: 0.5rem;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--color-coral);
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 400px;
    }

    .app-buttons {
        justify-content: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .survey-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    .survey-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .nav {
        display: none;
        /* Add JS toggle for mobile menu later */
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo .footer-brand-img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-logo p {
        margin-left: auto;
        margin-right: auto;
    }

    .header-container {
        padding: 0 16px;
    }

    .mobile-hide {
        display: none;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-qr-container {
        justify-content: center;
    }
}

/* Language Switcher */
.lang-switch {
    background: transparent;
    border: 1px solid var(--color-sage);
    color: var(--color-sage);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.lang-switch:hover {
    background-color: var(--color-sage);
    color: white;
}

/* RTL / Arabic Styles */
html[lang="ar"] {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .lang-switch {
    font-family: 'Inter', sans-serif;
    margin-left: 0;
    margin-right: 1rem;
}

html[lang="ar"] .nav-link {
    margin-left: 0;
    margin-right: 1.5rem;
}

html[lang="ar"] .hero-content,
html[lang="ar"] .step-card,
html[lang="ar"] .benefit-card,
html[lang="ar"] .survey-text,
html[lang="ar"] .footer-logo p,
html[lang="ar"] .footer-links {
    text-align: right;
}

html[lang="ar"] .benefit-card {
    align-items: flex-start;
}

html[lang="ar"] .survey-content {
    flex-direction: row;
}

/* Mobile RTL Adjustments */
@media (max-width: 992px) {

    html[lang="ar"] .hero-container,
    html[lang="ar"] .footer-container,
    html[lang="ar"] .survey-card {
        text-align: center;
    }

    html[lang="ar"] .survey-content {
        flex-direction: column;
    }
}