/* ---- Arabic fallback ----
   Space Grotesk / IBM Plex Mono have no Arabic glyphs; swap to
   Noto Naskh Arabic when the page direction is RTL. Load it via
   Google Fonts alongside your existing font links. */
[dir="rtl"] .hero-copy,
[dir="rtl"] .hero-card {
    font-family: 'Noto Naskh Arabic', 'Tahoma', serif;
}

/* ---- Hero motion system — respects prefers-reduced-motion ---- */

.hero-copy__item {
    opacity: 1;
}

.swiper-slide-active .hero-copy__item {
    animation: heroFadeUp .7s cubic-bezier(.16, 1, .3, 1) forwards;
}
.swiper-slide-active .hero-copy__item:nth-child(1) { animation-delay: .05s; }
.swiper-slide-active .hero-copy__item:nth-child(2) { animation-delay: .15s; }
.swiper-slide-active .hero-copy__item:nth-child(3) { animation-delay: .25s; }
.swiper-slide-active .hero-copy__item:nth-child(4) { animation-delay: .35s; }
.swiper-slide-active .hero-copy__item:nth-child(5) { animation-delay: .4s; }

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

/* Signal / tap ripple — slide 1 */
.hero-signal__ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 9999px;
    border: 1px solid rgba(79, 209, 255, .35);
    animation: heroRing 3.6s ease-out infinite;
}
.hero-signal__ring--2 { animation-delay: 1.2s; }
.hero-signal__ring--3 { animation-delay: 2.4s; }

@keyframes heroRing {
    0%   { transform: scale(.6); opacity: .6; }
    100% { transform: scale(3.2); opacity: 0; }
}

/* Button tap-ripple on hover, echoes the NFC signal */
.hero-cta__ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(79, 209, 255, .35), transparent 60%);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .4s ease, transform .6s ease;
}
.hero-cta:hover .hero-cta__ripple { opacity: 1; transform: scale(1.6); }

/* Card showcase — slide 2 */
.hero-card {
    position: relative;
    width: 320px;
    aspect-ratio: 1.586 / 1;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(135deg, #1c2029 0%, #0f1116 100%);
    border: 1px solid rgba(201, 168, 124, .25);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-10px) rotate(0deg); }
}

.hero-card__shimmer {
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .12), transparent);
    animation: heroShimmer 4.5s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%       { left: -60%; }
    50%,100% { left: 140%; }
}

.hero-card__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-card__row--name { flex-direction: column; align-items: flex-start; gap: 2px; }

.hero-card__chip {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, #C9A87C, #8a744f);
}

.hero-card__wave {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    border: 1px solid rgba(79, 209, 255, .6);
}
.hero-card__wave::before,
.hero-card__wave::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 1px solid rgba(79, 209, 255, .3);
}
.hero-card__wave::after { inset: -8px; opacity: .5; }

@media (prefers-reduced-motion: reduce) {
    .hero-copy__item { opacity: 1; transform: none; animation: none; }
    .hero-signal__ring, .hero-card, .hero-card__shimmer { animation: none; }
}