/* === Variables === */
:root {
    --color-primary: #3F6F78;
    --color-primary-dark: #2d5259;
    --color-text: #6F6F6F;
    --color-text-dark: #4A5E62;
    --color-background: #FAFAFA;
    --color-gold: rgba(241, 203, 136, 0.5);
    --color-pink: rgba(255, 182, 193, 0.4);
    --color-beige: rgba(245, 222, 179, 0.5);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F0E8 50%, #E8E0D8 100%);
    color: var(--color-text);
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* === Layout === */
.container {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* === Decorations === */
.decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.lamp {
    position: absolute;
    top: 15px;
    right: 25px;
    width: 40px;
    height: 40px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 200, 0, 0.3)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 200, 0, 0.6)); }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: var(--color-pink);
    top: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    width: 150px;
    height: 150px;
    background: var(--color-gold);
    top: 30%;
    right: -30px;
    animation: float 6s ease-in-out infinite 2s;
}

.blob-3 {
    width: 180px;
    height: 180px;
    background: var(--color-beige);
    bottom: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* === Hero === */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    text-align: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 20px;
}

/* === Illustration === */
.illustration {
    position: relative;
    width: 240px;
    height: 280px;
    margin: 0 auto 20px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Description === */
.description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 20px;
    max-width: 300px;
}

.description strong {
    color: var(--color-text-dark);
}

/* === Game Preview === */
.game-preview {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-dark);
    transition: transform 0.2s;
}

.number.highlight {
    background: var(--color-primary);
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.hint {
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 10px;
}

/* === CTA Section === */
.cta-section {
    padding: 20px 0 30px;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    background: var(--color-primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(63, 111, 120, 0.4);
    transition: all 0.2s;
}

.btn-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(63, 111, 120, 0.5);
}

.btn-cta:active {
    transform: translateY(0);
}

.tg-icon {
    width: 24px;
    height: 24px;
}

.free-badge {
    text-align: center;
    font-size: 13px;
    color: var(--color-text);
    margin-top: 12px;
    opacity: 0.8;
}

/* === Responsive === */
@media (max-width: 380px) {
    .title {
        font-size: 34px;
    }
    
    .illustration {
        width: 200px;
        height: 240px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .number {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-height: 650px) {
    .illustration {
        width: 180px;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 32px;
    }
    
    .description {
        margin-bottom: 15px;
    }
}

/* === Desktop === */
@media (min-width: 768px) {
    .container {
        justify-content: center;
    }
    
    .illustration {
        width: 280px;
        height: 320px;
    }
    
    .title {
        font-size: 48px;
    }
    
    .btn-cta {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* === RTL Support (Arabic) === */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .btn-cta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lamp {
    right: auto;
    left: 25px;
}

html[dir="rtl"] .blob-1 {
    left: auto;
    right: -50px;
}

html[dir="rtl"] .blob-2 {
    right: auto;
    left: -30px;
}

html[dir="rtl"] .game-preview {
    flex-direction: row-reverse;
}
