:root {
    --primary-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-gold: #fbbf24;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
}

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

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

header {
    padding: 1.5rem 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-icon {
    position: absolute;
    left: 0.6rem;
    width: 0.9rem;
    height: 0.9rem;
    color: var(--text-main);
    pointer-events: none;
    opacity: 0.6;
}

.caret-icon {
    position: absolute;
    right: 0.6rem;
    width: 0.7rem;
    height: 0.7rem;
    color: var(--text-main);
    pointer-events: none;
    opacity: 0.6;
}

.lang-switch {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 1.8rem 0.3rem 1.8rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-switch:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.lang-switch option {
    background: var(--primary-bg);
    color: var(--text-main);
    padding: 10px;
}

main {
    padding: 4rem 5%;
}

#hero {
    text-align: center;
    margin-bottom: 6rem;
    animation: fadeInDown 1s ease-out;
}

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

#hero h1 span {
    color: var(--accent-blue);
    background: linear-gradient(to right, var(--accent-blue), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

#apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.app-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.app-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.app-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.app-features span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 10rem;
    font-size: 0.8rem;
    color: var(--text-main);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 10rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn.primary {
    background: var(--accent-blue);
    color: white;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

footer {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}