:root {
    --bg-dark: #0f111a;
    --accent-primary: #8b5cf6;
    --accent-secondary: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

.header {
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-badge {
    background: var(--glass-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hero-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.trust-badge {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.game-display-card:not([hidden]) {
    position: relative;
    width: 100%;
    max-width: 420px; 
    aspect-ratio: 420 / 860; 
    height: auto; 
    margin: 0 auto;
    background: #000;
    border-radius: 54px;
    border: 12px solid #1e293b;
    box-shadow: 0 0 0 2px #334155, 0 20px 60px rgba(0,0,0,0.8);
    overflow: hidden;
    display: block;
}

.game-display-card:not([hidden])::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.game-display-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.seo-longform-content {
    margin-top: 2rem;
}

.section-title, .use-cases-section h2, .faq-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-inline: auto;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.glass-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.glass-panel p {
    color: var(--text-muted);
}

.use-cases-section {
    text-align: center;
    margin-top: 2rem;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.chip {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.chip:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.faq-section {
    max-width: 800px;
    margin: 4rem auto 0;
    width: 100%;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.faq-item summary {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-top: 2rem;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand .brand-logo {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}









/* ===== התיקון למובייל: Scale אקטיבי מיושר למרכז ===== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; 
    }

    .app-container {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* נועלים את המכולה שלא תיתן לילדים שלה לברוח הצידה */
        width: 100vw;
        overflow: hidden; 
    }
    
    .game-display-card:not([hidden]) {
        width: 420px !important;
        max-width: 420px !important;
        height: 860px !important;
        
        /* הקסם: מכווצים לפי רוחב המסך */
        transform: scale(calc(100vw / 420px));
        
        /* התיקון לבאג התזוזה: משתמשים גם ב-margin כדי למרכז באופן אבסולוטי */
        transform-origin: top left; /* משנים ל-top left כדי שהחישוב יהיה מדויק */
        margin-left: calc((100vw - 420px) / 2) !important; /* דוחף למרכז בדיוק */
        margin-bottom: calc(860px * (100vw / 420px - 1)) !important;
        
        border-radius: 0;
        border: none;
    }
    
    .game-display-card:not([hidden])::before {
        display: none; 
    }
    
    .section-title, .use-cases-section h2, .faq-section h2 {
        font-size: 1.8rem;
        margin-top: 1rem;
        padding: 0 1rem; /* שומר שהכותרות לא יידבקו לקצה */
    }
}
/* =========================================
   RTL Support (Hebrew / Arabic)
   ========================================= */

/* קביעת יישור טקסט לימין כברירת מחדל לדפים בעברית */
[dir="rtl"] {
    text-align: right;
}

/* סידור כותרות, פסקאות ואלמנטים של טקסט ארוך לימין */
[dir="rtl"] .glass-panel, 
[dir="rtl"] .glass-panel h3, 
[dir="rtl"] .glass-panel p,
[dir="rtl"] .info-item,
[dir="rtl"] .faq-item summary, 
[dir="rtl"] .faq-item p,
[dir="rtl"] .category-chips,
[dir="rtl"] .seo-longform-content p,
[dir="rtl"] .feature-bubble span {
    text-align: right;
}

/* דריסת היישור לשמאל של הכותרת במסכים גדולים */
@media (min-width: 960px) {
    [dir="rtl"] .main-title {
        text-align: right;
    }
}

/* סידור השאלות הנפוצות שהטקסט יהיה מימין והפלוס משמאל */
[dir="rtl"] .faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}