/* ============================================================
   EXPLORE WORLD — Gaming UI redesign
   ============================================================ */

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

:root {
    /* --- Surfaces --- */
    --bg: #0d111a;
    --bg-alt: #0a0e17;
    --surface: rgba(22, 28, 42, 0.55);
    --surface-solid: #131a29;
    --border: rgba(0, 229, 255, 0.16);
    --border-strong: rgba(0, 229, 255, 0.38);

    /* --- Core accents (soft, not neon-saturated) --- */
    --cyan: #00e5ff;
    --gold: #ffd700;

    /* --- Theme colors (matched to in-app category colors) --- */
    --t-pays: #1976D2;
    --t-brands: #F59E0B;
    --t-movies: #4A148C;
    --t-monuments: #78909C;
    --t-vintage: #8D6E63;
    --t-teams: #ec4899;
    --t-celebrites: #C2185B;
    --t-animals: #2E7D32;

    /* --- Text --- */
    --text: #f2f6fb;
    --text-muted: #8993a8;
    --text-dim: #5b6478;

    /* --- Type --- */
    --font-display: "Chakra Petch", "Segoe UI", sans-serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;

    --radius-s: 8px;
    --radius-m: 16px;
    --radius-l: 28px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BACKDROP — starry sky, matching the original site
   ============================================================ */

.bg-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 20%, #162032 0%, #0d111a 70%, #06080d 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.3);
    }
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(5, 7, 12, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

#langSelect {
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-s);
    background: var(--surface-solid);
    color: var(--text);
    border: 1px solid var(--border);
    outline: none;
    transition: border-color 0.25s ease;
}

#langSelect:hover,
#langSelect:focus {
    border-color: var(--border-strong);
}

#langSelect option {
    background: var(--surface-solid);
    color: var(--text);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--cyan);
    border-radius: var(--radius-s);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.55);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: var(--surface-solid);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--cyan);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: rgba(9, 13, 22, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border-strong);
    z-index: 99;
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body[dir="rtl"] .mobile-drawer {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border-strong);
    transform: translateX(-100%);
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer a {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 110px 20px 60px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.16) 0%, rgba(0, 229, 255, 0.05) 45%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.hero-tag {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 30px;
    background: rgba(0, 229, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 28px;
}

.hero h1 {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 35%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .slogan {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-desc {
    position: relative;
    z-index: 2;
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1.08rem;
    margin-bottom: 40px;
}

.cta-group {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.store-badge-link {
    display: inline-block;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.store-badge-link:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 20px rgba(0, 229, 255, 0.35));
}

.store-badge-svg {
    width: 175px;
    height: 52px;
    display: block;
}

/* ============================================================
   PREVIEW — phone mockup gameplay
   ============================================================ */

.preview {
    padding: 40px 20px 120px;
}

.preview-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
}

.preview-copy .eyebrow-tag {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 14px;
    display: inline-block;
}

.preview-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-bottom: 18px;
    line-height: 1.2;
}

.preview-copy p {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 460px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.preview-list .mark {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: rgba(0, 229, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 0.8rem;
}

.preview-list h4 {
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.preview-list p {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 0;
    max-width: none;
}

.phone {
    justify-self: center;
    width: 280px;
    border-radius: 40px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, #0c1120, #060811);
    box-shadow: 0 0 0 8px #0a0e18, 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.12);
    padding: 18px 16px;
}

.phone-screen {
    border-radius: 24px;
    background: var(--bg-alt);
    overflow: hidden;
    border: 1px solid var(--border);
}

.phone-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 14px 8px;
}

.phone-back {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.phone-cat {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
    align-self: center;
}

.phone-robot-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.phone-timer {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    color: var(--cyan);
    font-family: var(--font-display);
    font-weight: 600;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 8px;
}

.phone-hint {
    margin: 8px 16px 14px;
    height: 110px;
    border-radius: var(--radius-m);
    background:
        radial-gradient(ellipse at center, rgba(0, 229, 255, 0.18) 0%, rgba(0, 229, 255, 0.1) 45%, rgba(255, 215, 0, 0.08) 100%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.phone-hint::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-mask-image: radial-gradient(ellipse 55% 65% at center, transparent 40%, #000 78%);
    mask-image: radial-gradient(ellipse 55% 65% at center, transparent 40%, #000 78%);
    background: rgba(5, 8, 14, 0.35);
}

.phone-hint::after {
    content: "🏛️";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
}

.phone-answer {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 0 16px 16px;
}

.phone-answer span {
    width: 26px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.phone-answer span.filled {
    background: var(--cyan);
    border-color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: #04121a;
}

.phone-keys {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 0 16px 20px;
}

.phone-keys span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.robot-mascot {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
    animation: float 3.4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ============================================================
   THEMES — HUD panels, differentiated (not a SaaS card kit)
   ============================================================ */

.themes {
    padding: 20px 20px 120px;
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 56px;
}

.section-head .eyebrow-tag {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 14px;
    display: inline-block;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--text-muted);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.theme-card {
    position: relative;
    background: var(--surface-solid);
    border: 1.5px solid var(--accent, var(--cyan));
    border-radius: var(--radius-l);
    padding: 22px 22px 26px;
    min-height: 168px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -12px var(--accent, var(--cyan));
}

.theme-card .theme-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--accent, var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 34px;
    box-shadow: 0 6px 16px -4px var(--accent, var(--cyan));
}

.theme-card .theme-badge {
    position: absolute;
    top: 22px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(6, 9, 16, 0.7);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.theme-card .ghost-icon {
    position: absolute;
    right: 8px;
    bottom: 0px;
    font-size: 4.4rem;
    opacity: 0.07;
    line-height: 1;
    transform: rotate(-6deg);
}

.theme-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 4px;
    position: relative;
}

.theme-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    position: relative;
}

/* ============================================================
   DOWNLOAD CTA BANNER
   ============================================================ */

.download-banner {
    margin-top: 0;
    margin-bottom: 120px;
    margin-inline: auto;
    width: min(100% - 40px, 1240px);
    border-radius: var(--radius-l);
    border: 1px solid var(--border-strong);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--surface-solid);
}

.download-banner::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.download-banner h2 {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    margin-bottom: 14px;
}

.download-banner p {
    position: relative;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 32px;
}

.download-banner .cta-group {
    position: relative;
    margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.86rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer a {
    color: var(--cyan);
}

footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.policy-wrap {
    padding: 40px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    padding: 9px 16px;
    border-radius: var(--radius-s);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.back-link:hover {
    border-color: var(--border-strong);
    color: var(--cyan);
}

.policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 44px;
    border-radius: var(--radius-l);
}

.policy-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 28px;
}

.policy-card h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cyan);
    margin-top: 32px;
    margin-bottom: 12px;
}

.policy-card p,
.policy-card ul {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 15px;
    font-size: 0.98rem;
}

.policy-card ul {
    padding-left: 20px;
    list-style: disc;
}

body[dir="rtl"] .policy-card ul {
    padding-right: 20px;
    padding-left: 0;
}

.policy-card li {
    margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .preview-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .phone {
        justify-self: center;
    }
}

@media (max-width: 800px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 420px) {
    .navbar {
        padding: 14px 16px;
    }

    .logo-container img {
        height: 32px;
        width: 32px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .header-controls {
        gap: 8px;
    }

    #langSelect {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 80px 16px 48px;
    }

    .hero-glow {
        width: 420px;
        height: 420px;
    }

    .cta-group {
        gap: 12px;
    }


    .download-banner {
        padding: 44px 24px;
    }

    .policy-card {
        padding: 26px;
    }
}