:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --accent: #2196f3;
    --text: #134e4a;
    --muted: #64748b;
    --bg: #f8fffe;
    --card: #ffffff;
    --gradient: linear-gradient(135deg, #2196f3 0%, #1cb5c9 45%, #0d9488 100%);
    --shadow: 0 16px 40px rgba(13, 148, 136, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Nastaliq Urdu", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

body.rtl { direction: rtl; }

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text);
}

.brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.lang-switch {
    display: flex;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(13, 148, 136, 0.18);
    border-radius: 999px;
    padding: 4px;
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--gradient);
    color: #fff;
}

.banner {
    padding: 28px 0 12px;
}

/* ---- Feature banner (before community guidelines) ---- */
.feature-banner-section {
    width: 100%;
    background: transparent;
}

.feature-banner-split {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.15fr);
    gap: 22px;
    align-items: stretch;
}

.feature-banner-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 28px 26px;
    min-height: 260px;
}

.feature-banner-eyebrow {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feature-banner-title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.2;
    color: var(--primary-dark);
    text-align: left;
}

.feature-banner-sub {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.feature-banner-note {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.45;
}

.feature-banner-wrap {
    width: 100%;
    min-height: 260px;
    max-height: 320px;
    margin: 0;
    line-height: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
}

body.rtl .feature-banner-split {
    direction: rtl;
}

body.rtl .feature-banner-copy,
body.rtl .feature-banner-title,
body.rtl .feature-banner-sub,
body.rtl .feature-banner-note {
    text-align: right;
}

body.rtl .feature-banner-eyebrow {
    align-self: flex-end;
}

/* ---- Full-width marketing hero ---- */
.hero-banner {
    margin-bottom: 8px;
}

.hero-banner-top {
    background: #fff;
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
    padding: 10px 0;
}

.hero-banner-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-download-label {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.banner-store-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-badge-sm img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}

.hero-track {
    display: flex;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    position: relative;
    min-width: 100%;
    height: clamp(320px, 52vw, 560px);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(15, 23, 42, 0.55) 42%,
        rgba(15, 23, 42, 0.08) 100%
    );
    display: flex;
    align-items: center;
}

.hero-caption {
    max-width: 620px;
    color: #fff;
    padding: 24px 0;
}

.hero-caption h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 4.2vw, 3rem);
    line-height: 1.12;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-caption p {
    margin: 0 0 20px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-stores {
    justify-content: flex-start;
    margin-top: 4px;
}

.hero-stores .download-label {
    color: #fff;
    width: 100%;
    margin-bottom: 4px;
    font-size: 0.95rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-stores .store-badge img {
    height: 46px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.15);
}

.banner-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--gradient);
    box-shadow: var(--shadow);
    min-height: 460px;
}

.banner-download {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px 0;
}

.banner-download-label {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: auto;
}

.store-badge-sm img {
    height: 38px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.banner-track {
    display: flex;
    transition: transform 0.7s ease;
}

.banner-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
    align-items: center;
    padding: 36px 40px;
    color: #fff;
}

.banner-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.banner-copy p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.05rem;
}

.banner-art img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.banner-dot.active { background: #fff; transform: scale(1.15); }

.section {
    padding: 56px 0;
}

.feature-section {
    padding: 48px 0;
}

.feature-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
}

.feature-reverse {
    direction: ltr;
}

.feature-reverse .feature-media {
    order: 2;
}

.feature-reverse .feature-content {
    order: 1;
}

body.rtl .feature-reverse {
    direction: rtl;
}

.feature-media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 280px;
}

.feature-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.feature-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-title {
    text-align: left;
    margin-bottom: 14px;
}

body.rtl .feature-title {
    text-align: right;
}

.feature-sub {
    text-align: left;
    margin: 0 0 18px;
}

body.rtl .feature-sub {
    text-align: right;
}

.guide-list {
    margin: 0;
    padding-left: 1.2rem;
}

body.rtl .guide-list {
    padding-left: 0;
    padding-right: 1.2rem;
}

.guide-list li { margin-bottom: 10px; }

.earn-grid-compact {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
}

.earn-grid-compact .earn-card {
    text-align: left;
}

body.rtl .earn-grid-compact .earn-card {
    text-align: right;
}

.section-title {
    text-align: center;
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-dark);
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto 28px;
}

.panel {
    background: var(--card);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.panel p { margin-top: 0; }

.panel ul {
    margin: 0;
    padding-left: 1.2rem;
}

.panel li { margin-bottom: 10px; }

.earn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.earn-card {
    background: linear-gradient(180deg, #fff 0%, #ecfeff 100%);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.earn-card strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.cta {
    position: relative;
    text-align: center;
    color: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 340px;
}

.cta-image {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.78) 100%);
    padding: 52px 24px;
    min-height: 340px;
    display: flex;
    align-items: center;
}

.download-section {
    padding-top: 0;
    padding-bottom: 56px;
}

.cta-inner {
    width: 100%;
    text-align: center;
}

.cta h2 { margin: 0 0 10px; font-size: 1.8rem; }
.cta p { margin: 0 0 22px; opacity: 0.95; max-width: 640px; margin-inline: auto; }

.cta-stores {
    justify-content: center;
}

.cta-stores .download-label {
    color: #fff;
    width: 100%;
}

.store-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-row .download-label {
    width: 100%;
    margin-bottom: 4px;
    font-weight: 700;
}

.store-badge img {
    height: 52px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
    border-radius: 8px;
}

.store-badge:hover img { transform: translateY(-2px); }

.download-label {
    font-weight: 700;
    opacity: 0.95;
}

.footer {
    padding: 28px 0 40px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer a { color: var(--primary-dark); font-weight: 600; }

.footer a { color: var(--primary-dark); font-weight: 600; }

.legal-wrap { max-width: 820px; }

.legal-content h2,
.legal-content h3 {
    color: var(--primary-dark);
    margin-top: 1.4em;
}

.legal-content h2:first-child,
.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--text);
}

.legal-content a {
    color: var(--primary);
}

.legal-content ul {
    padding-left: 1.2rem;
}

.legal-content li {
    margin-bottom: 10px;
}

.support-wrap { max-width: 720px; }

.support-panel { margin-bottom: 40px; }

.support-form { display: grid; gap: 16px; margin-top: 8px; }

.field { display: grid; gap: 6px; }

.field span {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.92rem;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid rgba(13, 148, 136, 0.25);
    border-color: var(--primary);
}

.btn-submit {
    border: 0;
    border-radius: 14px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: var(--gradient);
    cursor: pointer;
}

.btn-submit:hover { opacity: 0.95; }

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-error ul { margin: 0; padding-left: 1.1rem; }

@media (max-width: 900px) {
    .feature-banner-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-banner-copy {
        min-height: 0;
        padding: 22px 18px;
        text-align: left;
    }

    .feature-banner-wrap {
        min-height: 180px;
        max-height: 220px;
        border-radius: 14px;
    }

    .feature-banner-img {
        max-height: 220px;
    }

    body.rtl .feature-banner-copy,
    body.rtl .feature-banner-title {
        text-align: right;
    }

    body.rtl .feature-banner-eyebrow {
        align-self: flex-end;
    }

    .hero-slide { height: clamp(360px, 70vw, 520px); }
    .hero-nav { width: 38px; height: 38px; font-size: 1.5rem; }
    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }

    .hero-overlay {
        justify-content: center;
        align-items: center;
        text-align: center;
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.55) 0%,
            rgba(15, 23, 42, 0.72) 45%,
            rgba(15, 23, 42, 0.78) 100%
        );
        padding: 0 12px 36px;
    }

    .hero-caption {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 20px 8px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-caption h1 {
        font-size: clamp(1.35rem, 5vw, 2rem);
        text-align: center;
        width: 100%;
    }

    .hero-caption p {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stores {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-stores .download-label {
        text-align: center;
    }

    .feature-split,
    .feature-reverse .feature-media,
    .feature-reverse .feature-content {
        grid-template-columns: 1fr;
        order: unset;
    }
    .feature-reverse .feature-media { order: -1; }
    .feature-title,
    .feature-sub { text-align: center; }
    .earn-grid,
    .earn-grid-compact { grid-template-columns: 1fr; }
    .earn-grid-compact .earn-card { text-align: center; }
}
