:root {
    --primary-purple: #7F3BF1;
    --secondary-pink: #9900E5;
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --link-color: rgba(255,255,255,0.9);
    --link-muted: rgba(255,255,255,0.6);
    --link-hover: var(--primary-purple);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, var(--primary-purple), transparent 50%),
                radial-gradient(circle at 80% 70%, var(--secondary-pink), transparent 50%);
    opacity: 0.6;
    filter: blur(60px);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-btn-small {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.3s;
}

/* Link defaults */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--link-hover);
    text-decoration: underline;
}

.logo a {
    text-decoration: none;
    color: inherit;
    -webkit-text-fill-color: inherit;
}

.logo a:hover, .logo a:focus {
    text-decoration: none;
    color: inherit;
    -webkit-text-fill-color: inherit;
}

.download-btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 80vh;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        justify-content: center; /* Changed from space-between to center */
        gap: 6rem; /* Added gap to separate content and image */
        max-width: 1000px; /* Reduced max-width to bring content closer */
        margin: 0 auto;
    }
    .hero-content {
        max-width: 45%; /* Slightly reduced width */
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-purple), var(--secondary-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: black;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
    text-decoration: none;
    color: black;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    border-radius: 40px;
    border: 8px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 0% 0%, var(--primary-purple), transparent 50%),
                radial-gradient(circle at 100% 100%, var(--secondary-pink), transparent 50%),
                #000000;
    padding: 20px;
    position: relative;
}

.top-bar {
    display: flex;
    align-items: center;
    margin-top: 40px; /* Safe area simulation */
    margin-bottom: 20px;
}

.timer-container {
    background: #000000;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-right: 12px;
    width: 64px;
    display: flex;
    justify-content: center;
}

.timer-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900; /* Heavy */
    font-size: 1.1rem;
    color: white;
    font-stretch: condensed;
}

.points-container {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-grow: 1;
}

.plus, .points-value {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.menu-icon {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.game-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.word-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-bottom: 32px;
}

.game-word {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #FFFFFF, #999999);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: capitalize;
    transform: scaleX(1.1); /* Expanded font simulation */
    margin-bottom: 4px;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.search-container {
    width: 100%;
    padding: 0 8px;
}

.search-capsule {
    width: 100%;
    height: 52px;
    background: rgba(127, 59, 241, 0.4); /* PrimaryPurple opacity 0.4 */
    border: 1px solid var(--primary-purple);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-capsule span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 24px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* New Sections Styling */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-it-works, .perfect-for {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.step-number {
    background: var(--primary-purple);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: white;
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.use-case-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.use-case-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    background: rgba(127, 59, 241, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.use-case-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

footer a {
    color: var(--link-muted);
}

/* language toggle */
.lang-switch {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
    position: relative;
    min-width: 44px;
    font-family: inherit;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
    color: white;
}

.lang-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--primary-purple);
    border-radius: 24px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* State for EN active */
.lang-switch.en-active .lang-bg {
    transform: translateX(100%);
}

.nav-actions {
    display:flex;
    gap:12px;
    align-items:center;
}

/* Containers for content pages (privacy/terms) */
.container {
    max-width: 900px;
    margin: 3.5rem auto;
    padding: 2rem;
}

.container .glass-panel {
    padding: 2.25rem;
    border-radius: 24px;
}

.container .glass-panel h1 {
    font-size: 1.95rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.2px;
}

.container .glass-panel h2 {
    font-size: 1.06rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
}

.container .glass-panel p {
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    margin-bottom: 0.75rem;
}

.container .glass-panel ul {
    margin-top: 0.4rem;
    margin-bottom: 1rem;
    padding-left: 1.3rem;
}

.container .glass-panel ul {
    margin-top: 0.6rem;
    margin-bottom: 1.25rem;
    padding-left: 1.4rem;
    list-style-position: outside;
}
.container .glass-panel ul li {
    margin-bottom: 0.8rem;
    line-height: 1.65;
}
.container .glass-panel ul li::marker { color: rgba(255,255,255,0.8); }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .glass-nav {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 12px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        width: 100%;
    }
    
    .nav-actions a:first-child {
        margin-right: 0;
    }
    
    .hero {
        padding: 3rem 1.5rem;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features,
    .how-it-works,
    .perfect-for {
        padding: 3rem 1.5rem;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .perfect-for-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case-card {
        flex-direction: column;
        text-align: center;
    }
    
    .use-case-icon {
        margin: 0 auto;
    }
    
    .container {
        margin: 2rem auto;
        padding: 1rem;
    }
    
    .container .glass-panel {
        padding: 1.5rem;
    }
    
    .container .glass-panel h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .game-word {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .step-card,
    .use-case-card {
        padding: 1.5rem;
    }
    
    .icon,
    .use-case-icon {
        font-size: 2rem;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 40px;
    }
}

