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

body {
    font-family: 'Chakra Petch', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F3F7FA;
    min-height: 100vh;
    line-height: 1.6;
    color: #374151;
}

.profile-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.profile-link:hover {
    transform: scale(1.1);
}

.profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-picture:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.language-toggle:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #6b7280;
}

.lang-btn.active {
    background: #3b82f6;
    color: white;
}

.lang-btn:hover:not(.active) {
    background: #f3f4f6;
    color: #374151;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    padding-top: 100px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.old-version-notice {
    display: none;
    background: #fef3c7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 40px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.old-version-notice.show {
    display: flex;
    animation: slideDown 0.5s ease-out;
}

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

.old-version-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #92400e;
    font-weight: normal;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.old-version-close:hover {
    background: rgba(146, 64, 14, 0.1);
    transform: scale(1.1);
}

.old-version-notice::before {
    content: '⚠️';
    font-size: 16px;
    flex-shrink: 0;
}

.old-version-text {
    color: #92400e;
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.hero-main-img {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.language-content {
    display: none;
}

.language-content.active {
    display: flex !important;
    flex-direction: column !important;
}

.language-content.active > .header {
    order: 1 !important;
}

.language-content.active > .old-version-notice {
    order: 2 !important;
}

.language-content.active > .hero-main-img {
    order: 3 !important;
}

.language-content.active > .instructions {
    order: 4 !important;
}

.language-content.active > .features {
    order: 5 !important;
}

.language-content.active > .download-links {
    order: 6 !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

.instructions {
    margin: 40px 0 60px 0;
}

.instructions-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    margin-bottom: 40px;
}

.instruction-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.instruction-column {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 3px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.instruction-column::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@media (min-width: 769px) {
    .instruction-column {
        cursor: pointer;
    }

    .instruction-column.inactive {
        opacity: 0.5;
    }

    .instruction-column.inactive::after {
        opacity: 1;
    }

    .instruction-column.active-desktop {
        border-color: #3b82f6;
        box-shadow: 0 15px 50px rgba(59, 130, 246, 0.2);
        transform: scale(1.02);
    }

    .instruction-column:hover {
        border-color: #3b82f6;
        box-shadow: 0 15px 50px rgba(59, 130, 246, 0.15);
    }
}

.column-title {
    display: none;
}

.column-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.column-header-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.column-header-switch .lock-type-switch {
    width: 100%;
}

.instruction-step {
    margin-bottom: 25px;
}

.step-number {
    display: inline-flex;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    vertical-align: middle;
}

.step-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    max-width: 600px;
    width: 100%;
}

.step-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1f2937;
    line-height: 1.4;
    flex: 1;
}

.step-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 600px;
    width: 100%;
}

.step-image {
    margin-top: 10px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.step-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.download-btn {
    background: white;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Chakra Petch', sans-serif;
}

.download-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.download-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(206deg) brightness(97%) contrast(97%);
    transition: filter 0.3s ease;
}

.download-btn:hover img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.image-modal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lock-type-toggle {
    display: none;
    justify-content: center;
    margin-bottom: 0;
}

.lock-type-switch {
    background: #e5e7eb;
    border-radius: 60px;
    padding: 6px;
    display: inline-flex;
    gap: 6px;
    position: relative;
    width: 100%;
    max-width: 500px;
}

.lock-type-switch::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 9px);
    height: calc(100% - 12px);
    background: white;
    border-radius: 60px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.lock-type-switch.drawer-active::before {
    transform: translateX(calc(100% + 12px));
}

.lock-type-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 16px 40px;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    font-family: 'Chakra Petch', sans-serif;
    position: relative;
    z-index: 1;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.lock-type-btn:focus {
    outline: none;
}

.lock-type-btn.active {
    color: #3b82f6;
}

.desktop-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.desktop-type-selector .lock-type-switch {
    max-width: 700px;
}

@media (min-width: 769px) {
    .lock-type-toggle {
        display: none !important;
    }

    .desktop-type-selector {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .profile-link, .language-toggle {
        top: 15px;
    }

    .profile-link {
        left: 15px;
    }

    .language-toggle {
        right: 15px;
    }

    .profile-picture {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .lang-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .title {
        font-size: 2.5rem;
    }

    .container {
        padding-top: 80px;
    }

    .header {
        margin-bottom: 20px;
    }

    .hero-main-img {
        margin: 20px auto;
    }

    .instructions {
        margin: 25px 0 40px 0;
    }

    .instructions-title {
        margin-bottom: 30px;
    }

    .desktop-type-selector {
        display: none !important;
    }

    .lock-type-toggle {
        display: flex;
        margin-bottom: 25px;
    }

    .lock-type-btn {
        font-size: 1rem;
        padding: 14px 28px;
    }

    .instruction-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .instruction-column {
        display: none;
    }

    .instruction-column.active-mobile {
        display: block;
    }

    .column-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .step-title {
        font-size: 1.05rem;
    }

    .step-description {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .step-image {
        margin-top: 6px;
    }

    .download-links {
        flex-direction: column;
        align-items: center;
    }

    .old-version-notice {
        padding: 10px 12px;
        margin-bottom: 30px;
    }

    .old-version-text {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .features {
        gap: 20px;
        margin: 40px 0;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .feature-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}
