/* ===== RESET & VARIABLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-light: #8f82ef;
    --primary-dark: #5647d7;
    --accent: #4fc3f7;
    --bg: #f8fafc;
    --dark-bg: #0d1526;
    --dark-mid: #16213d;
    --surface: #ffffff;
    --elevated: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --font: 'Tajawal', sans-serif;
    --radius: 24px;
    --radius-pill: 999px;
    --shadow-soft: 0 12px 40px rgba(13, 21, 38, 0.08);
    --shadow-strong: 0 18px 45px rgba(13, 21, 38, 0.22);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: linear-gradient(180deg, #f4f8ff 0%, var(--bg) 50%, #f7fbff 100%);
    color: var(--text);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 700;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    border: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 58%, var(--primary-dark) 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.18);
}

.btn-hero {
    font-size: 1rem;
    padding: 14px 34px;
}

.btn-small {
    font-size: 0.95rem;
    padding: 12px 30px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, var(--dark-bg) 0%, var(--dark-mid) 58%, #1e2f58 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 21, 38, 0.1) 0%, rgba(13, 21, 38, 0.55) 100%),
        radial-gradient(circle at 80% 15%, rgba(79, 195, 247, 0.24), transparent 45%),
        radial-gradient(circle at 12% 78%, rgba(108, 92, 231, 0.28), transparent 52%);
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-blob-primary {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.92) 0%, rgba(108, 92, 231, 0) 72%);
    right: -120px;
    top: -80px;
}

.hero-blob-accent {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.9) 0%, rgba(79, 195, 247, 0) 72%);
    left: -120px;
    bottom: -140px;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 46px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
}

.hero-top {
    padding-top: 4px;
}

.logo {
    display: flex;
    justify-content: center;
}

.logo img {
    width: min(48vw, 180px);
    height: auto;
}

.logo-icon {
    object-fit: contain;
}

.logo-icon-white {
    filter: brightness(0) invert(1);
}

.hero-text-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding-bottom: 28px;
}

.hero-text-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.hero-text-inner h1 {
    font-size: clamp(1.85rem, 3.4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.45;
    max-width: 840px;
}

.hero-text-inner p {
    font-size: clamp(0.96rem, 1.8vw, 1.13rem);
    font-weight: 400;
    line-height: 1.95;
    color: #d6e2ff;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.store-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
}

.store-badge img {
    height: 44px;
    width: auto;
    transition: transform 0.3s ease;
}

.store-badge:hover img {
    transform: translateY(-2px) scale(1.02);
}

/* ===== FEATURES ===== */
.features {
    padding: 76px 0 66px;
    position: relative;
}

.features-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-inner h2,
.vision-inner h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 36px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.feature-card {
    background: linear-gradient(180deg, var(--surface) 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.24);
    box-shadow: 0 18px 36px rgba(13, 21, 38, 0.12);
}

.feature-icon {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.feature-icon img {
    width: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.feature-card p {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 360px;
}

/* ===== VISION ===== */
.vision {
    padding: 8px 0 56px;
}

.vision-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.vision-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 26px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface) 0%, #f7f9ff 100%);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

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

.vision-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.vision-text p:last-child {
    margin-bottom: 0;
}

.vision-image {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 20px;
    background: radial-gradient(circle at top, rgba(79, 195, 247, 0.3), rgba(108, 92, 231, 0.08) 65%, transparent 100%);
    padding: 10px;
}

.vision-image img {
    width: 100%;
    height: auto;
}

.vision-icon {
    max-width: 210px;
    margin-inline: auto;
}

.hidden-desktop {
    margin-top: 8px;
}

.store-links-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 0 0;
}

.store-badge-static {
    display: inline-flex;
}

.store-badge-static img {
    height: 40px;
    width: auto;
}

/* ===== ENTERPRISE ===== */
.enterprise {
    padding: 0 0 64px;
}

.enterprise-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    background: linear-gradient(140deg, var(--dark-bg) 0%, var(--dark-mid) 58%, #24416f 100%);
    color: #ffffff;
}

.enterprise-content {
    max-width: 760px;
}

.enterprise-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
}

.enterprise h2 {
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 10px;
}

.enterprise p {
    color: #d6e2ff;
    font-size: 0.96rem;
    line-height: 1.9;
}

.enterprise-cta {
    min-width: 150px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(140deg, var(--dark-bg) 0%, var(--dark-mid) 100%);
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 78px;
    height: auto;
    opacity: 0.98;
}

.copyright {
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.privacy-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.95);
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #ffffff;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    .hero-content {
        padding: 58px 36px 44px;
    }

    .hero-top {
        padding-top: 10px;
    }

    .logo img {
        width: 210px;
    }

    .hero-text-area {
        gap: 30px;
        padding-bottom: 32px;
    }

    .btn-hero {
        font-size: 1.05rem;
        padding: 14px 38px;
    }

    .store-badge img {
        height: 50px;
    }

    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .feature-card {
        padding: 30px 22px;
    }

    .feature-icon {
        width: 165px;
    }

    .vision {
        padding-bottom: 68px;
    }

    .vision-content {
        flex-direction: row;
        text-align: right;
        gap: 36px;
        padding: 30px;
    }

    .vision-text {
        flex: 1;
        text-align: right;
    }

    .vision-text p {
        font-size: 1rem;
    }

    .vision-image {
        flex: 0 0 290px;
        max-width: 290px;
    }

    .hidden-desktop {
        display: none;
    }

    .store-badge-static img {
        height: 46px;
    }

    .enterprise {
        padding-bottom: 76px;
    }

    .enterprise-inner {
        padding: 36px;
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
    }

    .footer {
        padding: 38px 0;
    }
}

/* ===== SMALL MOBILE (<=400px) ===== */
@media (max-width: 400px) {
    .hero-content {
        padding-inline: 14px;
    }

    .hero-text-inner h1 {
        font-size: 1.58rem;
    }

    .hero-text-inner p {
        font-size: 0.9rem;
    }

    .btn-hero {
        width: 100%;
        max-width: 260px;
    }

    .store-badge img,
    .store-badge-static img {
        height: 37px;
    }

    .feature-icon {
        width: 130px;
    }
}
