:root {
    --bg: #07070c;
    --bg-deep: #040408;
    --panel: #121218;
    --panel-2: #16161e;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --text-muted: #9a9aa8;
    --text-soft: #c4c4d2;
    --purple: #5b2cff;
    --purple-bright: #8b5cf6;
    --purple-soft: #a78bfa;
    --glow: rgba(91, 44, 255, 0.45);
    --max: 1180px;
    --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: Outfit, system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-rtl {
    font-family: Cairo, Outfit, system-ui, sans-serif;
}

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

.aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(91, 44, 255, 0.28), transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(139, 92, 246, 0.16), transparent 50%),
        radial-gradient(ellipse 40% 35% at 50% 85%, rgba(91, 44, 255, 0.12), transparent 55%),
        var(--bg-deep);
}

.shell {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* —— Top bar —— */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 8px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.35));
}

.topnav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topnav > a:not(.nav-cta) {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.2s;
}

.topnav > a:not(.nav-cta):hover {
    color: var(--text);
}

.nav-cta {
    margin-inline-start: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.65);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(91, 44, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(91, 44, 255, 0.15), 0 0 24px rgba(91, 44, 255, 0.2);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: rgba(91, 44, 255, 0.22);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4), 0 0 32px rgba(91, 44, 255, 0.35);
    transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 36px;
    min-height: min(72vh, 640px);
    padding: 36px 0 56px;
}

.hero-visual {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.1s forwards;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.orb-a {
    width: 220px;
    height: 220px;
    background: rgba(91, 44, 255, 0.35);
    top: 12%;
    left: 18%;
    animation: pulse 6s ease-in-out infinite;
}

.orb-b {
    width: 160px;
    height: 160px;
    background: rgba(167, 139, 250, 0.22);
    bottom: 18%;
    right: 16%;
    animation: pulse 7s ease-in-out 1s infinite;
}

.glass-stage {
    position: relative;
    width: min(100%, 440px);
    height: 340px;
    perspective: 900px;
}

.glass-card {
    position: absolute;
    width: 168px;
    padding: 18px 16px 16px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(167, 139, 250, 0.45);
    box-shadow:
        0 0 0 1px rgba(91, 44, 255, 0.12) inset,
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(91, 44, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform-style: preserve-3d;
}

.glass-left {
    top: 48px;
    left: 8px;
    transform: rotateY(18deg) rotateX(6deg) translateZ(-20px);
    animation: floatCard 5.5s ease-in-out infinite;
    opacity: 0.88;
}

.glass-center {
    top: 28px;
    left: 50%;
    width: 196px;
    margin-left: -98px;
    z-index: 2;
    border-color: rgba(167, 139, 250, 0.75);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.25) inset,
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(91, 44, 255, 0.35);
    transform: rotateY(-4deg) rotateX(4deg) translateZ(40px);
    animation: floatCard 4.8s ease-in-out 0.4s infinite;
}

.glass-right {
    top: 72px;
    right: 4px;
    transform: rotateY(-16deg) rotateX(8deg) translateZ(-10px);
    animation: floatCard 6s ease-in-out 0.8s infinite;
    opacity: 0.9;
}

.glass-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: rgba(91, 44, 255, 0.2);
    color: var(--purple-soft);
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.glass-icon.is-glow {
    box-shadow: 0 0 24px rgba(91, 44, 255, 0.45);
    color: #e9ddff;
}

.glass-icon svg {
    width: 22px;
    height: 22px;
}

.glass-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: #f2edff;
}

.glass-hint {
    font-size: 1.15rem;
    font-weight: 800;
    color: #c4b5fd;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.glass-meta {
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #86efac;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mood-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.mood-fill {
    display: block;
    height: 100%;
    width: 72%;
    border-radius: inherit;
    background: linear-gradient(90deg, #34d399, #a78bfa 55%, #5b2cff);
    box-shadow: 0 0 12px rgba(91, 44, 255, 0.5);
    animation: moodPulse 2.8s ease-in-out infinite;
}

.news-lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}

.news-lines span {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.28);
}

.news-lines span:nth-child(1) { width: 92%; }
.news-lines span:nth-child(2) { width: 74%; }
.news-lines span:nth-child(3) { width: 58%; background: rgba(91, 44, 255, 0.45); }

.glass-pill {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple), #7c3aed);
    color: #fff;
    box-shadow: 0 8px 20px rgba(91, 44, 255, 0.35);
}

@keyframes moodPulse {
    0%, 100% { width: 68%; }
    50% { width: 82%; }
}

.hero-copy {
    opacity: 0;
    animation: fadeUp 0.85s ease 0.22s forwards;
}

.hero-copy h1 {
    font-family: Syne, Outfit, sans-serif;
    font-size: clamp(2.6rem, 6.5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(91, 44, 255, 0.25);
}

body.is-rtl .hero-copy h1 {
    font-family: Cairo, Syne, sans-serif;
    text-transform: none;
    letter-spacing: -0.02em;
}

body.is-rtl .glass-left {
    left: auto;
    right: 8px;
    transform: rotateY(-18deg) rotateX(6deg) translateZ(-20px);
}

body.is-rtl .glass-right {
    right: auto;
    left: 4px;
    transform: rotateY(16deg) rotateX(8deg) translateZ(-10px);
}

.hero-copy > p {
    max-width: 420px;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 28px;
    font-weight: 400;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 178px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #0a0a0f;
    color: #fff;
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 0 0 1px rgba(91, 44, 255, 0.12), 0 0 28px rgba(91, 44, 255, 0.22);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 0 36px rgba(91, 44, 255, 0.4);
}

.store-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    box-shadow: none;
}

.store-btn svg,
.store-btn .store-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.store-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: start;
}

.store-btn small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
}

.store-btn strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-soft);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s, color 0.2s;
}

.text-link svg {
    width: 18px;
    height: 18px;
}

body.is-rtl .text-link svg {
    transform: scaleX(-1);
}

.text-link:hover {
    color: #ddd6fe;
    gap: 12px;
}

/* —— Footer —— */
.site-footer {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.footer-panel {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    padding: 28px 28px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(91, 44, 255, 0.06);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 22px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--purple-soft);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-orb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    transition: transform 0.2s, filter 0.2s;
}

.social-orb svg {
    width: 18px;
    height: 18px;
}

.social-orb:hover {
    transform: translateY(-3px) scale(1.06);
    filter: brightness(1.08);
}

.social-whatsapp { background: #25d366; }
.social-telegram { background: #2aabee; }
.social-facebook { background: #1877f2; }
.social-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.social-twitter { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.social-youtube { background: #ff0000; }

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pill-btn svg {
    width: 16px;
    height: 16px;
}

.pill-btn:hover {
    background: rgba(91, 44, 255, 0.15);
    border-color: rgba(167, 139, 250, 0.45);
    color: #fff;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-meta p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.lang-switch {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover {
    border-color: rgba(167, 139, 250, 0.45);
    color: var(--purple-soft);
}

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

@keyframes floatCard {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 12px;
        padding: 20px 0 40px;
        text-align: center;
    }

    .hero-copy {
        order: 1;
    }

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

    .hero-copy > p {
        margin-inline: auto;
    }

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

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

    .glass-stage {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .shell { padding: 0 16px 28px; }

    .topnav > a:not(.nav-cta) { display: none; }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .glass-stage {
        transform: scale(0.88);
        transform-origin: center;
    }

    .store-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .footer-panel {
        padding: 22px 18px 14px;
        border-radius: 22px;
    }

    .footer-social {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
