:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-gold: #af8700;
    --glass-border: rgba(0, 0, 0, 0.05);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 2rem;
    transition: var(--transition-smooth);
}

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

.lang-selector {
    position: relative;
    margin-left: 1.5rem;
}

.btn-lang {
    background: rgba(118, 118, 128, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 6px 12px 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.btn-lang:hover,
.btn-lang[aria-expanded="true"] {
    background: rgba(118, 118, 128, 0.15);
}

.chevron {
    transition: transform 0.3s ease;
}

.btn-lang[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent-blue);
    font-weight: 600;
    background: rgba(0, 113, 227, 0.08);
}

.hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

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

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    object-fit: cover;
}

.header-info {
    flex: 1;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.card-status {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    background: #ffffff;
    display: inline-block;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-production {
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.4);
}

.status-secret {
    color: #1d1d1f;
    border-color: rgba(29, 29, 31, 0.4);
}

.status-construction {
    color: #ff9f0a;
    border-color: rgba(255, 159, 10, 0.4);
}

/* Card Variations for Clients */
.card-web {
    border-left: 4px solid var(--accent-blue) !important;
}

.card-app {
    border-left: 4px solid var(--accent-gold) !important;
}

.card-construction {
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    border-style: dashed !important;
}

.card-construction::after {
    content: "DRAFT";
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 0.5rem;
    font-weight: 900;
    color: rgba(255, 159, 10, 0.15);
    transform: rotate(15deg);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

.card-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-play:hover {
    text-decoration: underline;
}

.secret-badge {
    font-style: italic;
    font-size: 0.85rem;
    color: #ff9f0a;
    font-weight: 500;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.card-secret {
    background: rgba(245, 245, 247, 0.3);
    border-style: dashed;
}

.footer {
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .section {
        padding: 1.5rem 1.5rem 4rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 1.25rem;
    }

    .hero {
        padding: 4rem 1.25rem 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .card {
        padding: 1.25rem;
    }

    .card-construction::after {
        font-size: 0.45rem;
        top: 0.7rem;
        right: 0.8rem;
    }

    .btn-play {
        min-height: 44px;
        /* Apple iOS Human Interface Guidelines */
        padding: 10px 0;
        width: 100%;
        justify-content: center;
        background: rgba(0, 113, 227, 0.05);
        border-radius: 10px;
        margin-top: 0.5rem;
    }
}